/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --navy: #06245c;
    --navy2: #031a43;
    --gold: #c9a227;
    --gold-dark: #a67c00;
    --green: #B8860B;
    --green2: #B8860B;
    --lime: #82d83f;
    --text: #18233b;
    --muted: #68738a;
    --light: #f5f8fc;
    --white: #ffffff;
    --border: #e4e9f1;
}


/* =========================================================
   GENERAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

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

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #edf0f5;
    backdrop-filter: blur(12px);
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 30px;
}


/* =========================================================
   LOGO HEADER
   ========================================================= */

.brand {
    display: flex;
    align-items: center;
    min-width: 220px;
    height: 82px;
}

.brand-logo {
    display: block;
    width: 220px;
    height: auto;
    max-height: 76px;
    object-fit: contain;
}


/* =========================================================
   NAVEGACIÓN
   ========================================================= */

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex: 1;
}

nav a {
    position: relative;
    padding: 30px 0;
    font-size: 13px;
    font-weight: 700;
    color: #1b2944;
    text-transform: uppercase;
}


/* Línea dorada */

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 21px;
    width: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 5px;
    transition: width 0.25s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}


/* =========================================================
   BOTONES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 30px;
    padding: 14px 25px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--gold);
    color: #fff;
    box-shadow:
        0 8px 20px rgba(201, 162, 39, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--gold-dark);
}

.btn-green {
    background: var(--gold);
    color: #fff;
}

.btn-green:hover {
    transform: translateY(-2px);
    background: var(--gold-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    white-space: nowrap;
}


/* =========================================================
   MENÚ MÓVIL
   ========================================================= */

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


/* =========================================================
   BANNER / HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #031a43;
    display: flex;
    align-items: center;
}


/* =========================================================
   ILUMINACIÓN DEL BANNER
   ========================================================= */

.hero::before {
    content: "";
    position: absolute;
    right: -150px;
    top: -180px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(201, 162, 39, 0.12),
            transparent 65%
        );
    pointer-events: none;
    z-index: 1;
}

/* =========================================================
   OVERLAY GENERAL
   ========================================================= */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 75% 40%,
            rgba(255,255,255,0.04),
            transparent 30%
        );
}


/* =========================================================
   CONTENEDOR DEL HERO
   ========================================================= */

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 0;

    /* Dejamos espacio para la imagen */
    padding-right: 45%;
}


/* =========================================================
   TEXTO DEL BANNER
   ========================================================= */

.hero-copy {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 720px;
    padding: 70px 0;
    color: #ffffff;
}


/* Texto superior */

.eyebrow {
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #c9a227;
}



/* Título */

.hero h1 {
    margin: 0 0 25px;
    font-size: clamp(45px, 5.5vw, 78px);
    line-height: 1.02;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: #ffffff;
}


/* Parte verde */

.hero h1 span {
    display: block;
    color: #82d83f;
}


/* Descripción */

.hero-text {
    max-width: 650px;
    margin: 20px 0 30px;
    font-size: 17px;
    line-height: 1.7;
    color: #e9effa;
}



/* Botones */

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* =========================================================
   IMAGEN DEL BANNER
   ========================================================= */

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 1;
}



/* =========================================================
   IMAGEN
   ========================================================= */

.hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    max-width: none;
    object-fit: cover;
    object-position: center center;

    /* Imagen nítida */
    transform: none;
    filter: none;
}

/* =========================================================
   DEGRADADO SOBRE LA IMAGEN
   ========================================================= */

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(3, 26, 67, 0.98) 0%,
        rgba(3, 26, 67, 0.72) 10%,
        rgba(3, 26, 67, 0.38) 24%,
        rgba(3, 26, 67, 0.14) 40%,
        rgba(3, 26, 67, 0.03) 58%,
        rgba(3, 26, 67, 0) 78%
    );
}





/* =========================================================
   PILARES
   ========================================================= */

.pillars {
    position: relative;
    margin-top: 0;
    z-index: 5;
    clear: both;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 25px 10px;
    background: #fff;
    border-radius: 18px;
    box-shadow:
        0 18px 50px rgba(14, 35, 72, 0.13);
}

.pillar {
    padding: 5px 13px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.pillar:last-child {
    border: 0;
}

.pillar-icon {
    margin-bottom: 8px;
    font-size: 28px;
}

.pillar h3 {
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--navy);
}

.pillar p {
    font-size: 11px;
    line-height: 1.4;
    color: var(--muted);
}


/* =========================================================
   SECCIONES
   ========================================================= */

.section {
    padding: 95px 0;
}

.section-light {
    background: var(--light);
}

.section h2 {
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.12;
    letter-spacing: -1px;
    color: var(--navy);
}

.lead {
    margin: 20px 0;
    font-size: 17px;
    color: var(--muted);
}


/* =========================================================
   NOSOTROS
   ========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    align-items: center;
}

.about-card {
    position: relative;
    min-height: 280px;
    padding: 45px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--navy);
    color: #fff;
}

.about-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(116, 189, 50, 0.2);
}

.about-number {
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
    color: var(--gold);
}

.about-card h3 {
    margin: 15px 0;
    font-size: 28px;
}

.about-card p {
    color: #cdd7e9;
}

.text-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: var(--green2);
}


/* =========================================================
   ENCABEZADO DE SECCIÓN
   ========================================================= */

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.section-heading > p {
    max-width: 430px;
    color: var(--muted);
}


/* =========================================================
   PROGRAMAS - CENTRADOS
   ========================================================= */

#oferta .program-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 340px));
    justify-content:center;
    justify-items:stretch;
    gap:32px;
    width:100%;
    margin:0 auto;
}

#oferta .program-card{
    width:100%;
    min-height:320px;
    padding:35px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow:0 8px 25px rgba(22,39,70,.04);
    transition:.25s;
}

#oferta .program-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(22,39,70,.10);
}

#oferta .program-icon{
    display:grid;
    place-items:center;
    width:58px;
    height:58px;
    margin-bottom:28px;
    border-radius:16px;
    background:#eaf6df;
    font-size:28px;
}

#oferta .program-card h3{
    margin-bottom:14px;
    font-size:22px;
    line-height:1.25;
    color:var(--navy);
}

#oferta .program-card p{
    margin-bottom:28px;
    font-size:15px;
    line-height:1.7;
    color:var(--muted);
}

#oferta .program-card a{
    font-size:13px;
    font-weight:800;
    color:var(--green2);
}


/* =========================================================
   MODELO EDUCATIVO
   ========================================================= */

.model-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: center;
}

.model-image {
    position: relative;
    min-height: 500px;
    overflow: hidden;

    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Fondo azul degradado moderno */
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(66, 126, 200, 0.55),
            transparent 38%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(201, 162, 39, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #071b3d 0%,
            #0b2f68 45%,
            #123f7d 75%,
            #06245c 100%
        );

    box-shadow:
        0 20px 45px rgba(3, 26, 67, 0.18);
}


/* Efecto de iluminación */

.model-image::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 100%,
            rgba(72, 142, 220, 0.25),
            transparent 45%
        );

    pointer-events: none;
    z-index: 0;
}

.model-image-logo {
    position: relative;
    z-index: 2;
    display: block;
    width: 78%;
    max-width: 430px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 90px;
    /* Pequeña sombra para separar la imagen del fondo */
    filter:
        drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
}

.image-caption {
    position: absolute;

    right: 30px;
    bottom: 30px;
    left: 30px;
    z-index: 5;
    padding: 22px 26px;
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            rgba(3, 26, 67, 0.96),
            rgba(7, 37, 82, 0.94)
        );
    color: #fff;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
}


.image-caption span {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #82d83f;
}

.image-caption strong {
    display: block;
    font-size: 25px;
    line-height: 1.2;
    color: #fff;
}

.model-list {
    margin-top: 30px;
}

.model-list > div {
    display: flex;
    gap: 20px;
    padding: 19px 0;
    border-bottom: 1px solid var(--border);
}

.model-list b {
    font-size: 14px;
    color: var(--green2);
}

.model-list span {
    font-size: 14px;
    color: var(--muted);
}

.model-list strong {
    display: block;
    margin-bottom: 3px;
    font-size: 16px;
    color: var(--navy);
}


/* =========================================================
   ESTADÍSTICAS
   ========================================================= */

.stats {
    padding: 52px 0;
    background: var(--navy);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stats-grid div {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.stats-grid div:last-child {
    border: 0;
}

.stats strong {
    display: block;
    font-size: 43px;
    line-height: 1;
    color: var(--lime);
}

.stats span {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    color: #d2daea;
}


/* =========================================================
   COMUNIDAD
   ========================================================= */

.community {
    padding: 90px 0;
    background:
        linear-gradient(
            115deg,
            #061f50,
            #0a326d
        );

    color: #fff;
}

.community h2 {
    margin-bottom: 35px;
    font-size: 42px;
}

.section-label.light {
    color: var(--lime);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.community article {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.community article > span {
    font-size: 35px;
}

.community h3 {
    margin: 12px 0 5px;
    font-size: 21px;
}

.community p {
    margin-bottom: 17px;
    font-size: 14px;
    color: #ccd6e8;
}

.community a {
    font-size: 13px;
    font-weight: 800;
    color: var(--lime);
}


/* =========================================================
   NOTICIAS
   ========================================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.news-date {
    display: inline-block;
    margin-bottom: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    background: #eaf6df;
    font-size: 10px;
    font-weight: 900;
    color: var(--green2);
}

.news-card h3 {
    font-size: 21px;
    line-height: 1.25;
    color: var(--navy);
}

.news-card p {
    margin: 10px 0 20px;
    font-size: 14px;
    color: var(--muted);
}

.news-card a {
    font-size: 13px;
    font-weight: 800;
    color: var(--green2);
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact {
    padding: 85px 0;
    background: var(--navy2);
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 75px;
    align-items: center;
}

.contact h2 {
    margin-bottom: 20px;
    font-size: 43px;
    line-height: 1.12;
}

.contact p {
    color: #cbd6e8;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    padding: 28px;
    border-radius: 20px;
    background: #fff;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    font: inherit;
    color: var(--text);
}

.contact-form textarea,
.contact-form button {
    grid-column: 1 / -1;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--green);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding: 55px 0 20px;
    background: #021536;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
}

.footer-brand {
    font-size: 30px;
    font-weight: 900;
}

.footer-brand span {
    margin-left: 5px;
    font-size: 12px;
    letter-spacing: 3px;
}

.footer p,
.footer a {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #b8c4d8;
}

.footer h4 {
    margin-bottom: 10px;
    color: #fff;
}

.footer .whatsapp-phone {
    display: inline-block;
    margin-top: 0;
    text-decoration: none;
}

.footer .whatsapp-phone:hover,
.footer .whatsapp-phone:focus {
    text-decoration: underline;
}

.copyright {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    color: #8492aa;
}


/* =========================================================
   RESPONSIVE 1050px
   ========================================================= */

@media (max-width: 1050px) {
    #oferta .program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    nav {
        gap: 14px;
    }

    .nav-cta {
        display: none;
    }

    .brand {
        min-width: 220px;
    }

    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .pillar:nth-child(3) {
        border-right: 0;
    }

    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-copy {
        width: 50%;
    }

    .hero-image {
        width: 50%;

        margin-right: -25px;
    }
}


/* =========================================================
   RESPONSIVE 900px
   ========================================================= */

@media (max-width: 900px) {

    .hero-image::after {
        background: linear-gradient(
            180deg,
            rgba(3, 26, 67, 0.05) 0%,
            rgba(3, 26, 67, 0.10) 55%,
            rgba(3, 26, 67, 0.45) 100%
        );
    }


    .hero {
        min-height: auto;
    }

    .hero-content {
        position: relative;
        z-index: 10;
        width: 100%;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 40px 5% 0;
        text-align: center;
    }

    .hero-copy {
        width: 100%;
        max-width: 700px;
        padding: 40px 0 15px;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 85%;
        height: 380px;
        margin: 0 auto;
        order: 2;
    }

    .about-grid,
    .model-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .section {
        padding: 70px 0;
    }

    .community-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   RESPONSIVE 800px
   ========================================================= */

@media (max-width: 800px) {

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 12px;
    }

    .nav-wrap {
        min-height: 70px;
    }

    .menu-toggle {
        display: block;

        margin-left: auto;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 5%;
        background: #fff;
        box-shadow:
            0 15px 30px rgba(0, 0, 0, 0.08);
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 12px 0;
    }

    nav a::after {
        bottom: 5px;
    }

    .brand-logo {
        width: 185px;
        max-height: 60px;
    }

    .hero {
        min-height: 620px;
    }

    .pillars {
        margin-top: 0;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar {
        padding: 15px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stats-grid div:nth-child(2) {
        border-right: 0;
    }
}


/* =========================================================
   RESPONSIVE 600px
   ========================================================= */

@media (max-width: 700px) {
    #oferta .program-grid {
        grid-template-columns: minmax(0, 340px);
        width: 100%;
        gap: 20px;
    }

    #oferta .program-card {
        width: 100%;
        min-height: auto;
        padding: 28px;
    }
}

@media (max-width: 600px) {

    .hero {
        min-height: 720px;
        padding-bottom: 35px;
    }

    .hero-content {
        min-height: 720px;
        padding-top: 25px;
    }

    .hero-copy {
        padding: 25px 0 10px;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 1.05;
        letter-spacing: -1px;
    }

    .hero-text {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 300px;
        margin: 0 auto;
        order: 2;
    }

    .hero-image img {
        object-position: center center;
        transform: none;
        filter: none;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form textarea,
    .contact-form button {
        grid-column: auto;
    }
}


/* =========================================================
   RESPONSIVE 520px
   ========================================================= */

@media (max-width: 520px) {

    .container {
        width: 90%;
    }

    .brand-logo {
        width: 165px;

        max-height: 55px;
    }

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

    .hero-text {
        font-size: 15px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 12px;
    }

    .model-image {
        min-height: 360px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   FORMULARIO DE CONTACTO - EMAILJS
   ========================================================= */
.contact-form-status {
    grid-column: 1 / -1;
    margin: 0;
    min-height: 20px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.contact-form-status.success { color: #168a4a; }
.contact-form-status.error { color: #c0392b; }
.contact-form-status.warning { color: #a66b00; }
.contact-form-status.loading { color: #35506f; }

.contact-form button:disabled {
    opacity: .65;
    cursor: wait;
}
