/* ============================================================
   ENDOnosti · hoja de estilos
   Sistema: teal de marca sobre papel cálido y mar profundo.
   Tipografía: Source Serif 4 (editorial) + Manrope (interfaz).
   ============================================================ */

:root {
  /* marca */
  --mark-a: #005f56;
  --mark-b: #1e8a7a;
  --mark-c: #5bb9a6;

  /* paleta */
  --ink: #052625;
  --ink-2: #0a3634;
  --ink-3: #114744;
  --sea: #0f6b62;
  --sea-2: #1e8a7a;
  --foam: #5bb9a6;
  --foam-2: #8fd3c4;
  --mist: #dcebe7;
  --mist-2: #edf4f2;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --sand: #e6dfd0;
  --text: #13302e;
  --muted: #55706c;
  --muted-2: #7f9895;
  --line: rgba(15, 107, 98, .16);
  --line-dark: rgba(143, 211, 196, .18);
  --live: #e5484d;

  /* tipografía */
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* ritmo */
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(88px, 12vw, 168px);
  --container: 1280px;
  --radius: 22px;
  --radius-s: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.05; letter-spacing: -.015em; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--foam); color: var(--ink); }

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

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  transform: translateY(-200%); background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { transform: none; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }

/* --- utilidades tipográficas ------------------------------------ */
.serif { font-family: var(--serif); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sea-2);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.dark .eyebrow { color: var(--foam); }
.h-display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: .98; letter-spacing: -.02em;
  font-variation-settings: "opsz" 60;
}
.h-section {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.018em;
  font-variation-settings: "opsz" 60;
  max-width: 16ch;
}
.h-section em, .h-display em { font-style: normal; font-variation-settings: "opsz" 60; color: var(--sea-2); }
.dark .h-section em, .dark .h-display em { color: var(--foam-2); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 56ch; }
.dark .lead { color: rgba(220, 235, 231, .78); }
.num { font-variant-numeric: tabular-nums; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 48px; }
@media (max-width: 900px) { .section-head--split { grid-template-columns: 1fr; } }

/* --- botones ------------------------------------------------------ */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .005em;
  background: var(--bg); color: var(--fg); border: 1px solid transparent;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(5, 38, 37, .55); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { --bg: var(--sea); }
.btn--light { --bg: var(--foam); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: rgba(15, 107, 98, .06); box-shadow: none; }
.dark .btn--ghost { --fg: #fff; border-color: rgba(255, 255, 255, .22); }
.dark .btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  background: rgba(15, 107, 98, .08); color: var(--sea);
}
.dark .pill { background: rgba(143, 211, 196, .12); color: var(--foam-2); }
.pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); } 70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }

/* --- preloader ---------------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--paper); transition: opacity .9s var(--ease), visibility .9s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader .mark { width: min(56vw, 420px); }
.preloader__word { margin-top: 22px; text-align: center; font-size: clamp(1.6rem, 4vw, 2.4rem); opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease) .2s, transform .8s var(--ease) .2s; }
.preloader.is-drawn .preloader__word { opacity: 1; transform: none; }

/* --- borrador (vista previa desde admin) --------------------------- */
.draft-banner {
  position: fixed; right: 18px; top: calc(var(--nav-h) + 10px); z-index: 150;
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
}
.draft-banner strong { color: var(--foam-2); }

/* --- navegación --------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .5s, box-shadow .5s, transform .6s var(--ease);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand .mark { width: 54px; height: auto; }
.nav__brand .wordmark { font-size: 19px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative; padding: 8px 12px; font-size: 14.5px; font-weight: 600; color: var(--text); border-radius: 999px;
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav.is-scrolled { background: rgba(247, 245, 240, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.on-dark .nav__links a { color: rgba(255, 255, 255, .86); }
.nav.on-dark.is-scrolled { background: rgba(5, 38, 37, .74); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.nav.on-dark .nav__brand .wordmark b { color: #fff; }
.nav.at-top .nav__brand .wordmark { opacity: 0; transform: translateX(-6px); }
.nav__brand .wordmark { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.nav.on-dark .btn--ghost { --fg: #fff; border-color: rgba(255, 255, 255, .25); }
.nav.on-dark .burger span { background: #fff; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff;
  display: grid; place-content: center; gap: 8px; text-align: center;
  clip-path: circle(0 at calc(100% - 44px) 38px); transition: clip-path .8s var(--ease-io);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); }
.mobile-menu a { font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); padding: 6px; }
.mobile-menu .btn { margin-top: 20px; justify-self: center; }
@media (max-width: 980px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .burger { display: flex; }
}

/* --- regla de profundidad (progreso) ------------------------------ */
.depth {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2);
  transition: opacity .4s;
}
.depth__track { position: relative; width: 1px; height: 180px; background: var(--line); margin-right: 5px; }
.depth__track i { position: absolute; right: -3px; width: 7px; height: 1px; background: var(--muted-2); }
.depth__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--sea-2); }
.depth__marker { position: absolute; right: -7px; top: 0; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--sea-2); background: var(--paper); transform: translateY(-50%); transition: top .1s linear; }
.depth__marker::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--sea-2); }
.depth__label { position: absolute; right: 22px; top: 0; white-space: nowrap; transform: translateY(-50%); transition: top .1s linear; color: var(--sea-2); }
.depth__cm { margin-top: 10px; font-variant-numeric: tabular-nums; }
.dark-context .depth { color: rgba(255,255,255,.5); }
.dark-context .depth__track { background: var(--line-dark); }
.dark-context .depth__marker { background: var(--ink); border-color: var(--foam); }
.dark-context .depth__marker::after { background: var(--foam); }
.dark-context .depth__label { color: var(--foam); }
.dark-context .depth__fill { background: var(--foam); }
@media (max-width: 1560px) { .depth { display: none; } }

/* --- hero ---------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: #fff; background: var(--ink); overflow: clip; isolation: isolate;
}
.hero__gl { position: absolute; inset: 0; z-index: 0; }
.hero__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: none; transform-origin: 50% 60%; will-change: transform; }
.hero[data-hero="video"] .hero__video { display: block; }
.hero[data-hero="video"] .hero__gl { display: none; }
.hero[data-hero="video"] .hero__shade { background: linear-gradient(100deg, rgba(5, 38, 37, .86) 0%, rgba(5, 38, 37, .55) 38%, rgba(5, 38, 37, .12) 64%, rgba(5, 38, 37, .3) 100%), linear-gradient(0deg, rgba(4, 30, 30, .82) 0%, rgba(4, 30, 30, .1) 45%, rgba(4, 30, 30, .25) 100%); }
.hero[data-hero="video"] .hero__grain { opacity: .35; }
@media (max-width: 900px) { .hero__video { object-position: 55% 50%; } .hero[data-hero="video"] .hero__shade { background: linear-gradient(180deg, rgba(5,38,37,.3) 0%, rgba(5,38,37,.6) 40%, rgba(5,38,37,.9) 100%); } }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none !important; } .hero[data-hero="video"] .hero__bg { background-image: url("../assets/hero-poster.jpg"); background-size: cover; background-position: center; } }
.hero__gl canvas { width: 100% !important; height: 100% !important; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(30, 138, 122, .35), transparent 70%),
    radial-gradient(50% 60% at 20% 90%, rgba(91, 185, 166, .18), transparent 70%),
    linear-gradient(180deg, #06302f 0%, #052625 60%, #041e1e 100%);
}
.hero__grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, rgba(5, 38, 37, .82) 0%, rgba(5, 38, 37, .45) 38%, rgba(5, 38, 37, 0) 62%), linear-gradient(0deg, rgba(4, 30, 30, .7) 0%, rgba(4, 30, 30, 0) 40%); }
.hero__inner { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 60px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 40px; align-items: end; }
.hero h1 { margin: 22px 0 26px; max-width: 12ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .line > span { display: block; transform: translateY(110%); }
.hero .lead { max-width: 46ch; color: rgba(255, 255, 255, .78); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { display: grid; gap: 14px; justify-items: start; }
.hero__card {
  width: 100%; padding: 22px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__card .label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--foam-2); font-weight: 700; margin-bottom: 8px; }
.hero__date { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
.hero__place { color: rgba(255, 255, 255, .7); font-size: 14.5px; margin-top: 6px; }
.countdown { display: flex; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.countdown div { display: grid; gap: 2px; }
.countdown b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.hero__cue { position: absolute; right: var(--gutter); bottom: 26px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.hero__cue i { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--foam), transparent); animation: cue 2.2s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero__wordmark { margin-bottom: 10px; font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__meta { max-width: 460px; }
}

/* --- historia de la línea ----------------------------------------- */
.story { background: var(--paper); overflow: clip; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(24px, 4vw, 56px); }
.story__stage { position: relative; display: grid; align-items: center; }
.story__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 6vw, 90px); align-items: center; }
.story__copy .h-section { margin: 18px 0 20px; }
.story__figure { position: relative; }
.story__figure .mark { width: 100%; filter: drop-shadow(0 20px 40px rgba(15, 107, 98, .12)); }
.story__figure .mark__path { transition: none; }
.landmark {
  position: absolute; transform: translate(-50%, -50%); pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.landmark.is-on { opacity: 1; }
.landmark span {
  display: inline-block; padding: 6px 11px; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(5, 38, 37, .5);
}
.landmark::before { content: ""; position: absolute; left: 50%; width: 1px; height: 26px; background: var(--ink); opacity: .5; }
.landmark[data-side="top"] { transform: translate(-50%, calc(-100% - 28px)); }
.landmark[data-side="top"]::before { top: 100%; }
.landmark[data-side="bottom"] { transform: translate(-50%, 28px); }
.landmark[data-side="bottom"]::before { bottom: 100%; }
.landmark[data-side="right"] { transform: translate(28px, -50%); }
.landmark[data-side="right"]::before { width: 26px; height: 1px; right: 100%; left: auto; top: 50%; }
.landmark[data-side="left"] { transform: translate(calc(-100% - 28px), -50%); }
.landmark[data-side="left"]::before { width: 26px; height: 1px; left: 100%; top: 50%; }
.story__steps { display: grid; gap: 14px; margin-top: 28px; }
.story__step { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; opacity: .35; transition: opacity .5s; }
.story__step.is-on { opacity: 1; }
.story__step b { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--sea-2); }
.story__step p { margin: 0; font-size: 15px; color: var(--muted); }
.story__step strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__stage { min-height: 0; }
}

/* --- el curso ---------------------------------------------------- */
.course { background: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 56px; }
.stat { padding: 30px 24px 30px 0; border-bottom: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 4.5vw, 4rem); line-height: 1; letter-spacing: -.03em; color: var(--sea); font-variant-numeric: tabular-nums; }
.stat b small { font-size: .45em; letter-spacing: 0; vertical-align: super; color: var(--sea-2); }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

.journey { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.day {
  position: relative; padding: clamp(28px, 3.6vw, 44px); border-radius: var(--radius); overflow: hidden; min-height: 460px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.day:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(5, 38, 37, .35); }
.day--handson { background: var(--mist-2); border: 1px solid var(--line); }
.day--live { background: var(--ink); color: #fff; }
.day__num { font-family: var(--serif); font-size: clamp(4rem, 8vw, 7rem); line-height: .8; font-weight: 300; letter-spacing: -.04em; color: var(--sea); opacity: .25; position: absolute; right: 24px; top: 20px; user-select: none; }
.day--live .day__num { color: var(--foam); opacity: .3; }
.day h3 { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 400; margin: 14px 0 12px; max-width: 14ch; }
.day p { color: var(--muted); max-width: 42ch; }
.day--live p { color: rgba(255, 255, 255, .72); }
.day__list { display: grid; gap: 10px; }
.day__list li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.day__list li::before { content: ""; flex: none; width: 18px; height: 1px; background: currentColor; opacity: .4; transform: translateY(-4px); }
.day__art { position: absolute; right: -6%; bottom: -10%; width: 56%; opacity: .14; pointer-events: none; }
.day__art svg { width: 100%; height: auto; }
@media (max-width: 860px) { .journey { grid-template-columns: 1fr; } }

/* --- tercer espacio ---------------------------------------------- */
.space { background: var(--ink); color: #fff; }
.space__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.wall { position: sticky; top: calc(var(--nav-h) + 24px); }
.wall svg { width: 100%; height: auto; border-radius: var(--radius); background: #062b2a; border: 1px solid rgba(255,255,255,.08); }
.wall__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.62); }
.wall__legend b { font-weight: 600; color: #fff; }
.wall__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.wall__caption { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-s); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: 15px; color: rgba(255,255,255,.8); min-height: 76px; }
.wall__caption strong { color: var(--foam-2); }
.tech { display: grid; gap: 10px; }
.tech__item {
  width: 100%; text-align: left; display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: var(--radius-s); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: background .35s, border-color .35s, transform .5s var(--ease);
}
.tech__item:hover { background: rgba(255,255,255,.07); }
.tech__item.is-active { background: rgba(91, 185, 166, .12); border-color: rgba(91, 185, 166, .45); transform: translateX(6px); }
.tech__item i { font-style: normal; font-family: var(--serif); font-size: 13px; letter-spacing: .04em; color: var(--foam); border: 1px solid rgba(91,185,166,.4); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; }
.tech__item b { display: block; font-weight: 600; font-size: 16px; }
.tech__item span { display: block; font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 2px; }
.tech__item svg { width: 18px; height: 18px; opacity: .4; transition: transform .4s var(--ease), opacity .4s; }
.tech__item.is-active svg { opacity: 1; transform: translateX(4px); }
@media (max-width: 900px) {
  .space__grid { grid-template-columns: 1fr; }
  .wall { position: relative; top: 0; }
  .wall__legend { display: none; }
  .wall__caption { min-height: 0; font-size: 14px; padding: 12px 14px; }
  .tech { order: -1; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .tech::-webkit-scrollbar { display: none; }
  .tech__item { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 999px; scroll-snap-align: start; }
  .tech__item i { width: 30px; height: 30px; font-size: 11px; }
  .tech__item span, .tech__item svg { display: none; }
  .tech__item b { font-size: 14px; white-space: nowrap; }
  .tech__item.is-active { transform: none; }
  .hero__cue { display: none; }
}
@media (max-width: 640px) { .landmark { display: none; } }

/* --- modalidades --------------------------------------------------- */
.modes { background: var(--paper); }
.modes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }
.mode {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform .12s linear, box-shadow .5s var(--ease);
  box-shadow: 0 1px 0 rgba(5, 38, 37, .04);
}
.mode:hover { box-shadow: 0 40px 70px -40px rgba(5, 38, 37, .4); }
.mode--featured { background: var(--ink); color: #fff; border-color: transparent; }
.mode__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mode__badge { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-2); }
.mode--featured .mode__badge { color: var(--foam); }
.mode h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2rem); font-weight: 400; }
.mode__seats { display: flex; align-items: baseline; gap: 8px; }
.mode__seats b { font-family: var(--serif); font-weight: 300; font-size: 3.2rem; line-height: 1; letter-spacing: -.03em; color: var(--sea); font-variant-numeric: tabular-nums; }
.mode--featured .mode__seats b { color: var(--foam-2); }
.mode__seats span { font-size: 13.5px; color: var(--muted); }
.mode--featured .mode__seats span { color: rgba(255,255,255,.6); }
.mode__lead { color: var(--muted); font-size: 15.5px; }
.mode--featured .mode__lead { color: rgba(255,255,255,.75); }
.mode__list { display: grid; gap: 10px; font-size: 14.5px; flex: 1; }
.mode__list li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.mode__list li::before { content: ""; width: 14px; height: 1px; background: var(--sea-2); margin-top: 11px; opacity: .7; }
.mode--featured .mode__list li::before { background: var(--foam); }
.mode__seats b.is-text { font-size: 2rem; letter-spacing: -.01em; padding-top: .35rem; }
.mode__glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(91,185,166,.18), transparent 60%); }
.mode:hover .mode__glow { opacity: 1; }
@media (max-width: 960px) { .modes__grid { grid-template-columns: 1fr; max-width: 560px; } }

/* --- dirección --------------------------------------------------- */
.director { background: var(--mist-2); overflow: clip; }
.director__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.director__portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.director__portrait img { width: 100%; height: 100%; object-fit: cover; }
.director__portrait .mark { position: absolute; inset: 14% 8% auto; opacity: .9; }
.director__portrait .portrait-lines { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(255,255,255,.035) 22px 23px); }
.director__name { position: absolute; left: 24px; right: 24px; bottom: 22px; color: #fff; }
.director__name b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.director__name span { font-size: 13px; color: rgba(255,255,255,.65); }
blockquote { margin: 26px 0 22px; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.35; font-weight: 400; font-style: italic; color: var(--ink-3); }
blockquote::before { content: "“"; color: var(--foam); }
blockquote::after { content: "”"; color: var(--foam); }
.director__quote blockquote { margin: 26px 0 28px; font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.28; text-indent: -.45em; }
.director h2 { margin-bottom: 20px; }
.director__sig { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 380px; }
.director__sig b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.director__sig span { font-size: 13.5px; color: var(--muted); }
.director__photo { aspect-ratio: 4 / 5; max-width: 340px; border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.director__photo img { width: 100%; height: 100%; object-fit: cover; }
.defining { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .defining { grid-template-columns: 1fr 1fr; } .defining__item:nth-child(odd) { padding-left: 0; border-left: 0; } .defining__item:last-child { grid-column: span 2; } }
@media (max-width: 640px) { .defining { grid-template-columns: 1fr; } .defining__item:last-child { grid-column: auto; } }
.defining__item { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
.defining__item + .defining__item { padding-left: 26px; border-left: 1px solid var(--line); }
.defining__item b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.15; margin-bottom: 8px; color: var(--ink-3); }
.defining__item p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .director__grid { grid-template-columns: 1fr; } }

/* --- ediciones --------------------------------------------------- */
.editions { background: var(--paper); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.tabs button { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s, background .3s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.next-edition { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.next-edition__hero { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--ink); color: #fff; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.next-edition__hero .mark { position: absolute; right: -8%; bottom: -12%; width: 70%; opacity: .16; pointer-events: none; }
.next-edition__year { font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 12vw, 9rem); line-height: .85; letter-spacing: -.05em; color: var(--foam-2); }
.next-edition__hero h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 14px 0 8px; }
.next-edition__hero p { color: rgba(255,255,255,.72); max-width: 50ch; }
.next-edition__hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.next-edition__hero .chips span { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.next-edition__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.program-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.program-card:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(5, 38, 37, .35); }
.program-card__thumb { aspect-ratio: 3/4; border-radius: 8px; background: var(--mist-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; color: var(--sea-2); position: relative; }
.program-card__thumb canvas, .program-card__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.program-card__thumb svg { width: 34px; height: 34px; }
.program-card b { display: block; font-size: 16px; }
.program-card span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.program-card--empty { opacity: .8; }
.program-card--empty b { color: var(--muted); }
.program-card__cta { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; color: var(--sea-2); font-weight: 600; font-size: 13.5px; }
.program-card__cta svg { width: 16px; height: 16px; }
.next-edition__stats { display: flex; gap: 22px; margin: 26px 0 14px; flex-wrap: wrap; }
.next-edition__stats b { font-family: var(--serif); font-size: 1.9rem; font-weight: 300; color: var(--sea); }
.next-edition__stats div div { font-size: 13px; color: var(--muted); }

.schedule { display: grid; gap: 14px; }
.sched-day { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.sched-day__head { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; text-align: left; }
.sched-day__head .tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-2); padding: 5px 9px; border-radius: 6px; background: rgba(15,107,98,.08); }
.sched-day__head b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.sched-day__head svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.sched-day[open] .sched-day__head svg { transform: rotate(45deg); }
.sched-day__body { padding: 0 22px 22px; }
.sched-day__body p { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; }
.sched-item { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.sched-item time { font-variant-numeric: tabular-nums; color: var(--sea-2); font-weight: 600; font-size: 14px; padding-top: 2px; }
.sched-item b { font-weight: 600; }
.sched-item small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.sched-item[data-type="break"] { color: var(--muted-2); }
.sched-item[data-type="break"] b { font-weight: 500; }
.sched-item[data-type="live"] b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 8px; vertical-align: 2px; }
.sched-item[data-type="workshop"] b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--foam); margin-right: 8px; vertical-align: 2px; }
.sched-empty { padding: 26px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 15px; text-align: center; }

.archive { position: relative; }
.archive__rail { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 400px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 0 28px; scrollbar-width: none; }
.archive__rail::-webkit-scrollbar { display: none; }
.archive__timeline { position: relative; height: 1px; background: var(--line); margin: 6px 0 32px; }
.archive__timeline i { position: absolute; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--sea-2); }
.archive__timeline i::after { content: attr(data-year); position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.archive__nav { display: flex; gap: 8px; }
.archive__nav[hidden], .archive__timeline[hidden] { display: none; }
.archive__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s; }
.archive__nav button:hover { background: var(--ink); color: #fff; }
.archive__nav svg { width: 18px; height: 18px; }
.past {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 32px); border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); min-height: 420px; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.past:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(5, 38, 37, .35); }
.past__year { display: flex; align-items: baseline; justify-content: space-between; }
.past__year b { font-family: var(--serif); font-weight: 300; font-size: 3.4rem; line-height: 1; letter-spacing: -.04em; color: var(--sea); }
.past__year span { font-size: 13px; color: var(--muted); }
.past h4 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.past p { font-size: 14.5px; color: var(--muted); flex: 1; }
.past__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; margin-top: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.past__stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--sea-2); line-height: 1; }
.past__stats span { font-size: 12px; color: var(--muted); }
.past__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.past__tags span { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--mist-2); color: var(--sea); font-weight: 600; }
.past__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.past__gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.past__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.faculty { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 20px; margin: 22px 0 6px; }
.faculty li b { display: block; font-weight: 600; font-size: 14.5px; }
.faculty li span { display: block; font-size: 13px; color: var(--muted); }
.faculty__title { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-top: 26px; }
.partners { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: rgba(255,255,255,.62); }
.partners b { color: rgba(255,255,255,.85); font-weight: 600; }
@media (max-width: 960px) { .next-edition { grid-template-columns: 1fr; } .next-edition__hero { min-height: 0; } }

/* --- sede ----------------------------------------------------------- */
.venue { background: var(--ink); color: #fff; overflow: clip; }
.venue__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.venue__map { position: relative; border-radius: var(--radius); overflow: hidden; background: #062b2a; border: 1px solid rgba(255,255,255,.08); }
.venue__map svg { width: 100%; height: auto; }
.venue__addr { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.25; margin: 22px 0 6px; }
.venue__addr small { display: block; font-family: var(--sans); font-size: 15px; color: rgba(255,255,255,.65); margin-top: 6px; }
.venue__list { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.1); }
.venue__list li { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; }
.venue__list li span { color: rgba(255,255,255,.6); }
.venue__list li b { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .venue__grid { grid-template-columns: 1fr; } }

/* --- inscripción ------------------------------------------------- */
.signup { background: var(--paper); }
.signup__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.signup__aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.signup__aside ul { margin-top: 26px; display: grid; gap: 14px; }
.signup__aside li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; color: var(--muted); }
.signup__aside li b { color: var(--text); display: block; font-weight: 600; }
.signup__aside li i { font-style: normal; font-family: var(--serif); color: var(--sea-2); font-size: 15px; }
.form { padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -50px rgba(5,38,37,.3); }
.form__progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 28px; }
.form__progress span { height: 3px; border-radius: 2px; background: var(--paper-2); overflow: hidden; position: relative; }
.form__progress span::after { content: ""; position: absolute; inset: 0; background: var(--sea-2); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.form__progress span.is-done::after { transform: scaleX(1); }
.form__step { display: none; animation: stepIn .6s var(--ease); }
.form__step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.form__step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 6px; }
.form__step > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.choice { display: grid; gap: 10px; }
.choice label { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-s); border: 1px solid var(--line); cursor: pointer; transition: border-color .3s, background .3s; }
.choice label:hover { background: var(--mist-2); }
.choice label:has(:checked) { border-color: var(--sea); background: rgba(15,107,98,.06); }
.choice input { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted-2); margin: 0; display: grid; place-items: center; }
.choice input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sea); transform: scale(0); transition: transform .3s var(--ease); }
.choice input:checked { border-color: var(--sea); }
.choice input:checked::after { transform: scale(1); }
.choice b { display: block; font-size: 15.5px; }
.choice span { display: block; font-size: 13px; color: var(--muted); }
.choice em { font-style: normal; font-size: 13px; color: var(--sea-2); font-weight: 600; white-space: nowrap; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); transition: border-color .3s, box-shadow .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea-2); box-shadow: 0 0 0 4px rgba(30,138,122,.12); background: #fff; }
.field input:user-invalid, .field select:user-invalid { border-color: var(--live); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2355706c' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.form__error { color: var(--live); font-size: 14px; margin-top: 12px; display: none; }
.form__error.is-on { display: block; }
.summary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; margin-bottom: 20px; }
.summary div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 16px; font-size: 14.5px; border-top: 1px solid var(--line); }
.summary div:first-child { border-top: 0; }
.summary div span { color: var(--muted); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--sea); }
.consent a { text-decoration: underline; text-underline-offset: 2px; color: var(--sea); }
.form__done { text-align: center; padding: 20px 0; }
.form__done .mark { width: 180px; margin: 0 auto 14px; }
.form__done .hero__ctas { justify-content: center; margin-top: 8px; }
.form__done .mail { display: block; margin-top: 14px; font-size: 14px; color: var(--muted); }
.form__done h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; }
.form__done p { color: var(--muted); max-width: 44ch; margin: 10px auto 22px; }
@media (max-width: 900px) { .signup__grid { grid-template-columns: 1fr; } .signup__aside { position: static; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* --- pie ------------------------------------------------------------ */
.footer { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand .wordmark { font-size: 2.1rem; }
.footer__brand p { margin-top: 18px; font-size: 14.5px; color: rgba(255,255,255,.6); max-width: 34ch; }
.footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--foam); margin-bottom: 16px; }
.footer ul { display: grid; gap: 9px; font-size: 14.5px; color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.45); }
.footer__bottom a { color: rgba(255,255,255,.6); }
.footer__line { width: 100%; height: auto; margin-bottom: 40px; opacity: .45; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* --- diálogos legales ------------------------------------------- */
dialog.legal { width: min(92vw, 720px); max-height: 84vh; border: 0; border-radius: var(--radius); padding: 0; background: #fff; color: var(--text); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
dialog.legal::backdrop { background: rgba(5, 38, 37, .55); backdrop-filter: blur(4px); }
dialog.legal .legal__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
dialog.legal h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
dialog.legal .legal__body { padding: 24px 28px 32px; font-size: 15px; color: var(--muted); }
dialog.legal .legal__body h4 { font-size: 15px; color: var(--text); margin: 18px 0 6px; }
.close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.close svg { width: 16px; height: 16px; }

/* --- revelado por scroll ------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* --- toast --------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 160; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --- movimiento reducido ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}

/* --- pared digestiva: modos ------------------------------------------ */
#wall .wl-label { font: 700 11px var(--sans); letter-spacing: .18em; fill: #8fd3c4; }
#wall .wl-tag { font: 700 12px var(--sans); letter-spacing: .14em; fill: rgba(255,255,255,.82); paint-order: stroke; stroke: rgba(6,43,42,.55); stroke-width: 3px; }
#wall .wl-note { font: italic 500 14px var(--serif); fill: #c8f0e6; paint-order: stroke; stroke: rgba(6,43,42,.6); stroke-width: 3px; }
#wall .wl-ai { font: 700 9px var(--sans); letter-spacing: .08em; }
#wall .mode { opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
#wall[data-mode="poem"] .mode--poem, #wall[data-mode="dpoem"] .mode--dpoem, #wall[data-mode="dse"] .mode--dse,
#wall[data-mode="barrett"] .mode--barrett, #wall[data-mode="sutura"] .mode--sutura, #wall[data-mode="ia"] .mode--ia { opacity: 1; }
#wall .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); animation: wallDraw 1.6s var(--ease) .25s forwards; }
#wall .mode:not([style]) .draw { animation-play-state: running; }
@keyframes wallDraw { to { stroke-dashoffset: 0; } }
#wall .wl-tunnel-line { stroke-dasharray: 6 6 !important; animation: wallDash 1.2s linear infinite !important; stroke-dashoffset: 0 !important; }
@keyframes wallDash { to { stroke-dashoffset: -24; } }
#wall .wl-cushion { transform-origin: 355px 215px; animation: cushion 1.2s var(--ease) both; }
@keyframes cushion { from { transform: scale(.2, .1); } to { transform: scale(1); } }
#wall .wl-balloon { animation: balloon 1.2s var(--ease) both; }
@keyframes balloon { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: .9; } }
#wall .wl-scan { animation: scan 2.4s linear infinite; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(140px); } }
#wall .wl-lens { animation: lens 2s ease-in-out infinite; }
@keyframes lens { 0%, 100% { opacity: .8; } 50% { opacity: 1; filter: drop-shadow(0 0 8px #c8f0e6); } }
#wall .wl-beam { animation: beam 3s ease-in-out infinite; }
@keyframes beam { 0%, 100% { opacity: .06; } 50% { opacity: .14; } }
#wall .wl-tunnel { animation: tunnel 1.6s var(--ease) both; transform-origin: 214px 200px; }
@keyframes tunnel { from { transform: scaleX(0); } to { transform: scaleX(1); } }
#wall .wl-box-tag, #wall .wl-ai { animation: fadeUp .6s var(--ease) 1.2s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.field .is-invalid { border-color: var(--live) !important; }
@media (prefers-reduced-motion: reduce) { #wall * { animation: none !important; } #wall .draw { stroke-dashoffset: 0; } }

/* --- portada con recorrido (solo escritorio, sin movimiento reducido) --- */
.hero--fly { min-height: 205svh; display: block; }
.hero--fly .hero__bg, .hero--fly .hero__gl, .hero--fly .hero__grain, .hero--fly .hero__shade { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; }
.hero--fly .hero__inner { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: flex-end; }
.hero--fly .hero__cue { position: fixed; pointer-events: none; }
.hero__exit { position: absolute; inset: 0; z-index: 3; background: var(--paper); opacity: 0; pointer-events: none; }
.hero--fly .hero__exit { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; }

/* --- modo estático (?static=1): capturas y revisión sin animación ------ */
html.static [data-reveal] { opacity: 1; transform: none; transition: none; }
html.static .nav.is-hidden { transform: none; }
html.static .hero h1 .line > span { transform: none; }
html.static #wall .draw { animation: none; stroke-dashoffset: 0; }

/* --- marca denominativa en texto (nítida a cualquier tamaño) ------------ */
.wordmark { display: inline-block; font-family: "Poppins", var(--sans); font-weight: 500; letter-spacing: -.005em; line-height: 1; white-space: nowrap; }
.wordmark b { font-weight: 500; color: var(--mark-a); }
.wordmark span { color: var(--mark-c); }
.wordmark--light b { color: #fff; }
.wordmark--light span { color: var(--foam-2); }
.hero .hero__gl { transition: opacity .6s; }
@media (max-width: 900px) { .hero__shade { background: linear-gradient(180deg, rgba(5,38,37,.15) 0%, rgba(5,38,37,.55) 40%, rgba(5,38,37,.85) 100%); } }
.sched-note { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 12px; border-radius: 8px; background: rgba(15,107,98,.07); color: var(--sea); font-size: 13px; font-weight: 600; }

/* --- patrocinadores ------------------------------------------------- */
/* Alturas definidas (no aspect-ratio): Safari no resuelve max-height:100% dentro de cajas con aspect-ratio */
.sponsors { background: var(--mist-2); }
.sponsors__tier { margin-top: clamp(32px, 4vw, 48px); }
.sponsors__tier h3 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sea-2); font-weight: 700; text-align: center; margin-bottom: 18px; display: flex; align-items: center; gap: 18px; }
.sponsors__tier h3::before, .sponsors__tier h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sponsors__grid { display: grid; gap: 14px; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.sponsors__grid--padrino { grid-template-columns: minmax(220px, 360px); justify-content: center; }
.sponsors__grid--principal { grid-template-columns: repeat(4, 1fr); }
.sponsors__grid--colaborador { grid-template-columns: repeat(5, 1fr); }
.sponsor { position: relative; display: flex; align-items: center; justify-content: center; height: 118px; padding: 18px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.sponsors__grid--padrino .sponsor { height: 150px; padding: 26px 36px; border-color: rgba(15,107,98,.4); box-shadow: 0 20px 40px -30px rgba(5,38,37,.4); }
.sponsors__grid--colaborador .sponsor { height: 84px; padding: 14px 18px; }
a.sponsor:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(5,38,37,.45); }
.sponsor img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--ink-3); text-align: center; }
@media (max-width: 1000px) { .sponsors__grid--principal { grid-template-columns: repeat(3, 1fr); } .sponsors__grid--colaborador { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
  .sponsors__grid { gap: 10px; }
  .sponsors__grid--principal { grid-template-columns: 1fr 1fr; }
  .sponsors__grid--colaborador { grid-template-columns: 1fr 1fr 1fr; }
  .sponsor { height: 92px; padding: 12px 14px; }
  .sponsors__grid--padrino .sponsor { height: 120px; padding: 20px 28px; }
  .sponsors__grid--colaborador .sponsor { height: 64px; padding: 10px; }
}

/* --- dirección con fotografía y palabras del director ---------------- */
.director__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.director__grid.no-photo { grid-template-columns: 1fr; max-width: 920px; }
.director__photo { margin: 0; aspect-ratio: 4 / 5; max-width: none; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 70px -45px rgba(5, 38, 37, .55); }
.director__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.director__quote blockquote { margin: 24px 0 28px; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.42; text-indent: 0; }
.director__quote blockquote::before, .director__quote blockquote::after { content: none; }
.director__quote blockquote p { margin: 0 0 .75em; }
.director__quote blockquote p:first-child::before { content: "“"; color: var(--foam); }
.director__quote blockquote p:last-child { margin-bottom: 0; }
.director__quote blockquote p:last-child::after { content: "”"; color: var(--foam); }
@media (max-width: 860px) { .director__grid { grid-template-columns: 1fr; } .director__photo { max-width: 420px; } }

/* --- equipo y profesorado --------------------------------------------- */
.team { background: var(--paper); }
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 20px; }
.team__card { display: grid; gap: 12px; align-content: start; }
.team__photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--mist-2); display: grid; place-items: center; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team__photo span { font-family: var(--serif); font-size: 2.2rem; color: var(--sea-2); }
.team__card b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.team__card small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
@media (max-width: 640px) { .team__grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; } }

/* --- enlaces de una edición (grabaciones, etc.) ------------------------ */
.past__links { display: grid; gap: 6px; }
.past__links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sea); }
.past__links a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
.past__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.past__faculty { font-size: 13.5px; color: var(--muted); margin: 0; }
.past__faculty summary { cursor: pointer; color: var(--text); font-weight: 600; list-style: none; }
.past__faculty summary::-webkit-details-marker { display: none; }
.past__faculty summary::after { content: " +"; color: var(--sea-2); }
.past__faculty[open] summary::after { content: " –"; }
.past__faculty ul { margin-top: 8px; display: grid; gap: 4px; max-height: 220px; overflow: auto; padding-right: 6px; }
.past__faculty li span { color: var(--muted-2); }

/* --- casos en directo: vídeos ---------------------------------------- */
.videos { background: var(--ink); color: #fff; }
.videos__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 22px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #041e1e; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__poster { position: absolute; inset: 0; width: 100%; display: block; cursor: pointer; text-align: left; }
.player__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 1.2s var(--ease), opacity .5s; }
.player__poster:hover img { transform: scale(1.03); opacity: .85; }
.player__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,38,37,.1), rgba(5,38,37,.75)); }
.player__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--foam); color: var(--ink); z-index: 2; box-shadow: 0 0 0 12px rgba(91,185,166,.25); transition: transform .5s var(--ease), box-shadow .5s; }
.player__play svg { width: 34px; height: 34px; margin-left: 4px; }
.player__poster:hover .player__play { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 18px rgba(91,185,166,.2); }
.player__caption { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 2; font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: #fff; }
.parts { display: grid; gap: 10px; }
.part { width: 100%; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; text-align: left; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .3s, border-color .3s; }
.part:hover { background: rgba(255,255,255,.08); }
.part.is-active { background: rgba(91,185,166,.14); border-color: rgba(91,185,166,.5); }
.part__thumb { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0a3634; position: relative; }
.part__thumb img { width: 100%; height: 100%; object-fit: cover; }
.part__thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23052625'%3E%3Cpath d='M9 6v12l9-6z'/%3E%3C/svg%3E") center/16px no-repeat; }
.part b { display: block; font-weight: 600; font-size: 15px; }
.part span { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 2px; }
.parts__note { font-size: 13px; color: rgba(255,255,255,.55); margin: 8px 4px 0; }
@media (max-width: 900px) { .videos__grid { grid-template-columns: 1fr; } .player__play { width: 64px; height: 64px; } .player__play svg { width: 26px; height: 26px; } }

.director__sig--co { border-top: 0; padding-top: 10px; }
