/* ============================================================
   GUÍA DE ADMINISTRACIÓN Y MODIFICACIÓN - styles.css
   ============================================================
   Este archivo controla TODO EL DISEÑO VISUAL del sitio.

   ¿QUÉ PUEDO CAMBIAR AQUÍ?
   1. Colores institucionales:
      --navy  = azul principal
      --gold  = dorado / llamadas a la acción
      --green = verde de apoyo
      --ink   = color principal del texto
      --muted = texto secundario
      --line  = bordes
      --soft  = fondos claros

   2. Tamaño general del contenido:
      .container { max-width: ... }

   3. Espaciado de las secciones:
      .section { padding: ... }

   4. Botones:
      .btn, .btn-primary, .btn-secondary, .btn-light

   5. Encabezado:
      .topbar
      .site-header
      .brand
      .desktop-nav
      .mobile-nav

   6. Portada:
      .hero
      .hero-bg
      .hero-overlay
      .hero-content
      .hero h1

   7. Tarjetas:
      .access-card
      .pillar-card
      .academic-card
      .news-card

   8. Formulario:
      .form-card
      .form-grid
      .form-control

   9. Pie de página:
      .site-footer
      .footer-grid

   10. Responsive:
       Al final del archivo existen reglas para pantallas pequeñas.
       No se recomienda eliminarlas porque permiten que el sitio
       se adapte a celulares y tablets.

   REGLA IMPORTANTE:
   Si solo quieres cambiar colores, modifica primero las variables
   de :root. Así puedes cambiar la identidad visual completa sin
   tener que buscar color por color.

   Ejemplo:
   --navy: #0b1f3a;
   Si lo cambias por otro código HEX, cambiará el azul institucional
   en las partes que utilizan esa variable.

   NO ES NECESARIO CONOCER TODO CSS PARA ADMINISTRAR EL SITIO.
   Para cambios de contenido (textos, enlaces e imágenes), revisa
   index.html y busca los comentarios "CAMBIAR AQUÍ".
   ============================================================ */

/* ============================================================
   SAN GABRIEL - ESTILOS PRINCIPALES
   ------------------------------------------------------------
   Este archivo contiene el diseño local para que el sitio se vea
   correctamente aunque Tailwind CDN no cargue.
   ============================================================ */

:root {
    --navy: #08750a;
    --navy-2: #08750a;
    --gold: #d5a526;
    --gold-dark: #b88912;
    --green: #16835c;
    --blue-soft: #edf5ff;
    --green-soft: #eaf8f2;
    --gold-soft: #fff7df;
    --ink: #172b3f;
    --muted: #64748b;
    --line: #e6ebf0;
    --soft: #f6f8fb;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(12, 35, 64, .08);
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body, button, input, select, textarea {
    font-family: "DM Sans", Arial, sans-serif;
}

h1, h2, h3, h4, strong {
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* =========================
   TOPBAR
   ========================= */
/*color  barra superior*/
.topbar {
    background: #08750a;
    color: rgba(255,255,255,.72);
    font-size: 12px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar i {
    color: var(--gold);
    margin-right: 6px;
}

.topbar a:hover {
    color: #fff;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(12,35,64,.07);
    transition: box-shadow .25s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 35px rgba(12,35,64,.10);
}


/*panel de navegacion*/
.nav-inner {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}
/*Logo*/
.brand img {
    width: 100px;
    height: 100px;
    border-radius: 14px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    color: var(--navy);
    font-size: 16px;
}

.brand-text span {
    color: #8190a1;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 5px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a {
    color: #536477;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    padding: 8px 0;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--navy);
}

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

.nav-actions {
    display: flex;
    gap: 9px;
    align-items: center;
}

.btn {
    min-height: 45px;
    padding: 0 18px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 800;
    font-size: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border-color: #d9e0e8;
    color: var(--navy);
    background: #fff;
}

.btn-outline:hover {
    border-color: var(--navy);
}

.btn-gold {
    color: #fff;
    background: var(--gold);
    box-shadow: 0 10px 25px rgba(213,165,38,.24);
}

.btn-gold:hover {
    background: var(--gold-dark);
}

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

.btn-navy:hover {
    background: var(--navy-2);
}

.btn-white-outline {
    color: #fff;
    border-color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
}

.btn-lg {
    min-height: 54px;
    padding-inline: 23px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #eef2f6;
    color: var(--navy);
    cursor: pointer;
}

.mobile-nav {
    display: none;
}

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

.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(6,24,43,.96) 0%, rgba(8,34,61,.88) 44%, rgba(8,34,61,.30) 100%),
        linear-gradient(0deg, rgba(0,0,0,.20), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 105px 0 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-copy {
    width: min(730px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.eyebrow span {
    width: 28px;
    height: 2px;
    background: var(--gold);
    display: inline-block;
}

.eyebrow.light {
    color: #f1cc68;
}

.hero h1 {
    margin-top: 18px;
    font-size: clamp(42px, 5vw, 69px);
    line-height: 1.04;
    letter-spacing: -.045em;
    max-width: 760px;
}

.hero h1 em {
    color: #f0c957;
    font-style: normal;
}

.hero-copy > p {
    margin-top: 24px;
    max-width: 680px;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 31px;
}

.hero-stats {
    display: flex;
    gap: 42px;
    margin-top: 48px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 25px;
}

.hero-stats span {
    color: rgba(255,255,255,.55);
    font-size: 11px;
    margin-top: 3px;
}

.hero-card {
    width: 260px;
    flex: 0 0 260px;
    padding: 19px;
    border-radius: 17px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 13px;
}

.hero-card-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: rgba(213,165,38,.15);
}

.hero-card small {
    display: block;
    color: rgba(255,255,255,.52);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.hero-card strong {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

/* =========================
   QUICK ACCESS
   ========================= */

.quick-access {
    position: relative;
    z-index: 10;
    margin-top: -38px;
}

.quick-grid {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.quick-card {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-right: 1px solid var(--line);
    transition: background .2s ease;
}

.quick-card:last-child {
    border-right: 0;
}

.quick-card:hover {
    background: #f9fbfd;
}

.quick-card > span:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.quick-card strong {
    font-size: 12px;
    color: var(--navy);
}

.quick-card small {
    color: #8a98a7;
    font-size: 10px;
    margin-top: 3px;
}

.quick-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    font-size: 16px;
}

.quick-icon.blue { background: var(--blue-soft); color: #276ab1; }
.quick-icon.green { background: var(--green-soft); color: var(--green); }
.quick-icon.gold { background: var(--gold-soft); color: var(--gold-dark); }
.quick-icon.navy { background: #edf1f6; color: var(--navy); }

.arrow {
    margin-left: auto;
    color: #a6b0bb;
    font-size: 11px;
}

/* =========================
   SECTIONS
   ========================= */

.section {
    padding: 105px 0;
}

.section-white {
    background: #fff;
}

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

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.content-block h2,
.section-heading h2,
.contact-info h2,
.admission-inner h2 {
    color: var(--navy);
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -.035em;
    margin-top: 14px;
}

.content-block .lead {
    color: #4f6276;
    font-size: 16px;
    margin-top: 23px;
}

.content-block > p:not(.lead) {
    color: #738294;
    font-size: 14px;
    margin-top: 13px;
}

.image-composition {
    position: relative;
    padding: 0 35px 35px 0;
}

.main-photo {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(12,35,64,.13);
}

.experience-badge {
    position: absolute;
    left: -18px;
    bottom: 0;
    background: #fff;
    box-shadow: 0 20px 50px rgba(12,35,64,.14);
    border-radius: 17px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.experience-badge strong {
    color: var(--gold-dark);
    font-size: 30px;
}

.experience-badge span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.photo-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-one {
    background: var(--gold);
    right: 8px;
    top: 25px;
}

.dot-two {
    background: var(--navy);
    right: 18px;
    bottom: 12px;
}

.check-list {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.check-list div {
    color: #42566a;
    font-size: 12px;
    font-weight: 700;
}

.check-list i {
    color: var(--green);
    margin-right: 7px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
    color: var(--navy);
    font-weight: 800;
    font-size: 12px;
}

.text-link:hover {
    color: var(--gold-dark);
}

/* =========================
   PILLARS
   ========================= */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.section-heading > p {
    max-width: 430px;
    color: #778596;
    font-size: 14px;
}

.section-heading.centered {
    display: block;
    text-align: center;
    max-width: 730px;
    margin-inline: auto;
}

.section-heading.centered .eyebrow {
    justify-content: center;
}

.section-heading.centered h2 {
    margin-top: 12px;
}

.section-heading.centered p {
    max-width: 650px;
    margin: 16px auto 0;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 52px;
}

.pillar-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    min-height: 265px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.pillar-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.pillar-icon.blue { background: var(--blue-soft); color: #276ab1; }
.pillar-icon.navy { background: #edf1f6; color: var(--navy); }
.pillar-icon.gold { background: var(--gold-soft); color: var(--gold-dark); }
.pillar-icon.green { background: var(--green-soft); color: var(--green); }

.pillar-card h3 {
    color: var(--navy);
    margin-top: 22px;
    font-size: 17px;
}

.pillar-card p {
    color: #788798;
    font-size: 12px;
    margin-top: 9px;
}

.pillar-card a,
.academic-card a,
.news-body a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 19px;
    color: var(--navy);
    font-weight: 800;
    font-size: 11px;
}

/* =========================
   ACADEMIC
   ========================= */

.academic-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.academic-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 21px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.academic-card:hover,
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.academic-card.featured {
    box-shadow: 0 12px 40px rgba(12,35,64,.08);
}

.academic-card > img {
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.academic-content {
    padding: 25px;
}

.grade-label {
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 9px;
    font-weight: 800;
}

.academic-content h3 {
    color: var(--navy);
    font-size: 23px;
    margin-top: 5px;
}

.academic-content p {
    color: #788798;
    font-size: 13px;
    margin-top: 9px;
}

/* =========================
   ADMISSION BANNER
   ========================= */

.admission-section {
    background:
        linear-gradient(90deg, rgba(7,26,47,.98), rgba(13,46,78,.93)),
        url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: #fff;
}

.admission-inner {
    min-height: 300px;
    padding: 65px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.admission-inner h2 {
    color: #fff;
    max-width: 690px;
}

.admission-inner p {
    color: rgba(255,255,255,.65);
    max-width: 620px;
    margin-top: 15px;
}

/* =========================
   NEWS
   ========================= */

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

.news-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 19px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card > img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.news-body {
    padding: 24px;
}

.news-body time {
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: 9px;
    font-weight: 800;
}

.news-body h3 {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.3;
    margin-top: 8px;
}

.news-body p {
    color: #788798;
    font-size: 12px;
    margin-top: 10px;
}

/* =========================
   CONTACT
   ========================= */

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: start;
}

.contact-info > p {
    max-width: 500px;
    color: #788798;
    font-size: 14px;
    margin-top: 17px;
}

.contact-list {
    margin-top: 34px;
    display: grid;
    gap: 22px;
}

.contact-item {
    display: flex;
    gap: 13px;
}

.contact-item > span {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #f0f4f8;
    color: var(--navy);
    flex: 0 0 43px;
}

.contact-item strong {
    color: var(--navy);
    display: block;
    font-size: 12px;
}

.contact-item p {
    color: #7b8998;
    font-size: 12px;
    margin-top: 2px;
}

.socials {
    display: flex;
    gap: 9px;
    margin-top: 30px;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #f0f4f8;
    color: var(--navy);
}

.socials a:hover {
    background: var(--navy);
    color: #fff;
}

.form-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 32px;
    background: #fff;
}

.form-kicker {
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 9px;
    letter-spacing: .14em;
}

.form-header h3 {
    color: var(--navy);
    font-size: 25px;
    margin-top: 5px;
}

.form-header p {
    color: #8a97a5;
    font-size: 12px;
    margin-top: 3px;
}

form {
    margin-top: 25px;
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

form label {
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    display: grid;
    gap: 7px;
}

form input,
form select,
form textarea {
    width: 100%;
    border: 1px solid #dfe6ed;
    background: #fbfcfd;
    color: #30445a;
    border-radius: 10px;
    padding: 12px 13px;
    font-size: 12px;
    outline: none;
    resize: vertical;
    transition: border .2s ease, box-shadow .2s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #8da2b8;
    box-shadow: 0 0 0 4px rgba(12,35,64,.06);
}

.form-message {
    min-height: 20px;
    text-align: center;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
}

/* =========================
   FOOTER
   ========================= */
/*color del footer*/
.footer {
    background: #08750a;
    color: rgba(255,255,255,.62);
}

.footer-grid {
    padding: 68px 0 55px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.25fr;
    gap: 45px;
}

.brand-footer .brand-text strong {
    color: #fff;
}

.brand-footer .brand-text span {
    color: rgba(255,255,255,.38);
}

.footer-brand > p {
    max-width: 350px;
    font-size: 12px;
    margin-top: 18px;
    line-height: 1.7;
}

.footer h4 {
    color: #fff;
    font-size: 12px;
    margin-bottom: 18px;
}

.footer-grid > div:not(.footer-brand) a {
    display: block;
    font-size: 11px;
    margin-top: 11px;
}

.footer-grid > div:not(.footer-brand) a:hover {
    color: #fff;
}

.footer-grid > div:last-child p {
    display: flex;
    gap: 9px;
    font-size: 11px;
    margin-top: 11px;
}

.footer-grid > div:last-child i {
    color: var(--gold);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    min-height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 10px;
}

.footer-bottom a:hover {
    color: #fff;
}

/* =========================
   FLOATING BUTTONS
   ========================= */

.whatsapp {
    position: fixed;
    right: 23px;
    bottom: 23px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #20b866;
    color: #fff;
    font-size: 25px;
    box-shadow: 0 15px 30px rgba(32,184,102,.30);
    transition: transform .2s ease;
}

.whatsapp:hover {
    transform: scale(1.07);
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 90px;
    z-index: 900;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1050px) {
    .desktop-nav {
        gap: 17px;
    }

    .nav-actions .btn-outline {
        display: none;
    }

    .hero-card {
        display: none;
    }

    .two-column {
        gap: 55px;
    }

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

@media (max-width: 820px) {
    .topbar-left span:last-child,
    .topbar-right {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }

    .desktop-nav,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: grid;
        place-items: center;
    }

    .mobile-nav {
        padding: 0 20px 18px;
        display: none;
        flex-direction: column;
        gap: 3px;
    }

    .mobile-nav.open {
        display: flex;
    }

    .mobile-nav a {
        padding: 12px 13px;
        border-radius: 9px;
        color: var(--navy);
        font-size: 13px;
        font-weight: 800;
    }

    .mobile-nav a:hover {
        background: #f3f6f9;
    }

    .mobile-nav .mobile-admission {
        background: var(--gold);
        color: #fff;
        text-align: center;
        margin-top: 4px;
    }

    .hero {
        min-height: 700px;
    }

    .hero-content {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: clamp(39px, 9vw, 58px);
    }

    .hero-copy > p {
        font-size: 15px;
    }

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

    .quick-card {
        border-bottom: 1px solid var(--line);
    }

    .quick-card:nth-child(2) {
        border-right: 0;
    }

    .two-column,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .image-composition {
        max-width: 650px;
    }

    .section-heading {
        display: block;
    }

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

    .academic-grid,
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .admission-inner {
        display: block;
    }

    .admission-inner .btn {
        margin-top: 25px;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .topbar {
        display: none;
    }

    .nav-inner {
        height: 72px;
    }

    .brand img {
        width: 44px;
        height: 44px;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .hero {
        min-height: 680px;
    }

    .hero-content {
        padding: 70px 0 85px;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .hero-stats {
        gap: 22px;
        justify-content: space-between;
    }

    .hero-stats strong {
        font-size: 21px;
    }

    .hero-stats span {
        font-size: 9px;
    }

    .quick-access {
        margin-top: -25px;
    }

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

    .quick-card,
    .quick-card:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .quick-card:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 78px 0;
    }

    .main-photo {
        height: 360px;
    }

    .experience-badge {
        left: 0;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

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

    .academic-card > img,
    .news-card > img {
        height: 210px;
    }

    .form-card {
        padding: 23px;
    }

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

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

    .footer-bottom {
        display: block;
        padding: 20px 0;
    }

    .footer-bottom span {
        display: block;
        margin-top: 5px;
    }

    .whatsapp {
        right: 16px;
        bottom: 16px;
    }

    .back-top {
        right: 18px;
        bottom: 82px;
    }
}


/* ============================================================
   ANIMACIONES ACTIVADAS POR JAVASCRIPT
   ============================================================ */

.pillar-card,
.academic-card,
.news-card,
.contact-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease;
}

.pillar-card.visible,
.academic-card.visible,
.news-card.visible,
.contact-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   AJUSTES INSTITUTO EL NIÑO JESÚS
   ============================================================ */
:root {
    --navy: #38761d;
    --navy-2: #2f6418;
    --green: #38761d;
    --green-soft: #eef6ea;
    --blue-soft: #eef6ea;
}

.site-header { border-bottom-color: rgba(56,118,29,.12); }
.brand img { object-fit: contain; }
.btn-outline:hover, .text-link:hover, .map-link, .footer a:hover { color: var(--navy); }
.quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-icon.green { background: #eef6ea; color: #38761d; }
.hero-bg-institution { background: linear-gradient(135deg, rgba(56,118,29,.98), rgba(39,81,24,.96)); }
.hero-overlay { background: linear-gradient(90deg, rgba(14,31,9,.62), rgba(14,31,9,.22)); }
.institutional-emblem { min-height: 420px; background: linear-gradient(145deg,#f6faf4,#edf6e9); border-radius: 28px; display:flex; align-items:center; justify-content:center; }
.institutional-emblem .main-photo { width: min(72%, 360px); height: auto; object-fit: contain; box-shadow: none; border-radius: 0; }
.institution-text-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:34px; }
.institution-text-grid > div, .horizon-card, .values-grid > div, .community-grid article, .projects-panel, .empty-state, .manual-panel, .portal-panel, .uniform-card { border:1px solid var(--line); border-radius:18px; background:#fff; padding:26px; box-shadow:0 12px 35px rgba(34,72,23,.06); }
.institution-text-grid h3, .community-grid h3, .values-grid h3 { margin-bottom:8px; color:var(--navy); }
.horizon-grid { display:grid; grid-template-columns:1.35fr 1fr; gap:22px; }
.horizon-card p { color:var(--muted); }
.featured-horizon { border-top:4px solid var(--navy); }
.horizon-kicker, .form-kicker { display:inline-block; font-size:12px; font-weight:800; letter-spacing:.12em; color:var(--navy); margin-bottom:12px; }
.values-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:22px; }
.values-grid i, .community-grid i { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; background:#eef6ea; color:var(--navy); margin-bottom:14px; }
.symbols-block { display:grid; grid-template-columns:1.4fr .6fr; gap:30px; margin-top:28px; padding:32px; border-radius:24px; background:#f7faf5; }
.symbol-emblem { display:flex; justify-content:center; align-items:center; }
.symbol-emblem img { width:min(250px,80%); }
.flag-block { margin-top:20px; }
.flag-emblem img { width:min(180px,90%); height:auto; object-fit:contain; }
@media (max-width: 760px) {
    .symbols-block { grid-template-columns:1fr; }
    .symbol-emblem { grid-row:1; }
    .symbol-copy { grid-row:2; }
    .flag-emblem { grid-row:1; }
}
.community-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.community-grid article p, .projects-panel p { color:var(--muted); }
.projects-panel { margin-top:22px; background:#f7faf5; }
.projects-panel h3 { color:var(--navy); margin-bottom:16px; }
.project-tags { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.project-tags span { background:#eaf3e5; color:#2f6418; border-radius:999px; padding:8px 13px; font-size:13px; font-weight:700; }
.uniform-card { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr); align-items:center; gap:28px; overflow:hidden; }
.uniform-card img { width:100%; max-height:540px; object-fit:contain; border-radius:14px; }
.uniform-card h3 { color:var(--navy); font-size:24px; margin-bottom:10px; }
.narrow-content { max-width:900px; }
.empty-state { text-align:center; padding:55px 30px; }
.empty-state i { font-size:42px; color:var(--navy); margin-bottom:15px; }
.empty-state h3 { margin-bottom:8px; }
.manual-panel, .portal-panel { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:34px; }
.manual-panel { background:#f7faf5; }
.manual-panel h2, .portal-panel h2 { margin-bottom:8px; }
.portal-panel { background:linear-gradient(135deg,#f7faf5,#fff); }
.portal-icon { width:70px; height:70px; border-radius:20px; background:#eaf3e5; color:var(--navy); display:grid; place-items:center; font-size:28px; flex:0 0 auto; }
.map-card { border-radius:22px; overflow:hidden; border:1px solid var(--line); box-shadow:0 18px 50px rgba(34,72,23,.08); }
.map-card iframe { width:100%; height:360px; border:0; display:block; }
.map-caption { display:grid; grid-template-columns:1fr auto; gap:3px 20px; padding:17px 20px; background:#fff; }
.map-caption strong { grid-column:1; }
.map-caption span { color:var(--muted); font-size:14px; }
.map-caption a { grid-column:2; grid-row:1 / span 2; align-self:center; color:var(--navy); font-weight:700; }
.map-link { display:inline-block; margin-top:4px; font-size:14px; font-weight:700; }
.contact-item a { text-decoration:none; }
.btn-primary { background:var(--navy); color:#fff; }
.btn-primary:hover { background:var(--navy-2); }
.whatsapp { background:#25d366 !important; }

@media (max-width: 1100px) {
    .desktop-nav { display:none; }
    .nav-actions { display:none; }
    .mobile-menu-btn { display:block; }
    .quick-grid { grid-template-columns:repeat(2,1fr); }
    .institution-text-grid, .values-grid, .community-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 760px) {
    .quick-grid, .institution-text-grid, .values-grid, .community-grid, .horizon-grid, .symbols-block, .uniform-card { grid-template-columns:1fr; }
    .hero-stats { grid-template-columns:1fr; gap:10px; }
    .manual-panel, .portal-panel { flex-direction:column; align-items:flex-start; }
    .map-card iframe { height:300px; }
    .map-caption { grid-template-columns:1fr; }
    .map-caption a { grid-column:1; grid-row:auto; margin-top:8px; }
    .institutional-emblem { min-height:320px; }
}
.admission-section { background: linear-gradient(90deg, rgba(39,82,24,.99), rgba(56,118,29,.94)) !important; }

/* Navegación jerárquica del sitio institucional */
.desktop-nav { gap: 18px; }
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 10px 0; background: transparent; color: #536477; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.nav-dropdown-toggle i { font-size: 10px; transition: transform .18s ease; }
.nav-dropdown:hover .nav-dropdown-toggle, .nav-dropdown:focus-within .nav-dropdown-toggle { color: var(--green, #38761d); }
.nav-dropdown:hover .nav-dropdown-toggle i, .nav-dropdown:focus-within .nav-dropdown-toggle i { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; z-index: 100; top: 100%; left: -14px; min-width: 220px; padding: 8px; border: 1px solid #e5eadf; border-radius: 12px; background: #fff; box-shadow: 0 16px 38px rgba(24, 49, 19, .14); display: none; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 12px; border-radius: 7px; color: #354336; font-size: 12px; line-height: 1.4; font-weight: 700; white-space: nowrap; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus { color: #285b1b; background: #f1f7ed; }
.nav-dropdown-menu a span { display: block; padding-top: 3px; color: #71816b; font-size: 10px; font-weight: 500; }
.nav-dropdown-wide { min-width: 260px; }
.nav-dropdown-right { left: auto; right: 0; }
.mobile-nav-group { border-bottom: 1px solid #edf0e9; }
.mobile-nav-group summary { padding: 12px 13px; border-radius: 9px; color: var(--navy); font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
.mobile-nav-group summary::-webkit-details-marker { display: none; }
.mobile-nav-group summary::after { content: '+'; float: right; color: #38761d; font-size: 17px; line-height: 1; }
.mobile-nav-group[open] summary::after { content: '−'; }
.mobile-nav-group a { display: block; margin-left: 12px; padding: 9px 13px !important; color: #52624f !important; font-size: 12px !important; font-weight: 600 !important; }
.admission-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 44px; }
.admission-option { padding: 25px; border: 1px solid rgba(255,255,255,.22); border-radius: 15px; background: rgba(255,255,255,.09); color: #fff; scroll-margin-top: 120px; }
.admission-option > i { font-size: 24px; margin-bottom: 13px; color: #e8f3df; }
.admission-option h3 { margin-bottom: 8px; font-size: 18px; font-weight: 800; }
.admission-option p { margin-bottom: 14px; color: rgba(255,255,255,.86); font-size: 13px; line-height: 1.7; }
.admission-option a { color: #fff; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
#institucion, #modelo, #horizonte, #uniformes, #manual, #experiencia-pedagogica, #actividades-civico-culturales, #actividades-academicas, #proyectos, #formulario-inscripciones, #ficha-familiar { scroll-margin-top: 115px; }
@media (max-width: 1100px) { .desktop-nav { display: none; } }
@media (max-width: 760px) { .admission-options { grid-template-columns: 1fr; padding-bottom: 30px; } }





.imagenes-comunicados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.imagenes-comunicados img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);
    background: #fff;
    transition: transform 0.25s ease;
}

.imagenes-comunicados img:hover {
    transform: translateY(-4px);
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
}

.evento-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.10);
}

.evento-portada {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.evento-info {
    padding: 20px;
}

.evento-info h3 {
    margin: 0 0 10px;
    color: #38761d;
}

.btn-evento {
    background: #38761d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 11px 18px;
    cursor: pointer;
}

.btn-evento:hover {
    background: #285514;
}

/* Modal */
.modal-galeria {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.35);
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.modal-galeria.activo {
    display: flex;
}

.modal-contenido {
    text-align: center;
    color: white;
    width: 85%;
    max-width: 850px;
    max-height: 85vh;
    padding: 20px;
    border-radius: 12px;
}

.modal-contenido h3 {
    margin-bottom: 15px;
}

.modal-contenido img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.modal-cerrar,
.modal-flecha {
    position: absolute;
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
}

.modal-cerrar {
    top: 15px;
    right: 25px;
    font-size: 42px;
}

.modal-flecha {
    top: 50%;
    transform: translateY(-50%);
    font-size: 35px;
    padding: 15px;
}

.modal-flecha.anterior {
    left: 10px;
}

.modal-flecha.siguiente {
    right: 10px;
}

@media (max-width: 600px) {
    .modal-galeria {
        padding: 15px;
    }

    .modal-flecha {
        font-size: 25px;
    }

    .modal-flecha.anterior {
        left: 0;
    }

    .modal-flecha.siguiente {
        right: 0;
    }
}
