﻿/* =========================================================
   1. RESET Y ESTILOS BASE
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    gap: 40px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

main { flex: 1 0 auto; }
ul { list-style: none; padding-left: 0; margin-left: 0; }

/* =========================================================
   2. COMPONENTES COMUNES
   ========================================================= */

/* ---- Logo ---- */
.logo-img {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .logo-img { max-width: 250px; }
}
.social-icon { width: 32px; }

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #002B5B;
    padding: 10px 20px;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}
.logo {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.logo-text-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.logo-img-nav { height: 50px; }
.logo h2, .logo h3, .logo h4 { margin: 0; line-height: 1; }
@media (max-width: 768px) {
    .logo h3 { font-size: 1rem; }
    .logo h4 { font-size: 0.7rem; }
    .logo-img-nav { height: 35px; }
}
.nav-links {
    display: flex;
    flex-direction: row;
}
.nav-links li {
    margin-left: 20px;
    position: relative;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}
.nav-links a:hover { color: #980f10; }

/* ---- Dropdown ---- */
.nav-links li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    min-width: 220px;
    background: #013A73;
    border-radius: 6px;
    padding: 6px 0;
    z-index: 2000;
    white-space: normal;
    word-wrap: break-word;
    box-shadow: 0 14px 34px rgba(0,20,48,0.22);
    overflow: hidden;
}
.nav-links li:hover > ul.dropdown { display: block; }
.nav-links li ul.dropdown li { margin: 0; }
.nav-links li ul.dropdown a {
    display: block;
    padding: 7px 16px;
    color: #fff;
    font-size: 0.86rem;
    line-height: 1.25;
    transition: background .2s, color .2s, padding-left .2s;
}
.nav-links li ul.dropdown a:hover,
.nav-links li ul.dropdown a:focus {
    background: #980f10;
    color: #fff;
    padding-left: 20px;
    outline: none;
}
@media (min-width: 1101px) {
    .nav-links li ul.dropdown {
        width: min(700px, calc(100vw - 40px));
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px;
        padding: 10px;
    }
    .nav-links li:hover > ul.dropdown,
    .nav-links li:focus-within > ul.dropdown {
        display: grid;
    }
    .nav-links li ul.dropdown a {
        height: 100%;
        padding: 9px 12px;
        border-radius: 6px;
    }
    .nav-links li ul.dropdown a:hover,
    .nav-links li ul.dropdown a:focus {
        padding-left: 12px;
    }
}

/* ---- Botones y enlaces comunes ---- */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.btn-primary { background: #980f10; color: #fff; }
.btn-secondary {
    background: #fff;
    color: #002B5B;
    margin: 5px;
    border-radius: 6px;
    padding: 10px 20px;
}
.btn-link {
    display: inline-block;
    margin-top: 10px;
    color: #002B5B;
    font-weight: 600;
    text-decoration: none;
}
.btn-link:hover { color: #980f10; }

/* ---- Social ---- */
.social a {
    margin: 0 10px;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}
.social a:hover,
.footer-links a:hover {
    color: #4da6ff;
    text-decoration: underline;
}

/* ---- Uniformes ---- */
.uniform-img {
    width: 100%;
    height: auto;
}
@media (min-width: 768px) {
    .uniform-img {
        width: 250px;
        height: 290px;
    }
}

/* ---- Formulario de contacto ---- */
#contacto {
    background: #980f10;
    scroll-margin-top: 74px;
    padding-top: 58px;
}
.contact-form-panel {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 38px);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}
.contact-form-heading {
    text-align: center;
    margin-bottom: 26px;
}
.contact-form-heading h3 {
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.2;
}
.contact-form-heading p {
    margin-top: 8px;
    color: rgba(255,255,255,0.82);
}
.contact-form-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 24px;
}
.contact-form-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-form label {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    padding: 13px 14px;
    color: #243042;
    font: inherit;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea {
    min-height: 214px;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #980f10;
    box-shadow: 0 0 0 4px #980f10;
    outline: none;
}
.contact-submit {
    display: block;
    margin: 26px 0 0 auto;
    padding: 13px 24px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #980f10;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 5px 0 #980f10;
    transition: transform .2s, background .2s, box-shadow .2s;
}
.contact-submit:hover,
.contact-submit:focus {
    background: #f7f7f7;
    color: #980f10;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #980f10;
    outline: none;
}
.contact-submit:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #980f10;
}
.contact-submit:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}
.contact-form-status {
    min-height: 24px;
    margin-top: 18px;
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
}
.contact-form-status.is-success { color: #9be7a1; }
.contact-form-status.is-error { color: #980f10; }
.contact-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ---- Footer simple (para otras páginas) ---- */
footer {
    background: #980f10;
    color: #fff;
    padding: 20px;
    text-align: center;
}
.footer-links { margin-top: 10px; }
.footer-links li { display: inline-block; margin: 0 10px; }
.footer-links a { color: #fff; text-decoration: none; }

/* ---- Utilidades ---- */
.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #980f10;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   3. PÁGINA DE INICIO (INDEX)
   ========================================================= */

/* ---- Hero principal ---- */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('../imagenes/hero.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

/* Imagen de fondo responsiva para el hero */
@media (max-width: 600px) {
    .hero {
        background-image: url('../imagenes/hero-800.webp');
    }
}
@media (min-width: 601px) and (max-width: 1199px) {
 /* Escudo */
    .hero-content > .logo-img {
        position: relative;
        top: -50px;
    }

    /* Bloque textual */
    .hero-content > h2,
    .hero-content > h1,
    .hero-content > p,
    .hero-content > .btn-primary {
        position: relative;
        top: 15px;
    }
}
@media (min-width: 1200px) and (max-width: 1919px) {
    .hero {
        background-image: url('../imagenes/hero-1200.webp');
    }
  /* Escudo */
    .hero-content > .logo-img {
        position: relative;
        top: -50px;
    }

    /* Bloque textual */
    .hero-content > h2,
    .hero-content > h1,
    .hero-content > p,
    .hero-content > .btn-primary {
        position: relative;
        top: 20px;
    }
}
@media (min-width: 1920px) {
    .hero {
        background-image: url('../imagenes/hero-1600.webp');
    }

    /* Escudo */
    .hero-content > .logo-img {
        /*max-width: 420px;*/
        position: relative;
        top: -200px;
    }

    /* Bloque textual */
    .hero-content > h2,
    .hero-content > h1,
    .hero-content > p,
    .hero-content > .btn-primary {
        position: relative;
        top: 130px;
    }

}

.hero .overlay {
    position: absolute; inset: 0;
    background: rgba(0,43,91,0.7);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}
.hero h1 { font-size: 2.8rem; line-height: 1.25; }
.hero h2 { font-size: 1.8rem; line-height: 1.25; }
.hero p { font-size: 1.2rem; margin: 10px 0 20px; }

/* ---- Secciones generales ---- */
.section {
    padding: 80px 20px 10px;
    text-align: center;
    margin-top: 20px;
}
.section h2 {
    font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    line-height: 1.3;
}
#quienes { scroll-margin-top: 40px; }
.bg-light { background: #fff; }
.bg-accent { background: #002B5B; color: #fff; }
#admisiones {
    scroll-margin-top: 74px;
    padding-top: 46px;
    padding-bottom: 34px;
}

/* ---- Cards ---- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform .3s, box-shadow .3s;
}
.card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
    object-fit: contain;
}
.card.fade-in-element:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
#modelo .card img, #vida .card img {
    height: 220px;
    object-fit: cover;
    object-position: center 20%;
}
#documentos .card img {
    height: 220px;
    object-fit: cover;
    object-position: center;
}
.card .btn-link {
    margin-top: auto;
    padding-top: 6px;
}

/* ---- Galería (index) ---- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 8px;
}
@media (min-width: 1600px) {
    .gallery img { object-position: center 15%; }
}
@media (max-width: 768px) {
    .gallery img {
        aspect-ratio: 16 / 9;
        object-position: center 25%;
    }
}
.gallery-access-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0,43,91,0.16);
    text-decoration: none;
}
.gallery-access-card img {
    display: block;
    transition: transform .35s ease;
}
.gallery-access-card span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(0,43,91,0.88);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}
.gallery-access-card:hover img,
.gallery-access-card:focus-visible img {
    transform: scale(1.04);
}
.gallery-access-card:focus-visible {
    outline: 3px solid #980f10;
    outline-offset: 3px;
}

/* ---- Bienestar (cards 3x2) ---- */
.cards-3x2 {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
@media (min-width: 992px) {
    .cards-3x2 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Orientación militar ---- */
#ormilitar .card-horizontal { margin-top: 40px; }
@media (max-width: 768px) {
    .card-horizontal {
        flex-direction: column;
        padding: 20px;
    }
    .card-horizontal h3 { font-size: 1.2rem; }
    .card-horizontal p { font-size: 0.95rem; }
    #ormilitar .card-horizontal { margin-top: 20px; }
}

/* ---- Requisitos matrícula ---- */
#requisitos, #sectproyeccion, #sectinter .card {
    max-width: 40%;
    margin: 0 auto;
    text-align: center;
}
#sectresenia .card { max-width: 70%; margin: 0 auto; text-align: center; }
@media (max-width: 992px) {
    #requisitos, #sectproyeccion, #sectinter .card { max-width: 70%; }
}
@media (max-width: 768px) {
    #sectresenia .card, #requisitos, #sectproyeccion, #sectinter .card { max-width: 99%; }
}
#matriculas { padding-top: 5px; }

/* =========================================================
   4. PÁGINAS INTERIORES (HEROES Y SECCIONES)
   ========================================================= */

/* ---- Héroes interiores (base y estilos compartidos) ---- */
.interior-hero {
    position: relative;
    padding: 135px 20px 74px;
    overflow: hidden;
    background-color: #002B5B; /* fallback */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    text-align: left;
}
.interior-hero::after {
    content: "";
    position: absolute;
    right: clamp(18px, 9vw, 125px);
    bottom: -78px;
    width: 230px;
    height: 230px;
    border: 30px solid #980f10;
    border-radius: 50%;
}
.interior-hero__content {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    margin: 0 auto;
}
.interior-hero .section-kicker {
    color: #fff;
    background: #980f10;
    padding: 7px 12px;
    border-radius: 999px;
}
.interior-hero h1 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.08;
}
.interior-hero p {
    max-width: 800px;
    color: rgba(255,255,255,0.92);
    font-size: clamp(1rem, 1.2vw, 1.22rem);
}

/* ---- Imágenes de fondo para cada página interior (con media queries) ---- */

/* Fallback base (imagen original) */
.galeria-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/galeria.webp');
}
.ormilitar-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/ormilitar.webp');
}
.modgestion-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/modgestion.webp');
        background-position: center 30%;
}
.fundamentos-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/fundamentos.webp');
}
.criterios-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/criterios.webp');
}
.bienestar-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/bienestar.webp');
}
.matriculas-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/matriculas.webp');
}
.uniformes-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/uniformes.webp');
}
.manual-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/manual.webp');
}
.resoluciones-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/resoluciones.webp');
}
.esal-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/esal.webp');
}
.resenia-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/resenia.webp');
}
.mision-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/mision.webp');
}
.simbolos-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/simbolos.webp');
         background-position: center 20%;
}
.modpedag-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/modpedag.webp');
}
.polcalidad-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/polcalidad.webp');
         background-position: center 30%;
}
.mapa-page .interior-hero {
    background-image:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/mapa.webp');
}

/* Media queries para versiones responsivas de las imágenes de fondo */
@media (max-width: 600px) {
    .galeria-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/galeria-400.webp'); }
    .ormilitar-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/ormilitar-400.webp'); }
    .modgestion-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/modgestion-400.webp'); }
    .fundamentos-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/fundamentos-400.webp'); }
    .criterios-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/criterios-400.webp'); }
    .bienestar-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/bienestar-400.webp'); }
    .matriculas-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/matriculas-400.webp'); }
    .uniformes-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/uniformes-400.webp'); }
    .manual-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/manual-400.webp'); }
    .resoluciones-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/resoluciones-400.webp'); }
    .esal-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/esal-400.webp'); }
    .resenia-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/resenia-400.webp'); }
    .mision-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/mision-400.webp'); }
    .simbolos-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/simbolos-400.webp'); }
    .modpedag-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/modpedag-400.webp'); }
    .polcalidad-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/polcalidad-400.webp'); }
    .mapa-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/mapa-400.webp'); }
}

@media (min-width: 601px) and (max-width: 1199px) {
    .galeria-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/galeria-800.webp'); }
    .ormilitar-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/ormilitar-800.webp'); }
    .modgestion-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/modgestion-800.webp'); }
    .fundamentos-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/fundamentos-800.webp'); }
    .criterios-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/criterios-800.webp'); }
    .bienestar-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/bienestar-800.webp'); }
    .matriculas-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/matriculas-800.webp'); }
    .uniformes-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/uniformes-800.webp'); background-position: center 15% !important;}
    .manual-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/manual-800.webp'); }
    .resoluciones-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/resoluciones-800.webp'); }
    .esal-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/esal-800.webp'); }
    .resenia-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/resenia-800.webp'); }
    .mision-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/mision-800.webp'); background-position: center 10% !important;}
    .simbolos-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/simbolos-800.webp'); }
    .modpedag-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/modpedag-800.webp'); }
    .polcalidad-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/polcalidad-800.webp'); }
    .mapa-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/mapa-800.webp'); }
}

@media (min-width: 1200px) and (max-width: 1919px) {
    .galeria-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/galeria-1200.webp'); }
    .ormilitar-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/ormilitar-1200.webp'); }
    .modgestion-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/modgestion-1200.webp'); }
    .fundamentos-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/fundamentos-1200.webp'); }
    .criterios-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/criterios-1200.webp'); }
    .bienestar-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/bienestar-1200.webp'); }
    .matriculas-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/matriculas-1200.webp');  background-position: center 20% !important;}
    .uniformes-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/uniformes-1200.webp'); background-position: center 10% !important;}
    .manual-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/manual-1200.webp'); }
    .resoluciones-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/resoluciones-1200.webp'); }
    .esal-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/esal-1200.webp'); }
    .resenia-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/resenia-1200.webp'); }
    .mision-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/mision-1200.webp'); background-position: center 35% !important;}
    .simbolos-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/simbolos-1200.webp');  background-position: center 20% !important;}
    .modpedag-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/modpedag-1200.webp'); }
    .polcalidad-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/polcalidad-1200.webp'); }
    .mapa-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/mapa-1200.webp'); }
}

@media (min-width: 1920px) {
    .galeria-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/galeria-1600.webp'); }
    .ormilitar-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/ormilitar-1600.webp'); }
    .modgestion-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/modgestion-1600.webp'); background-position: center 30%; }
    .fundamentos-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/fundamentos-1600.webp'); }
    .criterios-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/criterios-1600.webp'); }
    .bienestar-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/bienestar-1600.webp'); }
    .matriculas-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/matriculas-1600.webp');  background-position: center 30% !important;}
    .uniformes-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/uniformes-1600.webp');  background-position: center 15% !important;}
    .manual-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/manual-1600.webp'); }
    .resoluciones-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/resoluciones-1600.webp'); }
    .esal-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/esal-1600.webp'); }
    .resenia-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/resenia-1600.webp'); }
    .mision-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/mision-1600.webp'); background-position: center 30% !important;}
    .simbolos-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/simbolos-1600.webp'); background-position: center 20% !important;}
    .modpedag-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/modpedag-1600.webp'); }
    .polcalidad-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/polcalidad-1600.webp'); background-position: center 30%; }
    .mapa-page .interior-hero { background-image: linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)), url('../imagenes/mapa-1600.webp'); }
}

/* ---- Ajustes de enfoque (background-position) para héroes interiores ---- */
@media (min-width: 1400px) {
    .interior-hero {
        background-position: center 40% !important;
    }
    .polcalidad-page .interior-hero {
        background-position: center 30% !important;
    }
    .modgestion-page .interior-hero {
        background-position: center 30% !important;
    }
}
@media (min-width: 1920px) {
    .interior-hero {
        background-position: center 40% !important;
    }
    .polcalidad-page .interior-hero {
        background-position: center 30% !important;
    }
     .modgestion-page .interior-hero {
        background-position: center 30% !important;
    }
}
@media (min-width: 2560px) {
    .interior-hero {
        background-position: center 40% !important;
    }
    .polcalidad-page .interior-hero {
        background-position: center 30% !important;
    }
    .modgestion-page .interior-hero {
        background-position: center 20% !important;
    }
}
@media (max-width: 768px) {
    .interior-hero {
        background-position: center 30% !important;
    }
}

/* ---- Secciones específicas de páginas interiores ---- */
.interior-section,
.interior-grid-section,
.interior-reference {
    width: min(1120px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}
.interior-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: stretch;
    margin-top: -38px;
    position: relative;
    z-index: 2;
}
.interior-panel,
.interior-highlight,
.interior-card,
.document-card,
.symbol-card,
.uniform-card {
    background: #fff;
    border: 1px solid rgba(0,43,91,0.08);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(12,35,64,0.08);
}
.interior-panel {
    padding: clamp(24px, 4vw, 42px);
}
.interior-panel h2,
.interior-grid-heading h2,
.interior-card h3,
.document-card h3,
.symbol-card h3,
.uniform-card h3 {
    color: #002b5b;
    line-height: 1.2;
}
.interior-panel h2,
.interior-grid-heading h2 {
    max-width: 820px;
    font-size: clamp(1.45rem, 2vw, 2.25rem);
}
.interior-panel p,
.interior-card p,
.document-card p,
.symbol-card p,
.uniform-card p {
    margin-top: 14px;
    color: #4d5b6b;
    text-align: left;
}
.interior-highlight {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    background: #002b5b;
    color: #fff;
}
.interior-highlight span {
    color: #980f10;
    font-size: clamp(4rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 0.9;
}
.interior-highlight p {
    margin-top: 16px;
    color: rgba(255,255,255,0.86);
    font-size: 1.05rem;
    font-weight: 600;
}
.interior-grid-section {
    padding: 54px 0 86px;
}
.interior-grid-heading {
    max-width: 780px;
    margin-bottom: 22px;
}
.interior-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.interior-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.interior-card,
.document-card,
.symbol-card,
.uniform-card {
    position: relative;
    min-height: 230px;
    padding: 26px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.interior-card::before,
.document-card::before,
.symbol-card::before,
.uniform-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: var(--card-color, #980f10);
}
.interior-card:hover,
.document-card:hover,
.symbol-card:hover,
.uniform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(12,35,64,0.13);
}
.interior-card span,
.document-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card-color, #980f10) 12%, white);
    color: var(--card-color, #980f10);
    font-weight: 700;
}
.interior-card ul,
.document-list {
    margin-top: 14px;
}
.interior-card li,
.document-list li {
    margin-top: 10px;
    color: #576678;
    text-align: left;
}
.document-card a,
.btn-descarga,
.document-button {
    display: inline-block;
    margin-top: 18px;
    padding: 11px 16px;
    border-radius: 8px;
    background: #980f10;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.document-card a:hover,
.btn-descarga:hover,
.document-button:hover {
    background: #980f10;
}
.esal-docs-section {
    width: min(100% - 40px, 1120px);
    margin: 0 auto;
    padding: 18px 0 92px;
}
.esal-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 26px;
}
.esal-doc-card {
    position: relative;
    min-height: 220px;
    padding: 26px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    color: #243042;
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(12,35,64,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.esal-doc-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--card-color, #980f10);
}
.esal-doc-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card-color, #980f10) 12%, white);
    color: var(--card-color, #980f10);
    font-weight: 700;
}
.esal-doc-card h3 {
    color: #1f2b3a;
    font-size: 1.08rem;
    line-height: 1.25;
}
.esal-doc-card p {
    margin-top: 12px;
    color: #576678;
    font-size: 0.95rem;
}
.esal-doc-card:hover,
.esal-doc-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(12,35,64,0.13);
}
.esal-doc-card:focus-visible {
    outline: 3px solid #980f10;
    outline-offset: 3px;
}
.uniform-showcase-section {
    width: min(100% - 40px, 1120px);
    margin: 0 auto;
    padding: 18px 0 92px;
}
.uniform-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}
.uniform-thumb-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 235px;
    margin: 0;
    padding: 8px 0 14px;
    border-radius: 0;
    background: transparent;
}
.uniform-thumb-panel img {
    width: 100%;
    max-height: 235px;
    object-fit: contain;
}
.mission-statement-section,
.mission-values-section {
    width: min(100% - 40px, 1120px);
    margin: 0 auto;
}
.mission-statement-section {
    display: grid;
    gap: 18px;
    padding: 54px 0 26px;
}
.mission-statement-card,
.mission-value-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(12,35,64,0.08);
}
.mission-statement-card {
    padding: 30px;
}
.mission-statement-card::before,
.mission-value-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--card-color, #980f10);
}
.mission-statement-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card-color, #980f10) 12%, white);
    color: var(--card-color, #980f10);
    font-weight: 700;
}
.mission-statement-card h2,
.mission-value-card h3 {
    color: #1f2b3a;
    line-height: 1.25;
}
.mission-statement-card p,
.mission-value-card p {
    margin-top: 12px;
    color: #576678;
    line-height: 1.75;
}
.mission-values-section {
    padding: 18px 0 92px;
}
.mission-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-top: 26px;
}
.mission-value-card {
    padding: 26px;
}
.academic-level-section {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 18px 0 92px;
}
.academic-level-grid {
    display: block;
    margin-top: 26px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(12,35,64,0.08);
}
.academic-level-card {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 26px;
    min-height: auto;
    padding: 32px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.academic-level-card + .academic-level-card {
    border-top: 1px solid #dfe6ef;
}
.academic-level-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 32px;
    bottom: 32px;
    width: 5px;
    height: auto;
    border-radius: 0 8px 8px 0;
    background: var(--card-color, #980f10);
}
.academic-level-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card-color, #980f10) 12%, white);
    color: var(--card-color, #980f10);
    font-weight: 700;
}
.academic-level-card h3 {
    color: #1f2b3a;
    font-size: 1.24rem;
    line-height: 1.2;
}
.academic-level-card p {
    margin-top: 10px;
    color: #576678;
    font-size: 0.95rem;
}
.subject-text {
    align-self: center;
    margin-top: 0;
    padding-left: 24px;
    border-left: 1px solid #edf1f6;
    color: #445367;
    font-size: 1rem;
    line-height: 1.8;
}
.uniform-card img,
.symbol-card img,
.mission-image-card img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    margin-top: 16px;
}
.mission-image-card {
    min-height: auto;
}
.pdf-frame,
.map-iframe {
    width: 100%;
    min-height: 560px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(12,35,64,0.08);
}
.map-iframe {
    min-height: 480px;
}
.interior-reference {
    padding: 10px 0 84px;
    color: #6a7685;
    font-size: 0.9rem;
    text-align: left;
}
.photo-gallery-section {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 70px 0 92px;
}
.photo-gallery-heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}
.photo-gallery-heading h2 {
    margin-top: 8px;
    color: #1f2b3a;
    font-size: clamp(1.55rem, 2vw + 1rem, 2.35rem);
    line-height: 1.2;
}
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}
.photo-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #eef3f8;
    box-shadow: 0 10px 26px rgba(12,35,64,0.12);
    cursor: pointer;
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}
.photo-thumb::after {
    content: "Ver foto";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(0,43,91,0.84);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}
.photo-thumb:hover img,
.photo-thumb:focus-visible img {
    transform: scale(1.05);
    filter: saturate(1.05);
}
.photo-thumb:hover::after,
.photo-thumb:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}
.photo-thumb:focus-visible {
    outline: 3px solid #980f10;
    outline-offset: 3px;
}
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 34px 78px;
    background: rgba(5,14,28,0.92);
    opacity: 0;
    transition: opacity .24s ease;
}
.photo-lightbox.is-open {
    display: flex;
    opacity: 1;
}
.lightbox-open {
    overflow: hidden;
}
.lightbox-frame {
    margin: 0;
    max-width: min(100%, 1120px);
    text-align: center;
}
.lightbox-frame img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 18px 54px rgba(0,0,0,0.35);
}
.lightbox-frame img.is-hidden-for-zoom {
    opacity: 0;
}
.lightbox-frame figcaption {
    margin-top: 12px;
    color: #fff;
    font-weight: 700;
}
.lightbox-zoom-clone {
    position: fixed;
    z-index: 2100;
    object-fit: cover;
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0 18px 54px rgba(0,0,0,0.35);
    transition:
        left .42s cubic-bezier(.2,.8,.2,1),
        top .42s cubic-bezier(.2,.8,.2,1),
        width .42s cubic-bezier(.2,.8,.2,1),
        height .42s cubic-bezier(.2,.8,.2,1);
}
.lightbox-close,
.lightbox-arrow {
    border: 0;
    border-radius: 8px;
    background: #980f10;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    line-height: 1;
}
.lightbox-arrow {
    position: absolute;
    top: 50%;
    width: 54px;
    height: 72px;
    transform: translateY(-50%);
}
.lightbox-arrow--prev {
    left: 18px;
}
.lightbox-arrow--next {
    right: 18px;
}
.lightbox-arrow span {
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto;
}
.lightbox-arrow--prev span {
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 20px solid #fff;
}
.lightbox-arrow--next span {
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 20px solid #fff;
}
.lightbox-close:hover,
.lightbox-arrow:hover,
.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
    background: #980f10;
}
.card-blue { --card-color: #1565c0; }
.card-green { --card-color: #2e7d32; }
.card-red { --card-color: #980f10; }
.card-rose { --card-color: #980f10; }
.card-navy { --card-color: #002b5b; }
.card-amber { --card-color: #980f10; }

.symbol-colors {
    display: flex;
    gap: 14px;
    margin: 10px 0 16px;
}
.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18), inset 0 0 0 2px rgba(255,255,255,0.35);
    flex-shrink: 0;
}
@supports not (background: color-mix(in srgb, red 12%, white)) {
    .interior-card span,
    .document-card span {
        background: #eef3f8;
    }
}
@media (max-width: 980px) {
    .interior-section,
    .interior-grid,
    .interior-grid--two {
        grid-template-columns: 1fr;
    }
    .academic-level-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .subject-text {
        padding-left: 0;
        border-left: 0;
    }
    .interior-card,
    .document-card,
    .symbol-card,
    .uniform-card,
    .uniform-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .interior-hero {
        padding: 112px 20px 58px;
    }
    .interior-hero::after {
        width: 145px;
        height: 145px;
        border-width: 18px;
        right: -42px;
    }
    .interior-section,
    .interior-grid-section,
    .interior-reference {
        width: min(100% - 28px, 1120px);
    }
    .interior-panel,
    .interior-highlight,
    .interior-card,
    .document-card,
    .symbol-card,
    .uniform-card,
    .academic-level-card {
        padding: 22px;
    }
    .uniform-showcase-section {
        width: min(100% - 28px, 1120px);
    }
    .mission-statement-section,
    .mission-values-section {
        width: min(100% - 28px, 1120px);
    }
    .uniform-card-grid {
        grid-template-columns: 1fr;
    }
    .uniform-thumb-panel {
        min-height: 220px;
    }
    .pdf-frame,
    .map-iframe {
        min-height: 420px;
    }
    .photo-gallery-section {
        width: min(100% - 28px, 1180px);
        padding: 48px 0 70px;
    }
    .photo-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .photo-lightbox {
        padding: 72px 18px 62px;
    }
    .lightbox-frame img {
        max-height: 72vh;
    }
    .lightbox-arrow {
        top: auto;
        bottom: 14px;
        width: 48px;
        height: 48px;
        transform: none;
    }
    .lightbox-arrow--prev {
        left: calc(50% - 62px);
    }
    .lightbox-arrow--next {
        right: calc(50% - 62px);
    }
}

/* =========================================================
   5. PÁGINAS ESPECÍFICAS: PROYECTOS, EVALUACIÓN, PROYECCIÓN, PERFILES
   ========================================================= */

/* ---- Proyectos ---- */
.proyectos-page {
    background: #fff;
    color: #243042;
}
.proyectos-hero {
    position: relative;
    padding: 135px 20px 70px;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.72)),
        url('../imagenes/proyectos.webp') center 30%/cover no-repeat;
    color: #fff;
    text-align: left;
}
.proyectos-hero::after {
    content: "";
    position: absolute;
    right: clamp(20px, 8vw, 120px);
    bottom: -70px;
    width: 210px;
    height: 210px;
    border: 28px solid #980f10;
    border-radius: 50%;
}
.proyectos-hero__content {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    margin: 0 auto;
}
.proyectos-hero .section-kicker {
    color: #fff;
    background: #980f10;
    padding: 7px 12px;
    border-radius: 999px;
}
.proyectos-hero h1 {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 18px;
}
.proyectos-hero p {
    max-width: 760px;
    font-size: clamp(1rem, 1.2vw, 1.22rem);
    color: rgba(255,255,255,0.92);
}
.proyectos-overview,
.project-grid-section {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}
.proyectos-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: stretch;
    margin-top: -36px;
    position: relative;
    z-index: 2;
}
.overview-card,
.highlight-panel,
.project-card {
    background: #fff;
    border: 1px solid rgba(0,43,91,0.08);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(12,35,64,0.08);
}
.overview-card {
    padding: clamp(24px, 4vw, 42px);
}
.overview-card h2,
.project-section-heading h2,
.highlight-panel h2 {
    color: #002b5b;
    line-height: 1.18;
}
.overview-card h2 {
    max-width: 780px;
    margin-bottom: 18px;
    font-size: clamp(1.45rem, 2vw, 2.25rem);
}
.overview-card p {
    max-width: 880px;
    margin-top: 14px;
    color: #4d5b6b;
    font-size: 1rem;
    text-align: left;
}
.highlight-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    background: #002b5b;
    color: #fff;
}
.highlight-number {
    display: block;
    color: #980f10;
    font-size: clamp(4rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 0.9;
}
.highlight-panel h2 {
    margin: 14px 0 12px;
    color: #fff;
    font-size: 1.5rem;
}
.highlight-panel p {
    color: rgba(255,255,255,0.84);
}
.project-grid-section {
    padding: 54px 0 86px;
}
.project-section-heading {
    max-width: 720px;
    margin-bottom: 24px;
}
.project-section-heading h2 {
    font-size: clamp(1.5rem, 2.2vw, 2.35rem);
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.project-card {
    min-height: 220px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.project-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--project-color);
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(12,35,64,0.13);
}
.project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--project-color) 12%, white);
    color: var(--project-color);
    font-weight: 700;
    font-size: 0.9rem;
}
.project-card h3 {
    margin-bottom: 10px;
    color: #002b5b;
    font-size: 1.08rem;
    line-height: 1.25;
}
.project-card p {
    color: #576678;
    font-size: 0.94rem;
}
.project-card--green { --project-color: #2e7d32; }
.project-card--blue { --project-color: #1565c0; }
.project-card--red { --project-color: #980f10; }
.project-card--rose { --project-color: #980f10; }
.project-card--navy { --project-color: #002b5b; }
.project-card--amber { --project-color: #980f10; }
@supports not (background: color-mix(in srgb, red 12%, white)) {
    .project-icon { background: #eef3f8; }
}
@media (max-width: 900px) {
    .proyectos-overview { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .proyectos-hero { padding: 112px 20px 58px; }
    .proyectos-hero::after {
        width: 140px;
        height: 140px;
        border-width: 18px;
        right: -42px;
    }
    .proyectos-overview,
    .project-grid-section {
        width: min(100% - 28px, 1120px);
    }
    .overview-card,
    .highlight-panel,
    .project-card { padding: 22px; }
    .project-grid { grid-template-columns: 1fr; }
}

/* ---- Evaluación ---- */
.evaluacion-page {
    background: #fff;
    color: #243042;
}
.evaluacion-hero {
    position: relative;
    padding: 135px 20px 74px;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/evaluacion.webp') center/cover no-repeat;
    color: #fff;
    text-align: left;
}
.evaluacion-hero::after {
    content: "";
    position: absolute;
    right: clamp(18px, 9vw, 125px);
    bottom: -78px;
    width: 230px;
    height: 230px;
    border: 30px solid #980f10;
    border-radius: 50%;
}
.evaluacion-hero__content {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    margin: 0 auto;
}
.evaluacion-hero .section-kicker {
    color: #fff;
    background: #980f10;
    padding: 7px 12px;
    border-radius: 999px;
}
.evaluacion-hero h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.08;
}
.evaluacion-hero p {
    max-width: 760px;
    color: rgba(255,255,255,0.92);
    font-size: clamp(1rem, 1.2vw, 1.22rem);
}
.evaluacion-summary,
.evaluation-dimensions,
.evaluation-moments,
.evaluation-reference {
    width: min(1120px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}
.evaluacion-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: stretch;
    margin-top: -38px;
    position: relative;
    z-index: 2;
}
.evaluation-intro,
.evaluation-note,
.dimension-card,
.moment-card {
    background: #fff;
    border: 1px solid rgba(0,43,91,0.08);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(12,35,64,0.08);
}
.evaluation-intro {
    padding: clamp(24px, 4vw, 42px);
}
.evaluation-intro h2,
.evaluation-moments__heading h2 {
    max-width: 800px;
    color: #002b5b;
    font-size: clamp(1.45rem, 2vw, 2.25rem);
    line-height: 1.18;
}
.evaluation-intro p {
    max-width: 880px;
    margin-top: 16px;
    color: #4d5b6b;
    text-align: left;
}
.evaluation-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    background: #002b5b;
    color: #fff;
}
.evaluation-note h2 {
    color: #980f10;
    font-size: clamp(4rem, 7vw, 6.5rem);
    line-height: 0.9;
}
.evaluation-note p {
    margin-top: 16px;
    color: rgba(255,255,255,0.86);
    font-size: 1.05rem;
    font-weight: 600;
}
.evaluation-dimensions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 54px 0 28px;
}
.dimension-card {
    position: relative;
    min-height: 330px;
    padding: 26px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.dimension-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: var(--dimension-color);
}
.dimension-card:hover,
.moment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(12,35,64,0.13);
}
.dimension-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--dimension-color) 12%, white);
    color: var(--dimension-color);
    font-weight: 700;
}
.dimension-card h3,
.moment-card h3 {
    color: #002b5b;
    font-size: 1.18rem;
    line-height: 1.25;
}
.dimension-card p,
.moment-card p {
    margin-top: 12px;
    color: #576678;
    font-size: 0.95rem;
}
.dimension-card strong {
    display: block;
    margin-top: 18px;
    color: #243042;
    font-size: 0.88rem;
    line-height: 1.5;
}
.dimension-card--cognitive { --dimension-color: #1565c0; }
.dimension-card--procedural { --dimension-color: #2e7d32; }
.dimension-card--attitudinal { --dimension-color: #980f10; }
.evaluation-moments {
    padding: 30px 0 20px;
}
.evaluation-moments__heading {
    max-width: 760px;
    margin-bottom: 22px;
}
.moments-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.moment-card {
    padding: 28px;
    transition: transform .3s, box-shadow .3s;
}
.moment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #980f10;
    color: #fff;
    font-weight: 700;
}
.evaluation-reference {
    padding: 10px 0 84px;
    color: #6a7685;
    font-size: 0.9rem;
    text-align: left;
}
@supports not (background: color-mix(in srgb, red 12%, white)) {
    .dimension-card span { background: #eef3f8; }
}
@media (max-width: 900px) {
    .evaluacion-summary,
    .evaluation-dimensions { grid-template-columns: 1fr; }
    .dimension-card { min-height: auto; }
}
@media (max-width: 620px) {
    .evaluacion-hero { padding: 112px 20px 58px; }
    .evaluacion-hero::after {
        width: 145px;
        height: 145px;
        border-width: 18px;
        right: -42px;
    }
    .evaluacion-summary,
    .evaluation-dimensions,
    .evaluation-moments,
    .evaluation-reference {
        width: min(100% - 28px, 1120px);
    }
    .evaluation-intro,
    .evaluation-note,
    .dimension-card,
    .moment-card { padding: 22px; }
    .moments-grid { grid-template-columns: 1fr; }
}

/* ---- Proyección comunitaria ---- */
.proyeccion-page {
    background: #fff;
    color: #243042;
}
.proyeccion-hero {
    position: relative;
    padding: 135px 20px 74px;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/proyeccion.webp') center/cover no-repeat;
    color: #fff;
    text-align: left;
}
.proyeccion-hero::after {
    content: "";
    position: absolute;
    right: clamp(18px, 9vw, 125px);
    bottom: -78px;
    width: 230px;
    height: 230px;
    border: 30px solid #980f10;
    border-radius: 50%;
}
.proyeccion-hero__content {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    margin: 0 auto;
}
.proyeccion-hero .section-kicker {
    color: #fff;
    background: #980f10;
    padding: 7px 12px;
    border-radius: 999px;
}
.proyeccion-hero h1 {
    max-width: 780px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.08;
}
.proyeccion-hero p {
    max-width: 780px;
    color: rgba(255,255,255,0.92);
    font-size: clamp(1rem, 1.2vw, 1.22rem);
}
.proyeccion-overview,
.community-actions,
.institutional-relations {
    width: min(1120px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}
.proyeccion-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: stretch;
    margin-top: -38px;
    position: relative;
    z-index: 2;
}
.community-purpose,
.community-motto,
.community-card,
.institutional-relations {
    background: #fff;
    border: 1px solid rgba(0,43,91,0.08);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(12,35,64,0.08);
}
.community-purpose {
    padding: clamp(24px, 4vw, 42px);
}
.community-purpose h2,
.community-actions__heading h2,
.relations-content h2 {
    max-width: 820px;
    color: #002b5b;
    font-size: clamp(1.45rem, 2vw, 2.25rem);
    line-height: 1.18;
}
.community-purpose p,
.relations-content p {
    max-width: 900px;
    margin-top: 16px;
    color: #4d5b6b;
    text-align: left;
}
.community-motto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    background: #002b5b;
    color: #fff;
}
.community-motto span {
    height: 54px;
    color: #980f10;
    font-size: 6rem;
    font-weight: 700;
    line-height: 0.8;
}
.community-motto p {
    margin-top: 12px;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.22;
}
.community-actions {
    padding: 54px 0 30px;
}
.community-actions__heading {
    max-width: 760px;
    margin-bottom: 22px;
}
.community-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.community-card {
    position: relative;
    min-height: 250px;
    padding: 24px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.community-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: var(--community-color);
}
.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(12,35,64,0.13);
}
.community-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--community-color) 12%, white);
    color: var(--community-color);
    font-weight: 700;
}
.community-card h3 {
    color: #002b5b;
    font-size: 1.05rem;
    line-height: 1.25;
}
.community-card p {
    margin-top: 12px;
    color: #576678;
    font-size: 0.92rem;
}
.community-card--red { --community-color: #980f10; }
.community-card--blue { --community-color: #1565c0; }
.community-card--green { --community-color: #2e7d32; }
.community-card--amber { --community-color: #980f10; }
.community-card--navy { --community-color: #002b5b; }
.institutional-relations {
    margin-bottom: 86px;
    padding: clamp(24px, 4vw, 42px);
}
@supports not (background: color-mix(in srgb, red 12%, white)) {
    .community-card span { background: #eef3f8; }
}
@media (max-width: 1050px) {
    .community-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .proyeccion-overview { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .proyeccion-hero { padding: 112px 20px 58px; }
    .proyeccion-hero::after {
        width: 145px;
        height: 145px;
        border-width: 18px;
        right: -42px;
    }
    .proyeccion-overview,
    .community-actions,
    .institutional-relations {
        width: min(100% - 28px, 1120px);
    }
    .community-purpose,
    .community-motto,
    .community-card,
    .institutional-relations { padding: 22px; }
    .community-grid { grid-template-columns: 1fr; }
    .community-card { min-height: auto; }
}

/* ---- Perfiles ---- */
.perfiles-page {
    background: #fff;
    color: #243042;
}
.perfiles-hero {
    position: relative;
    padding: 135px 20px 74px;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(0,43,91,0.92), rgba(0,43,91,0.70)),
        url('../imagenes/perfiles.webp') center 20%/cover no-repeat;
    color: #fff;
    text-align: left;
}
.perfiles-hero::after {
    content: "";
    position: absolute;
    right: clamp(18px, 9vw, 125px);
    bottom: -78px;
    width: 230px;
    height: 230px;
    border: 30px solid #980f10;
    border-radius: 50%;
}
.perfiles-hero__content {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    margin: 0 auto;
}
.perfiles-hero .section-kicker {
    color: #fff;
    background: #980f10;
    padding: 7px 12px;
    border-radius: 999px;
}
.perfiles-hero h1 {
    max-width: 780px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.08;
}
.perfiles-hero p {
    max-width: 780px;
    color: rgba(255,255,255,0.92);
    font-size: clamp(1rem, 1.2vw, 1.22rem);
}
.perfiles-overview,
.profile-grid-section {
    width: min(1120px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}
.perfiles-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: stretch;
    margin-top: -38px;
    position: relative;
    z-index: 2;
}
.profile-intro,
.profile-highlight,
.profile-card {
    background: #fff;
    border: 1px solid rgba(0,43,91,0.08);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(12,35,64,0.08);
}
.profile-intro {
    padding: clamp(24px, 4vw, 42px);
}
.profile-intro h2,
.profile-grid-heading h2 {
    max-width: 820px;
    color: #002b5b;
    font-size: clamp(1.45rem, 2vw, 2.25rem);
    line-height: 1.18;
}
.profile-intro p {
    max-width: 900px;
    margin-top: 16px;
    color: #4d5b6b;
    text-align: left;
}
.profile-highlight {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    background: #002b5b;
    color: #fff;
}
.profile-highlight span {
    color: #980f10;
    font-size: clamp(4rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 0.9;
}
.profile-highlight p {
    margin-top: 16px;
    color: rgba(255,255,255,0.86);
    font-size: 1.05rem;
    font-weight: 600;
}
.profile-grid-section {
    padding: 54px 0 86px;
}
.profile-grid-heading {
    max-width: 760px;
    margin-bottom: 22px;
}
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.profile-card {
    position: relative;
    min-height: 280px;
    padding: 26px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.profile-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: var(--profile-color);
}
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(12,35,64,0.13);
}
.profile-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--profile-color) 12%, white);
    color: var(--profile-color);
    font-weight: 700;
}
.profile-card h3 {
    color: #002b5b;
    font-size: 1.18rem;
    line-height: 1.25;
}
.profile-card p {
    margin-top: 12px;
    color: #576678;
    font-size: 0.95rem;
}
.profile-card--student { --profile-color: #1565c0; }
.profile-card--family { --profile-color: #980f10; }
.profile-card--team { --profile-color: #2e7d32; }
@supports not (background: color-mix(in srgb, red 12%, white)) {
    .profile-card span { background: #eef3f8; }
}
@media (max-width: 900px) {
    .perfiles-overview,
    .profile-grid { grid-template-columns: 1fr; }
    .profile-card { min-height: auto; }
}
@media (max-width: 620px) {
    .perfiles-hero { padding: 112px 20px 58px; }
    .perfiles-hero::after {
        width: 145px;
        height: 145px;
        border-width: 18px;
        right: -42px;
    }
    .perfiles-overview,
    .profile-grid-section {
        width: min(100% - 28px, 1120px);
    }
    .profile-intro,
    .profile-highlight,
    .profile-card { padding: 22px; }
}

/* =========================================================
   6. MENÚ HAMBURGUESA Y MEDIA QUERIES GENERALES (RESPONSIVE)
   ========================================================= */

/* ---- Menú hamburguesa ---- */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 2100;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: transform .25s ease, opacity .2s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1250px) {
    .navbar { padding: 6px 12px; }
    .nav-container { width: 100%; max-width: none; }
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 8px 0;
        flex-direction: column;
        align-items: stretch;
        background: #002B5B;
        box-shadow: 0 12px 25px rgba(0,0,0,.25);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 2000;
    }
    .nav-links.active { display: flex; }
    .nav-links > li { width: 100%; margin: 0; }
    .nav-links > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 13px 20px;
        color: #fff;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,.08);
        transition: background .2s ease, color .2s ease;
    }
    .nav-links > li > a:hover,
    .nav-links > li > a:focus {
        background: rgba(255,255,255,.08);
        color: #fff;
        outline: none;
    }
    .dropdown-arrow {
        display: inline-block;
        margin-left: 10px;
        transition: transform .25s ease;
    }
    .has-dropdown.submenu-open .dropdown-arrow { transform: rotate(180deg); }
    .nav-links li:hover > ul.dropdown { display: none; }
    .nav-links li ul.dropdown {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: #013A73;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
    }
    .nav-links li.submenu-open > ul.dropdown { display: block; }
    .nav-links li ul.dropdown li { width: 100%; margin: 0; }
    .nav-links li ul.dropdown a {
        display: block;
        width: 100%;
        padding: 12px 20px 12px 36px;
        color: #fff;
        font-size: .94rem;
        line-height: 1.3;
        border-bottom: 1px solid rgba(255,255,255,.06);
        transition: background .2s ease, padding-left .2s ease;
    }
    .nav-links li ul.dropdown a:hover,
    .nav-links li ul.dropdown a:focus {
        background: #980f10;
        color: #fff;
        padding-left: 40px;
        outline: none;
    }
}

/* ---- Ajustes móviles pequeños ---- */
@media (max-width: 480px) {
    .navbar { padding: 5px 8px; }
    .logo { gap: 7px; }
    .logo-img-nav { height: 35px; }
    .logo h3 { font-size: .85rem; }
    .logo h4 { font-size: .62rem; }
    .hamburger { width: 42px; height: 42px; }
    .nav-links > li > a {
        min-height: 46px;
        padding: 12px 16px;
        font-size: .95rem;
    }
    .nav-links li ul.dropdown a {
        padding: 11px 16px 11px 32px;
        font-size: .9rem;
    }
}

/* ---- Ajustes generales móviles ---- */
@media (max-width: 768px) {
    .hero .btn-primary,
    .hero .btn-secondary {
        display: block;
        width: 80%;
        margin: 10px auto;
        text-align: center;
    }
    .gallery img,
    #modelo .card img,
    #vida .card img,
    #documentos .card img { height: 180px; }
    .contact-form-fields { grid-template-columns: 1fr; }
    .contact-submit { width: 100%; margin-top: 22px; }
    .contact-form-status { text-align: center; }
}

/* =========================================================
   7. FOOTER PRINCIPAL (CORREGIDO Y ÚNICO)
   ========================================================= */
/* Este bloque reemplaza cualquier regla anterior de footer y asegura
   que el footer principal (con #footer y .site-footer) se vea correctamente.
   Las reglas genéricas "footer { ... }" no afectan a este footer. */

footer#footer,
footer {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: initial;
}
footer#footer > .site-footer,
footer > .site-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #002B5B;
    color: #fff;
}
footer#footer .site-footer__contact,
footer .site-footer__contact {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    background: #002B5B;
    padding: 44px 20px 30px;
}
footer#footer .site-footer__contact-grid,
footer .site-footer__contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: min(1120px, 100%);
    margin: 0 auto;
    text-align: left;
}
footer#footer .site-footer__contact-card,
footer .site-footer__contact-card {
    background: #fff;
    color: #002B5B;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0,20,48,0.18);
}
footer#footer .site-footer__contact-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #002B5B;
    font-size: 1.08rem;
}
footer#footer .site-footer__contact-card p {
    margin: 0 0 8px;
    color: #26374d;
    font-size: 0.92rem;
}
footer#footer .site-footer__contact-card p:last-child { margin-bottom: 0; }
footer#footer .site-footer__contact-card a {
    color: #002B5B;
    text-decoration: none;
    font-weight: 600;
}
footer#footer .site-footer__contact-card a:hover {
    text-decoration: underline;
}
footer#footer .footer-contact-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: #eef3f8;
    color: #980f10;
}
.footer-contact-icon::before { font-size: 1rem; line-height: 1; }
.footer-contact-icon--location::before { content: "⌖"; }
.footer-contact-icon--phone::before { content: "☎"; }
.footer-contact-icon--whatsapp::before { content: "◉"; }
.footer-contact-icon--email::before { content: "@"; font-weight: 700; }
footer#footer .site-footer__social-area,
footer .site-footer__social-area {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    padding: 26px 20px;
}
footer#footer .site-footer__social,
footer .site-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
footer#footer .site-footer__social a,
footer .site-footer__social a {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f4f7fb;
    transition: background-color .2s ease, transform .2s ease;
    text-decoration: none;
}
footer#footer .site-footer__social a:hover,
footer .site-footer__social a:hover {
    background: #e9eef6;
    transform: translateY(-2px);
}
footer#footer .site-footer__social a:focus-visible,
footer .site-footer__social a:focus-visible {
    outline: 3px solid #980f10;
    outline-offset: 3px;
}
footer#footer .site-footer__icon,
footer .site-footer__icon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    display: block;
    margin: 0 !important;
}
footer#footer .site-footer__bottom,
footer .site-footer__bottom {
    width: 100%;
    box-sizing: border-box;
    background: #980f10;
    padding: 18px 20px 22px;
    text-align: center !important;
}
footer#footer .site-footer__bottom p,
footer .site-footer__bottom p {
    margin: 0;
    color: rgba(255,255,255,0.92);
    font-size: 0.86rem;
    font-weight: 300;
    text-align: center !important;
}

/* ---- Responsive del footer ---- */
@media (max-width: 768px) {
    footer#footer .site-footer__contact,
    footer .site-footer__contact { padding: 36px 16px 24px; }
    footer#footer .site-footer__contact-grid,
    footer .site-footer__contact-grid { grid-template-columns: 1fr; gap: 14px; }
    footer#footer .site-footer__contact-card,
    footer .site-footer__contact-card { padding: 18px; }
    footer#footer .site-footer__social-area,
    footer .site-footer__social-area { padding: 22px 16px; }
    footer#footer .site-footer__social,
    footer .site-footer__social { gap: 10px; }
    footer#footer .site-footer__social a,
    footer .site-footer__social a { width: 46px; height: 46px; flex-basis: 46px; }
    footer#footer .site-footer__icon,
    footer .site-footer__icon { width: 22px !important; height: 22px !important; max-width: 22px; max-height: 22px; }
    footer#footer .site-footer__bottom,
    footer .site-footer__bottom { padding: 16px; }
}
@media (max-width: 420px) {
    footer#footer .site-footer__social,
    footer .site-footer__social { gap: 8px; }
    footer#footer .site-footer__social a,
    footer .site-footer__social a { width: 42px; height: 42px; flex-basis: 42px; }
    footer#footer .site-footer__icon,
    footer .site-footer__icon { width: 20px !important; height: 20px !important; max-width: 20px; max-height: 20px; }
    footer#footer .site-footer__bottom p,
    footer .site-footer__bottom p { font-size: 0.78rem; }
}
@media (max-width: 576px) {
    .card img, .gallery img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* =========================================================
   8. EFECTO DE REVELADO (FADE-IN)
   ========================================================= */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   9. LOADER GLOBAL DE PÁGINA
   ========================================================= */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #002B5B;
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease, visibility .35s ease;
}
.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.page-loader__inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.page-loader__logo {
    width: 74px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}
.page-loader__spinner {
    position: absolute;
    width: 112px;
    height: 112px;
    border: 4px solid rgba(255,255,255,0.18);
    border-top-color: #980f10;
    border-radius: 50%;
    animation: page-loader-spin .85s linear infinite;
}
@keyframes page-loader-spin {
    to { transform: rotate(360deg); }
}
body:has(.page-loader:not(.is-hidden)) {
    overflow: hidden;
}
@media (max-width: 480px) {
    .page-loader__logo { width: 56px; }
    .page-loader__spinner { width: 86px; height: 86px; border-width: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    .page-loader { transition: none; }
    .page-loader__spinner { animation-duration: 1.6s; }
}

/* =========================================================
   10. CONTÁCTANOS — FRANJA SIMPLE (LOGO + LISTA DE CONTACTO)
   ========================================================= */
.contact-strip {
    position: relative;
    overflow: hidden;
    padding: 54px 20px;
    background: #002B5B;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.14) 1.4px, transparent 1.4px);
    background-size: 22px 22px;
    background-position: right -40px top -20px;
    background-repeat: repeat;
}
.contact-strip__bg {
    position: absolute;
    left: -60px;
    bottom: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 24px solid rgba(255,255,255,0.05);
    pointer-events: none;
}
.contact-strip__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 56px;
    width: min(1180px, 100%);
    margin: 0 auto;
}
.contact-strip__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 200px;
    text-align: center;
    padding-top: 4px;
}
.contact-strip__logo {
    width: 118px;
    height: auto;
    margin-bottom: 14px;
}
.contact-strip__brand-name {
    margin: 0 0 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.3;
    text-transform: uppercase;
}
.contact-strip__brand-tagline {
    margin: 0;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    line-height: 1.4;
}
.contact-strip__content {
    flex: 1;
    min-width: 0;
}
.contact-strip__heading {
    margin: 0 0 26px;
    color: #fff;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}
.contact-strip__heading-highlight {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 14px;
    background: #fff;
    color: #002B5B;
    border-radius: 3px;
}
.contact-strip__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.contact-strip__list > li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.contact-strip__icon {
    display: flex;
    flex: 0 0 22px;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    color: #fff;
}
.contact-strip__icon svg {
    width: 20px;
    height: 20px;
}
.contact-strip__icon--whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.contact-strip__icon--whatsapp svg {
    color: #25D366;
    width: 24px;
    height: 24px;
    display: block;
}
.contact-strip__location {
    color: #fff;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.4;
    text-decoration: none;
}
.contact-strip__location:hover,
.contact-strip__location:focus-visible {
    text-decoration: underline;
}
.contact-strip__list p {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 1.02rem;
}
.contact-strip__numbers {
    display: flex;
    flex-wrap: wrap;
    column-gap: 34px;
    row-gap: 14px;
}
.contact-strip__numbers > div {
    display: flex;
    flex-direction: column;
}
.contact-strip__numbers strong {
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
}
.contact-strip__numbers span {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}
.contact-strip__emails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-strip__emails p {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.96rem;
    overflow-wrap: anywhere;
}
.contact-strip__emails strong {
    color: #980f10;
    font-weight: 700;
    padding: 3px 14px;
    background: #fff;
    border-radius: 3px;
}
.contact-strip__emails a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}
.contact-strip__emails a:hover,
.contact-strip__emails a:focus-visible {
    text-decoration: underline;
}
.contact-strip__email-break {
    display: none;
}
@media (max-width: 860px) {
    .contact-strip__inner {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        text-align: center;
    }
    .contact-strip__brand {
        flex: 0 0 auto;
    }
    .contact-strip__heading {
        text-align: center;
    }
    .contact-strip__list > li {
        text-align: left;
    }
}
@media (max-width: 650px) {
    .contact-strip {
        padding: 44px 16px;
    }
    .contact-strip__numbers {
        column-gap: 24px;
        row-gap: 12px;
    }
    .contact-strip__emails p {
        font-size: 0.8rem;
        font-weight: 400;
        line-height: 1.5;
    }
    .contact-strip__emails strong {
        font-weight: 600;
    }
    .contact-strip__emails a {
        font-weight: 400;
    }
    .contact-strip__email-break {
        display: inline;
    }
}