/* ATAPS 2027 · web independiente (fuente). El generador _fuentes/construir_web_independiente.py copia este archivo a
   _publicar/assets/css/ y añade ?v=hash a las URL marcadas. Sin peticiones a terceros. Radios: medios a 0, controles y fichas 6 px. */

/* ---------- Fuentes autoalojadas (subconjunto latino de los TTF de 0_Marca, SIL OFL 1.1) ---------- */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2?v=5cfc36aca6") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2?v=006432684b") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-300.woff2?v=bacb1aaa79") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-400.woff2?v=ac847580dd") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-600.woff2?v=8d7b258efd") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Reservas con métricas parecidas: evitan saltos al llegar la fuente web */
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"); size-adjust: 117.82%; ascent-override: 82.16%; descent-override: 21.3%; line-gap-override: 0%; }
@font-face { font-family: "Open Sans Fallback"; src: local("Arial"); size-adjust: 105.77%; ascent-override: 101.05%; descent-override: 27.7%; line-gap-override: 0%; }

/* ---------- Tokens (DESIGN.md) ---------- */
:root {
  --coral: #D8544C;          /* gráficos y texto grande */
  --coral-light: #F18B86;    /* texto sobre oscuro */
  --coral-text: #C4453D;     /* texto pequeño sobre blanco (4,9:1) */
  --orange: #E65127;         /* acento Spotlight: cifras grandes y trazos */
  --orange-text: #BF3F17;    /* enlaces y texto pequeño naranja (5,3:1) */
  --ink: #333333;
  --ink-deep: #262626;
  --muted: #666666;
  --paper: #FFFFFF;
  --paper-alt: #F5F5F5;
  --line: #E2E2E2;
  --f-head: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Open Sans", "Open Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 68px;
  --max: 1240px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --r: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ramp-dark: linear-gradient(90deg, #EEEEEE 0%, #EEEEEE 40%, #F18B86 62%, #E65127 80%, #E65127 100%);
  --ramp-light: linear-gradient(90deg, #333333 0%, #333333 34%, #D8544C 62%, #E65127 100%);
  --section-y: clamp(72px, 9vw, 128px);
}
@media (max-width: 1023px) { :root { --nav-h: 60px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.125rem; line-height: 1.65; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--orange-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -200px; z-index: 100; background: #fff; color: var(--ink); padding: 12px 18px; border-radius: var(--r); font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* Capas (z-index): 1 contenido, 40 cabecera, 60 diálogo nativo (top layer), 100 enlace de salto. */

/* ---------- Títulos de sección con el termograma del logotipo ---------- */
.h2 { display: flex; align-items: center; gap: 16px; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); letter-spacing: -.01em; margin-bottom: clamp(28px, 3.5vw, 48px); }
.h2__curve { flex: 0 0 auto; width: clamp(44px, 4vw, 58px); height: auto; overflow: visible; }
.h2__curve path { fill: none; stroke: url(#g-ramp-light); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.on-dark .h2__curve path { stroke: url(#g-ramp-dark); }
.h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); margin: 0 0 28px; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper-alt); }

/* ---------- Cabecera ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav-h); color: #fff; }
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(38,38,38,.92); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  opacity: 0; transition: opacity .45s var(--ease); }
.nav::after { content: ""; position: absolute; inset: 0 0 auto; height: 140%; pointer-events: none; background: linear-gradient(rgba(20,20,22,.55), rgba(20,20,22,0)); transition: opacity .45s var(--ease); }
.nav.is-solid::before, .nav.is-open::before { opacity: 1; }
.nav.is-solid::after, .nav.is-open::after { opacity: 0; }
.nav__bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; height: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.nav__brand { display: inline-flex; align-items: center; margin-right: auto; padding: 6px 0; min-height: 44px; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.nav__brand img { height: 30px; width: auto; }
.js .nav:not(.is-solid):not(.is-open) .nav__brand { opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; }
.nav__links { position: relative; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: #fff; text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; transition: color .25s ease; }
.nav__menu a:hover, .nav__menu a[aria-current="true"] { color: var(--coral-light); }
.nav__ink { position: absolute; left: 0; bottom: 4px; height: 2px; width: 1px; background: var(--coral-light); transform-origin: 0 0; opacity: 0;
  transform: translateX(var(--ink-x, 0)) scaleX(var(--ink-w, 1)); transition: transform .5s var(--ease), opacity .3s ease; pointer-events: none; }
.nav__ink.is-on { opacity: 1; }
.nav__toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; background: transparent; border: 0; color: #fff; border-radius: var(--r); cursor: pointer; }
.nav__toggle svg { width: 26px; height: 26px; }
.nav__toggle line { transition: transform .35s var(--ease), opacity .2s ease; transform-origin: 12px 12px; }
.nav.is-open .nav__toggle .l1 { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__toggle .l2 { opacity: 0; }
.nav.is-open .nav__toggle .l3 { transform: translateY(-5px) rotate(-45deg); }
/* Rampa de temperatura: progreso de lectura (sin significado científico) */
.nav__ramp { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; overflow: hidden; pointer-events: none; }
.nav__ramp span { display: block; height: 100%; background: var(--ramp-dark); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
@supports (animation-timeline: scroll()) {
  .nav__ramp span { animation: ramp linear both; animation-timeline: scroll(root block); }
  @keyframes ramp { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (max-width: 1023px) {
  .js .nav__toggle { display: inline-flex; }
  .js .nav__menu { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: var(--ink-deep); box-shadow: 0 24px 40px rgba(0,0,0,.3);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s linear .5s; }
  .js .nav.is-open .nav__menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease), visibility 0s; }
  .js .nav__menu a { min-height: 54px; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  .js .nav__menu li { opacity: 0; transform: translateY(-8px); transition: opacity .35s ease, transform .45s var(--ease); }
  .js .nav.is-open .nav__menu li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 45ms + 80ms); }
  .nav__ink { display: none; }
  html.no-js .nav { position: absolute; height: auto; }
  html.no-js .nav__bar { flex-wrap: wrap; padding-block: 8px; }
  html.no-js .nav__menu { flex-wrap: wrap; }
}

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #1e1f22;
  min-height: max(620px, 100svh); display: flex; flex-direction: column; justify-content: center; }
@supports not (height: 100svh) { .hero { min-height: max(620px, 100vh); } }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; transform-origin: 32% 62%; }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,18,20,.62) 0%, rgba(18,18,20,.22) 30%, rgba(18,18,20,.26) 62%, rgba(18,18,20,.58) 100%),
    linear-gradient(90deg, rgba(18,18,20,.62) 0%, rgba(18,18,20,.34) 45%, rgba(18,18,20,.10) 72%, rgba(18,18,20,.30) 100%); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px clamp(32px, 6vw, 96px);
  padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 96px)); padding-bottom: calc(13.9vw + 20px); }
.hero__logo { width: clamp(220px, 30vw, 440px); height: auto; margin-bottom: clamp(22px, 3vw, 36px); }
.hero__title { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.015em; max-width: 23ch; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.25); }
/* Subtítulo en blanco cálido: el coral claro no alcanza 3:1 sobre las zonas claras de la foto (medido). */
.hero__sub { display: block; margin-top: .55em; font-family: var(--f-body); font-weight: 400; font-size: clamp(1.15rem, .95rem + .9vw, 1.75rem); letter-spacing: 0; line-height: 1.3; color: #FFE3DF; }
.hero__meta { margin: clamp(20px, 2.6vw, 30px) 0 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(.82rem, .74rem + .3vw, 1rem); letter-spacing: .14em; text-transform: uppercase; }
.hero__aside { justify-self: end; text-align: right; min-width: 0; }
.hero__count { margin: 0; display: flex; flex-direction: column; align-items: flex-end; visibility: hidden; }
.hero__count.is-ready { visibility: visible; }
.hero__count-n { font-family: var(--f-body); font-weight: 300; font-size: clamp(4.2rem, 2rem + 7vw, 8.6rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hero__count-l { margin-top: 10px; font-family: var(--f-head); font-weight: 600; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.hero__note { margin: 18px 0 0; font-size: .98rem; color: #F2F2F2; }
.hero__note .btn { margin-top: 4px; }
html.no-js .hero__count { display: none; }

/* Termograma del borde inferior: misma forma que la curva del logotipo, sin escalas ni etiquetas */
.hero__edge { position: absolute; left: 0; right: 0; bottom: -1px; aspect-ratio: 1440 / 200; pointer-events: none; }
.hero__edge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__edge .edge-fill { fill: var(--paper); }
.hero__edge .edge-glow { fill: none; stroke: url(#g-edge); stroke-width: 12; opacity: .2; stroke-linecap: round; stroke-linejoin: round; }
.hero__edge .edge-line { fill: none; stroke: url(#g-edge); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.motion .hero__edge .edge-line, .motion .hero__edge .edge-glow { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero__edge .is-narrow { display: none; }
@media (max-width: 767px) {
  .hero__edge { aspect-ratio: 400 / 120; }
  .hero__edge .is-wide { display: none; }
  .hero__edge .is-narrow { display: block; }
  .hero__edge .edge-line { stroke-width: 2.6; }
  .hero__edge .edge-glow { stroke-width: 9; }
}
.hero__dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; opacity: 0;
  box-shadow: 0 0 0 5px rgba(230,81,39,.35), 0 0 22px 4px rgba(230,81,39,.55); }
.hero__dot.is-on { opacity: 1; transition: opacity .3s ease; }
.hero__dot.is-done { opacity: 0; transition: opacity 1.2s ease .6s; }
html:not(.motion) .hero__dot { display: none; }

.hero__pause { position: absolute; right: max(var(--gutter), calc((100% - 1360px) / 2 + var(--gutter))); top: calc(var(--nav-h) + 16px); z-index: 2; display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.32); border-radius: var(--r); background: rgba(20,20,22,.28); color: #fff; font-size: .8rem; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .25s ease, border-color .25s ease; }
.hero__pause:hover { background: rgba(20,20,22,.6); border-color: #fff; }
.hero__pause svg { width: 14px; height: 14px; }
.motion .hero__pause { display: inline-flex; }
.hero__pause .i-play, .hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }

@media (max-width: 767px) {
  .hero { min-height: max(600px, 100svh); }
  .hero__media img { object-position: 50% 50%; }
  .hero__shade { background: linear-gradient(180deg, rgba(18,18,20,.68) 0%, rgba(18,18,20,.6) 40%, rgba(18,18,20,.56) 72%, rgba(18,18,20,.5) 100%); }
  .hero__inner { grid-template-columns: 1fr; align-items: start; gap: 28px; padding-top: calc(var(--nav-h) + 76px); padding-bottom: calc(30vw + 16px); }
  .hero__aside { justify-self: start; text-align: left; }
  .hero__count { flex-direction: row; align-items: baseline; gap: 12px; }
  .hero__count-l { margin: 0; }
  .hero__note { margin-top: 10px; }
  .hero__pause { top: calc(var(--nav-h) + 14px); width: 44px; padding: 0; justify-content: center; }
  .hero__pause-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Entrada escalonada de la portada (solo con movimiento) */
@keyframes enter { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0,0,0); } to { transform: scale(1.12) translate3d(-1.6%, -1.2%, 0); } }
.motion .hero [data-enter] { animation: enter 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 120ms + 120ms); }
.motion .hero__media img { animation: kenburns 32s var(--ease-io) infinite alternate; will-change: transform; }
.hero.is-paused .hero__media img { animation-play-state: paused; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 26px; border-radius: var(--r); border: 0;
  font-family: var(--f-head); font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--orange-text); color: #fff; transition: background-color .25s ease, transform .2s var(--ease); }
.btn:hover { background: #A33512; text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--light { background: #fff; color: var(--orange-text); }
.btn--light:hover { background: var(--ink); color: #fff; }

/* ---------- Revelado al entrar en pantalla ---------- */
.motion [data-reveal] { transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
.motion .h2__curve path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-io) .15s; }
.motion .is-in .h2__curve path, .motion .h2.is-in .h2__curve path { stroke-dashoffset: 0; }

/* ---------- Program ---------- */
.program { padding-top: clamp(48px, 6vw, 88px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.stat { display: grid; grid-template-rows: auto auto auto auto; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.stat__n { font-family: var(--f-body); font-weight: 300; font-size: clamp(5.2rem, 3.4rem + 6vw, 9.5rem); line-height: .92; letter-spacing: -.05em; color: var(--orange); font-variant-numeric: tabular-nums; }
.stat__what { margin-top: 18px; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.15rem, 1rem + .4vw, 1.35rem); }
.stat__bar { display: block; height: 6px; width: calc(var(--w) * 100%); margin-top: 16px; border-radius: 3px; background: var(--ramp-light); transform-origin: 0 50%; }
.motion .stat__bar { transform: scaleX(0); transition: transform 1.4s var(--ease) .25s; }
.motion .stat.is-in .stat__bar { transform: scaleX(1); transition-delay: calc(var(--i, 0) * 120ms + 350ms); }
.stat__len { margin-top: 10px; color: var(--muted); font-size: 1rem; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 8px; }
  .stat { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 18px; padding: 18px 0 20px; }
  .stat__n { grid-row: 1 / 4; font-size: 4.8rem; align-self: center; }
  .stat__what { margin-top: 0; }
  .stat__bar { margin-top: 10px; }
  .stat__len { margin-top: 6px; }
}

/* ---------- Key dates ---------- */
.dates { background: var(--paper-alt); }
.dates__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.dates__label { margin: 0 0 6px; font-family: var(--f-head); font-weight: 600; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dates__big { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4rem); text-wrap: balance; line-height: 1.02; letter-spacing: -.02em; color: var(--orange-text); }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 520px; }
.days li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px 14px; background: #fff; border-radius: var(--r); border-top: 3px solid var(--coral); }
.days li:nth-child(2) { border-top-color: #DE5039; }
.days li:nth-child(3) { border-top-color: #E35130; }
.days li:nth-child(4) { border-top-color: var(--orange); }
.days span { font-size: .78rem; font-family: var(--f-head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.days b { font-family: var(--f-body); font-weight: 300; font-size: 2.1rem; line-height: 1; color: var(--ink); }
.motion .days li { transition: opacity .7s var(--ease), transform .8s var(--ease); }
.motion .days:not(.is-in) li { opacity: 0; transform: translateY(16px) scale(.96); }
.motion .days.is-in li { transition-delay: calc(var(--i) * 110ms + 150ms); }
.tba { padding: clamp(22px, 2.6vw, 32px); background: #fff; border-radius: var(--r); }
.tba h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.05rem; margin: 0 0 14px; }
.tba li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; }
.tba li + li { border-top: 1px solid var(--line); }
.tba li span { font-size: .78rem; font-family: var(--f-head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 820px) { .dates__grid { grid-template-columns: 1fr; } }

/* ---------- About y temas ---------- */
.lead { font-weight: 300; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); line-height: 1.5; max-width: 46ch; margin: 0 0 clamp(56px, 7vw, 104px); color: var(--ink); }
.topics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0 clamp(32px, 5vw, 88px); }
.topics__list { grid-column: 1; grid-row: 1; }
.topic { position: relative; padding: 28px 0 32px 28px; }
.topic::before { content: ""; position: absolute; left: 0; top: 30px; bottom: 34px; width: 4px; border-radius: 2px; background: var(--line); }
.topic::after { content: ""; position: absolute; left: 0; top: 30px; bottom: 34px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--coral), var(--orange));
  transform-origin: 50% 0; transform: scaleY(1); transition: transform .7s var(--ease); }
.topic__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.15; margin: 0 0 10px; transition: color .4s ease; }
.topic__text p { margin: 0; font-size: 1.06rem; line-height: 1.6; max-width: 52ch; }
.topic__media { display: none; }
.topics__stage { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: calc(var(--nav-h) + max(16px, 6vh)); }
/* El escenario cabe entero en pantallas bajas (botón de pausa siempre visible mientras está fijo) */
.stage__frame { position: relative; aspect-ratio: 4 / 3; width: min(100%, calc((100vh - var(--nav-h) - 190px) * 4 / 3)); background: #fff; overflow: hidden; }
@supports (height: 100svh) { .stage__frame { width: min(100%, calc((100svh - var(--nav-h) - 190px) * 4 / 3)); } }
.stage__item { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.stage__item.is-active { opacity: 1; transform: none; }
.stage__item video, .stage__item img, .topic__media video, .topic__media img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.stage__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.stage__ticks { display: flex; gap: 6px; }
.stage__ticks span { width: 28px; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .4s ease, width .5s var(--ease); }
.stage__ticks span.is-active { width: 48px; background: var(--coral); }
.media-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #9A9A9A; border-radius: var(--r); background: #fff; color: var(--ink); font-size: .85rem; cursor: pointer; }
.media-toggle:hover { border-color: var(--ink); }
.media-toggle svg { width: 13px; height: 13px; }
.media-toggle .i-play, .media-toggle[aria-pressed="true"] .i-pause { display: none; }
.media-toggle[aria-pressed="true"] .i-play { display: block; }
html:not(.motion) .media-toggle { display: none; }
.topics__note { margin: 12px 0 0; font-size: .85rem; line-height: 1.5; color: var(--muted); max-width: 46ch; }
/* Tema activo (solo escritorio con JS): franja que crece y título en coral */
@media (min-width: 900px) {
  .js .topic { min-height: clamp(200px, 28vh, 300px); display: flex; align-items: center; }
  .js .topic::after { transform: scaleY(0); }
  .js .topic.is-active::after { transform: scaleY(1); }
  .js .topic.is-active .topic__title { color: var(--coral-text); }
  .js .topics__list { padding-block: 6vh 18vh; }
}
@media (max-width: 899px) {
  .topics { grid-template-columns: 1fr; }
  .topics__stage { position: static; grid-column: 1; grid-row: 1; }
  .stage__frame, .stage__ticks { display: none; }
  .stage__bar { margin: 0 0 8px; justify-content: flex-start; }
  .topics__list { grid-row: 2; }
  .topic { padding: 22px 0 26px; }
  .topic::before, .topic::after { display: none; }
  .topic__media { display: block; aspect-ratio: 4 / 3; margin: 0 0 18px; background: #fff; overflow: hidden; border-bottom: 3px solid var(--coral); }
  .topics__note { grid-row: 3; }
}
html.no-js .topics__stage .stage__frame, html.no-js .stage__ticks { display: none; }
/* Sin JavaScript: una columna y el fotograma fijo de cada tema junto a su texto */
html.no-js .topics { grid-template-columns: 1fr; }
html.no-js .topics__stage { position: static; grid-column: 1; grid-row: 1; }
html.no-js .topics__list { grid-column: 1; grid-row: 2; }
html.no-js .topic__media { display: block; width: min(100%, 420px); aspect-ratio: 4 / 3; margin: 0 0 14px; background: #fff; }

/* ---------- Ponentes ---------- */
.speakers .h3 { display: flex; align-items: baseline; gap: 14px; }
.speakers .h3 small { font-family: var(--f-body); font-weight: 400; font-size: .95rem; color: var(--muted); letter-spacing: 0; }
.keynotes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.sp__open { display: block; height: 100%; color: inherit; text-decoration: none; border-radius: var(--r); }
.sp__photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #e6e6e6; }
.sp__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s ease; }
.sp__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ramp-light); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.sp__open:hover .sp__photo img, .sp__open:focus-visible .sp__photo img { transform: scale(1.06); }
.sp__open:hover .sp__photo::after, .sp__open:focus-visible .sp__photo::after { transform: scaleX(1); }
.sp__open:hover .sp__name, .sp__open:focus-visible .sp__name { color: var(--orange-text); }
.sp__name { display: block; margin: 16px 0 6px; font-family: var(--f-head); font-weight: 600; font-size: 1.08rem; line-height: 1.3; transition: color .3s ease; }
.sp__aff { display: block; font-size: .93rem; line-height: 1.45; }
.sp__country { display: block; margin-top: 6px; font-family: var(--f-head); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.invited-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(64px, 8vw, 104px); margin-bottom: 24px; }
.invited-head .h3 { margin: 0; }
.ribbon__controls { display: flex; gap: 8px; }
.ribbon__controls button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; padding: 0 14px; border: 1px solid #9A9A9A; border-radius: var(--r);
  background: #fff; color: var(--ink); font-size: .88rem; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.ribbon__controls button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.ribbon__controls svg { width: 16px; height: 16px; }
.ribbon__controls .i-play, [data-ribbon-toggle][aria-pressed="true"] .i-pause { display: none; }
[data-ribbon-toggle][aria-pressed="true"] .i-play { display: block; }
.ribbon { position: relative; }
.ribbon__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 32px 20px; }
.js .ribbon { margin-inline: calc(var(--gutter) * -1); }
.js .ribbon__viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; padding: 4px var(--gutter) 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); }
.js .ribbon__viewport::-webkit-scrollbar { display: none; }
.js .ribbon__track { display: flex; gap: 22px; width: max-content; }
.js .ribbon__track > li { width: clamp(156px, 17vw, 214px); flex: 0 0 auto; }
.ribbon .sp__aff { min-height: 2.9em; }
.ribbon__viewport:focus-visible { outline-offset: -3px; }
@media (max-width: 1100px) { .keynotes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .keynotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .keynotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .sp__name { font-size: 1rem; }
  .sp__aff { font-size: .88rem; }
  .ribbon__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
}

/* Ficha de ponente (diálogo nativo) */
.dlg { width: min(820px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r); color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.45); overflow: auto; }
.dlg::backdrop { background: rgba(24,24,26,.66); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.motion .dlg[open]::backdrop { animation: fade .35s ease both; }
.dlg__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.dlg__photo { position: relative; aspect-ratio: 1; background: #e6e6e6; overflow: hidden; }
.dlg__photo img { width: 100%; height: 100%; object-fit: cover; }
.dlg__body { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 48px); padding-top: 64px; }
.dlg__group { margin: 0 0 14px; font-family: var(--f-head); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-text); }
.dlg__name { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin: 0 0 16px; }
.dlg__aff { font-size: 1.1rem; margin: 0 0 6px; }
.dlg__country { margin: 0; color: var(--muted); }
.dlg__close { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: var(--r); background: #fff; color: var(--ink); cursor: pointer; }
.dlg__close:hover { background: var(--paper-alt); }
.dlg__close svg { width: 22px; height: 22px; }
.dlg__nav { display: flex; gap: 8px; margin-top: 28px; }
.dlg__nav button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; white-space: nowrap; border: 1px solid #9A9A9A; border-radius: var(--r); background: #fff; color: var(--ink); font-size: .88rem; cursor: pointer; }
.dlg__nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.dlg__nav svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .dlg__grid { grid-template-columns: 1fr; }
  .dlg__photo { aspect-ratio: 4 / 3; }
  .dlg__photo img { object-position: 50% 30%; }
  .dlg__body { padding: 24px 22px 26px; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Comités (sin fotos: tarjetas tipográficas con el filete coral→naranja que crece al entrar) ---------- */
.committees__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
.cm-list { display: grid; gap: 12px; }
.cm-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm { position: relative; display: flex; flex-direction: column; padding: 18px 20px 17px 26px; background: var(--paper-alt); border-radius: var(--r); overflow: hidden; }
.cm::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--coral) 0%, var(--orange) 100%); transform-origin: 50% 0; }
.motion .cm::before { transition: transform 1.1s var(--ease) calc(var(--i, 0) * 70ms + 250ms); }
.motion .cm:not(.is-in)::before { transform: scaleY(0); }
.cm__role { align-self: flex-start; margin-bottom: 10px; padding: 3px 8px; border-radius: 3px; background: var(--coral-text); color: #fff; font-family: var(--f-head); font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.cm__name { margin: 0 0 4px; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.cm__aff { font-size: .93rem; line-height: 1.45; }
.cm__country { margin-top: 6px; font-family: var(--f-head); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cm--chair { padding-block: 22px 20px; background: var(--ink-deep); color: #fff; }
.cm--chair::before { width: 6px; }
.cm--chair .cm__name { font-size: 1.22rem; }
.cm--chair .cm__country { color: #BDBDBD; }
@media (max-width: 900px) { .committees__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cm-list--two { grid-template-columns: 1fr; } }

/* ---------- Registration ---------- */
.reg { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-block: clamp(80px, 10vw, 140px);
  background: linear-gradient(118deg, var(--coral-text) 0%, #C24233 45%, var(--orange-text) 100%); }
.reg__curve { position: absolute; z-index: -1; right: -4%; bottom: -6%; width: min(900px, 92%); height: auto; overflow: visible; opacity: .2; }
.reg__curve path { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.motion .reg__curve path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-io) .2s; }
.motion .reg.is-in .reg__curve path { stroke-dashoffset: 0; }
.reg .h2 { margin-bottom: 22px; }
.reg__status { margin: 0 0 10px; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.2; max-width: 24ch; }
.reg__more { margin: 0; font-size: 1.12rem; max-width: 52ch; }
.reg .btn { margin-top: 26px; }

/* ---------- Where ---------- */
.where__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.where__city { margin: -8px 0 16px; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); color: var(--coral-text); }
.where__text > p { max-width: 54ch; }
.venue { display: flex; align-items: flex-start; gap: 12px; margin: 26px 0 0; padding: 14px 18px; border-radius: var(--r); background: var(--paper-alt); font-weight: 600; }
.venue svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; color: var(--coral); }
.venue__addr, .venue__link { display: block; margin-top: 4px; font-weight: 400; }
.venue__link { width: fit-content; }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.lcard { position: relative; display: flex; flex-direction: column; padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s ease, transform .4s var(--ease), box-shadow .4s ease; }
.lcard:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(51,51,51,.55); }
.lcard h3 { font-size: 1.08rem; margin: 0 0 6px; }
.lcard p { flex: 1; margin: 0 0 12px; font-size: .95rem; line-height: 1.5; }
.lcard a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.lcard a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.lcard a:focus-visible { outline: 0; }
.lcard a:focus-visible::after { outline: 3px solid var(--orange); outline-offset: 3px; }
.ext { display: inline-block; width: .8em; height: .8em; margin-left: .3em; vertical-align: -.05em; }
.where__photo { position: relative; margin: 0; aspect-ratio: 4 / 3.4; overflow: hidden; background: #c9b8a0; }
.where__photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 50%; }
/* El recorte va en el hijo: IntersectionObserver tiene en cuenta el clip-path del propio elemento observado. */
.where__photo picture { display: block; height: 100%; }
.motion .where__photo picture { transition: clip-path 1.4s var(--ease-io); }
.motion .where__photo:not(.is-in) picture { clip-path: inset(0 0 0 100%); }
.motion .where__photo.is-in picture { clip-path: inset(0 0 0 0); }
@supports (animation-timeline: view()) {
  .motion .where__photo img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @keyframes drift { from { transform: translateY(-9%); } to { transform: translateY(0); } }
}
@media (max-width: 900px) { .where__grid { grid-template-columns: 1fr; } .where__photo { order: -1; aspect-ratio: 16 / 10; } }
@media (max-width: 520px) { .links { grid-template-columns: 1fr; } }

/* ---------- Contact y pie ---------- */
.contact { background: var(--ink-deep); color: #fff; padding-block: clamp(72px, 8vw, 112px) clamp(48px, 6vw, 72px); }
.contact a { color: var(--coral-light); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: center; }
.contact p { margin: 0; font-size: 1.12rem; color: #EEEEEE; }
.contact__logos { display: flex; align-items: center; gap: clamp(32px, 5vw, 64px); }
.contact__logos a { display: inline-flex; border-radius: 2px; }
.contact__ehu img { width: 164px; height: 164px; }
.contact__polymat { padding-block: 8px; }
.contact__polymat img { width: 260px; height: auto; }
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } .contact__logos { flex-wrap: wrap; } }
@media (max-width: 400px) { .contact__ehu img { width: 132px; height: 132px; } .contact__polymat img { width: 220px; } }
.foot { background: var(--ink-deep); color: #DADADA; border-top: 1px solid rgba(255,255,255,.14); padding-block: 22px 28px; font-size: .9rem; }
.foot a { color: var(--coral-light); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; }
.foot p { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Movimiento reducido: estado final, sin transiciones ni bucles ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero__media img, .where__photo img { animation: none !important; transform: none !important; }
}

/* ---------- Impresión ---------- */
@media print {
  .nav, .hero__pause, .skip, .media-toggle, .ribbon__controls, .hero__edge, .topics__stage { display: none !important; }
  .hero { min-height: 0; padding-top: 24px; }
  .hero, .reg, .contact, .foot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topic__media { display: none !important; }
}
