/* =========================================================
   ISTER · Sitio público
   ========================================================= */
:root {
  --g-950: #03200f;
  --g-900: #062f19;
  --g-800: #0a4525;
  --g-700: #0a5c32;
  --g-600: #0e7a40;
  --g-500: #13a04f;
  --g-100: #e3f4e8;
  --g-50: #f1f9f3;
  --lime: #e6ec1c;
  --lime-600: #c9cf00;
  --ink: #0f1a14;
  --text: #3d4a43;
  --muted: #56655d; /* 5.7:1 sobre --bg-soft (antes #6b7a72 = 4.2:1, no cumplía AA) */
  --line: #e2e8e4;
  --bg: #ffffff;
  --bg-soft: #f6f8f5;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(6, 47, 25, .18);
  --shadow-lg: 0 30px 60px -20px rgba(6, 47, 25, .30);
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--g-700); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Accesibilidad */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--g-900); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 12px; font-weight: 700; }
.skip-link:focus { top: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--g-600); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .section-dark :focus-visible, .cta :focus-visible, .site-footer :focus-visible,
.topbar :focus-visible, .skip-link:focus-visible { outline-color: var(--lime); }
main:focus { outline: none; }
.m-0 { margin: 0; }
.eyebrow-lime { color: var(--lime) !important; }
.center-actions { text-align: center; margin-top: 40px; }
.plain-list, .check-list, .stats-grid, .socials, .hero-badges { list-style: none; margin: 0; padding: 0; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--g-900); color: #cfe3d6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--g-600); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--lime-600); }
.section-dark .eyebrow { color: var(--lime); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--lime-600); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head-row .section-head { margin-bottom: 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px;
  border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer;
  transition: all .25s; font-family: inherit; line-height: 1.2; white-space: nowrap;
}
.btn-primary { background: var(--g-600); color: #fff; }
.btn-primary:hover { background: var(--g-700); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(14, 122, 64, .7); }
.btn-lime { background: var(--lime); color: var(--g-950); }
.btn-lime:hover { background: #f2f74a; color: var(--g-950); transform: translateY(-2px); }
.btn-outline { border-color: currentColor; color: var(--g-700); background: transparent; }
.btn-outline:hover { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--g-900); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.link-arrow { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* Anuncio + topbar */
.announce { background: var(--lime); color: var(--g-950); font-size: .88rem; font-weight: 600; }
.announce .container { display: flex; gap: 12px; align-items: center; justify-content: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; text-align: center; }
.announce a { color: var(--g-900); text-decoration: underline; text-underline-offset: 3px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--g-700); box-shadow: 0 0 0 0 rgba(10, 92, 50, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(10, 92, 50, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 92, 50, 0); } }
.topbar { background: var(--g-950); color: #b9cfc1; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar a, .topbar span { color: #b9cfc1; display: inline-flex; gap: 6px; align-items: center; }
.topbar a:hover { color: var(--lime); }
.topbar-info, .topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.brand strong { display: block; font-size: 1.35rem; letter-spacing: .02em; line-height: 1; color: var(--g-700); }
.brand small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a, .nav-item > a, .sub-toggle-text { display: flex; align-items: center; gap: 5px; padding: 10px 13px; min-height: 44px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .93rem; }
.nav-item { display: flex; align-items: center; }
.nav-item > a { padding-right: 4px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active, .nav-item > a:hover, .nav-item > a.active, .sub-toggle-text:hover { color: var(--g-700); background: var(--g-50); }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 28px; min-height: 44px; padding: 0 6px; border: 0; background: none; border-radius: 8px; color: var(--ink); cursor: pointer; font: inherit; }
.sub-toggle i { font-size: .7rem; transition: transform .2s; }
.sub-toggle:hover { color: var(--g-700); background: var(--g-50); }
.sub-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.sub-toggle-text { border: 0; background: none; cursor: pointer; font-family: inherit; }
.nav-cta { display: none; }
.main-nav .sub {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s;
}
.main-nav .sub::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.main-nav .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1061px) {
  .main-nav .has-sub:hover .sub { opacity: 1; visibility: visible; transform: none; }
  .main-nav .has-sub:hover .sub-toggle i { transform: rotate(180deg); }
}
.main-nav .sub a { display: flex; gap: 8px; align-items: center; padding: 10px 12px; min-height: 44px; border-radius: 8px; color: var(--text); font-size: .92rem; font-weight: 500; }
.main-nav .sub a:hover { background: var(--g-50); color: var(--g-700); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
/* Hero: banner a pantalla completa con velo de marca para garantizar contraste del texto */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--g-950); color: #e3efe7; min-height: clamp(580px, 86vh, 780px); display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
/* Una capa por diapositiva (Web > Slider principal); la activa aparece con un fundido */
.hero-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-layer.is-on { opacity: 1; }
.hero-layer picture { display: contents; }
/* Foto: ocupa todo el fondo */
.hero-layer--foto .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
/* Recorte (PNG/WebP con fondo transparente): figura completa a la derecha sobre el verde de marca */
.hero-layer--recorte { background: radial-gradient(640px 520px at 78% 62%, #12703d 0%, transparent 68%), radial-gradient(900px 520px at 12% 30%, #0b4626 0%, transparent 65%), var(--g-950); }
.hero-layer--recorte::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent 30%, #000); }
.hero-layer--recorte .hero-img { position: absolute; bottom: 0; right: max(20px, calc((100% - var(--container)) / 2 + 20px)); height: 94%; width: auto; max-width: 46%; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.hero[data-tipo="recorte"] .hero-overlay { background: linear-gradient(90deg, rgba(3, 32, 15, .55) 0%, rgba(3, 32, 15, 0) 55%); }
.hero-overlay { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 32, 15, .94) 0%, rgba(3, 32, 15, .82) 34%, rgba(3, 32, 15, .35) 62%, rgba(3, 32, 15, .10) 100%),
    linear-gradient(0deg, rgba(3, 32, 15, .55) 0%, rgba(3, 32, 15, 0) 35%); }
.hero .hero-inner { position: relative; width: 100%; padding-top: 72px; padding-bottom: 128px; }
.hero-slides { max-width: 620px; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: fadeUp .7s ease both; }
.hero .hero-title { color: #fff; margin-bottom: 20px; font-size: clamp(2.2rem, 5.2vw, 4rem); text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 540px; color: #e3efe7; margin-bottom: 32px; }
.hero .eyebrow { color: var(--lime); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost-light { border-color: rgba(255, 255, 255, .7); background: rgba(3, 32, 15, .25); backdrop-filter: blur(6px); }
.hero-controls { display: flex; align-items: center; gap: 6px; margin-top: 40px; }
.hero-pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(3, 32, 15, .35); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1.15rem; transition: background .2s; }
.hero-pause:hover { background: rgba(255, 255, 255, .18); }
.hero-dots { display: flex; }
.hero-dots button { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.hero-dots button span { width: 26px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.hero-dots button:hover span { background: #fff; }
.hero-dots button.active span { width: 40px; background: var(--lime); }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-badge { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); border-radius: 16px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: .88rem; font-weight: 700; }
.hero-badge i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(230, 236, 28, .14); color: var(--lime); font-size: 1.2rem; flex-shrink: 0; }
.hero-badge small { display: block; color: #c9ddd0; font-weight: 500; font-size: .8rem; }

/* Stats */
.stats { margin-top: -56px; position: relative; z-index: 5; }
.stats-grid { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); overflow: hidden; }
.stat { padding: 30px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; color: var(--g-700); line-height: 1; margin-bottom: 8px; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 500; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; padding: 0 40px 60px 0; }
.about-media .img-main { border-radius: var(--radius); width: 100%; height: auto; box-shadow: var(--shadow); }
.about-media .img-sub { position: absolute; right: 0; bottom: 0; width: 48%; height: auto; border-radius: var(--radius); border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.about-media .years { position: absolute; left: -16px; bottom: 30px; background: var(--g-700); color: #fff; padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-media .years strong { display: block; font-size: 2.4rem; line-height: 1; color: var(--lime); }
.about-media .years span { font-size: .85rem; }
.check-list { display: grid; gap: 18px; margin: 28px 0 32px; }
.check-item { display: flex; gap: 16px; }
.icon-box { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--g-100); color: var(--g-700); font-size: 1.35rem; }
.check-item h3, .check-item h4 { margin: 0 0 4px; font-size: 1.05rem; }
.check-item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
/* La imagen se muestra completa con su alto natural (afiches verticales de los programas) */
.card-media { position: relative; display: block; overflow: hidden; background: var(--g-100); }
.card-media img { display: block; width: 100%; height: auto; transition: transform .6s; }
/* Noticias: imágenes de proporciones variadas, completas dentro de un marco fijo con fondo difuminado */
.card-media--fit { aspect-ratio: 4/3; }
.card-media--fit::before { content: ''; position: absolute; inset: -24px; background: var(--img) center / cover no-repeat; filter: blur(18px) brightness(.8); }
.card-media--fit img { position: relative; height: 100%; object-fit: contain; }

.card-tag { position: absolute; top: 14px; left: 14px; background: var(--lime); color: var(--g-950); font-size: .72rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.card-tag--inline { position: static; font-size: .66rem; padding: 4px 10px; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--g-600); }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.card-meta span { display: inline-flex; gap: 6px; align-items: center; }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.feature-card { background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); transition: .3s; height: 100%; }
.feature-card:hover { border-color: var(--g-500); box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-card .icon-box { margin-bottom: 20px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.section-dark .feature-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
.section-dark .feature-card p { color: #a9c3b3; }
.section-dark .feature-card .icon-box { background: rgba(230, 236, 28, .12); color: var(--lime); }
.section-dark .feature-card:hover { border-color: var(--lime); background: rgba(255, 255, 255, .07); }

/* Why split */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.why-grid .sticky { position: sticky; top: 120px; }

/* Graduates */
.grad-card { text-align: center; }
.grad-photo { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; width: 78%; border: 6px solid #fff; box-shadow: var(--shadow); background: var(--g-100); }
/* Retratos cuadrados ya encuadrados; para fotos nuevas sin procesar, prioriza la parte alta (la cara) */
.grad-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.grad-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.grad-card .role { color: var(--g-600); font-weight: 700; font-size: .88rem; }
.grad-card .career { color: var(--muted); font-size: .85rem; display: block; }
.grad-card blockquote { margin: 12px 0 0; font-style: italic; color: var(--text); font-size: .92rem; }

/* CTA */
.cta { position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(120deg, var(--g-700), var(--g-900)); color: #d6e8dc; padding: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.cta::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, rgba(230, 236, 28, .35), transparent 70%); }
.cta h2 { color: #fff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }

/* Page hero */
.page-hero { background: linear-gradient(135deg, var(--g-950), var(--g-800)); color: #c3dacb; padding: 70px 0 64px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000); }
.page-hero.has-img { background-size: cover; background-position: center; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 10px; max-width: 900px; }
.page-hero p { font-size: 1.1rem; max-width: 720px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .86rem; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--lime); }
.breadcrumb span { opacity: .6; }

/* Content (prose) */
.prose { font-size: 1.05rem; color: var(--text); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h3:first-child, .prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--g-600); }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; height: auto; }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--lime-600); background: var(--g-50); border-radius: 0 12px 12px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.layout-side { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.layout-side > *, .about-grid > *, .why-grid > *, .contact-grid > *, .cta > * { min-width: 0; }
.page-hero h1, .prose { overflow-wrap: anywhere; }
.side-box { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); position: sticky; top: 110px; }
.side-box h3 { font-size: 1.1rem; }
.info-list { list-style: none; margin: 0 0 22px; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.info-list li:last-child { border: 0; }
.info-list i { color: var(--g-600); font-size: 1.1rem; }
.info-list small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.info-list strong { color: var(--ink); font-weight: 600; }
.cover-img { display: block; width: auto; max-width: 100%; height: auto; max-height: 85vh; margin: 0 auto 32px; border-radius: var(--radius); }

/* Curriculum accordion */
.accordion { display: grid; gap: 12px; margin-top: 18px; }
.acc-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.acc-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; list-style: none; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: '\F282'; font-family: 'bootstrap-icons'; transition: transform .25s; color: var(--g-600); }
.acc-item[open] summary::after { transform: rotate(180deg); }
.acc-item[open] summary { background: var(--g-50); }
.acc-item .acc-body { padding: 6px 22px 20px; }
.acc-item ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.acc-item li { display: flex; gap: 8px; font-size: .94rem; }
.acc-item li::before { content: '\F26A'; font-family: 'bootstrap-icons'; color: var(--g-500); }
.sem-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--g-700); color: var(--lime); font-size: .85rem; margin-right: 12px; }

/* Mission */
.mv-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: flex; align-items: flex-end; color: #fff; }
.mv-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 32, 15, .15), rgba(3, 32, 15, .92)); z-index: 1; }
.mv-card .inner { position: relative; z-index: 2; padding: 36px; }
.mv-card h3 { color: var(--lime); font-size: 1.6rem; display: flex; gap: 10px; align-items: center; }
.mv-card p { margin: 0; color: #e0ede5; }

/* Documents */
.doc-group { margin-bottom: 50px; }
.doc-list { display: grid; gap: 12px; }
.doc-item { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: .2s; }
.doc-item:hover { border-color: var(--g-500); box-shadow: var(--shadow); }
.doc-item .icon-box { width: 46px; height: 46px; background: #fdecec; color: #c62828; }
.doc-item h4 { margin: 0; font-size: 1rem; }
.doc-item p { margin: 2px 0 0; color: var(--muted); font-size: .87rem; }
.doc-item .btn { margin-left: auto; }
.doc-item .soon { margin-left: auto; font-size: .8rem; color: var(--muted); background: var(--bg-soft); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* News detail */
.post-meta { display: flex; gap: 18px; flex-wrap: wrap; color: #c3dacb; font-size: .92rem; margin-top: 14px; }
.post-meta span { display: inline-flex; gap: 6px; align-items: center; }
.side-news { display: grid; gap: 16px; }
.side-news a { display: flex; gap: 12px; color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.35; }
.side-news img { width: 76px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.side-news small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; }
.share { display: flex; gap: 10px; align-items: center; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--g-700); }
.share a:hover { background: var(--g-600); color: #fff; }

/* Filter chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .9rem; background: #fff; }
.chip:hover, .chip.active { background: var(--g-700); color: #fff; border-color: var(--g-700); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; color: var(--text); padding: 0 12px; }
.pagination .current { background: var(--g-700); color: #fff; border-color: var(--g-700); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.contact-card h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); font-size: .95rem; }
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; font-size: .95rem; background: var(--bg-soft); transition: .2s; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--g-500); background: #fff; box-shadow: 0 0 0 4px rgba(19, 160, 79, .12); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.alert-success { background: var(--g-100); color: var(--g-800); }
.alert-error { background: #fdecec; color: #a11d1d; }
.map { border-radius: var(--radius); overflow: hidden; margin-top: 60px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 400px; border: 0; display: block; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty i { font-size: 2.6rem; color: var(--g-500); display: block; margin-bottom: 12px; }

/* Footer */
.site-footer { background: var(--g-950); color: #9db6a6; padding-top: 80px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { max-width: 260px; margin-bottom: 18px; }
.site-footer h4, .site-footer .footer-title { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #9db6a6; }
.site-footer a:hover { color: var(--lime); }
.contact-list li { display: flex; gap: 10px; }
.contact-list i { color: var(--lime); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; }
.socials a:hover { background: var(--lime); color: var(--g-950); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); z-index: 60; transition: transform .2s; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.to-top { position: fixed; right: 29px; bottom: 92px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--g-700); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transition: .3s; z-index: 60; }
.to-top.show { opacity: 1; visibility: visible; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* Solo se oculta si hay JavaScript: sin JS el contenido siempre es visible */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; } }

/* Responsive */
@media (max-width: 1180px) {
  .main-nav > ul > li > a { padding: 10px 9px; font-size: .9rem; }
  .hide-md { display: none !important; }
}
@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  /* Panel lateral: oculto también para teclado/lector (visibility) cuando está cerrado */
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; padding: 90px 20px 30px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; overflow-y: auto; overscroll-behavior: contain; z-index: 70; margin: 0; }
  .nav-open .main-nav { transform: none; visibility: visible; transition: transform .35s ease, visibility 0s; }
  .nav-open { overflow: hidden; }
  .nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(3, 32, 15, .55); z-index: 65; }
  .nav-toggle { position: relative; z-index: 80; }
  .main-nav > ul { flex-direction: column; gap: 4px; }
  .main-nav > ul > li > a, .nav-item > a, .sub-toggle-text { padding: 12px 14px; font-size: 1.02rem; }
  .nav-item { justify-content: space-between; }
  .nav-item > a { flex: 1; }
  .sub-toggle { min-width: 44px; }
  .sub-toggle-text { width: 100%; justify-content: space-between; }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--g-100); border-radius: 0; margin: 0 0 6px 14px; padding: 0 0 0 8px; display: none; min-width: 0; }
  .main-nav .sub::before { display: none; }
  .main-nav .has-sub.open .sub { display: block; }
  .nav-cta { display: block; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav-cta .btn { width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-grid, .why-grid, .layout-side, .contact-grid, .cta { grid-template-columns: 1fr; }
  /* Hero móvil: la imagen completa arriba y el texto debajo, sobre el verde de marca */
  .hero { min-height: 0; align-items: flex-end; }
  .hero-layer--foto { background: var(--g-950); }
  .hero-layer--foto .hero-img { height: auto; max-height: 300px; object-fit: contain; object-position: top center; }
  .hero-layer--recorte .hero-img { top: 14px; bottom: auto; right: 50%; transform: translateX(50%); height: 300px; max-width: 86%; object-position: top center; }
  .hero .hero-overlay, .hero[data-tipo="recorte"] .hero-overlay { background: linear-gradient(180deg, rgba(3, 32, 15, 0) 0, rgba(3, 32, 15, 0) 190px, rgba(3, 32, 15, .85) 290px, var(--g-950) 100%); }
  .hero .hero-inner { padding-top: 290px; padding-bottom: 72px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .why-grid .sticky, .side-box { position: static; }
  .cta-actions { justify-content: flex-start; }
  .about-media { padding: 0 24px 40px 0; }
  .about-media .years { left: 0; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .form-row, .acc-item ul { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
  .topbar-info { display: none; }
  .hide-sm { display: none !important; }
  .brand img { height: 46px; }
  .brand strong { font-size: 1.15rem; }
  .hero .hero-inner { padding-top: 270px; }
  .hero-layer--recorte .hero-img { height: 270px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-badge { font-size: .8rem; padding: 10px 12px; flex: 1 1 100%; }
  .hero-badge i { width: 32px; height: 32px; }
  .doc-item { flex-wrap: wrap; }
  .doc-item .btn, .doc-item .soon { margin-left: 64px; }
  .container { padding: 0 16px; }
}

