/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Color palette */
:root {
    --primary-color: #007acc;
    --secondary-color: #00a99d;
    --bg-light: #f0f8ff;
}
.container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 0;
}
.section {
    padding: 3rem 0;
}

/* Alternate section background color for a more dynamic design */
.section:nth-of-type(even) {
    background-color: var(--bg-light);
}
h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}
p {
    margin-bottom: 1rem;
}
/* Hero section */
.hero {
    /* Use the uploaded banner image with a dark overlay for readability */
    /* Aclaramos el overlay negro para que el banner sea más visible */
    /* Aclaramos aún más el overlay oscuro para que la foto del banner sea más visible */
    /* Hacemos aún más luminoso el banner del héroe reduciendo la opacidad de la superposición oscura. */
    /* Reducimos aún más la opacidad del overlay oscuro para que la foto del hombre de espaldas al mar sea más luminosa */
    background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)), url('assets/banner.jpeg') center/cover no-repeat;
    text-align: center;
    padding: 6rem 0;
    color: #fff;
}
.tagline {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #333;
}
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #005a9c;
}
/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.service {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.service:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* Ajuste para la filosofía: mostrar siempre dos columnas en pantallas grandes */
.philosophy-services {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 600px) {
    .philosophy-services {
        grid-template-columns: 1fr;
    }
}
/* Philosophy */
.philosophy {
    background-color: #f4f7fb;
    font-style: italic;
}
.philosophy blockquote {
    margin-top: 1rem;
    font-weight: bold;
    color: #005a9c;
}
/* Contact form */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact input,
.contact textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.footer {
    background-color: #f9f9f9;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: #666;
}
/* Founder photo */
.founder-photo {
    margin-top: 2rem;
    text-align: center;
}
.founder-photo img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
/* Ajustar posición de la foto del fundador */
.founder-photo img {
    object-position: top;
}
.hero h1,
.hero .tagline {
    color: #fff;
}

/* Make the proposition text below the banner bold and larger */
.proposition blockquote,
.proposition p {
    font-size: 1.25rem;
    font-weight: bold;
}

/* Estilo para la imagen de Gandhi en la sección propuesta */
.proposition .gandhi-img {
    text-align: center;
    margin-top: 1rem;
}
.proposition .gandhi-img img {
    max-width: 150px;
    height: auto;
}

/* Nueva imagen de fondo para la sección de propuesta: se utiliza el retrato en blanco y negro de Gandhi */
.proposition {
    position: relative;
    color: #333;
    text-align: center;
    /* Show the entire portrait by using contain sizing and centering. A semi‑transparent white
       overlay ensures legibility without obscuring the image. */
    /* Reposition the portrait so the full face is visible: align top and fill the width. A light overlay preserves legibility */
    /* Reducimos la opacidad de la superposición para que el retrato de Gandhi sea más claro */
    /* Aclaramos aún más la superposición para resaltar el rostro de Gandhi */
    /* Aclaramos la superposición blanca para que el retrato de Gandhi tenga tonos más grises y menos contraste. */
    /* Reducimos un poco más la superposición para aclarar el retrato en tonos grises y disminuir el contraste */
    background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)), url('assets/gandhi_bw.jpg') center top/cover no-repeat;
    padding-top: 4rem;
    padding-bottom: 4rem;
    min-height: 450px;
}

/* Eliminamos el contenedor de la imagen de Gandhi porque ahora la imagen está en el fondo */
.proposition .gandhi-img {
    display: none;
}

/* Círculo para la representación de la metodología */
.circle-diagram {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 2rem auto;
    border-radius: 50%;
    /* Conic gradient con cuatro colores suaves para los cuatro pasos */
    background: conic-gradient(
        var(--primary-color) 0deg 90deg,
        var(--secondary-color) 90deg 180deg,
        #80bde6 180deg 270deg,
        #80d1c8 270deg 360deg
    );
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Layout for the methodology section: place the circle and descriptions side by side on large screens */
.metodo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.metodo-descriptions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 420px;
}
/* Imagen representativa para la metodología */
.metodo-image img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.metodo-item h3 {
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.metodo-item p {
    color: #333;
    line-height: 1.4;
}
@media (min-width: 768px) {
    .metodo-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
    .metodo-descriptions {
        margin-left: 2rem;
    }
}
.circle-diagram .segment {
    position: absolute;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%);
    text-align: center;
    width: 120px;
    line-height: 1.2;
}
.segment-descubrir {
    /* Position at the centre of the top quadrant */
    top: 25%;
    left: 50%;
}
.segment-sonar {
    /* Position at the centre of the right quadrant */
    top: 50%;
    left: 75%;
}
.segment-disenar {
    /* Position at the centre of the bottom quadrant */
    top: 75%;
    left: 50%;
}
.segment-implementar {
    /* Position at the centre of the left quadrant */
    top: 50%;
    left: 25%;
}