/* Inédita — sitio oficial v3 (ver bloque v3 al final)
   Layout: blanco dominante. Barra negra fina arriba, hero con tipografía que se monta sobre una impresión
   en grano, feed de programas en mosaico asimétrico (tiles + columna de texto a la derecha) separado por
   reglas negras gruesas, ficha de programa a pantalla completa y footer negro que se revela al final. */

:root {
  color-scheme: light;

  /* Color · sistema de identidad */
  --white: #FFFFFF;        /* dominante */
  --warm: #F2F0E9;         /* blanco cálido: paneles y tiles */
  --black: #111111;        /* principal */
  --grey: #888780;         /* gris neutro: solo reglas, números grandes y decoración */
  --muted: #5E5D57;        /* gris de texto (AA sobre blanco y blanco cálido) */
  --line: #DCDAD2;         /* línea fina */
  --safelight: #B3261E;    /* solo avisos de seguridad de laboratorio */

  /* Tipo */
  --font-display: "Archivo", "Helvetica Neue", "Arial Black", Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display-weight: 850;
  --display-width: 92%;

  /* Escala editorial */
  --ed-size-mega: clamp(2.6rem, 1rem + 6.4vw, 7.5rem);
  --ed-size-display: clamp(2.25rem, 1.2rem + 4vw, 5rem);
  --ed-lh-display: 0.92;  --ed-tr-display: -0.01em;
  --ed-size-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --ed-lh-h2: 1.08;
  --ed-size-h3: 1.25rem;  --ed-lh-h3: 1.3;
  --ed-size-lead: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem);
  --ed-lh-lead: 1.35;
  --ed-size-body: 1.0625rem;  --ed-lh-body: 1.55;
  --ed-size-small: 0.875rem;
  --ed-label: 0.75rem;     --ed-tr-label: 0.28em;   /* como "PLATAFORMA DE PROYECTOS" */
  --ed-measure: 60ch;

  /* Espacio y movimiento */
  --gutter: clamp(16px, 2.6vw, 40px);
  --section: clamp(72px, 9vw, 136px);
  --bar: 40px;
  --rule: 1px solid var(--line);
  --rule-heavy: 3px solid var(--black);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --t: 420ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--black);
  font-family: var(--font-text); font-size: var(--ed-size-body); line-height: var(--ed-lh-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--black);
}
body.locked { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
svg { display: block; }
button { font: inherit; color: inherit; }

.wrap {
  max-width: 1440px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: 16px; top: -100px; z-index: 80; background: var(--black); color: var(--white); padding: 10px 14px; }
.skip:focus { top: calc(48px + env(safe-area-inset-top, 0px)); }

/* Tipografía */
.display {
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-width);
  text-transform: uppercase; line-height: var(--ed-lh-display); letter-spacing: var(--ed-tr-display);
}
.label {
  font-size: var(--ed-label); letter-spacing: var(--ed-tr-label); text-transform: uppercase;
  font-weight: 500; line-height: 1.6;
}
.label--muted { color: var(--muted); }
.dash { display: block; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: var(--ed-size-lead); line-height: var(--ed-lh-lead); }
.muted { color: var(--muted); }
.small { font-size: var(--ed-size-small); line-height: 1.5; }
.h2 { font-size: var(--ed-size-h2); line-height: var(--ed-lh-h2); letter-spacing: -0.015em; }
.h3 { font-size: var(--ed-size-h3); line-height: var(--ed-lh-h3); }
.prose { max-width: var(--ed-measure); display: grid; gap: 0.8em; }
.title-link {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 0.22em;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em; min-height: 48px; padding: 0 22px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--black); color: var(--white); border: 1px solid var(--black); border-radius: 0;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }

/* Barra superior */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--black); color: var(--white);
}
.bar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--bar); }
.bar-brand { color: var(--white); display: inline-flex; align-items: center; min-height: 40px; justify-self: start; }
.bar-brand svg { height: 16px; width: auto; }
.bar-menu {
  background: none; border: 0; cursor: pointer; min-height: 40px; padding: 0 12px;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--white);
}
.bar-side { justify-self: end; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.bar-login { color: var(--white); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; padding-inline: 12px; margin-right: -12px; border-bottom: 1px solid transparent; }
.bar-login:hover { color: var(--grey); }

/* Menú a pantalla completa */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--black); color: var(--white);
  padding-top: calc(var(--bar) + env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column; overflow-y: auto;
  animation: menu-in var(--t) var(--ease);
}
.menu .wrap { width: 100%; padding-block: clamp(24px, 5vw, 56px); display: grid; gap: 40px; align-content: space-between; flex: 1; }
.menu ol { display: grid; counter-reset: m; }
.menu li { border-bottom: 1px solid #2B2B2A; }
.menu a {
  display: flex; align-items: baseline; gap: 20px; padding-block: 10px;
  text-decoration: none; font-size: clamp(2.25rem, 1rem + 5vw, 5.5rem);
}
.menu a::before { counter-increment: m; content: "0" counter(m); font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--grey); font-weight: 400; }
.menu a:hover { color: var(--grey); }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--grey); }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* Banda de marca bajo el hero */
.brandband { border-bottom: var(--rule); }
.brandband .wrap { display: grid; gap: 32px; padding-block: clamp(40px, 6vw, 72px); }
.brandband .tag { max-width: 30ch; }
.brandband ul { display: grid; gap: 4px; }
@media (min-width: 900px) {
  .brandband .wrap { grid-template-columns: 5fr 1px 5fr 2fr; gap: 0 40px; align-items: start; }
  .brandband .vr { background: var(--line); align-self: stretch; }
}
.brandband .logo svg { width: min(100%, 480px); height: auto; }

/* Secciones */
.section { padding-block: var(--section); }
.section + .section { border-top: var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .display { font-size: var(--ed-size-display); }

/* Qué es */
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 64px; } }
.principles { display: grid; border-top: var(--rule-heavy); }
.principles li { display: grid; gap: 6px; padding-block: 20px; border-bottom: var(--rule); }
@media (min-width: 700px) { .principles li { grid-template-columns: 180px 1fr; gap: 24px; } }
.team { display: grid; margin-top: 32px; }
.team li { display: grid; gap: 2px 24px; padding-block: 14px; border-bottom: var(--rule); }
@media (min-width: 700px) { .team li { grid-template-columns: 1fr 1.4fr; } }

/* Feed de programas */
.feed { border-top: var(--rule-heavy); }
.entry { display: grid; gap: 12px; padding-block: 12px clamp(28px, 4vw, 48px); border-bottom: var(--rule-heavy); }
.entry-tiles { display: grid; gap: 12px; min-width: 0; }
.tile {
  position: relative; display: block; overflow: hidden; background: var(--warm);
  aspect-ratio: 4 / 5; max-width: 100%; min-width: 0; color: inherit; text-decoration: none;
  outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s;
}
.tile--wide { aspect-ratio: 5 / 4; }
a.tile:hover, button.tile:hover, a.tile:focus-visible, button.tile:focus-visible { outline-color: var(--black); }
button.tile { border: 0; padding: 0; width: 100%; cursor: pointer; text-align: left; }
.tile-cap { position: absolute; left: 12px; bottom: 10px; font-size: 0.6875rem; letter-spacing: 0.06em; color: #e6e4dc; }
.tile--black { background: var(--black); color: var(--white); }
.tile-inner { position: absolute; inset: 0; padding: clamp(16px, 2vw, 28px); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.tile-inner .display { font-size: clamp(3rem, 2rem + 4vw, 6rem); }
.entry-text { display: grid; gap: 14px; align-content: start; padding-top: 4px; min-width: 0; }
.entry-text p { font-size: 0.9375rem; line-height: 1.5; max-width: 46ch; }
.entry-meta { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; font-size: 0.875rem; }
.entry-meta .yr { grid-column: 2; grid-row: 1; }
.state {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--black); padding: 6px 10px;
}
.state::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.state--open::before { background: transparent; border: 1px solid currentColor; }
@media (min-width: 900px) {
  .entry { grid-template-columns: 1fr 1fr minmax(240px, 0.62fr); gap: 12px; }
  .entry-tiles { grid-column: span 2; grid-template-columns: 1fr 1.25fr; align-items: start; }
  .entry-tiles .tile:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
  .entry--flip .entry-tiles { grid-template-columns: 1.25fr 1fr; }
  .entry--flip .entry-tiles .tile:nth-child(2) { margin-top: 0; }
  .entry--flip .entry-tiles .tile:nth-child(1) { margin-top: clamp(40px, 8vw, 120px); }
  .entry-text { padding-left: 8px; }
}
@media (max-width: 899px) {
  .entry-tiles { grid-template-columns: 1fr 1fr; }
  .entry-tiles .tile { aspect-ratio: 4 / 5; }
}

/* Mini hoja de contactos dentro de un tile */
.mini-sheet { position: absolute; inset: 0; background: #0b0b0a; display: grid; align-content: center; gap: 10px; padding: 14px; }
.mini-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mini-strip span { aspect-ratio: 3 / 2; background: #1d1d1b; border: 1px solid #2c2c2a; display: flex; align-items: flex-end; padding: 6px; font-size: 0.625rem; letter-spacing: 0.06em; color: #9b998f; }
.mini-strip span.lab { color: #e0675c; }
.mini-holes { height: 8px; background: repeating-linear-gradient(90deg, transparent 0 6px, #3a3a37 6px 14px, transparent 14px 20px); }

/* Aliados */
.allies { display: grid; border-top: var(--rule-heavy); }
.ally { display: grid; gap: 4px 24px; padding-block: 20px; border-bottom: var(--rule); }
.ally .who { font-size: var(--ed-size-h3); }
.ally--open .who { color: var(--muted); }
@media (min-width: 900px) { .ally { grid-template-columns: 1fr 1.6fr; align-items: baseline; } }
.ways { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ways li { border: 1px solid var(--black); padding: 8px 14px; font-size: 0.9375rem; }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* Formulario */
.form { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; gap: 28px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.field .hint { font-size: 0.875rem; color: var(--muted); }
.opt { color: var(--muted); letter-spacing: 0.1em; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--black); background: transparent;
  border: 0; border-bottom: 1px solid var(--black); border-radius: 0; padding: 10px 0; min-height: 48px; appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px;
}
textarea { min-height: 150px; resize: vertical; border: 1px solid var(--black); padding: 12px; line-height: 1.5; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); font-size: 0.9375rem; transition: background-color .15s, color .15s, border-color .15s; }
.check input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.check input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--black); }
.err { color: var(--safelight); font-size: 0.875rem; }
.err:empty { display: none; }
[aria-invalid="true"] { border-color: var(--safelight) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border: 1px solid var(--black); padding: 16px 18px; font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status:focus { outline: 2px solid var(--black); outline-offset: 3px; }
.count { text-align: right; font-variant-numeric: tabular-nums; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Ficha de programa (pantalla completa) */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 70; background: var(--white); overflow-y: auto; overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: sheet-in 520ms var(--ease);
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-close {
  position: fixed; z-index: 71; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  width: 48px; height: 48px; display: grid; place-items: center; background: var(--white); border: 0; cursor: pointer;
}
.sheet-close svg { width: 26px; height: 26px; }
.sheet-grid { display: grid; gap: 40px; padding-block: 24px 96px; }
.sheet-aside { display: grid; gap: 18px; align-content: start; padding-right: 56px; }
.sheet-aside h2 { font-size: 0.9375rem; font-weight: 600; }
.sheet-aside p { font-size: 0.9375rem; line-height: 1.5; }
.sheet-main { display: grid; gap: clamp(48px, 6vw, 88px); min-width: 0; }
.sheet-main .display { font-size: var(--ed-size-display); }
@media (min-width: 900px) {
  .sheet-grid { grid-template-columns: minmax(220px, 3fr) 9fr; gap: 56px; }
  .sheet-aside { position: sticky; top: 24px; padding-right: 0; }
}
.facts { display: grid; gap: 0; }
.facts div { display: grid; gap: 2px; padding-block: 10px; border-top: var(--rule); }
.facts dt { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 0.9375rem; }

/* Hoja de contactos completa */
.contact { background: #0b0b0a; color: #ECEAE3; padding-block: clamp(24px, 3vw, 40px); display: grid; gap: 22px; }
.contact-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-inline: clamp(16px, 3vw, 32px); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: #9b998f; }
.strip-scroller { overflow-x: auto; scroll-snap-type: x proximity; }
.strip { min-width: 900px; padding-inline: clamp(16px, 3vw, 32px); }
.holes { height: 12px; background: repeating-linear-gradient(90deg, transparent 0 9px, #3a3a37 9px 21px, transparent 21px 30px); -webkit-mask: linear-gradient(#000 0 0) center / 100% 8px no-repeat; mask: linear-gradient(#000 0 0) center / 100% 8px no-repeat; }
.edge { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 0.625rem; letter-spacing: 0.1em; color: #8d8b82; padding-block: 5px; }
.edge span { display: flex; justify-content: space-between; padding-inline: 4px; }
.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.frame { scroll-snap-align: start; aspect-ratio: 3 / 2; max-width: 100%; min-width: 0; background: #1b1b19; border: 1px solid #2a2a28; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.frame .when { font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9b998f; }
.frame--lab .when { color: #e0675c; }
.frame h4 { font-size: 1rem; line-height: 1.3; }
.frame p { font-size: 0.75rem; color: #9b998f; }
.contact-note { padding-inline: clamp(16px, 3vw, 32px); font-size: 0.8125rem; color: #9b998f; max-width: 72ch; }

.modules { display: grid; border-top: var(--rule-heavy); }
.modules li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 16px; padding-block: 16px; border-bottom: var(--rule); }
.modules .n { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--muted); grid-row: span 2; padding-top: 0.3em; }
.modules h4 { font-size: 1.0625rem; }
.modules p { font-size: 0.9375rem; color: var(--muted); }

.safety { border: 1px solid var(--black); }
.safety-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 18px; border-bottom: var(--rule); }
.safety-head .state { color: var(--safelight); border-color: currentColor; }
.safety ul { display: grid; }
.safety li { display: grid; gap: 2px; padding: 14px 18px; border-bottom: var(--rule); font-size: 0.9375rem; }
.safety li span { color: var(--muted); }
.safety li:last-child { border-bottom: 0; }
@media (min-width: 700px) {
  .safety ul { grid-template-columns: 1fr 1fr; }
  .safety li:nth-child(odd) { border-right: var(--rule); }
  .safety li:nth-last-child(-n+2) { border-bottom: 0; }
}

.table-scroll { overflow-x: auto; }
.goals { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.goals th, .goals td { text-align: left; padding: 12px 16px 12px 0; border-bottom: var(--rule); vertical-align: top; }
.goals thead th { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); border-bottom: var(--rule-heavy); }
.goals td:nth-child(2) { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-width); font-size: 1.375rem; white-space: nowrap; }

/* Footer revelado */
main { position: relative; z-index: 1; background: var(--white); }
.footer { background: var(--black); color: var(--white); }
.footer .wrap { display: grid; gap: clamp(40px, 6vw, 80px); padding-block: clamp(48px, 7vw, 96px) calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer .display { font-size: var(--ed-size-display); max-width: 18ch; }
.footer-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); font-size: 0.9375rem; }
.footer-cols ul { display: grid; gap: 4px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.footer .label--muted { color: var(--grey); }
.footer-logo svg { width: min(100%, 420px); height: auto; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; border-top: 1px solid #2B2B2A; color: var(--grey); font-size: 0.8125rem; }
.reveal .footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
button.title-link { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; justify-self: start; }
.tile-inner .label { color: inherit; }
a.tile .tile-inner { color: var(--black); }
.frame { aspect-ratio: auto; min-height: 150px; }


/* =========================================================================
   v3 · Sitio oficial. Fotografía real, transiciones tipo anuario (Grafik):
   celdas separadas por líneas finas, imágenes que se revelan como una copia
   en la bandeja, cortina negra entre páginas y vista previa que sigue al cursor.
   ========================================================================= */
:root { --ink-rule: 1px solid var(--black); --t-slow: 900ms; }

/* ---------- Revelado al cargar y al hacer scroll ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.js .rv-img.is-in { clip-path: inset(0 0 0 0); }
.js .rv-img img { transform: scale(1.12); transition: transform 1.6s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.js .rv-img.is-in img { transform: scale(1); }
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line > span { display: block; }
.js .lines .line > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + 200ms); }
.js .lines.is-in .line > span { transform: none; }

/* ---------- Cortina entre páginas ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--black); transform: translateY(101%); visibility: hidden; pointer-events: none; transition: transform 480ms cubic-bezier(.7, 0, .2, 1), visibility 0s 480ms; }
.curtain.is-on { transform: translateY(0); visibility: visible; transition: transform 480ms cubic-bezier(.7, 0, .2, 1); }
.curtain span { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); color: var(--grey); font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; }

/* ---------- Imagen dentro de cualquier celda ---------- */
.ph { position: relative; overflow: hidden; background: #1a1a19; aspect-ratio: 4 / 5; max-width: 100%; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph--wide { aspect-ratio: 3 / 2; }
.ph--land { aspect-ratio: 4 / 3; }
.cap { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: var(--muted); padding-top: 8px; }

/* ---------- Hero tipo anuario ---------- */
.hx { background: var(--white); border-bottom: var(--ink-rule); }
.hx-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--ink-rule); }
.hx-cell { position: relative; overflow: hidden; background: #111; aspect-ratio: 4 / 5; max-width: 100%; border-right: var(--ink-rule); border-bottom: var(--ink-rule); }
.hx-cell:first-child { grid-column: span 2; aspect-ratio: 4 / 3; border-right: 0; }
.hx-cell:last-child { border-right: 0; }
.hx-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hx-cell img.on { opacity: 1; }
.hx-cell figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 0.75rem; letter-spacing: 0.04em; color: #ECEAE3; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
@media (min-width: 760px) {
  .hx-grid { grid-template-columns: repeat(3, 1fr); }
  .hx-cell, .hx-cell:first-child { grid-column: auto; aspect-ratio: 4 / 5; border-right: var(--ink-rule); border-bottom: 0; }
  .hx-cell:last-child { border-right: 0; }
}
@media (min-width: 1200px) { .hx-cell, .hx-cell:first-child { aspect-ratio: 5 / 5.4; } }
.hx-text { display: grid; gap: 28px; padding-block: clamp(28px, 4vw, 56px); }
.hx-text h1 { font-size: var(--ed-size-mega); }
.hx-foot { display: grid; gap: 20px; align-items: end; }
.hx-foot p { max-width: 40ch; }
.hx-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .hx-foot { grid-template-columns: 1fr auto; } }

/* Tiles con foto real */
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
a.tile:hover img, button.tile:hover img { transform: scale(1.04); }
.tile-logo { position: absolute; inset: 0; display: grid; place-items: center; padding: 14%; color: var(--white); }
.tile-logo svg { width: 100%; height: auto; fill: currentColor; }

/* ---------- Banda de convocatoria ---------- */
.callband { background: var(--black); color: var(--white); }
.callband .wrap { display: grid; gap: 28px; padding-block: clamp(48px, 7vw, 104px); }
.callband .display { font-size: var(--ed-size-display); }
.callband .muted { color: #B9B7AF; }
.callband .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.callband .btn:hover { background: transparent; color: var(--white); }
@media (min-width: 900px) { .callband .wrap { grid-template-columns: 7fr 5fr; align-items: end; } }

/* ---------- Aliados: logos en retícula ---------- */
.team-up { display: grid; gap: 40px; }
.logos { display: grid; grid-template-columns: 1fr; border-top: var(--rule-heavy); border-bottom: var(--ink-rule); }
.logo-cell { display: grid; grid-template-rows: 1fr auto; min-height: 220px; border-bottom: var(--rule); color: var(--black); text-decoration: none; transition: background-color .35s var(--ease), color .35s var(--ease); }
.logo-cell:last-child { border-bottom: 0; }
.logo-mark { display: grid; place-items: center; padding: 28px 18%; }
.logo-mark svg { width: 100%; max-height: 120px; height: auto; fill: currentColor; transition: transform .6s var(--ease); }
.logo-cell:hover .logo-mark svg { transform: scale(1.04); }
.logo-meta { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: var(--rule); font-size: 0.875rem; }
.logo-meta span:last-child { color: var(--muted); text-align: right; }
@media (hover: hover) { .logo-cell:hover { background: var(--black); color: var(--white); } .logo-cell:hover .logo-meta span:last-child { color: #B9B7AF; } .logo-cell:hover .logo-meta { border-color: #333; } }
@media (min-width: 760px) { .logos { grid-template-columns: repeat(3, 1fr); } .logo-cell { border-bottom: 0; border-right: var(--ink-rule); min-height: 280px; } .logo-cell:last-child { border-right: 0; } }

/* ---------- Índice editorial (blog) con vista previa al cursor ---------- */
.index { border-top: var(--rule-heavy); }
.index-row { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding-block: 18px; border-bottom: var(--rule); text-decoration: none; color: inherit; position: relative; }
.index-row .n { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--muted); padding-top: 0.45em; grid-row: span 2; }
.index-row h3 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.1; font-weight: 400; letter-spacing: -0.015em; transition: transform .45s var(--ease); }
.index-row .meta { font-size: 0.875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.index-row:hover h3 { transform: translateX(10px); }
@media (min-width: 900px) { .index-row { grid-template-columns: 56px 1fr 260px; align-items: baseline; } .index-row .n { grid-row: auto; } .index-row .meta { justify-content: flex-end; } }
.index-thumb { display: none; }
@media (max-width: 899px) { .index-row { grid-template-columns: 1fr 96px; } .index-row .n { display: none; } .index-thumb { display: block; grid-row: span 2; grid-column: 2; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; } .index-thumb img { width: 100%; height: 100%; object-fit: cover; } }
.peek { position: fixed; left: 0; top: 0; z-index: 60; width: 240px; aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.86); transition: opacity .25s ease, transform .35s var(--ease); }
.peek.on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Blog ---------- */
.blog-head { display: grid; gap: 20px; padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 40px); }
.blog-head .display { font-size: var(--ed-size-mega); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 40px; padding: 0 14px; background: var(--white); border: 1px solid var(--line); cursor: pointer; font-size: 0.875rem; }
.filters button[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.feature { display: grid; gap: 20px; text-decoration: none; color: inherit; padding-bottom: clamp(32px, 5vw, 64px); border-bottom: var(--ink-rule); margin-bottom: clamp(32px, 5vw, 64px); }
.feature .ph { aspect-ratio: 3 / 2; }
.feature h2 { font-size: var(--ed-size-h2); line-height: 1.08; letter-spacing: -0.015em; font-weight: 400; }
.feature .ph img { transition: transform 1.2s var(--ease); }
.feature:hover .ph img { transform: scale(1.03); }
@media (min-width: 900px) { .feature { grid-template-columns: 7fr 5fr; align-items: end; } }
.subscribe { border: var(--ink-rule); padding: clamp(20px, 3vw, 36px); display: grid; gap: 14px; background: var(--warm); }
@media (min-width: 900px) { .subscribe { grid-template-columns: 1fr auto; align-items: center; } }

/* Artículo */
.post-head { display: grid; gap: 18px; padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 40px); max-width: 1080px; }
.post-head .display { font-size: var(--ed-size-display); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; color: var(--muted); }
.post-hero { border-top: var(--ink-rule); border-bottom: var(--ink-rule); }
.post-hero .ph { aspect-ratio: 16 / 9; }
.post-body { display: grid; gap: 1.2em; max-width: 66ch; margin-inline: auto; padding-block: clamp(40px, 6vw, 80px); font-size: 1.125rem; line-height: 1.65; }
.post-body h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 600; margin-top: 0.8em; }
.post-body blockquote { margin: 0.6em 0; padding: 0.2em 0 0.2em 1em; border-left: 3px solid var(--black); font-size: 1.5rem; line-height: 1.35; }
.post-body figure { margin: 0.8em 0; }
.post-body .lead { font-size: 1.375rem; line-height: 1.45; }
.post-body a { text-decoration: underline; }
.post-nav { display: grid; gap: 0; border-top: var(--rule-heavy); }

/* ---------- Landing convocatoria ---------- */
.cv-hero { display: grid; border-bottom: var(--ink-rule); }
.cv-hero-text { display: grid; gap: 24px; align-content: end; padding-block: clamp(32px, 5vw, 72px); }
.cv-hero-text .display { font-size: var(--ed-size-mega); }
.cv-hero .ph { aspect-ratio: 4 / 5; border-top: var(--ink-rule); }
@media (min-width: 960px) { .cv-hero { grid-template-columns: 7fr 5fr; } .cv-hero .ph { border-top: 0; border-left: var(--ink-rule); aspect-ratio: auto; min-height: 640px; } }
.facts4 { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--ink-rule); }
.facts4 > div { padding: 18px 16px; border-right: var(--rule); border-bottom: var(--rule); display: grid; gap: 4px; }
.facts4 b { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-width); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1; text-transform: uppercase; }
@media (min-width: 900px) { .facts4 { grid-template-columns: repeat(4, 1fr); } .facts4 > div { border-bottom: 0; } .facts4 > div:last-child { border-right: 0; } }
.live { display: grid; grid-template-columns: 1fr; border-top: var(--rule-heavy); }
.live article { display: grid; gap: 12px; padding-block: 20px; border-bottom: var(--rule); }
@media (min-width: 760px) { .live { grid-template-columns: repeat(2, 1fr); } .live article { padding: 20px 20px 24px 0; } .live article:nth-child(odd) { border-right: var(--rule); } .live article:nth-child(even) { padding-left: 20px; } }
@media (min-width: 1100px) { .live { grid-template-columns: repeat(4, 1fr); } .live article { border-right: var(--rule); padding: 20px 20px 24px; } .live article:first-child { padding-left: 0; } .live article:last-child { border-right: 0; padding-right: 0; } }
.live h3 { font-size: 1.25rem; line-height: 1.25; }
.faq { border-top: var(--rule-heavy); }
.faq details { border-bottom: var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-size: 1.125rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; max-width: 64ch; color: var(--muted); }

/* Formulario por pasos */
.stepper { display: grid; gap: 28px; }
.steps-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.steps-bar span { height: 4px; background: var(--line); transition: background-color .4s var(--ease); }
.steps-bar span.on { background: var(--black); }
.step-label { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--muted); }
.step { display: grid; gap: 24px; border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-size: 1.375rem; font-weight: 600; margin-bottom: 4px; padding: 0; }
.js .step[hidden] { display: none; }
.step.is-in { animation: step-in .5s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.done-panel { display: grid; gap: 18px; border: var(--ink-rule); padding: clamp(20px, 3vw, 36px); background: var(--warm); }
.done-panel .display { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.done-panel ol { display: grid; gap: 0; border-top: var(--ink-rule); counter-reset: d; }
.done-panel li { counter-increment: d; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding-block: 12px; border-bottom: var(--rule); }
.done-panel li::before { content: counter(d); font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); transform: translateY(110%); transition: transform .45s var(--ease); }
.sticky-cta.on { transform: none; }
.sticky-cta .btn { background: var(--white); color: var(--black); border-color: var(--white); min-height: 44px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
.notice-line { border-left: 3px solid var(--safelight); padding-left: 12px; font-size: 0.9375rem; }

/* Páginas simples */
.page-head { display: grid; gap: 16px; padding-block: clamp(40px, 6vw, 88px) 24px; }
.page-head .display { font-size: var(--ed-size-display); }
.legal { display: grid; gap: 1em; max-width: 70ch; padding-bottom: 96px; }
.legal h2 { font-size: 1.25rem; font-weight: 600; margin-top: 1em; }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 4px; }
.draft { border: 1px dashed var(--black); background: var(--warm); padding: 12px 14px; font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv-img, .js .rv-img img, .js .lines .line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .curtain { display: none; }
  .peek { display: none; }
}

.split > .prose { align-content: start; }
input[type="tel"], input[type="number"] { width: 100%; font: inherit; font-size: 1.0625rem; color: var(--black); background: transparent; border: 0; border-bottom: 1px solid var(--black); border-radius: 0; padding: 10px 0; min-height: 48px; appearance: none; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 759px) { .hx-cell:not(:first-child) figcaption [data-cap] { display: none; } }

/* =========================================================================
   v4 · Hero escénico: ícono É al centro, dos fotos laterales que se
   reemplazan con un barrido desde arriba y una frase que conserva palabras
   de una a la siguiente.
   ========================================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs { position: relative; background: var(--black); color: var(--white); }
.hs-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: clamp(560px, calc(100svh - var(--bar)), 940px); overflow: hidden; }
.hs-side { position: relative; overflow: hidden; background: #111; }
.hs-side + .hs-side { border-left: 1px solid rgba(255,255,255,.18); }
.hs-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 100% 0); transition: clip-path 1.15s cubic-bezier(.77, 0, .18, 1); }
.hs-side img.on { clip-path: inset(0 0 0 0); }
.hs-side::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.42), rgba(0,0,0,.12) 70%); pointer-events: none; }
.hs-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: clamp(14px, 2vw, 22px); padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); text-align: center; pointer-events: none; z-index: 2; }
.hs-line { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; }
.hs-icon { width: clamp(96px, 11vw, 168px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.5); animation: hs-spin-in 1.4s var(--ease) both; }
.hs-icon svg { width: 100%; height: 100%; display: block; }
@keyframes hs-spin-in { from { transform: scale(.6) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hs-phrase { position: relative; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-width); text-transform: uppercase; line-height: .95; letter-spacing: -0.01em; font-size: clamp(2.1rem, 1rem + 4.6vw, 5.4rem); max-width: 13ch; min-height: 1.9em; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; column-gap: .24em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hs-phrase span { display: inline-block; transition: transform .8s cubic-bezier(.77, 0, .18, 1), opacity .45s ease, filter .45s ease; will-change: transform; }
.hs-phrase span.is-new { opacity: 0; transform: translateY(45%); filter: blur(8px); }
.hs-phrase span.is-leaving { position: absolute; white-space: nowrap; }
.hs-phrase span.is-leaving.gone { opacity: 0; transform: translateY(-45%); filter: blur(8px); }
.hs-hud { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px)); font-size: 0.75rem; letter-spacing: 0.06em; color: #E7E5DE; }
.hs-hud [data-cap-right] { text-align: right; }
.hs-progress { display: grid; gap: 8px; justify-items: center; }
.hs-bar { width: 96px; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.hs-bar i { display: block; height: 100%; background: var(--white); transform-origin: left; transform: scaleX(0); }
.hs-bar i.run { animation: hs-run var(--slide, 4.2s) linear forwards; }
@keyframes hs-run { to { transform: scaleX(1); } }
.hs-pause { pointer-events: auto; background: none; border: 1px solid rgba(255,255,255,.45); color: var(--white); min-height: 32px; padding: 0 12px; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.hs-pause:hover { border-color: var(--white); }
.hs-foot { background: var(--white); color: var(--black); }
.hs-foot .wrap { display: grid; gap: 20px; align-items: end; padding-block: clamp(28px, 4vw, 48px); border-bottom: var(--rule); }
.hs-foot p { max-width: 46ch; }
@media (min-width: 900px) { .hs-foot .wrap { grid-template-columns: 1fr auto; } }
@media (max-width: 699px) {
  .hs-stage { height: clamp(520px, 78svh, 760px); }
  .hs-line { font-size: 0.625rem; letter-spacing: 0.22em; }
  .hs-hud { grid-template-columns: 1fr auto; } .hs-hud [data-cap-right] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hs-icon { animation: none; } .hs-side img { transition: none; } .hs-phrase span { transition: none; } }
