/* =========================================================
   INSTITUTO TÉCNICO ENSEC — Sistema de diseño del sitio
   Tipografías: Fraunces (títulos) · Inter (texto)
   Colores del escudo: azul marino + dorado
   ========================================================= */

/* ---------- 1. Variables ---------- */

:root {
    --navy-900: #004f9f;
    --navy-800: #004f9f;
    --navy-700: #003e7b;
    --blue-600: #004f9f;
    --blue-50:  #eaf3fb;
    --gold-500: #ffc600;
    --gold-400: #ffc600;
    --gold-100: #fff7d6;

    --ink:    #0f1b2d;
    --text:   #3d4a5c;
    --muted:  #6b7789;
    --line:   #e3e8f0;
    --soft:   #f5f7fb;
    --cream:  #fbf8f2;
    --white:  #ffffff;

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .05);
    --shadow: 0 10px 30px -10px rgba(0, 79, 159, .18);
    --shadow-lg: 0 24px 60px -20px rgba(0, 79, 159, .35);

    --container: 1200px;
    --header-h: 84px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--blue-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .5em;
    font-weight: 600;
    letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 1000;
    background: var(--gold-500);
    color: var(--ink);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
}
.skip-link:focus { left: 10px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- 3. Utilidades ---------- */

.section { padding: 64px 0; }
.home-about { padding-bottom: 32px; }
.section--soft { background: var(--soft); }
.section--cream { background: var(--cream); }
.section--tight { padding: 48px 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--gold-500);
}
.eyebrow--about { display: block; width: fit-content; }
.eyebrow--about::before { display: none; }
.eyebrow--about::after {
    content: '';
    display: block;
    width: 54px;
    height: 2px;
    margin-top: 7px;
    background: var(--gold-500);
}
.eyebrow--light { color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-lead { font-size: 18px; color: var(--muted); margin: 0; }

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}
.section-head-row .section-head { margin-bottom: 0; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--navy-800);
    white-space: nowrap;
}
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--blue-600); }
.link-arrow:hover i { transform: translateX(4px); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--blue-50);
    color: var(--navy-700);
    line-height: 1.4;
}
.chip--gold { background: var(--gold-100); color: #7a5700; }
.chip--glass { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); }

/* ---------- 4. Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 8px 20px -8px rgba(245, 183, 0, .7); }
.btn-gold:hover, .btn-gold.is-active { background: var(--gold-400); color: var(--navy-900); }

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

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

.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

/* ---------- 5. Barra superior ---------- */

.topbar { background: var(--navy-900); color: #c9d4e8; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar ul { display: flex; align-items: center; gap: 22px; }
.topbar li { display: inline-flex; align-items: center; gap: 8px; }
.topbar i { color: var(--gold-400); }
.topbar a { color: #c9d4e8; }
.topbar a:hover { color: #fff; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- 6. Header y navegación ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(11, 42, 91, .25); border-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 56px; height: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy-800); }
.brand-text small { font-size: 12.5px; color: var(--muted); }
.brand:hover .brand-text strong { color: var(--navy-800); }
.brand--light .brand-text strong { color: #fff; }
.brand--light .brand-text small { color: #9fb0cc; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 0;
    background: none;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    transition: background .2s, color .2s;
}
.nav-link i { font-size: 11px; transition: transform .25s; }
.nav-link:hover { background: var(--soft); color: var(--navy-800); }
.nav-link.is-active { color: var(--navy-800); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }

.nav-cta-item { margin-left: 10px; }

.sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 250px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sub-menu--wide { min-width: 380px; }
.sub-menu-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 12px 8px; margin: 0; }
.sub-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
}
.sub-menu a i {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 15px;
}
.sub-menu a:hover, .sub-menu a.is-active { background: var(--soft); color: var(--navy-800); }
.sub-menu a:hover i, .sub-menu a.is-active i { background: var(--navy-800); color: var(--gold-400); }

@media (min-width: 1101px) {
    .has-sub:hover > .sub-menu,
    .has-sub:focus-within > .sub-menu,
    .has-sub.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .has-sub:hover > .nav-link i { transform: rotate(180deg); }
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0 12px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed;
        inset: var(--nav-top, 126px) 0 0 0;
        background: #fff;
        overflow-y: auto;
        padding: 16px 20px 40px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, transform .3s var(--ease), visibility .25s;
        border-top: 1px solid var(--line);
    }
    .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 16px; border-radius: var(--radius-sm); }
    .nav-link.is-active { box-shadow: inset 3px 0 0 var(--gold-500); background: var(--soft); }
    .sub-menu, .sub-menu--wide {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        box-shadow: none;
        border: 0;
        padding: 0 0 8px 8px;
        display: none;
    }
    .has-sub.is-open > .sub-menu { display: block; }
    .has-sub.is-open > .nav-link i { transform: rotate(180deg); }
    .nav-cta-item { margin: 16px 0 0; }
    .nav-cta-item .btn { width: 100%; }
    body.nav-open { overflow: hidden; }
}

/* ---------- 7. Hero de páginas internas ---------- */

.page-hero {
    position: relative;
    padding: 105px 0 110px;
    color: #fff;
    background-image: linear-gradient(90deg, rgba(0, 79, 159, .8), rgba(0, 79, 159, .8)), var(--hero-img);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-500) 0 22%, transparent 22%);
}
.page-hero--institution::after { display: none; }
.page-hero-inner { position: relative; max-width: var(--container); }
.page-hero h1 { color: #fff; font-family: var(--font-body); font-size: clamp(38px, 4vw, 52px); font-weight: 700; letter-spacing: 0; max-width: 820px; margin-bottom: 14px; }
.page-hero-lead { font-size: clamp(16px, 2vw, 19px); color: #d4def0; max-width: 660px; margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 18px; color: #b9c7df; margin-bottom: 0; list-style: none; font-weight: 600; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '/'; color: var(--gold-400); }
.breadcrumb a { color: #e3eaf6; }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb [aria-current] { color: var(--gold-400); font-weight: 500; }

/* ---------- 8. Portada ---------- */

.home-hero {
    position: relative;
    min-height: min(66vh, 570px);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.home-hero-bg { position: absolute; inset: 0; z-index: -2; }
.home-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 8s linear;
}
.home-hero-bg img.is-active { opacity: 1; transform: scale(1); }
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 79, 159, .84) 0%, rgba(0, 79, 159, .66) 42%, rgba(0, 79, 159, .22) 100%),
        linear-gradient(0deg, rgba(0, 55, 112, .42), transparent 40%);
}
.home-hero-content { padding: 82px 0 128px; max-width: 840px; }
.home-hero h1 { color: #fff; font-family: var(--font-body); font-size: clamp(40px, 4.4vw, 54px); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; margin-bottom: 20px; }
.home-hero h1 span { display: block; }
.home-hero h1 em { display: block; margin-top: 4px; font-family: var(--font-display); font-size: .88em; font-style: italic; font-weight: 600; letter-spacing: -.025em; color: var(--gold-400); }
.home-hero-lead { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.65; color: #d8e1f0; max-width: 900px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-badge {
    position: absolute;
    right: max(20px, calc((100vw - var(--container)) / 2 + 20px));
    bottom: 150px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(8px);
    display: grid;
    place-content: center;
    text-align: center;
    line-height: 1.1;
}
.hero-badge strong { font-family: var(--font-display); font-size: 52px; color: var(--gold-400); display: block; }
.hero-badge span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }

/* Accesos rápidos que se superponen al hero */
.quick-links { position: relative; z-index: 5; margin-top: -90px; }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.quick-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 28px 26px;
    color: var(--text);
    border-right: 1px solid var(--line);
    transition: background .25s;
}
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: var(--soft); color: var(--text); }
.quick-icon {
    flex: 0 0 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--navy-800);
    color: var(--gold-400);
    font-size: 20px;
    transition: transform .3s var(--ease);
}
.quick-item:hover .quick-icon { transform: rotate(-6deg) scale(1.06); }
.quick-title { display: block; font-size: 16px; font-weight: 700; margin: 2px 0 4px; color: var(--ink); }
.quick-item p { font-size: 14px; margin: 0; color: var(--muted); line-height: 1.5; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 8px 0 8px 22px; border-left: 3px solid var(--gold-500); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); font-weight: 600; color: var(--navy-800); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }
.stats--dark .stat strong { color: #fff; }
.stats--dark .stat span { color: #b9c7df; }

/* Bloque "sobre nosotros" */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.home-about .split-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 79, 159, .38), rgba(0, 55, 112, .22) 55%, rgba(0, 79, 159, .42));
    pointer-events: none;
}
.split-media::before {
    content: '';
    position: absolute;
    inset: 24px -24px -24px 24px;
    border: 2px solid var(--gold-500);
    border-radius: var(--radius-lg);
    z-index: -1;
}
.media-note {
    position: absolute;
    left: -24px;
    bottom: 32px;
    background: var(--navy-800);
    color: #fff;
    padding: 18px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 240px;
    z-index: 1;
}
.media-note strong { font-family: var(--font-display); font-size: 34px; color: var(--gold-400); display: block; line-height: 1; }
.media-note span { font-size: 14px; color: #d4def0; }
.split h2 { font-size: clamp(30px, 4vw, 44px); }

.check-list { display: grid; gap: 12px; margin: 24px 0 32px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list i { color: var(--gold-500); margin-top: 5px; }

/* ---------- 9. Tarjetas de carreras ---------- */

.program-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.program-card { grid-column: span 2; }
.program-grid > .program-card:nth-child(4),
.program-grid > .program-card:nth-child(5) { grid-column: span 3; }

.program-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--text);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.program-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.program-card:hover .program-media img { transform: scale(1.06); }
.program-media .chip { position: absolute; left: 16px; top: 16px; background: rgba(255, 255, 255, .92); }
.program-body { position: relative; padding: 34px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.program-icon {
    position: absolute;
    top: -28px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--navy-800);
    color: var(--gold-400);
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: var(--shadow);
}
.program-body h3 { font-size: 22px; margin-bottom: 10px; }
.program-body p { color: var(--muted); font-size: 15px; flex: 1; }
.program-body .link-arrow { margin-top: 6px; }

/* ---------- 10. Noticias ---------- */

.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }

.news-feature {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-800);
    color: #fff;
    box-shadow: var(--shadow);
}
.news-feature-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.news-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.news-feature:hover .news-feature-media img { transform: scale(1.03); }
.news-feature-body { padding: 28px 32px 32px; }
.news-feature h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 14px 0 10px; }
.news-feature p { color: #d8e1f0; }
.news-feature .link-arrow { color: var(--gold-400); }
.news-feature .link-arrow:hover { color: #fff; }

.news-list { display: grid; gap: 18px; }
.news-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow .3s, transform .3s var(--ease);
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-item img { width: 150px; height: 110px; object-fit: cover; border-radius: 12px; }
.news-item h3 { font-size: 18px; margin: 8px 0 6px; }
.news-item p { font-size: 14px; color: var(--muted); margin: 0 0 6px; line-height: 1.5; }
.news-item a { font-size: 14px; font-weight: 600; }

/* ---------- 11. Eventos: bloques comunes ---------- */

.date-block {
    flex: 0 0 auto;
    width: 76px;
    text-align: center;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    line-height: 1.1;
}
.date-block .m { display: block; background: var(--navy-800); color: var(--gold-400); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; }
.date-block .d { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--ink); padding: 6px 0 2px; }
.date-block .y { display: block; font-size: 12px; color: var(--muted); padding-bottom: 7px; }

.event-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.event-meta li { display: inline-flex; align-items: center; gap: 7px; }
.event-meta i { color: var(--blue-600); width: 14px; text-align: center; }

/* Agenda (lista de próximos eventos) */
.agenda { display: grid; gap: 14px; }
.agenda-item {
    display: flex;
    gap: 22px;
    align-items: center;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
}
.agenda-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.agenda-body { flex: 1; min-width: 0; }
.agenda-body h3 { font-size: 20px; margin: 6px 0 8px; }
.agenda-body p { margin: 8px 0 0; font-size: 15px; }
.agenda-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* Categorías */
.cat-aniversario { background: var(--gold-100); color: #7a5700; }
.cat-festejo     { background: #fde8ef; color: #a02654; }
.cat-graduacion  { background: #e3f4e8; color: #1c6b37; }
.cat-feria       { background: #efe7fb; color: #5f3a99; }
.cat-academico   { background: var(--blue-50); color: var(--navy-700); }

/* ---------- 12. Página de eventos ---------- */

.event-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--navy-800);
    color: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 28px;
    position: relative;
    z-index: 2;
}
.event-featured-media { position: relative; min-height: 380px; }
.event-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-featured-media .chip { position: absolute; top: 20px; left: 20px; }
.event-featured-body { padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.event-featured-body h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); margin: 12px 0 16px; }
.event-featured-body p { color: #cfd9ec; }
.event-featured .event-meta { color: #cfd9ec; margin-bottom: 18px; }
.event-featured .event-meta i { color: var(--gold-400); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 26px; max-width: 380px; }
.countdown div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; text-align: center; padding: 10px 4px; }
.countdown strong { display: block; font-family: var(--font-display); font-size: 28px; color: var(--gold-400); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #b9c7df; }
.countdown-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-400); margin-bottom: 20px; }
.countdown-live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .25); }

.event-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chips button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    transition: all .2s;
}
.filter-chips button:hover { border-color: var(--navy-800); }
.filter-chips button.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.filter-chips button .count { font-size: 12px; background: var(--soft); color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.filter-chips button.is-active .count { background: rgba(255, 255, 255, .18); color: #fff; }

.event-search { position: relative; }
.event-search input {
    width: 260px;
    padding: 11px 16px 11px 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font: inherit;
    font-size: 14px;
    background: #fff;
}
.event-search input:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 4px rgba(11, 42, 91, .1); }
.event-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.events-block + .events-block { margin-top: 52px; }
.events-block-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 28px; }
.events-block-title h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.events-block-title span { color: var(--muted); font-size: 14px; }

/* Memoria institucional (eventos realizados por año) */
.year-group { display: grid; grid-template-columns: 120px 1fr; gap: 32px; position: relative; }
.year-group + .year-group { margin-top: 36px; }
.year-label { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.year-label strong { font-family: var(--font-display); font-size: 44px; font-weight: 600; color: var(--navy-800); line-height: 1; display: block; }
.year-label span { font-size: 13px; color: var(--muted); }
.year-label::after { content: ''; display: block; width: 36px; height: 3px; background: var(--gold-500); margin-top: 12px; }

.memory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.memory-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.memory-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.memory-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); border: 0; padding: 0; width: 100%; cursor: zoom-in; }
.memory-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.memory-card:hover .memory-media img { transform: scale(1.05); }
.memory-media .zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(7, 29, 66, .8);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.memory-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.memory-body h3 { font-size: 21px; margin: 12px 0 8px; }
.memory-body .event-meta { margin-bottom: 12px; }
.memory-body p { font-size: 15px; margin-bottom: 12px; flex: 1; }

.empty-state {
    text-align: center;
    padding: 44px 24px;
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--muted);
    background: #fff;
}
.empty-state i { font-size: 30px; color: var(--gold-500); margin-bottom: 12px; display: block; }
.empty-state p { margin: 0; }
.admission-promo {
    position: relative;
    overflow: hidden;
    padding: 34px 24px 38px;
    border: 0;
    border-radius: var(--radius-lg);
    color: #fff;
    background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 58%, #0876bd 100%);
    box-shadow: 0 16px 34px -18px rgba(8, 48, 99, .65);
}
.admission-promo::before, .admission-promo::after { position: absolute; content: ""; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; pointer-events: none; }
.admission-promo::before { width: 250px; height: 250px; top: -150px; right: -25px; }
.admission-promo::after { width: 180px; height: 180px; bottom: -125px; left: -50px; }
.admission-promo > * { position: relative; z-index: 1; }
.admission-promo .admission-promo-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 11px; padding: 7px 13px; border-radius: 999px; color: var(--navy-900); background: var(--gold-500); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.admission-promo .admission-promo-label i { display: inline; margin: 0; color: inherit; font-size: 14px; }
.admission-promo h3 { margin: 0 0 8px; color: #fff; font-family: var(--font-heading, inherit); font-size: clamp(25px, 3vw, 34px); }
.admission-promo p { margin: 0 0 22px; color: rgba(255, 255, 255, .88); font-size: 16px; }
.admission-promo .btn-gold { box-shadow: 0 8px 22px -8px rgba(245, 183, 0, .9); }

.social-feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.social-feed-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.social-feed-card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 18px; }
.social-feed-card h3 i { color: var(--navy-800); }
.social-feed-card > iframe { width: 100%; max-width: 500px; height: 620px; margin: 0 auto; border: 0; }
.tiktok-publication-list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.tiktok-publication-list a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); color: var(--ink); }
.tiktok-publication-list a:hover { border-color: var(--navy-800); color: var(--navy-800); }
.tiktok-publication-list a > i:first-child { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; background: var(--navy-800); color: #fff; }
.tiktok-publication-info { flex: 1; }
.tiktok-publication-info strong, .tiktok-publication-info small { display: block; }
.tiktok-publication-info small { margin-top: 2px; color: var(--muted); }
.tiktok-profile-link { width: 100%; justify-content: center; }
.tiktok-access-note { margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tiktok-open-label { color: var(--navy-800); font-size: 12px; font-weight: 700; white-space: nowrap; }

.is-hidden { display: none !important; }

/* ---------- 13. Páginas de carrera ---------- */

.career-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.career-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }

.toc {
    position: sticky;
    top: var(--header-h);
    z-index: 10;
    display: flex;
    gap: 6px;
    padding: 10px 0;
    margin-bottom: 36px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}
.toc a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.toc a:hover { color: var(--navy-800); background: var(--soft); }
.toc a.is-active { color: var(--navy-800); background: var(--blue-50); }

.career-section + .career-section { margin-top: 52px; }
.career-section h2 { font-size: clamp(26px, 3vw, 34px); }
.prose { font-size: 17px; }
.prose p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 64px; line-height: .9; padding: 6px 10px 0 0; color: var(--navy-800); font-weight: 600; }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow); margin-top: 32px; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.curriculum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.year-card { background: var(--soft); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--navy-800); }
.year-card:nth-child(2) { border-top-color: var(--blue-600); }
.year-card:nth-child(3) { border-top-color: var(--gold-500); }
.year-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.year-card-head h3 { font-size: 20px; margin: 0; }
.year-card-head span { font-size: 13px; color: var(--muted); }
.year-card ol { counter-reset: materia; display: grid; gap: 0; }
.year-card li { counter-increment: materia; list-style: none; display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.year-card li:last-child { border-bottom: 0; }
.year-card li::before { content: counter(materia, decimal-leading-zero); font-size: 12px; font-weight: 700; color: var(--blue-600); padding-top: 2px; }

.jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.job-card { display: flex; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.job-card i { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-100); color: #7a5700; }
.job-card strong { display: block; color: var(--ink); line-height: 1.35; }
.job-card span { font-size: 14px; color: var(--muted); display: block; margin-top: 4px; }

.aside-stack { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: #fff; }
.aside-card h3 { font-size: 20px; }
.aside-card--navy { background: var(--navy-800); color: #cfd9ec; border: 0; position: relative; overflow: hidden; }
.aside-card--navy::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 30px solid rgba(245, 183, 0, .12); right: -60px; top: -60px; }
.aside-card--navy h3 { color: #fff; }
.aside-card--navy .btn { width: 100%; margin-top: 8px; }
.aside-facts { display: grid; gap: 10px; margin: 16px 0; font-size: 14.5px; }
.aside-facts li { display: flex; gap: 10px; }
.aside-facts i { color: var(--gold-400); margin-top: 4px; width: 16px; }
.aside-links li a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 15px; }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links i { color: var(--blue-600); width: 20px; text-align: center; }
.aside-links a:hover { color: var(--blue-600); }

/* ---------- 14. Personal ---------- */

.people-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; }
.people-nav a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); }
.people-nav a:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.people-group + .people-group { margin-top: 52px; }
.people-group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.people-group-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.people-group-head span { color: var(--muted); font-size: 14px; white-space: nowrap; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.people-grid--lead { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.person { text-align: center; }
.person-photo { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, var(--blue-50), var(--soft)); margin-bottom: 14px; position: relative; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.person:hover .person-photo img { transform: scale(1.04); }
.person h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; margin: 0 0 4px; line-height: 1.35; }
.person p { font-size: 14px; color: var(--muted); margin: 0; }
.person .chip { margin-top: 6px; }

/* ---------- 15. Institución ---------- */

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pillar { padding: 36px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.pillar-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-400); font-size: 22px; margin-bottom: 20px; }
.pillar h3 { font-size: 26px; }
.pillar p { margin: 0; font-size: 16.5px; }
.pillar::after { content: attr(data-num); position: absolute; right: 24px; top: 10px; font-family: var(--font-display); font-size: 110px; font-weight: 700; color: var(--soft); line-height: 1; z-index: 0; pointer-events: none; }
.pillar > * { position: relative; z-index: 1; }

.timeline { position: relative; display: grid; gap: 28px; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold-500), var(--line)); }
.milestone { display: grid; grid-template-columns: 100px 1fr; gap: 40px; align-items: start; position: relative; }
.milestone-year { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--navy-800); text-align: right; line-height: 1.2; }
.milestone-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; position: relative; }
.milestone-body::before { content: ''; position: absolute; left: -29px; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 5px var(--gold-100); }
.milestone-body h3 { font-size: 19px; margin-bottom: 6px; }
.milestone-body p { margin: 0; font-size: 15px; }

.stats-band { background: var(--navy-800); padding: 56px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(245, 183, 0, .07); right: -120px; top: -160px; }

/* ---------- 16. Admisión ---------- */

.admission-launch { position: relative; z-index: 2; margin-top: -34px; padding-bottom: 8px; }
.admission-launch-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 30px 36px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-lg); color: #fff; background: linear-gradient(115deg, var(--navy-900), var(--navy-800) 68%, #0876bd); box-shadow: 0 18px 38px -20px rgba(5, 35, 75, .75); }
.admission-launch-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-400); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admission-launch-copy h2 { margin: 8px 0; color: #fff; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); }
.admission-launch-copy > p { max-width: 650px; margin: 0 0 16px; color: rgba(255, 255, 255, .84); }
.admission-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.admission-facts span { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 600; }
.admission-facts i { color: var(--gold-400); }
.admission-launch-actions { display: grid; justify-items: stretch; gap: 12px; min-width: 230px; }
.admission-launch-actions .btn { white-space: nowrap; }
.admission-coming-soon { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 999px; color: var(--navy-900); background: var(--gold-500); font-size: 15px; font-weight: 800; text-align: center; }
.admission-whatsapp-link { color: #fff; text-align: center; font-size: 14px; font-weight: 600; }
.admission-whatsapp-link i { margin-right: 5px; color: #55df8a; font-size: 17px; }
.admission-requirements .req-panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.admission-requirements .section-head .eyebrow { color: var(--navy-800); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: paso; }
.step { position: relative; padding: 32px 28px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); counter-increment: paso; }
.step::before { content: counter(paso, decimal-leading-zero); font-family: var(--font-display); font-size: 48px; font-weight: 600; color: var(--gold-500); line-height: 1; display: block; margin-bottom: 14px; }
.step h3 { font-size: 21px; }
.step p { margin: 0; font-size: 15.5px; }

.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--soft); border-radius: 999px; margin-bottom: 28px; }
.tabs button { border: 0; background: none; padding: 10px 22px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }

.req-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.req-list { display: grid; gap: 12px; counter-reset: req; }
.req-list li { counter-increment: req; display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.req-list li::before { content: counter(req); flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.req-list li a { font-weight: 600; }

.notice { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--gold-100); border: 1px solid #f3dd8d; color: #4d3b00; }
.notice > i { font-size: 22px; color: #b88700; margin-top: 3px; }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin: 0; }

.hours { display: grid; gap: 12px; margin-top: 20px; }
.hours li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.hours i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--navy-800); }
.hours strong { display: block; color: var(--ink); }
.hours span { font-size: 14px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: stretch; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); transition: box-shadow .3s, transform .3s var(--ease); }
a.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.contact-card i { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-400); font-size: 18px; }
.contact-card small { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-card span { color: var(--ink); font-weight: 600; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

.poster { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 48px; }

/* ---------- 17. Franja de llamado a la acción ---------- */

.cta-band {
    background:
        radial-gradient(circle at 90% 20%, rgba(245, 183, 0, .18), transparent 40%),
        linear-gradient(120deg, var(--navy-900), var(--navy-700));
    color: #cfd9ec;
    padding: 72px 0;
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 18. Footer ---------- */

.site-footer { background: var(--navy-900); color: #9fb0cc; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.footer-about p { margin: 20px 0; max-width: 340px; }
.footer-title { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: #9fb0cc; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-400); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: var(--gold-400); margin-top: 5px; width: 16px; text-align: center; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; padding-bottom: 22px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #9fb0cc; }
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- 19. Botones flotantes y lightbox ---------- */

.fab-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 800;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 30px;
    box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6);
    transition: transform .2s var(--ease);
}
.fab-whatsapp:hover { color: #fff; transform: scale(1.08); }

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 94px;
    z-index: 800;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--navy-800);
    color: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gold-500); color: var(--navy-900); }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 15, 35, .92);
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    align-items: center;
    padding: 30px 10px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; grid-column: 2; }
.lightbox img { max-height: 82vh; max-width: 100%; margin: 0 auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #dfe7f5; margin-top: 14px; font-size: 15px; }
.lightbox button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 18px; justify-self: center; }
.lightbox button:hover { background: var(--gold-500); color: var(--navy-900); }
.lightbox-close { position: absolute; top: 20px; right: 20px; }
.lightbox-prev { grid-column: 1; grid-row: 1; }
.lightbox-next { grid-column: 3; grid-row: 1; }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next { visibility: hidden; }

/* ---------- 20. Animación de aparición ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- 21. Responsive ---------- */

@media (max-width: 1100px) {
    .career-layout { grid-template-columns: 1fr; }
    .aside-stack { position: static; grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .home-hero-content { max-width: calc(100% - 150px); }
    .home-hero h1 { font-size: clamp(36px, 5vw, 48px); }
    .hero-badge { display: grid; top: 50%; right: 24px; bottom: auto; width: 116px; height: 116px; transform: translateY(-50%); }
    .hero-badge strong { font-size: 42px; }
    .hero-badge span { font-size: 10px; }
}

@media (max-width: 991px) {
    :root { --header-h: 74px; }
    .section { padding: 52px 0; }
    .quick-grid { grid-template-columns: 1fr 1fr; }
    .quick-item:nth-child(2) { border-right: 0; }
    .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .stats { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .split, .split--reverse { grid-template-columns: 1fr; gap: 56px; }
    .split--reverse > :first-child { order: 0; }
    .program-grid { grid-template-columns: 1fr 1fr; }
    .program-card, .program-grid > .program-card:nth-child(4), .program-grid > .program-card:nth-child(5) { grid-column: auto; }
    .news-layout { grid-template-columns: 1fr; }
    .social-feed-grid { grid-template-columns: 1fr; }
    .event-featured { grid-template-columns: 1fr; }
    .event-featured-media { min-height: 260px; }
    .event-featured-body { padding: 32px 28px; }
    .curriculum { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .req-panel, .contact-grid { grid-template-columns: 1fr; }
    .admission-launch-card { grid-template-columns: 1fr; gap: 22px; padding: 26px; }
    .admission-launch-actions { justify-items: start; min-width: 0; }
    .admission-launch-actions .btn { white-space: normal; }
    .admission-requirements .req-panel { padding: 20px; }
    .pillars { grid-template-columns: 1fr; }
    .year-group { grid-template-columns: 1fr; gap: 16px; }
    .year-label { position: static; display: flex; align-items: baseline; gap: 12px; }
    .year-label::after { display: none; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
    .topbar .hide-sm { display: none; }
    .brand img { width: 46px; height: 46px; }
    .brand-text strong { font-size: 16px; }
    .brand-text small { font-size: 11.5px; }
    .home-hero-content { padding: 54px 0 112px; }
    .home-hero-content { max-width: 100%; }
    .home-hero h1 { max-width: 500px; font-size: clamp(30px, 6.5vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; margin-bottom: 18px; }
    .home-hero h1 em { margin-top: 8px; font-size: .78em; }
    .home-hero-lead { max-width: 440px; font-size: 15px; line-height: 1.55; margin-bottom: 26px; }
    .hero-badge { display: none; }
    .quick-grid { grid-template-columns: 1fr; }
    .quick-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .quick-item:last-child { border-bottom: 0; }
    .program-grid { grid-template-columns: 1fr; }
    .news-item { grid-template-columns: 110px 1fr; }
    .news-item img { width: 110px; height: 90px; }
    .memory-grid { grid-template-columns: 1fr; }
    .agenda-item { flex-wrap: wrap; gap: 16px; }
    .agenda-actions { flex-direction: row; align-items: center; width: 100%; }
    .jobs-grid { grid-template-columns: 1fr; }
    .aside-stack { grid-template-columns: 1fr; }
    .event-toolbar { flex-direction: column; align-items: stretch; }
    .event-search input { width: 100%; }
    .timeline::before { left: 8px; }
    .milestone { grid-template-columns: 1fr; gap: 8px; padding-left: 36px; }
    .milestone-year { text-align: left; font-size: 24px; }
    .milestone-body::before { left: -35px; top: -30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .people-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .split-media::before { inset: 14px -10px -14px 14px; }
    .media-note { left: 12px; bottom: 12px; }
    .lightbox { grid-template-columns: 50px 1fr 50px; }
    .prose p:first-of-type::first-letter { font-size: 52px; }
    .cta-band-actions .btn { flex: 1; }
}

/* ---------- 22. Ajustes de capas ---------- */

.aside-card--navy > * { position: relative; z-index: 1; }
.stats-band .container { position: relative; z-index: 1; }
.people-group-head h2 a:hover { color: var(--blue-600) !important; }

/* Evita que el contenido ancho (índice, video) desborde las grillas en móvil */
.career-layout > *, .split > *, .news-layout > *, .req-panel > *, .contact-grid > *, .year-group > * { min-width: 0; }
