/* Hallmark · shape: Stage hero, then alternating night and paper bands · genre: editorial · theme: brand · redesign: full
 * paper: #F6F7FB · accent: #BAD532 · display: Poppins 600 · body: Poppins 400 · hero: Stage (copy left, 3D box right, pinned scroll) · nav: floating dark bar · footer: mast · signature: the box that opens on scroll, throws the 24 tools out and raises the Neomed mark in 3D
 * axes: dark/geometric-sans/chromatic-lime · posture: Stage · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: E, the forms are long because the scholarship needs those fields */

:root {
  --night: #0B0D26;
  --night-2: #12153A;
  --night-3: #1B1F52;
  --deep: #181B4D;
  --navy: #2C316C;
  --navy-2: #3D4496;
  --lime: #BAD532;
  --lime-2: #CDE64F;
  --sky: #D3E7F7;
  --paper: #F6F7FB;
  --paper-2: #ECEFF7;
  --white: #FFFFFF;
  --ink: #14162B;
  --muted: #555A82;
  --line: #D9DDEB;
  --field-edge: #7F84AB;
  --on-night: #F4F6FB;
  --on-night-muted: #B4BAD9;
  --success: #2E9E5B;
  --error: #D8443C;

  --rgb-night: 11 13 38;
  --rgb-navy: 44 49 108;
  --rgb-lime: 186 213 50;
  --rgb-white: 255 255 255;

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  --text-xl: clamp(1.25rem, 0.9vw + 1rem, 1.625rem);
  --text-h3: clamp(1.375rem, 1.2vw + 1rem, 2rem);
  --text-h2: clamp(2rem, 3.6vw + 0.75rem, 3.75rem);
  --text-display: clamp(2.375rem, 5.2vw + 0.75rem, 5.75rem);

  --container: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(72px, 9vw, 148px);
  --gap: clamp(16px, 2vw, 28px);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --focus: var(--navy);
  --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--night); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark, .hero, .nav { --focus: var(--lime); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.on-dark { background: var(--deep); color: var(--on-night); }
.lead { font-size: var(--text-lg); line-height: 1.5; }

.skip-link { position: fixed; left: 16px; top: 16px; transform: translateY(-300%); z-index: 100; padding: 12px 18px; border-radius: var(--r-sm); background: var(--lime); color: var(--night); font-weight: 600; }
.skip-link:focus { transform: none; }

.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gap) clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }
.section-head :is(h1, h2) { font-size: var(--text-h2); max-width: 16ch; }
.section-head p { font-size: var(--text-lg); line-height: 1.5; color: var(--muted); max-width: 36ch; }
.on-dark .section-head p { color: var(--on-night-muted); }
.section-head.is-stacked { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; }
.section-head.is-stacked :is(h1, h2) { font-size: var(--text-display); letter-spacing: -0.04em; line-height: 0.98; max-width: 14ch; }
.section-head.is-stacked p { max-width: 44ch; }

/* reveal on scroll: hidden only when the script is running */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease) var(--reveal-delay, 0ms), transform 0.6s var(--ease) var(--reveal-delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.9375rem; line-height: 1; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: var(--text-sm); }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: var(--text-md); }
.btn-block { width: 100%; }
.btn-primary { background: var(--lime); color: var(--night); box-shadow: 0 10px 30px -12px rgb(var(--rgb-lime) / 0.7); }
.btn-primary:hover:not(:disabled) { background: var(--lime-2); box-shadow: 0 16px 36px -12px rgb(var(--rgb-lime) / 0.85); }
.btn-ghost { color: var(--on-night); box-shadow: inset 0 0 0 1.5px rgb(var(--rgb-white) / 0.38); }
.btn-ghost:hover { background: rgb(var(--rgb-white) / 0.1); box-shadow: inset 0 0 0 1.5px rgb(var(--rgb-white) / 0.7); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover:not(:disabled) { background: var(--navy-2); }
.on-dark .btn-primary:disabled { opacity: 1; background: rgb(var(--rgb-white) / 0.12); color: var(--on-night-muted); box-shadow: none; }
.btn.is-success { background: var(--success); color: var(--white); box-shadow: none; }
.btn.is-error { background: var(--error); color: var(--white); box-shadow: none; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.terms-link { font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* ---------- Header ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; transition: transform 0.45s var(--ease); }
.nav.is-away:not(.menu-open) { transform: translateY(-130%); }
.nav-bar {
  pointer-events: auto;
  max-width: var(--container); margin-inline: auto; height: 56px; padding: 0 10px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: var(--r-pill);
  background: rgb(var(--rgb-night) / 0);
  box-shadow: inset 0 0 0 1px rgb(var(--rgb-white) / 0);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled .nav-bar, .nav.menu-open .nav-bar {
  background: rgb(var(--rgb-night) / 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgb(var(--rgb-white) / 0.1), 0 18px 40px -24px rgb(var(--rgb-night) / 0.9);
}
.nav-logo { flex: none; display: block; border-radius: 6px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a { position: relative; padding: 8px 0; white-space: nowrap; font-size: var(--text-sm); font-weight: 500; color: var(--on-night-muted); transition: color 0.25s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover { color: var(--on-night); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--on-night); }
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  pointer-events: auto;
  position: fixed; inset: 0; z-index: -1;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  background: var(--night);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu a:not(.btn) { padding: 6px 0; font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--on-night); opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s; }
.mobile-menu a:not(.btn):hover { color: var(--lime); }
.mobile-menu.open a:not(.btn) { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(2) { transition-delay: 40ms; }
.mobile-menu.open a:nth-child(3) { transition-delay: 80ms; }
.mobile-menu.open a:nth-child(4) { transition-delay: 120ms; }
.mobile-menu.open a:nth-child(5) { transition-delay: 160ms; }
.mobile-menu.open a:nth-child(6) { transition-delay: 200ms; }
.mobile-menu.open a:nth-child(7) { transition-delay: 240ms; }
.mobile-menu .btn { margin-top: 28px; min-height: 56px; font-size: var(--text-md); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night-2); color: var(--on-night); }
.hero-stage { position: relative; height: 100svh; min-height: 620px; overflow: clip; }
@media (max-width: 1080px) { .hero-stage { min-height: 0; } }
/* the graph-paper stage of the speakers band. hero-box.js paints this same recipe inside WebGL (paintBackdrop): keep both in sync */
.hero-canvas { position: absolute; inset: 0; background: radial-gradient(95% 90% at 78% 30%, var(--navy), transparent 60%), var(--night-2); }
.hero-canvas::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(var(--rgb-white) / 0.06) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--rgb-white) / 0.06) 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: radial-gradient(120% 105% at 78% 42%, var(--ink) 30%, transparent 80%); mask-image: radial-gradient(120% 105% at 78% 42%, var(--ink) 30%, transparent 80%); }
.hero-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s var(--ease); }
.hero.is-live .hero-canvas canvas { opacity: 1; }
.hero-fallback { display: none; position: absolute; right: 2%; top: 52%; width: min(50%, 84svh); height: auto; transform: translateY(-50%); -webkit-mask-image: radial-gradient(closest-side, var(--ink) 62%, transparent); mask-image: radial-gradient(closest-side, var(--ink) 62%, transparent); }
/* the still is only for browsers that cannot run the 3D box; nothing shows while it loads */
.hero.is-static .hero-fallback { display: block; }

.hero-inner { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; pointer-events: none; }
.hero-copy { pointer-events: auto; max-width: 600px; padding-top: var(--nav-h); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, min(2.2vw, 3svh), 28px); }
.hero-copy h1 { font-size: clamp(2.375rem, min(5.2vw + 0.75rem, 11.5svh), 5.75rem); line-height: 0.98; letter-spacing: -0.04em; max-width: 11ch; }
.hero-copy h1 em { font-style: normal; color: var(--lime); }
/* the copy enters once the brand font is in, instead of flashing in a fallback face */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { opacity: 0; }
  .js.fonts-ready .hero-copy > * { opacity: 1; animation: hero-in 0.9s var(--ease) backwards; }
  .js.fonts-ready .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .js.fonts-ready .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .js.fonts-ready .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .js.fonts-ready .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
}
.hero-lead { font-size: clamp(1.0625rem, min(0.9vw + 1rem, 3.2svh), 1.625rem); line-height: 1.4; color: var(--on-night-muted); max-width: 30ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 0.9375rem; font-weight: 500; }
.hero-meta li { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--lime); flex: none; }
.hero-meta a { white-space: nowrap; text-decoration: underline; text-decoration-color: rgb(var(--rgb-white) / 0.35); text-underline-offset: 0.3em; transition: text-decoration-color 0.2s; }
.hero-meta a:hover { text-decoration-color: var(--lime); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: var(--text-sm); }
.hero-links a { white-space: nowrap; padding-block: 12px; margin-block: -12px; font-weight: 500; color: var(--on-night-muted); text-decoration: underline; text-decoration-color: rgb(var(--rgb-white) / 0.3); text-underline-offset: 0.3em; transition: color 0.2s, text-decoration-color 0.2s; }
.hero-links a:hover { color: var(--on-night); text-decoration-color: var(--lime); }

.hero-words { display: none; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero.is-3d .hero-words { display: block; }
.hero-word { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 500; letter-spacing: -0.01em; color: var(--on-night); will-change: transform, opacity; opacity: 0; }
.hero-word span { display: block; }
.hero-word.t1 { font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.875rem); font-weight: 600; letter-spacing: -0.025em; }
.hero-word.t2 { font-size: clamp(0.9375rem, 0.6vw + 0.6rem, 1.125rem); color: rgb(var(--rgb-white) / 0.82); }
.hero-word.t3 { font-size: clamp(0.8125rem, 0.3vw + 0.65rem, 0.9375rem); color: rgb(var(--rgb-white) / 0.7); }
.hero-word:nth-child(5n + 1) { color: var(--lime); }

.hero-slogan { display: none; position: absolute; left: 0; top: 0; z-index: 2; white-space: nowrap; font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--on-night-muted); pointer-events: none; opacity: 0; }
.hero.is-3d .hero-slogan { display: block; }

.hero-hint { position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 10px; font-size: var(--text-sm); font-weight: 600; color: var(--on-night); pointer-events: none; }
.hero.is-3d .hero-hint { display: inline-flex; }
.hero-hint svg, .hero-more svg { box-sizing: content-box; width: 20px; height: 20px; padding: 11px; border-radius: 50%; color: var(--lime); box-shadow: inset 0 0 0 1.5px var(--lime); animation: nudge 1.8s var(--ease-in-out) infinite; }
/* the phone has no room under the buttons: its cue sits beside the first line of the headline */
.hero-more { display: none; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* ---------- Sobre Neomed ---------- */
.about { padding-bottom: clamp(56px, 7vw, 110px); }
.about-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.about-head :is(h1, h2) { font-size: var(--text-h2); color: var(--navy); max-width: 15ch; }
.about-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 8px; }
.about-text .lead { font-weight: 500; color: var(--navy); }
.about-text p:not(.lead) { color: var(--muted); }
.about-text .btn { margin-top: 8px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 104px); border-top: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: 6px; padding: clamp(20px, 2.6vw, 36px) clamp(12px, 2vw, 28px) 0 0; }
.facts li + li { padding-left: clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.fact-n { font-size: clamp(3rem, 6.5vw, 6rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.05em; color: var(--navy); font-variant-numeric: tabular-nums; }
.fact-l { font-size: var(--text-sm); font-weight: 500; color: var(--muted); max-width: 16ch; }

.marquee { margin-top: clamp(48px, 7vw, 104px); display: grid; gap: clamp(6px, 1vw, 14px); overflow: clip; -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 8%, var(--ink) 92%, transparent); mask-image: linear-gradient(90deg, transparent, var(--ink) 8%, var(--ink) 92%, transparent); }
.marquee-row { display: flex; width: max-content; gap: clamp(20px, 3vw, 44px); animation: marquee 48s linear infinite; }
.marquee-row.is-reverse { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row li { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); font-size: clamp(1.75rem, 4.4vw, 4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; white-space: nowrap; color: var(--navy); }
.marquee-row li::after { content: ""; width: 0.24em; height: 0.24em; border-radius: 50%; background: var(--lime); }
.marquee-row li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.75px var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Temáticas ---------- */
.axes { background: radial-gradient(90% 80% at 100% 0%, var(--navy), transparent 62%), var(--deep); }
.axes-list { border-top: 1px solid rgb(var(--rgb-white) / 0.14); }
.axis { position: relative; display: grid; grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: baseline; padding: clamp(24px, 3.2vw, 44px) 0; border-bottom: 1px solid rgb(var(--rgb-white) / 0.14); }
.axis::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.axis:hover::before { transform: scaleX(1); }
.axis-n { font-size: var(--text-sm); font-weight: 500; color: var(--lime); font-variant-numeric: tabular-nums; }
.axis h3 { font-size: clamp(1.75rem, 3.4vw, 3.25rem); letter-spacing: -0.035em; transition: color 0.3s var(--ease), transform 0.5s var(--ease); }
.axis:hover h3 { color: var(--lime); transform: translateX(10px); }
.axis p { font-size: var(--text-lg); line-height: 1.5; color: var(--on-night-muted); max-width: 46ch; }

/* ---------- Speakers ---------- */
.speakers { overflow: hidden; background: radial-gradient(115% 85% at 88% 6%, var(--navy), transparent 58%), var(--night-2); }
/* graph-paper texture: the signature that runs through Neomed's social pieces */
.speakers::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgb(var(--rgb-white) / 0.055) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--rgb-white) / 0.055) 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, var(--ink) 30%, transparent 78%); mask-image: radial-gradient(120% 90% at 50% 0%, var(--ink) 30%, transparent 78%); }
.speakers .container { position: relative; }
.speakers-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.speakers-head :is(h1, h2) { font-size: var(--text-h2); font-weight: 400; color: var(--sky); margin-bottom: 16px; }
.speakers-head :is(h1, h2) b { font-weight: 600; color: var(--white); }
.speakers-head p { font-size: var(--text-lg); color: var(--on-night-muted); }
.speakers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(40px, 4.5vw, 64px) clamp(16px, 2.4vw, 36px); }
.sp-card { display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: var(--r-md); }
.sp-portrait { position: relative; display: block; width: 100%; max-width: 230px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; isolation: isolate; background: var(--navy); box-shadow: 0 0 0 1px rgb(var(--rgb-white) / 0.16), 0 20px 42px -24px rgb(var(--rgb-night) / 0.95); transition: transform 0.5s var(--ease), box-shadow 0.45s var(--ease); }
.sp-portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); filter: grayscale(1) contrast(1.06); transition: filter 0.55s var(--ease), transform 0.7s var(--ease); }
.sp-duo { position: absolute; inset: 0; background: var(--navy); mix-blend-mode: color; transition: opacity 0.55s var(--ease); }
.sp-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--lime); opacity: 0; transition: opacity 0.4s var(--ease); }
.sp-portrait.is-initials, .sp-portrait.is-logo { display: grid; place-items: center; background: linear-gradient(150deg, var(--navy-2), var(--deep)); }
.sp-initials { font-size: clamp(2.25rem, 4.4vw, 3.75rem); font-weight: 500; letter-spacing: -0.03em; color: var(--sky); }
.sp-portrait.is-logo img { width: 66%; height: auto; transform: none; filter: none; object-fit: contain; }
/* a company that gives a talk is not a face: a tile instead of a portrait, and it says so */
.sp-portrait.is-logo, .sp-portrait.is-logo .sp-ring { border-radius: 22%; }
.sp-kind { margin-top: 12px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; color: var(--sky); box-shadow: inset 0 0 0 1px rgb(var(--rgb-white) / 0.3); }
/* three lines are held for the grey line and it sits on the last one, so the names line up across a row */
.sp-bio { display: flex; align-items: flex-end; justify-content: center; min-height: 4.65em; margin-top: 14px; font-size: var(--text-xs); line-height: 1.55; color: rgb(var(--rgb-white) / 0.6); max-width: 26ch; }
.sp-name { margin-top: 8px; font-size: var(--text-xl); font-weight: 400; line-height: 1.15; color: var(--sky); transition: color 0.4s var(--ease); }
.sp-role { margin-top: 6px; font-size: var(--text-sm); font-weight: 600; line-height: 1.35; color: var(--white); max-width: 24ch; }
.sp-tag { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: var(--text-xs); font-weight: 600; color: var(--lime); transition: opacity 0.38s var(--ease), transform 0.38s var(--ease); }
.sp-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
/* duotone until hover only where a pointer can hover; on touch the colour version ships from the start */
@media (hover: hover) {
  .sp-duo { opacity: 0.9; }
  .js .sp-tag { opacity: 0; transform: translateY(5px); }
  .sp-card:hover .sp-portrait, .sp-card:focus-visible .sp-portrait { transform: translateY(-6px); }
  .sp-card:hover .sp-portrait img, .sp-card:focus-visible .sp-portrait img { filter: none; transform: scale(1.08); }
  .sp-card:hover .sp-duo, .sp-card:focus-visible .sp-duo { opacity: 0; }
  .sp-card:hover .sp-ring, .sp-card:focus-visible .sp-ring { opacity: 1; }
  .sp-card:hover .sp-name, .sp-card:focus-visible .sp-name { color: var(--white); }
  .js .sp-card:hover .sp-tag, .js .sp-card:focus-visible .sp-tag { opacity: 1; transform: none; }
}
@media (hover: none) { .sp-duo { opacity: 0; } .sp-portrait img { filter: none; } }
.speakers-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(40px, 5vw, 72px); padding-top: 24px; border-top: 1px solid rgb(var(--rgb-white) / 0.15); color: var(--on-night-muted); }
.speakers-foot a { color: var(--lime); }

/* ---------- ¿Cuál es tu caso? ---------- */
.paths { background: var(--navy); }
.paths :is(h1, h2) { font-size: var(--text-display); letter-spacing: -0.04em; margin-bottom: clamp(32px, 4vw, 64px); }
.paths-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.paths-grid li { display: flex; }
.path { position: relative; flex: 1; display: flex; flex-direction: column; gap: 14px; min-height: clamp(300px, 30vw, 400px); padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-lg); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.path:hover { transform: translateY(-8px); box-shadow: 0 32px 60px -34px rgb(var(--rgb-navy) / 0.75); }
.path-white { background: var(--white); color: var(--navy); }
.path-sky { background: var(--sky); color: var(--navy); }
.path-lime { background: var(--lime); color: var(--night); }
.path-who { align-self: flex-start; padding: 5px 13px; border-radius: var(--r-pill); font-size: var(--text-xs); font-weight: 600; box-shadow: inset 0 0 0 1.5px currentColor; }
.path-title { margin-top: auto; min-height: 3.3em; display: flex; align-items: flex-end; font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; max-width: 12ch; }
.path-text { min-height: 6em; font-size: 0.9375rem; line-height: 1.5; opacity: 0.86; max-width: 34ch; }
.path-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; font-size: 0.9375rem; }
.path-cta svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.path:hover .path-cta svg { transform: translateX(6px); }
/* the industry is a third audience, but not at the level of the two that attend */
.path-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: var(--gap); padding: 20px clamp(20px, 2.6vw, 36px); border-radius: var(--r-lg); color: var(--white); box-shadow: inset 0 0 0 1px rgb(var(--rgb-white) / 0.22); transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.path-aside:hover { background: rgb(var(--rgb-white) / 0.06); box-shadow: inset 0 0 0 1px rgb(var(--rgb-white) / 0.4); }
.path-aside-who { font-weight: 600; font-size: var(--text-lg); }
.path-aside-text { flex: 1 1 280px; font-size: 0.9375rem; color: var(--on-night-muted); }
.path-aside .path-cta { margin-top: 0; color: var(--lime); }
.path-aside:hover .path-cta svg { transform: translateX(6px); }

/* ---------- Evento ---------- */
.event { background: radial-gradient(80% 90% at 0% 100%, var(--navy), transparent 64%), var(--deep); }
.event-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.event-info :is(h1, h2) { font-size: var(--text-h2); max-width: 12ch; margin-bottom: clamp(28px, 3.4vw, 48px); }
.event-facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid rgb(var(--rgb-white) / 0.14); }
.event-facts dt { font-size: var(--text-sm); color: var(--on-night-muted); }
.event-facts dd { font-weight: 500; }
.event-facts a { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.count-title { margin-bottom: 14px; font-size: var(--text-sm); font-weight: 500; color: var(--on-night-muted); }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cd-unit { display: flex; flex-direction: column; gap: 6px; }
.cd-num { font-weight: 600; line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.cd-label { font-size: var(--text-xs); font-weight: 500; color: var(--on-night-muted); }
.cd-lg .cd-unit { padding: 4px 0 4px clamp(12px, 1.8vw, 24px); border-left: 1px solid rgb(var(--rgb-white) / 0.16); }
.cd-lg .cd-unit:first-child { padding-left: 0; border-left: 0; }
.cd-lg .cd-num { font-size: clamp(2.75rem, 6.2vw, 6rem); color: var(--lime); }

.registro { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 6vw, 96px); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: rgb(var(--rgb-white) / 0.05); box-shadow: inset 0 0 0 1px rgb(var(--rgb-white) / 0.12); }
.registro h3 { font-size: var(--text-h3); max-width: 20ch; margin-bottom: 8px; }
.registro p { color: var(--on-night-muted); }
.cd-sm { grid-template-columns: auto; }
.cd-sm .cd-unit:nth-child(n + 2) { display: none; }
.cd-sm .cd-unit { flex-direction: row; align-items: baseline; gap: 10px; }
.cd-sm .cd-num { color: var(--lime); }
.cd-sm .cd-label { font-size: var(--text-sm); }
.cd-sm .cd-num { font-size: clamp(2.25rem, 3.4vw, 3.25rem); }

/* ---------- Entradas ---------- */
.prices .section-head :is(h1, h2) { color: var(--navy); }
.tiers-wrap { position: relative; }
.tiers-track { position: relative; height: 4px; margin: 0 calc(100% / 4) 28px; border-radius: 4px; background: var(--line); }
.tiers-progress { position: absolute; inset: 0; width: 100% !important; border-radius: 4px; background: var(--lime); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform 0.8s var(--ease); }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.price-tier { position: relative; display: flex; flex-direction: column; align-items: center; }
.tier-dot { position: absolute; top: -41px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 4px var(--line); transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease); }
.tier-card { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 180px; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.5s var(--ease), background-color 0.3s, box-shadow 0.3s; }
.tier-badge { padding: 5px 12px; border-radius: var(--r-pill); background: var(--lime); color: var(--night); font-size: var(--text-xs); font-weight: 600; line-height: 1.3; }
.tier-price { margin-top: auto; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.tier-label { font-size: var(--text-sm); font-weight: 500; color: var(--muted); }
.price-tier.is-past .tier-card { background: transparent; opacity: 0.6; }
.price-tier.is-past .tier-price { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.price-tier.is-past .tier-dot { background: var(--lime); box-shadow: inset 0 0 0 4px var(--lime); }
.price-tier.is-current .tier-dot { background: var(--paper); box-shadow: inset 0 0 0 6px var(--lime), 0 0 0 6px rgb(var(--rgb-lime) / 0.28); }
.price-tier.is-current .tier-card { background: var(--navy); box-shadow: 0 34px 60px -34px rgb(var(--rgb-navy) / 0.85); transform: translateY(-6px); }
.price-tier.is-current .tier-price { color: var(--white); }
.price-tier.is-current .tier-label { color: var(--on-night-muted); }
.prices-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: clamp(32px, 4vw, 56px); }
.price-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; }
.price-count-label { display: inline-flex; align-items: center; gap: 8px; align-self: center; font-weight: 500; color: var(--muted); }
.price-count-label svg { width: 18px; height: 18px; color: var(--navy); }
.price-count-nums { display: flex; gap: 18px; font-size: var(--text-sm); color: var(--muted); }
.price-count-nums b { margin-right: 3px; font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 600; letter-spacing: -0.04em; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form > .span-2, .form > .consent, .form > .btn, .form-single > * { grid-column: 1 / -1; }
.field { position: relative; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: var(--text-sm); font-weight: 500; }
.field input, .sponsor-form input {
  width: 100%; min-height: 50px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1.5px solid var(--field-edge);
  background: var(--white); color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
}
.field input::placeholder, .sponsor-form input::placeholder { color: var(--muted); opacity: 0.75; }
.field input:hover, .sponsor-form input:hover { border-color: var(--navy); }
.field input:focus, .sponsor-form input:focus { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px rgb(var(--rgb-lime) / 0.55); }
.field.is-code input { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; }
.field.has-suffix::after { content: "%"; position: absolute; right: 16px; bottom: 13px; color: var(--muted); pointer-events: none; }
.field.has-suffix input { padding-right: 38px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: var(--text-sm); line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lime); cursor: pointer; }
.form .btn { margin-top: 6px; }
.form-notice { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: rgb(var(--rgb-lime) / 0.16); box-shadow: inset 0 0 0 1px rgb(var(--rgb-lime) / 0.55); font-size: var(--text-sm); line-height: 1.5; }
.form-notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

.on-dark .field input { background: rgb(var(--rgb-white) / 0.06); border-color: rgb(var(--rgb-white) / 0.5); color: var(--on-night); }
.on-dark .field input::placeholder { color: var(--on-night-muted); opacity: 0.7; }
.on-dark .field input:hover { border-color: rgb(var(--rgb-white) / 0.8); }
.on-dark .field input:focus { outline: 2px solid var(--lime); outline-offset: 2px; background: rgb(var(--rgb-white) / 0.1); }
.on-dark .consent { color: var(--on-night-muted); }

/* ---------- Inscripción ---------- */
.signup { background: radial-gradient(80% 80% at 100% 100%, var(--navy), transparent 62%), var(--deep); }
.signup-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.signup-copy { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 20px; }
.signup-copy :is(h1, h2) { font-size: var(--text-h2); max-width: 9ch; }
.signup-copy .lead { color: var(--on-night-muted); }
.signup-contact { display: grid; gap: 12px; margin-top: 20px; padding-top: 24px; border-top: 1px solid rgb(var(--rgb-white) / 0.14); font-weight: 500; }
.signup-contact li { display: flex; align-items: center; gap: 12px; }
.signup-contact svg { width: 18px; height: 18px; color: var(--lime); flex: none; }
.signup-contact a { text-decoration: underline; text-decoration-color: rgb(var(--rgb-white) / 0.3); text-underline-offset: 0.3em; }
.signup-contact a:hover { text-decoration-color: var(--lime); }
.signup-card { padding: clamp(20px, 3vw, 40px); border-radius: var(--r-lg); background: rgb(var(--rgb-white) / 0.05); box-shadow: inset 0 0 0 1px rgb(var(--rgb-white) / 0.12); }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 5px; margin-bottom: 20px; border-radius: var(--r-pill); background: rgb(var(--rgb-white) / 0.08); }
.tab-btn { min-height: 46px; padding: 0 12px; border-radius: var(--r-pill); font-size: 0.9375rem; font-weight: 600; white-space: nowrap; color: var(--on-night-muted); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.tab-btn:hover { color: var(--on-night); }
.tab-btn.is-active { background: var(--lime); color: var(--night); }
.panel-note { margin-bottom: 22px; font-size: 0.9375rem; color: var(--on-night-muted); }

/* ---------- Estudiantes ---------- */
.students { background: var(--paper); }
.students-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.students-copy { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 20px; }
.students-copy :is(h1, h2) { font-size: var(--text-h2); color: var(--navy); max-width: 13ch; }
.students-copy .lead { color: var(--muted); max-width: 34ch; }
.form-card { padding: clamp(20px, 3vw, 40px); border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -56px rgb(var(--rgb-navy) / 0.55); }

/* ---------- Cursos ---------- */
.courses { background: radial-gradient(80% 60% at 0% 0%, var(--navy), transparent 62%), var(--deep); }
.courses-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.courses-list { border-top: 1px solid rgb(var(--rgb-white) / 0.14); }
.curso-item { border-bottom: 1px solid rgb(var(--rgb-white) / 0.14); }
.curso-item summary { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); padding: 18px 4px; list-style: none; cursor: pointer; border-radius: var(--r-sm); transition: padding 0.4s var(--ease); }
.curso-item summary::-webkit-details-marker { display: none; }
.curso-order { width: 26px; flex: none; font-size: var(--text-sm); font-weight: 500; color: var(--on-night-muted); font-variant-numeric: tabular-nums; }
.curso-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgb(var(--rgb-lime) / 0.14); color: var(--lime); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.curso-icon svg { width: 22px; height: 22px; }
.curso-head { flex: 1; min-width: 0; }
.curso-head h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; text-wrap: pretty; }
.curso-meta { display: block; margin-top: 2px; font-size: var(--text-sm); color: var(--on-night-muted); }
.curso-badge { flex: none; padding: 5px 12px; border-radius: var(--r-pill); font-size: var(--text-xs); font-weight: 600; line-height: 1.3; color: var(--on-night-muted); box-shadow: inset 0 0 0 1px rgb(var(--rgb-white) / 0.22); }
.curso-badge.is-picked { background: var(--lime); color: var(--night); box-shadow: none; }
.curso-chevron { flex: none; width: 20px; height: 20px; color: var(--on-night-muted); transition: transform 0.4s var(--ease), color 0.3s; }
@media (hover: hover) { .curso-item summary:hover { padding-left: 12px; } .curso-item summary:hover .curso-icon { background: var(--lime); color: var(--night); } }
.curso-item[open] .curso-chevron { transform: rotate(180deg); color: var(--lime); }
.curso-item[open] .curso-icon { background: var(--lime); color: var(--night); }
.curso-body { padding: 4px 4px 26px calc(26px + 46px + 2 * clamp(12px, 1.6vw, 20px) + 4px); }
.curso-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.curso-modules li { display: flex; align-items: baseline; gap: 10px; font-size: 0.9375rem; line-height: 1.4; color: var(--on-night-muted); }
.mod-n { flex: none; font-size: var(--text-xs); font-weight: 600; color: var(--lime); font-variant-numeric: tabular-nums; }
.curso-pick { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 18px; border-radius: var(--r-pill); font-size: 0.9375rem; font-weight: 500; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgb(var(--rgb-lime) / 0.6); transition: background-color 0.25s var(--ease); }
.curso-pick:hover { background: rgb(var(--rgb-lime) / 0.12); }
.curso-pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--lime); cursor: pointer; }
.courses-aside { position: sticky; top: calc(var(--nav-h) + 32px); padding: clamp(20px, 2.6vw, 36px); border-radius: var(--r-lg); background: rgb(var(--rgb-white) / 0.05); box-shadow: inset 0 0 0 1px rgb(var(--rgb-white) / 0.12); }
.courses-aside h3 { font-size: var(--text-h3); margin-bottom: 8px; }
.courses-count { margin-bottom: 22px; color: var(--on-night-muted); }
.courses-note { margin-top: 16px; font-size: var(--text-xs); line-height: 1.5; color: var(--on-night-muted); }

/* ---------- Partners ---------- */
.partners .section-head :is(h1, h2) { color: var(--navy); }
.partners-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.partner-tile { display: grid; place-items: center; height: clamp(104px, 11vw, 150px); padding: 0 clamp(16px, 2vw, 32px); border-radius: var(--r-md); background: radial-gradient(120% 120% at 85% 0%, var(--night-3), var(--night-2) 65%); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.partner-tile:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--lime), 0 30px 50px -34px rgb(var(--rgb-night) / 0.9); }
.partner-logo { max-width: 100%; object-fit: contain; }
.sponsor-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 5vw, 80px); padding: clamp(24px, 3.4vw, 48px); border-radius: var(--r-lg); background: var(--paper-2); }
.sponsor-band h3 { font-size: var(--text-h3); color: var(--navy); margin-bottom: 10px; }
.sponsor-band p { color: var(--muted); max-width: 44ch; }
.sponsor-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sponsor-form input[type="email"] { grid-column: 1 / 2; }

/* ---------- Cierre ---------- */
.closing { position: relative; padding-block: clamp(88px, 12vw, 180px); background: var(--night); overflow: clip; }
.closing::before { content: ""; position: absolute; right: -6%; top: 50%; width: min(58vw, 760px); aspect-ratio: 429 / 261; transform: translateY(-50%) rotate(-8deg); background: url("../assets/mark-on-dark.svg") center / contain no-repeat; opacity: 0.1; pointer-events: none; }
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(28px, 4vw, 48px); }
.closing :is(h1, h2) { font-size: var(--text-display); letter-spacing: -0.04em; line-height: 0.98; max-width: 11ch; }
.closing :is(h1, h2) em { font-style: normal; color: var(--lime); }

/* ---------- Footer ---------- */
.footer { background: var(--night); padding-block: 40px 44px; border-top: 1px solid rgb(var(--rgb-white) / 0.1); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 16px; font-size: var(--text-sm); color: var(--on-night-muted); }
.footer-brand img { height: 26px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: var(--text-sm); }
.footer-links a { color: var(--on-night-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--on-night); }
.footer-legal { font-size: var(--text-sm); color: var(--on-night-muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgb(var(--rgb-night) / 0.82); animation: fade 0.25s var(--ease); }
.modal-card { display: flex; flex-direction: column; width: 100%; max-width: 680px; max-height: min(86svh, 760px); border-radius: var(--r-lg); background: var(--white); color: var(--ink); overflow: hidden; animation: rise 0.45s var(--ease); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.2; color: var(--navy); }
.modal-close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); color: var(--navy); transition: background-color 0.2s; }
.modal-close:hover { background: var(--line); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { display: grid; gap: 14px; padding: 20px 24px; overflow-y: auto; font-size: var(--text-sm); line-height: 1.65; color: var(--muted); }
.modal-body strong { color: var(--ink); }
.modal-body ul { display: grid; gap: 10px; padding-left: 18px; list-style: disc; }
.modal-body li::marker { color: var(--navy); }
.modal-body a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.modal-foot { padding: 16px 24px 20px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .courses-grid, .signup-grid, .students-grid { grid-template-columns: minmax(0, 1fr); }
  .signup-copy, .students-copy, .courses-aside { position: static; }
  .signup-copy :is(h1, h2), .students-copy :is(h1, h2) { max-width: none; }
  .registro { grid-template-columns: minmax(0, 1fr) auto; }
  .registro .btn { grid-column: 1 / -1; justify-self: start; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }

  .hero-canvas { background: radial-gradient(125% 60% at 50% 24%, var(--navy), transparent 60%), var(--night-2); }
  .hero-canvas::before { -webkit-mask-image: radial-gradient(120% 105% at 50% 36%, var(--ink) 30%, transparent 80%); mask-image: radial-gradient(120% 105% at 50% 36%, var(--ink) 30%, transparent 80%); }
  .hero-fallback { right: 50%; top: calc(var(--nav-h) - 8px); width: min(92%, 44svh); transform: translateX(50%); }
  .hero-inner { align-items: flex-end; padding-bottom: clamp(20px, 4svh, 40px); }
  .hero-copy { padding-top: 0; gap: 14px; max-width: none; width: 100%; }
  .hero-copy h1 { font-size: clamp(2rem, min(9.6vw, 6.4svh), 4rem); max-width: 12ch; }
  .hero-lead { font-size: var(--text-md); max-width: 32ch; }
  .hero-meta { gap: 6px 18px; font-size: var(--text-sm); }
  .hero-actions { width: 100%; max-width: 460px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 2px; }
  .hero-actions .btn { padding: 0 10px; font-size: var(--text-sm); }
  .hero-links { gap: 6px 20px; font-size: var(--text-xs); }
  .hero-hint { display: none !important; }
  .hero-copy { position: relative; }
  .hero-more { position: absolute; top: 4px; right: 0; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 600; color: var(--on-night); pointer-events: none; }
  .hero-word.t1 { font-size: 1.0625rem; }
  .hero-word.t2 { font-size: 0.8125rem; }
  .hero-word.t3 { font-size: 0.6875rem; }
  .hero-slogan { font-size: 0.6875rem; letter-spacing: 0.28em; color: var(--on-night); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav { padding-top: 8px; }
  .nav-bar { padding-left: 16px; padding-right: 4px; gap: 8px; }
  .nav-logo img { height: 22px; }

  .section-head, .about-head, .event-grid, .sponsor-band { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; }


  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding-bottom: 20px; }
  .facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .axis { grid-template-columns: minmax(0, 1fr); gap: 8px; }

  .speakers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-portrait { max-width: 150px; }
  .sp-bio { display: none; }
  .sp-name { margin-top: 14px; font-size: var(--text-lg); }

  .paths-grid { grid-template-columns: minmax(0, 1fr); }
  .path { min-height: 240px; }

  .event-facts > div { grid-template-columns: 104px minmax(0, 1fr); }
  .registro { grid-template-columns: minmax(0, 1fr); }
  .registro .btn { justify-self: stretch; }

  .tiers-track { display: none; }
  .tiers { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tier-dot { display: none; }
  .tier-card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
  .tier-price { margin-top: 0; }
  .tier-badge { order: 3; margin-left: auto; }
  .price-tier.is-current .tier-card { transform: none; }
  .prices-foot .btn { width: 100%; }

  .form { grid-template-columns: minmax(0, 1fr); }
  .tab-btn { font-size: var(--text-sm); }

  .curso-order, .curso-badge { display: none; }
  .curso-body { padding-left: 4px; }
  .curso-modules { grid-template-columns: minmax(0, 1fr); }

  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsor-form { grid-template-columns: minmax(0, 1fr); }
  .sponsor-form input[type="email"] { grid-column: auto; }

  .closing-inner { flex-direction: column; align-items: flex-start; }
  .closing .btn { width: 100%; }
  .path-title, .path-text { min-height: 0; }
  .path-cta { align-self: flex-start; min-height: 48px; padding: 0 20px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px currentColor; }
  .footer { padding-bottom: 104px; }
}

@media (max-width: 360px) {
  .hero-actions .btn { font-size: var(--text-xs); }
}
@media (max-width: 1080px) and (max-height: 700px) {
  .hero-lead { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gutter); }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Sticky action bar (phones) ---------- */
.cta-bar { display: none; }
@media (max-width: 760px) {
  .cta-bar {
    position: fixed; inset: auto 0 0 0; z-index: 45;
    display: flex; align-items: center; gap: 6px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgb(var(--rgb-night) / 0.9);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: inset 0 1px 0 rgb(var(--rgb-white) / 0.1);
    transform: translateY(110%); visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
    --focus: var(--lime);
  }
  .cta-bar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
  .cta-bar .btn { flex: 1; min-height: 48px; }
  .cta-bar-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; font-size: 0.9375rem; font-weight: 600; color: var(--on-night); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
}

/* ---------- Sub-pages ---------- */
.page-sub .nav-bar { background: rgb(var(--rgb-night) / 0.9); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px rgb(var(--rgb-white) / 0.1), 0 18px 40px -24px rgb(var(--rgb-night) / 0.9); }
.page-sub main > .section:first-child { padding-top: calc(var(--section) + var(--nav-h)); }
.nav-links a[aria-current="page"] { color: var(--on-night); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
