/* ==========================================================================
   Experiencia ICP LATAM — estilos
   CSS nativo, sin compilación. Valores fluidos (clamp) tomados del prototipo
   aprobado. Índice:
   01 Fuentes · 02 Tokens · 03 Base · 04 Utilidades · 05 Reveal
   06 Botones y piezas comunes · 07 Header · 08 Menú off-canvas · 09 Hero
   10 Certificaciones · 11 Experiencia · 12 Números · 13 Instalaciones
   14 Lightbox · 15 Testimonios · 16 Instituciones · 17 CTA final
   18 Contacto y mapa · 19 Footer · 20 Burbujas flotantes · 21 Movimiento reducido
   ========================================================================== */

/* 01 Fuentes (WOFF2 local, licencia OFL en assets/fonts) ------------------ */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
}
/* Fallbacks ajustados para limitar el salto al cargar las fuentes */
@font-face {
  font-family: "Barlow Condensed Fallback";
  src: local("Arial Narrow"), local("ArialNarrow-Bold"), local("Arial");
  size-adjust: 84%;
  ascent-override: 118%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 102%;
  descent-override: 29%;
}

/* 02 Tokens ---------------------------------------------------------------- */
:root {
  --c-orange: #F0823C;
  /* Naranja para texto sobre fondos claros (el de marca no llega al contraste mínimo) */
  --c-orange-ink: #B0501A;
  --c-black: #000000;
  --c-white: #FFFFFF;
  --c-ink: #08090A;
  --c-bone: #F3F0EA;
  --c-graphite: #121416;
  --c-graphite-card: #1A1D20;
  --c-map: #0E1012;
  --c-sand: #D5D2CC;

  /* Opacidades sobre oscuro (hueso) */
  --bone-78: rgba(243, 240, 234, .78);
  --bone-74: rgba(243, 240, 234, .74);
  --bone-70: rgba(243, 240, 234, .7);
  --bone-66: rgba(243, 240, 234, .66);
  --bone-62: rgba(243, 240, 234, .62);
  --bone-55: rgba(243, 240, 234, .64);
  --bone-50: rgba(243, 240, 234, .62);
  --bone-45: rgba(243, 240, 234, .6);
  --bone-38: rgba(243, 240, 234, .58);
  --bone-32: rgba(243, 240, 234, .56);
  --bone-line: rgba(243, 240, 234, .16);
  --bone-line-soft: rgba(243, 240, 234, .14);

  /* Opacidades sobre claro (tinta) */
  --ink-78: rgba(8, 9, 10, .78);
  --ink-72: rgba(8, 9, 10, .72);
  --ink-70: rgba(8, 9, 10, .7);
  --ink-60: rgba(8, 9, 10, .6);
  --ink-55: rgba(8, 9, 10, .66);
  --ink-45: rgba(8, 9, 10, .64);
  --ink-42: rgba(8, 9, 10, .42);
  --ink-34: rgba(8, 9, 10, .34);
  --ink-line: rgba(8, 9, 10, .14);

  --f-display: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", sans-serif;
  --f-body: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1560px;
  --pad-x: clamp(18px, 4vw, 64px);
  --sec-y: clamp(72px, 11vw, 150px);
  --header-h: clamp(76px, 7.4vw, 92px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, .5);
}

/* 03 Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  background: var(--c-black);
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
a { color: var(--c-orange); text-decoration: none; }
a:hover { color: var(--c-white); }
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
p, h3, blockquote { text-wrap: pretty; }
::selection { background: var(--c-orange); color: var(--c-black); }
:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; }
[id] { scroll-margin-top: var(--header-h); }
section[id] { scroll-margin-top: 0; }
[tabindex="-1"]:focus { outline: none; }

/* 04 Utilidades ------------------------------------------------------------ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.visually-hidden {
  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: fixed; left: 12px; top: 12px; z-index: 500;
  background: var(--c-orange); color: var(--c-black);
  padding: 14px 20px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  transform: translateY(-150%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; color: var(--c-black); }
.accent { color: var(--c-orange); }

/* 05 Reveal (solo con JS; sin JS el contenido se ve siempre) --------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .9s var(--ease) var(--rd, 0s),
    transform 1s var(--ease) var(--rd, 0s),
    var(--t-extra, visibility 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

.lines { display: block; }
.line {
  display: block;
  overflow: hidden;
  padding-block: .1em;
  margin-block: -.1em;
}
.line__inner { display: block; }
.js [data-lines] .line__inner {
  transform: translateY(120%);
  transition: transform 1.05s var(--ease) calc(var(--i, 0) * 90ms);
}
.js [data-lines].is-revealed .line__inner { transform: none; }

/* Failsafe: si main.js no corre, el script inline del head revela todo */
.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; }
.reveal-all [data-lines] .line__inner { transform: none !important; }

/* 06 Botones y piezas comunes --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 18px 26px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .5s var(--ease);
}
.btn__arrow { font-size: 15px; line-height: 1; }
.btn--primary { background: var(--c-orange); color: var(--c-black); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--c-white); color: var(--c-black); }
.btn--ghost {
  gap: 12px;
  font-weight: 700;
  border: 1px solid rgba(243, 240, 234, .34);
  color: var(--c-bone);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--c-orange);
  background: rgba(240, 130, 60, .12);
  color: var(--c-bone);
}
.btn--lg { padding: 20px 28px; }
.btn--sm { padding: 16px 24px; }
.btn--block {
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 400px;
  padding: 20px 24px;
}
.btn--block .btn__arrow { font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Kicker: número de sección + guion + etiqueta */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.kicker__num { color: var(--c-orange); }
.kicker__dash { display: block; width: 26px; height: 1px; background: rgba(243, 240, 234, .3); }
.kicker__label { color: var(--bone-66); }
.on-light .kicker__dash { background: rgba(8, 9, 10, .28); }
.on-light .kicker__label { color: var(--ink-60); }

/* Titulares display */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c-white);
}
.on-light .display { color: var(--c-ink); }
.display--h1 { font-size: clamp(52px, 9.4vw, 158px); line-height: .86; letter-spacing: -.015em; }
.display--xl { font-size: clamp(40px, 6.4vw, 104px); line-height: .88; letter-spacing: -.01em; }
.display--lg { font-size: clamp(34px, 5.2vw, 84px); line-height: .9; letter-spacing: -.01em; }
.display--md { font-size: clamp(30px, 4vw, 60px); line-height: .92; }

/* Cabecera de sección (kicker + H2 + párrafo) */
.sec-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 4vw, 70px);
  align-items: end;
  padding-bottom: clamp(30px, 4vw, 54px);
}
.sec-head--rule { border-bottom: 1px solid var(--bone-line); }
.on-light .sec-head--rule { border-bottom-color: var(--ink-line); }
.sec-head__text {
  max-width: 460px;
  justify-self: end;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.75;
  color: var(--bone-74);
}
.on-light .sec-head__text { color: var(--ink-70); line-height: 1.8; }
/* Bajada más larga (ej. instalaciones): más ancho para no quedar angosta y muy alta */
.sec-head__text--wide { max-width: 620px; }

.section { padding: var(--sec-y) 0; }
.on-light { background: var(--c-bone); color: var(--c-ink); }
.on-light .kicker__num, .on-light .accent, .on-light .inst-group__label, .on-light .quote__num, .on-light a:not([class]) { color: var(--c-orange-ink); }
.on-light .video-thumb .quote__num { color: var(--c-orange); }
/* Enlaces de texto sobre fondo claro: el hover global (blanco) se perdería.
   Se resaltan con fondo naranja y texto negro. */
.on-light a:not([class]) { transition: background .25s ease, color .25s ease; }
.on-light a:not([class]):hover,
.on-light a:not([class]):focus-visible { color: var(--c-ink); background: var(--c-orange); box-shadow: 0 0 0 2px var(--c-orange); }

.label-sm {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-45);
}

/* Avatares de docentes (única excepción al radio 0) */
.avatars { display: flex; flex: 0 0 auto; }
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(243, 240, 234, .3);
  background: var(--c-graphite);
}
.avatar + .avatar { margin-left: -14px; }
.avatar--sm { width: 46px; height: 46px; }
.avatar--sm + .avatar--sm { margin-left: -13px; }

/* Iconos de redes */
.social { display: flex; gap: 10px; }
.social__link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 240, 234, .22);
  color: var(--c-bone);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.social__link:hover, .social__link:focus-visible {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-black);
}
.social__link svg { width: 18px; height: 18px; }
.social--sm { gap: 8px; }
.social--sm .social__link { width: 44px; height: 44px; border-color: rgba(243, 240, 234, .2); }
.social--sm .social__link svg { width: 16px; height: 16px; }

/* 07 Header ---------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 400;
  background: rgba(243, 240, 234, .08);
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 2px; left: 0; right: 0;
  z-index: 300;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}
.site-header.is-solid {
  background: rgba(0, 0, 0, .9);
  border-bottom-color: var(--bone-line-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__inner,
.menu__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { height: clamp(37px, 4.4vw, 51px); width: auto; }
.site-header__actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-width: 0; }

.header-tel {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  color: var(--c-bone);
  white-space: nowrap;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: .06em;
  transition: color .3s ease;
}
.header-tel::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--c-orange);
}
.header-tel:hover, .header-tel:focus-visible { color: var(--c-orange); }

.burger,
.menu-close,
.menu-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--bone-line-soft);
  color: var(--c-bone);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: border-color .3s ease, background .3s ease;
}
.burger { background: rgba(243, 240, 234, .06); }
.burger__icon { display: grid; gap: 4px; width: 24px; }
.burger__bar {
  display: block;
  justify-self: start;
  width: 24px;
  height: 3px;
  background: var(--c-bone);
  transition: width .4s var(--ease);
}
.burger__bar:nth-child(2) { width: 14px; background: var(--c-orange); }
/* El icono se reconfigura (intercambia anchos), no rota */
.burger:hover .burger__bar:nth-child(1),
.burger:focus-visible .burger__bar:nth-child(1) { width: 14px; }
.burger:hover .burger__bar:nth-child(2),
.burger:focus-visible .burger__bar:nth-child(2) { width: 24px; }

/* Sin JS: el botón se reemplaza por un enlace a la navegación del footer */
.menu-fallback { display: none; }
html:not(.js) .burger { display: none; }
html:not(.js) .menu-fallback { display: flex; }
.menu-fallback:hover { color: var(--c-bone); border-color: var(--c-orange); }

@media (max-width: 400px) {
  .header-tel { display: none; }
}

/* 08 Menú off-canvas ------------------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 350;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 780ms;
}
.menu.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }

.menu__curtain { position: absolute; inset: 0; display: flex; }
.menu__col {
  flex: 1;
  background: var(--c-black);
  transform: scaleY(0);
  transform-origin: bottom;
  /* Al cerrar, el stagger se invierte (derecha a izquierda) */
  transition: transform .7s var(--ease) calc((5 - var(--i)) * 65ms);
}
.menu.is-open .menu__col {
  transform: scaleY(1);
  transform-origin: top;
  transition-delay: calc(var(--i) * 65ms);
}

.menu__inner {
  position: relative;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .85s var(--ease);
}
.menu.is-open .menu__inner {
  opacity: 1;
  transform: none;
  transition-delay: 340ms, 340ms;
}
.menu__logo { height: clamp(34px, 4vw, 46px); width: auto; }
.menu-close { background: transparent; }
.menu-close:hover, .menu-close:focus-visible { border-color: var(--c-orange); }
.menu-close__icon { position: relative; display: block; width: 20px; height: 20px; }
.menu-close__icon::before,
.menu-close__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 3px;
  margin: -1.5px 0 0 -12px;
  background: var(--c-orange);
  transform: rotate(45deg);
}
.menu-close__icon::after { transform: rotate(-45deg); }

.menu__body {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--pad-x) 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.menu-nav { display: flex; flex-direction: column; border-top: 1px solid var(--bone-line-soft); }
.menu-nav__link {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(12px, 1.6vw, 20px) 0;
  border-bottom: 1px solid var(--bone-line-soft);
  color: var(--c-bone);
  transition: padding-left .45s var(--ease), color .3s ease;
}
.menu-nav__link:hover,
.menu-nav__link:focus-visible { padding-left: 22px; color: var(--c-orange); }
.menu-nav__idx { flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--c-orange); }
.menu-nav__label {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(38px, 5.2vw, 74px);
  line-height: .92;
  letter-spacing: -.01em;
}

.menu__aside { display: flex; flex-direction: column; gap: 28px; }
.menu__photo { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--c-graphite); }
.menu__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.5) brightness(.72) contrast(1.06);
}
.menu__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .78));
}
.menu__photo-caption { position: absolute; left: 0; bottom: 0; z-index: 1; padding: 18px 20px; }
.menu__photo-caption::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--c-orange);
  margin-bottom: 12px;
}
.menu__photo-title {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--c-bone);
}
.menu__photo-sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-70); margin-top: 6px; }
.menu__contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 22px; }
.menu__label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-orange); margin-bottom: 10px; }
.menu__tel { display: block; color: var(--c-bone); font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.menu__mail { display: block; color: var(--bone-74); font-size: 14px; margin-top: 8px; overflow-wrap: anywhere; }
.menu__tel:hover, .menu__mail:hover, .menu__tel:focus-visible, .menu__mail:focus-visible { color: var(--c-orange); }

/* 09 Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--c-black);
}
.hero__bg, .cta-final__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__img, .cta-final__img {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.14);
  will-change: transform;
}
.hero__img { filter: grayscale(.22) contrast(1.04) brightness(.92); object-position: 70% 50%; transform-origin: 90% 45%; }
@media (max-width: 767px) { .hero__img { object-position: 40% 50%; transform-origin: 40% 45%; } }
.hero__veil, .hero__veil-v, .hero__grid { position: absolute; inset: 0; }
.hero__veil { background: linear-gradient(95deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .78) 34%, rgba(0, 0, 0, .3) 68%, rgba(0, 0, 0, .52) 100%); }
.hero__veil-v { background: linear-gradient(180deg, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .1) 26%, rgba(0, 0, 0, .12) 62%, rgba(0, 0, 0, .82) 100%); }
.hero__grid { background: repeating-linear-gradient(90deg, rgba(243, 240, 234, .055) 0 1px, transparent 1px calc(100% / 6)); }

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(120px, 16vh, 190px) var(--pad-x) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.hero__main { max-width: 820px; }
/* Tablet: el bloque de texto sube hacia el centro en lugar de quedar pegado abajo */
@media (min-width: 640px) and (max-width: 1199px) {
  .hero__content { flex: 1; align-content: center; padding-top: clamp(110px, 14vh, 150px); }
}
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(20px, 3vw, 34px); }
.eyebrow__mark { display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; flex: 0 0 auto; }
.eyebrow__mark span { display: block; width: 5px; height: 5px; background: var(--c-orange); }
.eyebrow__mark span:last-child { background: rgba(240, 130, 60, .35); }
.eyebrow__text {
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-white);
}
.hero__lead {
  margin-top: clamp(18px, 2.6vw, 30px);
  max-width: 660px;
  font-size: clamp(18px, 2.1vw, 27px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--c-white);
}
.hero__text {
  margin-top: clamp(16px, 2vw, 22px);
  max-width: 560px;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.75;
  color: var(--bone-78);
}
.hero__ctas { margin-top: clamp(26px, 3.4vw, 40px); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  margin-top: clamp(24px, 3vw, 34px);
  font-size: clamp(10px, 1.05vw, 12px);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-62);
}
.hero__meta li + li { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.hero__meta li + li::before { content: ""; display: block; width: 1px; height: 14px; background: rgba(243, 240, 234, .24); }

.hero__agenda { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: clamp(20px, 3vw, 40px); }
.agenda-box { border-left: 1px solid rgba(243, 240, 234, .2); padding-left: clamp(16px, 2vw, 26px); max-width: 280px; }
.agenda-box__label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-orange); margin-bottom: 14px; }
.agenda-box__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(46px, 6vw, 78px); line-height: .85; color: var(--c-white); }
.agenda-box__text { font-size: 13px; line-height: 1.6; color: var(--bone-70); margin-top: 10px; }

.hero__dates { position: relative; border-top: 1px solid var(--bone-line); }
.dates-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.dates-strip li {
  padding: 16px 0 16px clamp(10px, 1.4vw, 20px);
  border-right: 1px solid rgba(243, 240, 234, .12);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 22px);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dates-strip li:first-child {
  padding-left: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--bone-45);
  display: flex;
  align-items: center;
}
.dates-strip li:last-child { border-right: 0; }
.dates-strip a { color: var(--c-bone); transition: color .3s ease; }
.dates-strip a:hover, .dates-strip a:focus-visible { color: var(--c-orange); }

/* 10 Certificaciones ------------------------------------------------------- */
.certs { background: var(--c-black); padding: var(--sec-y) 0 clamp(60px, 9vw, 120px); }

.cert-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 3.4vw, 56px);
  padding: clamp(30px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--bone-line);
}
.cert-featured__media {
  position: relative;
  overflow: hidden;
  background: var(--c-graphite);
  min-height: clamp(260px, 34vw, 460px);
}
.cert-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.55) contrast(1.05) brightness(.66);
  transition: transform 1.2s var(--ease), filter .8s ease;
}
.cert-featured:hover .cert-featured__img,
.cert-featured:focus-within .cert-featured__img {
  transform: scale(1.06);
  filter: grayscale(.2) contrast(1.05) brightness(.78);
}
.cert-featured__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .72));
}
.badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--c-orange);
  color: var(--c-black);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cert-featured__foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.cert-featured__place { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.cert-featured__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 5vw, 72px); line-height: .8; color: rgba(255, 255, 255, .5); }

.cert-featured__body { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(20px, 2.6vw, 32px); }
.cert-featured__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 20px; }
.cert-date {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 5.6vw, 86px);
  line-height: .85;
  letter-spacing: -.01em;
  color: var(--c-white);
}
.cert-date__year { color: var(--bone-32); }
.chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-orange);
  border: 1px solid rgba(240, 130, 60, .5);
  padding: 7px 11px;
}
.cert-featured__rule { height: 4px; background: var(--c-orange); width: clamp(80px, 12vw, 180px); margin: clamp(18px, 2.4vw, 28px) 0; }
.cert-featured__title {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--c-white);
  max-width: 640px;
}
.cert-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  border-top: 1px solid var(--bone-line);
  border-bottom: 1px solid var(--bone-line);
  padding: clamp(16px, 2vw, 22px) 0;
}
.cert-meta dt { margin-bottom: 7px; }
.cert-meta dd { font-size: 15px; font-weight: 600; color: var(--c-bone); }
.cert-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 22px;
  align-items: center;
}
.cert-people .label-sm { margin-bottom: 12px; }
.cert-people__row { display: flex; align-items: center; gap: 14px; }
.cert-people__names { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--c-bone); }
.cert-people__backing { font-size: 13px; line-height: 1.6; color: var(--bone-74); }
.cert-people__backing strong { color: var(--c-bone); font-weight: 600; }

/* Franjas 02–04 */
.cert-row {
  --row-pad: clamp(12px, 1.6vw, 22px);
  --t-extra: background .5s ease;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(22px, 3vw, 38px) var(--row-pad);
  margin: 0 calc(var(--row-pad) * -1);
  background: transparent;
  transition: background .5s ease;
}
.cert-row::before,
.cert-row::after {
  content: "";
  position: absolute;
  left: var(--row-pad);
  right: var(--row-pad);
  bottom: 0;
  pointer-events: none;
}
.cert-row::before { height: 1px; background: var(--bone-line); }
.cert-row:last-of-type::before { display: none; }
.cert-row::after {
  height: 2px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.cert-row__idx { flex: 0 0 auto; width: 34px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--bone-32); }
.cert-row__when { flex: 0 0 auto; min-width: 180px; }
.cert-row__date {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: .88;
  color: var(--c-white);
}
.cert-row__dur { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-45); margin-top: 8px; }
.cert-row__thumb {
  flex: 0 0 auto;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width .7s var(--ease), opacity .5s ease;
}
.cert-row__thumb img {
  width: clamp(120px, 14vw, 190px);
  height: clamp(84px, 9vw, 120px);
  max-width: none;
  object-fit: cover;
  filter: grayscale(.5) brightness(.8);
}
.cert-row__title { flex: 1 1 240px; min-width: min(240px, 100%); }
.cert-row__title h3 { font-size: clamp(17px, 1.8vw, 24px); font-weight: 600; line-height: 1.3; color: var(--c-white); }
.cert-row__tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-orange); margin-top: 10px; }
.cert-row__people { flex: 0 1 auto; display: flex; align-items: center; gap: 12px; }
.cert-row__people > div { max-width: 210px; }
.cert-row__teacher { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--c-bone); }
.cert-row__backing { font-size: 12px; color: var(--bone-55); line-height: 1.5; margin-top: 3px; }
.cert-row__cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: var(--bone-70);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cert-row__cta:hover { color: var(--bone-70); }
/* Enlace extendido: toda la franja es clicable sin anidar enlaces */
.cert-row__cta::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.cert-row__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 240, 234, .26);
  font-size: 16px;
  color: var(--c-bone);
  transition: transform .5s var(--ease), color .35s ease, border-color .35s ease;
}
.cert-row:focus-within { background: rgba(243, 240, 234, .045); }
.cert-row:focus-within::after { transform: scaleX(1); }
.cert-row__cta:focus-visible { outline: none; }
.cert-row:has(.cert-row__cta:focus-visible) { outline: 2px solid var(--c-orange); outline-offset: -2px; }
.cert-row:focus-within .cert-row__arrow { transform: translateX(8px); color: var(--c-orange); border-color: rgba(240, 130, 60, .7); }
@media (hover: hover) {
  .cert-row:hover { background: rgba(243, 240, 234, .045); }
  .cert-row:hover::after { transform: scaleX(1); }
  .cert-row:hover .cert-row__thumb { width: clamp(120px, 14vw, 190px); opacity: 1; }
  .cert-row:hover .cert-row__arrow { transform: translateX(8px); color: var(--c-orange); border-color: rgba(240, 130, 60, .7); }
  .cert-row:focus-within .cert-row__thumb { width: clamp(120px, 14vw, 190px); opacity: 1; }
}
/* Mobile/tablet: talleres apilados → fondos intercalados (negro / gris oscuro)
   de borde a borde, para que se note dónde termina uno y empieza el otro.
   01 (destacado) y 03 quedan en negro; 02 y 04 en gris. */
@media (max-width: 899.98px) {
  .cert-row { --row-pad: var(--pad-x); }
  .cert-row:nth-of-type(even) { background: var(--c-graphite-card); }
  .cert-row:nth-of-type(even)::before, .cert-row:has(+ .cert-row:nth-of-type(even))::before { display: none; }
}

.certs__foot {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.certs__note { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-45); }
.certs__foot .btn--ghost { border-color: rgba(243, 240, 234, .28); }

/* 11 Experiencia ----------------------------------------------------------- */
.exp__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.exp__grid .kicker { margin-bottom: 20px; }
.exp__title { font-size: clamp(34px, 5vw, 80px); line-height: .92; letter-spacing: -.01em; }
.exp__copy { display: flex; flex-direction: column; gap: 22px; padding-top: clamp(0px, 3vw, 52px); }
.exp__copy p { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.8; color: var(--ink-78); }
.exp__copy p + p { font-size: clamp(14px, 1.3vw, 16px); color: var(--ink-60); }

.exp__photo-row {
  margin-top: clamp(40px, 6vw, 86px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
}
.exp__figure {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Proporción exacta de la foto de origen: se ve completa, sin recortar */
  aspect-ratio: 4 / 3;
  background: var(--c-sand);
}
.exp__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.exp__figure:hover img { transform: scale(1.03); }
/* Tablet: la foto se achica un poco pero mantiene toda su altura visible */
@media (min-width: 640px) {
  .exp__figure { max-width: 520px; }
}
/* Desktop: foto protagonista (grande), con detalles finos a los costados en vez de ocupar
   todo el ancho a lo bruto. Los costados tienen ancho fijo chico: la foto crece con el
   espacio que sobra del contenedor (hasta ~1300px en pantallas muy anchas). */
.exp__photo-deco { display: none; }
@media (min-width: 1100px) {
  .exp__photo-row { gap: 22px; }
  .exp__figure { flex: 1 1 0; max-width: 1300px; }
  .exp__photo-deco {
    display: flex;
    flex-direction: column;
    flex: 0 0 56px;
    gap: 14px;
  }
  .exp__photo-deco--left { justify-content: flex-start; }
  .exp__photo-deco--right { justify-content: flex-end; align-items: flex-end; }
  .exp__photo-mark { display: grid; grid-template-columns: repeat(2, 6px); gap: 4px; }
  .exp__photo-mark span { display: block; width: 6px; height: 6px; background: var(--c-orange); }
  .exp__photo-mark span:last-child { background: rgba(240, 130, 60, .35); }
  .exp__photo-rule { display: block; width: 100%; height: 1px; background: var(--ink-line); }
  .exp__photo-bar { display: block; width: 40px; height: 4px; background: var(--c-orange); }
}

/* 12 Números --------------------------------------------------------------- */
.stats { position: relative; overflow: hidden; background: var(--c-black); padding: var(--sec-y) 0; }
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(243, 240, 234, .05) 0 1px, transparent 1px calc(100% / 4));
  pointer-events: none;
}
.stats .container { position: relative; }
.stats__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: clamp(30px, 4vw, 52px);
  border-bottom: 1px solid var(--bone-line);
}
.stats__chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-orange);
  border: 1px solid rgba(240, 130, 60, .45);
  padding: 9px 13px;
}
.stats__grid { display: grid; grid-template-columns: 1fr; }
.stat {
  --stat-pad: clamp(0px, 2vw, 36px);
  position: relative;
  padding: clamp(30px, 4.5vw, 64px) 0 clamp(24px, 3vw, 40px);
}
.stat + .stat { border-top: 1px solid var(--bone-line); }
.stat__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 18% 100%, rgba(240, 130, 60, .16), transparent 70%);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.stat__num {
  position: relative;
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(76px, 11vw, 168px);
  line-height: .82;
  letter-spacing: -.02em;
  color: var(--c-white);
  font-variant-numeric: tabular-nums;
  transition: transform .7s var(--ease), color .4s ease;
}
.stat__num--long { font-size: clamp(70px, 10vw, 156px); }
.stat__label {
  position: relative;
  margin-top: clamp(14px, 2vw, 24px);
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-74);
  transition: color .4s ease, transform .7s var(--ease);
}
.stat__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.stat:hover .stat__glow { opacity: 1; }
.stat:hover .stat__num { transform: translateY(-6px); color: var(--c-orange); }
.stat:hover .stat__label { color: var(--c-white); transform: translateY(-3px); }
.stat:hover .stat__bar { transform: scaleX(1); }
.stats__close { height: 4px; background: rgba(240, 130, 60, .35); }

@media (min-width: 860px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat { padding-left: var(--stat-pad); padding-right: var(--stat-pad); border-right: 1px solid var(--bone-line); }
  .stat + .stat { border-top: 0; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { padding-right: 0; border-right: 0; }
  .stat__bar { left: var(--stat-pad); right: var(--stat-pad); }
  .stat:first-child .stat__bar { left: 0; }
  .stat:last-child .stat__bar { right: 0; }
}

/* 13 Instalaciones --------------------------------------------------------- */
.facilities { background: var(--c-graphite); padding: var(--sec-y) 0; }
.facilities .sec-head__text { line-height: 1.8; }

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-black);
  color: var(--c-bone);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.4) brightness(.8);
  transition: transform 1.4s var(--ease), filter .8s ease;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); filter: grayscale(.2) brightness(.86); }
.tile:focus-visible { outline-offset: -2px; }
.tile__label {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--c-black);
  color: var(--c-bone);
  padding: 9px 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
/* Indicador de ampliación */
.tile__zoom {
  position: absolute;
  top: 0; right: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--c-orange);
  color: var(--c-black);
  opacity: 0;
  transform: translate(8px, -8px);
  transition: opacity .4s ease, transform .6s var(--ease);
}
.tile__zoom svg { width: 16px; height: 16px; }
.tile:hover .tile__zoom, .tile:focus-visible .tile__zoom { opacity: 1; transform: none; }

/* Miniatura de video con botón de play (instalaciones y testimonios) */
.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-black);
  color: var(--c-bone);
}
.video-thumb--wide { aspect-ratio: 16 / 9; }
.video-thumb--tall { aspect-ratio: 9 / 16; }
.video-thumb:focus-visible { outline-offset: -2px; }
.video-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.25) brightness(.8);
  transition: transform 1.4s var(--ease), filter .8s ease;
}
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .3), transparent 55%),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .5));
  pointer-events: none;
}
.video-thumb:hover .video-thumb__img, .video-thumb:focus-visible .video-thumb__img { transform: scale(1.04); filter: grayscale(0) brightness(.9); }
.video-thumb__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(64px, 7vw, 100px);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: var(--c-orange);
  color: var(--c-black);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45);
  transition: background .3s ease, color .3s ease, scale .6s var(--ease);
}
.video-thumb--tall .video-thumb__play { width: clamp(52px, 5vw, 76px); }
.video-thumb__play svg { width: 46%; height: 46%; margin-left: 6%; }
/* Marco fino alrededor del botón (mismo lenguaje de líneas del sitio) */
.video-thumb__play::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(240, 130, 60, .7);
  transition: inset .6s var(--ease), opacity .4s ease;
}
.video-thumb:hover .video-thumb__play, .video-thumb:focus-visible .video-thumb__play { background: var(--c-white); scale: 1.06; }
.video-thumb:hover .video-thumb__play::before, .video-thumb:focus-visible .video-thumb__play::before { inset: -16px; opacity: 0; }
.video-thumb__label {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-black);
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.video-thumb__time { color: var(--c-orange); }

/* Video (2/3) + la sede en datos (1/3) */
.fac-feature { --gap: clamp(8px, 1vw, 14px); display: grid; gap: var(--gap); }
.fac-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 2vw, 30px);
  min-width: 0;
  background: var(--c-graphite-card);
  padding: clamp(20px, 2vw, 32px);
}
.fac-facts { display: grid; }
.fac-fact dd { order: -1; }
.fac-fact { display: flex; flex-direction: column; gap: 6px; padding: clamp(10px, 1.1vw, 16px) 0; border-top: 1px solid var(--bone-line); }
.fac-fact:first-child { border-top: 0; padding-top: 0; }
.fac-fact dd { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 3vw, 52px); line-height: .9; color: var(--c-bone); }
.fac-fact dd span { color: var(--c-orange); font-size: .55em; letter-spacing: .02em; }
.fac-fact dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-55); }
.fac-aside .facility-card__list { columns: 2; column-gap: 16px; margin-bottom: 8px; }
.lb-btn--sm { width: 40px; height: 40px; font-size: 15px; }
.facility-card__bar { width: 40px; height: 4px; background: var(--c-orange); margin-bottom: 16px; }
.facility-card__list { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 2; color: rgba(243, 240, 234, .82); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--c-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .3s ease, gap .5s var(--ease);
}
.link-arrow:hover, .link-arrow:focus-visible { color: var(--c-white); gap: 14px; }

@media (min-width: 600px) and (max-width: 1023.98px) {
  /* Debajo del video: los tres datos en fila */
  .fac-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .fac-fact, .fac-fact:first-child { border-top: 1px solid var(--bone-line); padding: 14px 0 0; }
}
@media (min-width: 1024px) {
  .fac-feature { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  /* El video acompaña la altura de la columna si esta queda más alta */
  .fac-feature .video-thumb--wide { width: 100%; height: 100%; }
}

/* Recorrido: miniaturas deslizables */
.fac-thumbs { margin-top: clamp(28px, 3.4vw, 44px); }
.fac-thumbs__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fac-thumbs__label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-orange); }
.fac-thumbs__label span { color: var(--bone-55); }
.fac-thumbs__nav { display: flex; gap: 6px; flex: 0 0 auto; }
.fac-thumbs__track {
  display: flex;
  gap: clamp(8px, 1vw, 14px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.fac-thumbs__track::-webkit-scrollbar { display: none; }
/* Arrastre con el mouse: sin imán mientras se arrastra, sin seleccionar */
.fac-thumbs__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.fac-thumbs__track.is-dragging .fac-thumb { pointer-events: none; }
.fac-thumbs__track > li { flex: 0 0 clamp(138px, 15.2vw, 232px); scroll-snap-align: start; }
.fac-thumb { aspect-ratio: 4 / 5; cursor: inherit; }
.fac-thumb img { -webkit-user-drag: none; }

/* 14 Lightbox -------------------------------------------------------------- */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-bone);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .94); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .5s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad-x);
}
.lightbox__count { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--c-orange); }
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 var(--pad-x);
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: lb-img .7s var(--ease);
}
@keyframes lb-img { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px var(--pad-x) max(22px, env(safe-area-inset-bottom));
}
.lightbox__caption::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: var(--c-orange);
  margin-bottom: 10px;
}
.lightbox__title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1; }
.lightbox__desc { font-size: 13px; color: var(--bone-66); margin-top: 6px; }
.lightbox__nav { display: flex; gap: 8px; }
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(243, 240, 234, .26);
  color: var(--c-bone);
  font-size: 18px;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.lb-btn:hover, .lb-btn:focus-visible { border-color: var(--c-orange); color: var(--c-orange); }

/* 15 Testimonios ----------------------------------------------------------- */
.testimonials h2 { margin-bottom: clamp(20px, 2.4vw, 32px); }
.quote__num { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--c-orange); }
.quote__name { display: block; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.quote__role { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); margin-top: 4px; }

.tvideos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(12px, 2.4vw, 36px);
  align-items: start;
}
.tvideos__head { grid-column: 1 / -1; }
.tvideos__intro { max-width: 46ch; font-size: clamp(16px, 1.5vw, 20px); font-weight: 300; line-height: 1.6; color: var(--ink-70); }
.tvideo { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 20px); min-width: 0; }
.tvideo__cap { border-top: 2px solid var(--c-ink); padding-top: clamp(14px, 1.6vw, 20px); }
.tvideo__quote { font-size: clamp(15px, 1.5vw, 20px); font-weight: 300; line-height: 1.45; color: var(--c-ink); margin-bottom: 14px; }
@media (min-width: 1000px) {
  /* Título al costado de los videos, a la misma altura */
  .tvideos { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 320px)); }
  .tvideos__head { grid-column: auto; padding-right: clamp(0px, 3vw, 48px); position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Visor de video (reutiliza la base del lightbox) */
.vbox[open] { grid-template-rows: auto 1fr; }
.vbox__stage { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.vbox__video {
  display: block;
  width: min(100%, 1440px, calc((100vh - 130px) * 16 / 9));
  width: min(100%, 1440px, calc((100dvh - 130px) * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--c-black);
  animation: lb-img .7s var(--ease);
}
.vbox--portrait .vbox__video {
  width: min(100%, 460px, calc((100vh - 130px) * 9 / 16));
  width: min(100%, 460px, calc((100dvh - 130px) * 9 / 16));
  aspect-ratio: 9 / 16;
}

/* 16 Instituciones --------------------------------------------------------- */
.institutions { background: var(--c-white); color: var(--c-ink); }
.inst-group { padding-top: clamp(28px, 3.6vw, 48px); }
.inst-group__label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-orange); margin-bottom: 20px; }
/* Grilla hairline: el gap deja ver el fondo y funciona como línea */
.inst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
}
.inst-grid--sponsors { grid-template-columns: repeat(2, 1fr); }
/* Columnas fijas para que las filas queden completas */
/* "Promueven" son 8 logos: 2 columnas (4 filas) en celular, 4 columnas (2 filas) desde 700px */
@media (min-width: 700px) { .inst-grid--sponsors { grid-template-columns: repeat(4, 1fr); } }
.inst-cell {
  --t-extra: background .35s ease;
  background: var(--c-white);
  padding: clamp(20px, 2.2vw, 28px);
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: background .35s ease;
}
.inst-cell:hover { background: var(--c-bone); }
.inst-cell__name { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.05; color: var(--c-ink); }
.inst-cell__role { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-45); }
.inst-note { margin-top: 18px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(8, 9, 10, .4); }

/* Espacio reservado para un logo que todavía no está: sin texto, solo el hueco marcado */
.inst-cell--empty { background: var(--c-bone); border: 1px dashed var(--ink-line); transition: none; }
.inst-cell--empty:hover { background: var(--c-bone); }

/* Celdas de logo (sponsors reales, con link de salida) */
.inst-cell--logo { align-items: center; justify-content: center; cursor: default; }
.inst-cell__logo-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 44px; }
/* Certifica: una sola institución → franja con etiqueta, línea y logo */
.inst-single {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  border: 1px solid var(--ink-line);
  padding: clamp(20px, 2.4vw, 32px) clamp(20px, 3vw, 44px);
  transition: background .35s ease;
}
.inst-single:hover { background: var(--c-bone); }
.inst-single .inst-group__label { margin: 0; flex: 0 0 auto; }
.inst-single__line { flex: 1 1 auto; min-width: 24px; height: 1px; background: var(--ink-line); }
.inst-single:hover .inst-cell__logo { filter: grayscale(0) opacity(1); }
@media (max-width: 559.98px) {
  .inst-single { flex-direction: column; align-items: flex-start; gap: 18px; }
  .inst-single__line { display: none; }
}
/* Logo suelto (Certifica): alto fijo, ancho natural */
.inst-cell__logo { display: block; height: clamp(45px, 5.82vw, 69px); width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) opacity(.85); transition: filter .3s ease; }
/* Promueven: todos los logos vienen en el mismo lienzo (877×295) con su aire
   y proporción ya resueltos, así que ocupan la celda completa, sin padding
   propio: mismo tamaño y misma alineación en todas las cards. */
.inst-grid--sponsors .inst-cell { padding: 0; min-height: 0; gap: 0; }
.inst-grid--sponsors .inst-cell__logo-link { min-height: 0; }
.inst-grid--sponsors .inst-cell__logo { width: 100%; height: auto; aspect-ratio: 877 / 295; }
.inst-cell--logo:hover .inst-cell__logo,
.inst-cell__logo-link:focus-visible .inst-cell__logo { filter: grayscale(0) opacity(1); }

/* 17 CTA final ------------------------------------------------------------- */
.cta-final { position: relative; overflow: hidden; background: var(--c-black); }
.cta-final__img { filter: grayscale(.4) brightness(.78); object-position: 60% 40%; }
.cta-final__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .44)); }
.cta-final__content { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 170px) var(--pad-x); }
.cta-final h2 { font-size: clamp(38px, 6.6vw, 110px); line-height: .88; letter-spacing: -.015em; }
.cta-final__text { margin-top: clamp(20px, 2.6vw, 32px); font-size: clamp(14px, 1.4vw, 17px); line-height: 1.75; color: rgba(243, 240, 234, .8); max-width: 520px; }
.cta-final .btn-row { margin-top: clamp(26px, 3.4vw, 42px); }

/* 18 Contacto y mapa ------------------------------------------------------- */
.contact { background: var(--c-black); padding: var(--sec-y) 0 0; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 3.4vw, 56px);
  align-items: stretch;
}
.map {
  position: relative;
  display: block;
  overflow: hidden;
  align-self: start;
  background: var(--c-map);
  border: 1px solid var(--bone-line-soft);
  color: var(--c-bone);
  --t-extra: border-color .4s ease;
  transition: border-color .4s ease;
}
.map:hover, .map:focus-visible { border-color: rgba(240, 130, 60, .6); color: var(--c-bone); }
.map:focus-visible { outline-offset: 4px; }
.map__frame { position: relative; display: block; aspect-ratio: 1461 / 1076; overflow: hidden; }
.map__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter .8s ease;
  transform-origin: 63.86% 43.96%;
  filter: brightness(.92);
}
.map:hover .map__img, .map:focus-visible .map__img { transform: scale(1.04); filter: brightness(1); }

/* Pin propio: badge con el isotipo + puntero. La punta cae exactamente sobre el
   pin naranja de la imagen (63,86 % / 43,96 % de mapa-ubicacion-experiencia-icp-unquillo.webp)
   y el badge lo cubre por completo. */
.map__pin {
  position: absolute;
  left: 63.86%;
  top: 43.96%;
  width: 0;
  height: 0;
  z-index: 2;
  pointer-events: none;
}
.map__pin-body {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  transition: transform .6s var(--ease);
}
.map__pin-badge {
  display: block;
  width: clamp(36px, 3.2vw, 48px);
  height: clamp(36px, 3.2vw, 48px);
  background: var(--c-orange);
}
.map__pin-badge img { width: 100%; height: 100%; }
.map__pin-pointer {
  display: block;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--c-orange);
}
.map__pin-tag {
  position: absolute;
  left: calc(100% + 10px);
  top: 0;
  white-space: nowrap;
  background: var(--c-black);
  color: var(--c-bone);
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-left: 3px solid var(--c-orange);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .4s ease, transform .6s var(--ease);
}
.map:hover .map__pin-tag, .map:focus-visible .map__pin-tag { opacity: 1; transform: none; }
@media (min-width: 1100px) {
  .map__pin-tag { opacity: 1; transform: none; }
}
/* Onda cuadrada en la ubicación exacta (lenguaje rectangular del sitio) */
.map__pin-pulse {
  position: absolute;
  left: 0; top: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid var(--c-orange);
  opacity: 0;
  animation: pin-pulse 2.6s var(--ease) infinite;
}
.map__pin-pulse--2 { animation-delay: 1.3s; }
@keyframes pin-pulse {
  0% { transform: scale(.25); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}
/* Caída del pin al entrar en pantalla; en hover crece desde la punta, sin despegarse */
.js .map[data-reveal] .map__pin-body { transform: translate(-50%, -48px); opacity: 0; }
.js .map[data-reveal].is-revealed .map__pin-body {
  transform: translateX(-50%);
  opacity: 1;
  transition: transform .9s cubic-bezier(.34, 1.56, .64, 1) .45s, opacity .3s ease .45s;
}
.map:hover .map__pin-body,
.map:focus-visible .map__pin-body,
.js .map[data-reveal].is-revealed:hover .map__pin-body,
.js .map[data-reveal].is-revealed:focus-visible .map__pin-body { transform: translateX(-50%) scale(1.1); transition: transform .6s var(--ease); }

.map__caption {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 60px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82) 55%);
}
.map__label, .map__place, .map__address { display: block; }
.map__label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-orange); margin-bottom: 10px; }
.map__place { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(20px, 2vw, 26px); line-height: 1; color: var(--c-white); }
.map__address { font-size: 12px; color: var(--bone-70); margin-top: 8px; font-style: normal; }
.map__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-orange);
  transition: gap .5s var(--ease);
}
.map:hover .map__open { gap: 12px; }

.contact__info { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.contact__list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 48px;
  border-top: 1px solid var(--bone-line);
  padding-top: 26px;
}
.contact__list .label-sm { margin-bottom: 10px; }
.contact__wa { font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; color: var(--c-bone); white-space: nowrap; }
.contact__mail { font-size: clamp(15px, 1.6vw, 20px); font-weight: 600; color: var(--c-bone); overflow-wrap: anywhere; }
.contact__wa:hover, .contact__mail:hover, .contact__wa:focus-visible, .contact__mail:focus-visible { color: var(--c-orange); }

/* 19 Footer ---------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(56px, 7vw, 100px);
  border-top: 1px solid var(--bone-line);
  padding: clamp(28px, 3.4vw, 44px) 0 clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.site-footer__logo { height: 44px; width: auto; margin-bottom: 18px; }
.site-footer__meta { font-size: 13px; color: var(--bone-50); line-height: 1.7; font-style: normal; }
.site-footer__nav { display: flex; flex-direction: column; gap: 2px; }
.site-footer__nav a,
.site-footer__contact a:not(.social__link) { display: inline-flex; align-items: center; min-height: 34px; }
.site-footer__nav a { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-66); }
.site-footer__nav a:hover, .site-footer__nav a:focus-visible { color: var(--c-orange); }
.site-footer__contact { display: flex; flex-direction: column; gap: 2px; }
.site-footer__tel { font-size: 14px; font-weight: 700; color: var(--c-bone); }
.site-footer__mail { font-size: 13px; color: var(--bone-66); overflow-wrap: anywhere; }
.site-footer__tel:hover, .site-footer__mail:hover, .site-footer__tel:focus-visible, .site-footer__mail:focus-visible { color: var(--c-orange); }
.site-footer__contact .social { margin-top: 10px; }
.legal {
  border-top: 1px solid rgba(243, 240, 234, .1);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-38);
}
/* Firma del desarrollador + enlaces legales (última franja del sitio) */
.legal-bottom {
  border-top: 1px solid rgba(243, 240, 234, .06);
  padding: 14px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.credit { color: var(--bone-45); min-height: 32px; display: inline-flex; align-items: center; transition: color .3s ease; }
.credit:hover, .credit:focus-visible { color: var(--c-orange); }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.legal-links a,
.legal-links button {
  font: inherit;
  color: var(--bone-38);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color .3s ease;
}
.legal-links a:hover, .legal-links a:focus-visible,
.legal-links button:hover, .legal-links button:focus-visible { color: var(--c-bone); }
@media (max-width: 640px) {
  /* Deja espacio para que las burbujas flotantes no tapen el pie */
  .legal-bottom { flex-direction: column; align-items: flex-start; padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
}

/* 20 Burbujas flotantes: WhatsApp + volver arriba ------------------------- */
.float-stack {
  position: fixed;
  right: max(clamp(14px, 2vw, 26px), env(safe-area-inset-right));
  bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
  z-index: 320;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity .4s ease, transform .5s var(--ease);
}
/* Desktop y tablet: despegadas del borde para no tapar la firma ni los enlaces legales */
@media (min-width: 641px) {
  .float-stack { bottom: 116px; }
}
/* Con JS aparecen recién al pasar el hero */
.js .float-stack:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .4s ease, transform .4s var(--ease), visibility 0s linear .4s;
}
.wa-float {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--c-orange);
  color: var(--c-black);
  box-shadow: var(--shadow-float); /* única sombra del sitio */
  transition: background .3s ease, transform .4s var(--ease);
}
.wa-float:hover, .wa-float:focus-visible { background: var(--c-white); color: var(--c-black); transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }
.totop {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--c-black);
  border: 1px solid rgba(243, 240, 234, .26);
  color: var(--c-bone);
  transition: border-color .3s ease, color .3s ease, transform .4s var(--ease);
}
.totop svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.totop:hover, .totop:focus-visible { border-color: var(--c-orange); color: var(--c-orange); }
.totop:hover svg, .totop:focus-visible svg { transform: translateY(-3px); }

/* Tira de fechas: las cuatro en una fila en mobile y tablet */
@media (max-width: 899px) {
  .dates-strip { grid-template-columns: repeat(4, 1fr); }
  .dates-strip li:first-child { display: none; }
  .dates-strip li { padding-left: clamp(8px, 2vw, 16px); font-size: clamp(16px, 2.6vw, 20px); letter-spacing: .02em; }
  .dates-strip li:nth-child(2) { padding-left: 0; }
}

/* Ajustes para pantallas chicas ------------------------------------------ */
@media (max-width: 639px) {
  /* En mobile el menú muestra solo la navegación */
  .menu__aside { display: none; }
  /* Menú y cerrar más compactos para no competir con el logo */
  .burger, .menu-close { gap: 8px; min-height: 40px; padding: 7px 9px; font-size: 9px; letter-spacing: .18em; }
  .burger__icon { width: 20px; gap: 3px; }
  .burger__bar { width: 20px; height: 2.5px; }
  .burger__bar:nth-child(2) { width: 12px; }
  .burger:hover .burger__bar:nth-child(1), .burger:focus-visible .burger__bar:nth-child(1) { width: 12px; }
  .burger:hover .burger__bar:nth-child(2), .burger:focus-visible .burger__bar:nth-child(2) { width: 20px; }
  .menu-close__icon { width: 16px; height: 16px; }
  .menu-close__icon::before, .menu-close__icon::after { width: 19px; height: 2.5px; margin: -1.25px 0 0 -9.5px; }
  .map__caption { display: block; position: static; padding: 18px 18px 20px; background: none; }
  .inst-cell { min-height: 96px; }
  .hero__meta { gap: 8px 18px; }
  .hero__meta li + li::before { display: none; }
}

/* 22 Aviso de cookies -------------------------------------------------------
   Banner de consentimiento (ver assets/js/consent.js). Oculto por defecto con
   [hidden]; JS lo muestra solo si no hay una decisión guardada y vigente. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 340;
  background: rgba(0, 0, 0, .96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--bone-line);
  padding: 20px var(--pad-x) max(20px, env(safe-area-inset-bottom));
  transform: translateY(0);
  transition: transform .4s var(--ease), opacity .3s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.cookie-banner__text { flex: 1 1 460px; max-width: 720px; font-size: 13px; line-height: 1.65; color: var(--bone-78); }
.cookie-banner__text a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 1 1 100%; }
/* Mismo peso visual en las dos opciones: ninguna preseleccionada ni destacada */
.cookie-banner__actions .btn { flex: 1 1 auto; justify-content: center; padding: 14px 20px; }
@media (min-width: 640px) {
  .cookie-banner__actions { flex: 0 0 auto; }
  .cookie-banner__actions .btn { flex: 0 0 auto; }
}

/* 23 Páginas legales (Aviso legal, Privacidad, Cookies) --------------------- */
.legal-hero { background: var(--c-black); padding: clamp(130px, 17vh, 180px) 0 clamp(44px, 6vw, 64px); }
.legal-hero__title { max-width: 18ch; }
.legal-hero__meta { margin-top: 16px; font-size: 13px; color: var(--bone-62); }
.legal-hero__meta time { color: var(--c-bone); font-weight: 600; }

.legal-doc { max-width: 760px; }
.legal-doc__intro { font-size: clamp(15px, 1.3vw, 17px); line-height: 1.8; color: var(--ink-78); margin-bottom: clamp(28px, 4vw, 44px); }
.legal-doc h2 {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -.005em;
  color: var(--c-ink);
  margin: 2.2em 0 .7em;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { font-size: 15px; line-height: 1.8; color: var(--ink-78); margin: 0 0 1.1em; }
.legal-doc ul, .legal-doc ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.legal-doc li { font-size: 15px; line-height: 1.8; color: var(--ink-78); margin-bottom: .4em; }
.legal-doc strong { color: var(--c-ink); font-weight: 700; }
.legal-doc a { text-decoration: underline; text-underline-offset: 2px; }
.legal-doc__table-wrap { overflow-x: auto; margin: 0 0 1.6em; }
.legal-doc table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13px; }
.legal-doc th, .legal-doc td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ink-line); vertical-align: top; }
.legal-doc th { font-family: var(--f-display); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--ink-45); font-weight: 700; white-space: nowrap; }
.legal-doc td { color: var(--ink-78); }
.legal-doc code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .93em; background: rgba(8, 9, 10, .06); padding: .15em .4em; }
.legal-doc__note { margin-top: clamp(32px, 4vw, 52px); padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: 12px; letter-spacing: .04em; color: var(--ink-45); }
/* Pie de las páginas legales: mismo footer del sitio, con menos espacio arriba
   (no necesitan el padding grande que separa una sección completa del hero) */
.legal-footer { background: var(--c-black); padding: clamp(40px, 6vw, 64px) 0 0; }
.legal-footer .site-footer { margin-top: 0; }

/* 24 Agenda de certificaciones (/certificaciones/) --------------------------
   Listado generado por tools/certificaciones/build.js; JS (agenda.js) suma
   buscador, filtros y "Cargar más". Sin JS se ve todo el listado. */
.agenda [hidden], .agenda-filters[hidden] { display: none !important; }

.agenda-hero { background: var(--c-black); padding: clamp(118px, 15vh, 160px) 0 clamp(26px, 3.4vw, 40px); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-55); margin: 0 0 clamp(18px, 2.4vw, 28px); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--c-orange); }
.breadcrumb a { color: var(--bone-70); }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--c-orange); }
.breadcrumb [aria-current] { color: var(--c-bone); }
.agenda-hero__grid { display: grid; gap: clamp(16px, 3vw, 60px); align-items: end; }
.agenda-hero__text { max-width: 520px; font-size: clamp(14px, 1.35vw, 16px); line-height: 1.75; color: var(--bone-70); }
@media (min-width: 900px) { .agenda-hero__grid { grid-template-columns: 1.2fr 1fr; } .agenda-hero__text { justify-self: end; } }

.agenda { background: var(--c-black); padding: 0 0 clamp(70px, 9vw, 120px); }

/* Buscador y filtros: barra compacta, fija al hacer scroll solo en escritorio */
.agenda-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items: end;
  padding: clamp(16px, 2vw, 22px);
  background: var(--c-graphite-card);
  border: 1px solid var(--bone-line);
}
.agenda-field { display: grid; gap: 8px; min-width: 0; }
.agenda-field .label-sm { color: var(--bone-55); }
.agenda-field--search { grid-column: 1 / -1; }
.agenda-field:nth-of-type(4) { grid-column: 1 / -1; }
.agenda-search { position: relative; display: flex; align-items: center; }
.agenda-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--bone-45); pointer-events: none; }
.agenda-filters input, .agenda-filters select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(243, 240, 234, .22);
  border-radius: 0;
  background: var(--c-black);
  color: var(--c-bone);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease;
}
.agenda-filters input { padding: 0 44px 0 42px; }
.agenda-filters input::placeholder { color: var(--bone-45); }
.agenda-filters input::-webkit-search-cancel-button { display: none; }
.agenda-filters select {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-orange) 50%), linear-gradient(135deg, var(--c-orange) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.agenda-filters input:hover, .agenda-filters select:hover { border-color: rgba(243, 240, 234, .4); }
.agenda-filters input:focus-visible, .agenda-filters select:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 0; border-color: var(--c-orange); }
.agenda-search__clear { position: absolute; right: 4px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--bone-70); font-size: 14px; }
.agenda-search__clear:hover, .agenda-search__clear:focus-visible { color: var(--c-orange); }
.agenda-filters__reset {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-orange);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.agenda-filters__reset:hover, .agenda-filters__reset:focus-visible { color: var(--c-white); }
@media (min-width: 900px) {
  .agenda-filters { grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) auto; position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; }
  .agenda-field--search, .agenda-field:nth-of-type(4) { grid-column: auto; }
  .agenda-filters__reset { grid-column: auto; justify-self: end; }
}

.agenda-status { margin: 18px 0 6px; }
.agenda-count { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-55); }

/* Grupos por mes */
.agenda-month { padding-top: clamp(26px, 3.4vw, 44px); }
.agenda-month__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bone-line);
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  color: var(--c-white);
}
.agenda-month__title span { color: var(--bone-32); }
.agenda-month__items { margin: 0; padding: 0; list-style: none; }

/* Fila de cada certificación */
.agenda-item { transition: opacity .22s ease, transform .22s ease; }
/* Fondos intercalados: un taller sobre negro, el siguiente apenas más claro.
   El generador ya marca .is-alt en el HTML; agenda.js lo recalcula al filtrar. */
.agenda-item.is-alt .agenda-card { background: #111214; }
.agenda-item.is-entering { opacity: 0; transform: translateY(8px); }
.agenda-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  transition: background .25s ease;
}
.agenda-card__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.agenda-card__status {
  order: -1;
  flex-basis: 100%;
  justify-self: start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-orange);
}
.agenda-card__status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--c-orange); vertical-align: 1px; }
.agenda-card__date { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.2vw, 46px); line-height: .9; color: var(--c-white); }
.agenda-card__year { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--bone-45); }
.agenda-card__thumb { overflow: hidden; background: var(--c-graphite); aspect-ratio: 16 / 10; }
.agenda-card__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.82); transition: transform .9s var(--ease), filter .5s ease; }
.agenda-card__tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-orange); margin-bottom: 8px; }
.agenda-card__title { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; line-height: 1.3; color: var(--c-white); }
.agenda-card__title:focus { outline: none; }
.agenda-card__title:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 4px; }
.agenda-card__meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--bone-70); }
.agenda-card__meta li:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--bone-32); }
.agenda-card__backing { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--bone-55); }
.agenda-card__people { display: flex; align-items: center; gap: 12px; }
.agenda-card__teachers { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--c-bone); }
.agenda-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.agenda-card__cta { min-width: 150px; justify-content: center; white-space: nowrap; padding: 15px 18px; }
.agenda-card__wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-70); }
.agenda-card__wa svg { width: 18px; height: 18px; color: var(--c-orange); }
.agenda-card__wa:hover, .agenda-card__wa:focus-visible { color: var(--c-orange); }
@media (hover: hover) {
  .agenda-card:hover, .agenda-item.is-alt .agenda-card:hover { background: #17191c; }
  .agenda-card:hover .agenda-card__thumb img { transform: scale(1.05); filter: grayscale(.1) brightness(.9); }
}
/* Móvil: fecha + miniatura en una fila, luego título, docentes y acciones */
@media (max-width: 699.98px) {
  /* Fondo de borde a borde de la pantalla */
  .agenda-card { grid-template-columns: minmax(0, 1fr) 112px; column-gap: 16px; margin: 0 calc(var(--pad-x) * -1); padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .agenda-card__when { grid-column: 1; align-self: center; }
  .agenda-card__thumb { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 3; }
  .agenda-card__body, .agenda-card__people, .agenda-card__actions { grid-column: 1 / -1; }
  .agenda-card__cta { flex: 1 1 auto; }
}
/* Tablet: 3 columnas */
@media (min-width: 700px) and (max-width: 1099.98px) {
  .agenda-card { grid-template-columns: 150px 170px minmax(0, 1fr); column-gap: 24px; align-items: start; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .agenda-card__when { flex-direction: column; align-items: flex-start; }
  .agenda-card__body { grid-column: 3; grid-row: 1 / span 2; }
  .agenda-card__people { grid-column: 1 / 3; grid-row: 2; }
  .agenda-card__actions { grid-column: 3; }
}
/* Escritorio: fila horizontal compacta */
@media (min-width: 1100px) {
  .agenda-card {
    grid-template-columns: 150px 170px minmax(0, 1fr) 190px 160px;
    column-gap: clamp(20px, 2vw, 32px);
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 -20px;
  }
  .agenda-card__when { flex-direction: column; align-items: flex-start; gap: 6px; }
  .agenda-card__actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .agenda-card__wa { justify-content: center; }
}

/* Estados vacíos, "Cargar más" y consulta general */
.agenda-empty { margin-top: clamp(26px, 3vw, 40px); padding: clamp(24px, 3vw, 40px); border: 1px dashed rgba(243, 240, 234, .22); color: var(--bone-70); display: grid; gap: 12px; justify-items: start; }
.agenda-empty__title { font-size: 18px; font-weight: 600; color: var(--c-white); }
.agenda-more { display: flex; justify-content: center; margin-top: clamp(28px, 3.4vw, 44px); }
.agenda-more .btn { min-width: 220px; justify-content: center; }
.agenda-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(24px, 3vw, 40px);
  background: var(--c-graphite-card);
  border-left: 4px solid var(--c-orange);
}
.agenda-contact__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 34px); line-height: 1; color: var(--c-white); }
.agenda-contact__text { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--bone-70); max-width: 52ch; }

/* Visor de flyers (lo crea main.js; reutiliza la base del lightbox) */
.flyerbox[open] { grid-template-rows: auto 1fr; }
.flyerbox__title { color: var(--c-bone); letter-spacing: .14em; text-transform: uppercase; }
.flyerbox__actions { display: flex; align-items: center; gap: 16px; }
.flyerbox__open { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--c-orange); text-decoration: underline; text-underline-offset: 4px; }
.flyerbox__open:hover, .flyerbox__open:focus-visible { color: var(--c-white); }
.flyerbox__stage { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.flyerbox__img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); object-fit: contain; touch-action: pinch-zoom; }
@media (max-width: 599.98px) { .flyerbox .lightbox__bar { flex-wrap: wrap; } .flyerbox__title { flex: 1 1 100%; font-size: 11px; order: 2; } .flyerbox__actions { width: 100%; justify-content: space-between; } }

/* Home: pie de certificaciones con "Ver agenda completa" + año en filas de otro año */
.certs__foot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-row__year { color: var(--bone-45); font-size: .5em; letter-spacing: .04em; margin-left: 4px; }

/* 21 Movimiento reducido --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-lines] .line__inner { transform: none; }
  .js .map[data-reveal] .map__pin-body { opacity: 1; transform: translateX(-50%); }
  .hero__img, .cta-final__img { transform: none; top: 0; height: 100%; }
  .map__pin-pulse { display: none; }
  .cookie-banner { transition: none; }
  .agenda-item.is-entering { opacity: 1; transform: none; }
}
