
/* =========================================================
   1. FUENTE Y VARIABLES GLOBALES
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --verde: #003f35;
    --menta: #e5fff7;
    --texto: #625b70;
    --amarillo: #ffd51e;
}


/* =========================================================
   2. CONFIGURACIÓN GENERAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--verde);
}

a {
    text-decoration: none;
    color: inherit;
}

.contenedor {
    width: min(1400px, 92%);
    margin: auto;
}


/* =========================================================
   3. CABECERA Y LOGOTIPO
========================================================= */

.cabecera {
    background: #fff;
    box-shadow: 0 2px 14px #00000012;
    position: relative;
    z-index: 5;
}

.barra {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: block;
    width: 300px;
    max-height: 250px;
    object-fit: contain;
}

.logo-fallback {
    font-weight: 900;
    font-size: 22px;
}


/* =========================================================
   4. MENÚ DE NAVEGACIÓN
========================================================= */

.navegacion {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.6vw, 45px);
}

.navegacion a {
    font-size: 12px;
    font-weight: 600;
    padding: 12px 0;
    white-space: nowrap;
    color: #222;
}

.navegacion a.activo {
    border-bottom: 3px solid var(--verde);
    color: var(--verde);
    font-weight: 800;
}


/* =========================================================
   5. BOTÓN DEL MENÚ MÓVIL
========================================================= */

.menu-boton {
    display: none;
    background: none;
    border: 0;
    font-size: 28px;
    color: var(--verde);
    cursor: pointer;
}


/* =========================================================
   6. SECCIÓN PRINCIPAL (HERO)
========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 49% 51%;
    min-height: 630px;
    align-items: end;
}


/* =========================================================
   7. ÁREA DE FOTOGRAFÍA
========================================================= */

.foto-area {
    position: relative;
    align-self: stretch;
    min-height: 610px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.foto-persona {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 620px;
    object-fit: contain;
    object-position: center bottom;
}

.foto-faltante {
    position: absolute;
    z-index: 2;
    left: 15%;
    right: 15%;
    bottom: 15%;
    padding: 22px;
    background: #ffffffde;
    border: 2px dashed #008d72;
    border-radius: 14px;
    text-align: center;
    color: #145b4d;
    font-size: 15px;
}


/* =========================================================
   8. ELEMENTOS DECORATIVOS DE COLOR
========================================================= */

.pincel {
    position: absolute;
    z-index: 0;
    transform: rotate(-27deg);
    border-radius: 45% 15% 50% 12%;
    filter: blur(0.3px);
}

.pincel.a {
    background: #00ad84;
    width: 95%;
    height: 150px;
    left: -10%;
    top: 24%;
}

.pincel.b {
    background: #ffdb21;
    width: 90%;
    height: 135px;
    left: 0;
    top: 49%;
}

.pincel.c {
    background: #14a666;
    width: 105%;
    height: 95px;
    left: -20%;
    bottom: 9%;
}

.pincel.d {
    background: #ff9900;
    width: 40%;
    height: 40px;
    left: -15%;
    top: 55%;
}


/* =========================================================
   9. TEXTOS PRINCIPALES
========================================================= */

.hero-contenido {
    padding: 48px 0 32px 36px;
    align-self: center;
}

.hero h1 {
    font-size: clamp(44px, 5.1vw, 83px);
    line-height: 0.95;
    letter-spacing: -3px;
    font-weight: 900;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.lema {
    font-size: clamp(20px, 2vw, 31px);
    line-height: 1.15;
    color: #625a6c;
    margin: 0 0 24px;
}

.lema strong {
    font-weight: 800;
}

.descripcion {
    font-size: clamp(15px, 1.36vw, 20px);
    line-height: 1.43;
    color: var(--texto);
    margin: 0 0 24px;
}


/* =========================================================
   10. SECCIÓN DESTACADA
========================================================= */

.destacado {
    background: linear-gradient(120deg, #e1fff5, #effffb);
    padding: 40px 0 65px;
}


/* =========================================================
   11. TARJETA DESTACADA
========================================================= */

.tarjeta {
    background: #fff;
    box-shadow: 0 7px 24px #004a3610;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 45px;
    padding: 30px 6%;
    min-height: 210px;
}


/* =========================================================
   12. ICONO DE GRADUACIÓN
========================================================= */

.icono {
    width: 150px;
    height: 150px;
    flex: none;
    border-radius: 50%;
    background: #d0f8eb;
    display: grid;
    place-items: center;
}

.icono svg {
    width: 82px;
    height: 82px;
    stroke: var(--verde);
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   13. SEPARADOR Y TEXTOS DE LA TARJETA
========================================================= */

.separador {
    height: 140px;
    width: 2px;
    background: #c2f4e4;
}

.tarjeta h2 {
    font-size: clamp(24px, 2.7vw, 39px);
    line-height: 1.13;
    margin: 0 0 12px;
    letter-spacing: -1px;
}

.tarjeta p {
    font-size: clamp(18px, 2vw, 28px);
    margin: 0;
}


/* =========================================================
   14. PIE DE PÁGINA
========================================================= */

.pie {
    background: var(--verde);
    color: #fff;
    padding: 25px 0;
    text-align: center;
    font-size: 13px;
}

.pie a {
    text-decoration: underline;
}


/* =========================================================
   15. DISEÑO ADAPTABLE: TABLETAS Y PANTALLAS MEDIANAS
   Aplicación para pantallas de hasta 900 px
========================================================= */

@media (max-width: 900px) {

    /* Cabecera */
    .barra {
        min-height: 78px;
    }

    .logo {
        width: 155px;
    }

    /* Menú móvil */
    .menu-boton {
        display: block;
    }

    .navegacion {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 18px 5%;
        background: white;
        box-shadow: 0 10px 20px #0002;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .navegacion.abierto {
        display: flex;
    }

    /* Sección principal */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .foto-area {
        min-height: 440px;
        max-height: 510px;
        grid-row: 2;
    }

    .foto-persona {
        height: 510px;
    }

    .hero-contenido {
        padding: 55px 0 10px;
        grid-row: 1;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    /* Tarjeta */
    .tarjeta {
        gap: 22px;
    }

    .icono {
        width: 110px;
        height: 110px;
    }

    .icono svg {
        width: 60px;
        height: 60px;
    }

    .separador {
        height: 100px;
    }
}


/* =========================================================
   16. DISEÑO ADAPTABLE: CELULARES
   Aplicación para pantallas de hasta 560 px
========================================================= */

@media (max-width: 560px) {

    /* Textos principales */
    .hero-contenido {
        padding-top: 36px;
    }

    .hero h1 {
        font-size: 43px;
    }

    /* Fotografía */
    .foto-area {
        min-height: 340px;
        max-height: 390px;
    }

    .foto-persona {
        height: 390px;
    }

    /* Tarjeta destacada */
    .tarjeta {
        padding: 25px 20px;
        gap: 15px;
        min-height: 0;
    }

    .icono {
        width: 75px;
        height: 75px;
    }

    .icono svg {
        width: 42px;
        height: 42px;
    }

    .separador {
        height: 75px;
    }

    .tarjeta h2 {
        font-size: 20px;
    }

    .tarjeta p {
        font-size: 16px;
    }

    /* Espaciado de la sección */
    .destacado {
        padding: 25px 0 40px;
    }
}
