@font-face {
  font-family: "Poppins";
  src: url("/prenet-home/fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/prenet-home/fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/prenet-home/fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/prenet-home/fonts/poppins-latin-800-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --midnight: #06203F;
  --navy: #0B2F5A;
  --signal: #054D85;
  --sky: #2B83CC;
  --orange: #FD6E0C;
  --amber: #FEB121;
  --white: #F7F9FC;
  --line: #E4E9F0;
  --dusk: #0B1828;
  --grad: linear-gradient(90deg, #FD6E0C 0%, #FEB121 100%);
  --gutter: clamp(20px, 5.2vw, 104px);
  --maxw: 1360px;
  --tk-h: 38px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-ui: cubic-bezier(0.33, 1, 0.68, 1);
  interpolate-size: allow-keywords;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.intro-on { overflow: hidden; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 0.42vw + 14.4px, 20px);
  line-height: 1.6;
  color: var(--navy);
  background: var(--midnight);
  transition: background-color 0.7s var(--ease-io);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[data-theme="dark"] { background-color: var(--midnight); }
body[data-theme="dusk"] { background-color: var(--dusk); }
body[data-theme="light"] { background-color: var(--white); }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
main { overflow-x: clip; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--focus, var(--amber)); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px 18px;
  background: var(--amber); color: var(--midnight); font-weight: 700; border-radius: 10px; text-decoration: none;
  transition: top 0.2s var(--ease-ui);
}
.skip:focus { top: 16px; }

[data-theme="dark"], [data-theme="dusk"] {
  --fg: #F7F9FC; --muted: rgba(247, 249, 252, 0.76); --label: var(--amber);
  --card: rgba(247, 249, 252, 0.045); --border: rgba(247, 249, 252, 0.14); --focus: var(--amber);
  --edge: rgba(43, 131, 204, 0.55);
  color: var(--fg);
}
[data-theme="light"] {
  --fg: var(--navy); --muted: #3E536E; --label: var(--signal);
  --card: #FFFFFF; --border: var(--line); --focus: var(--signal);
  --edge: rgba(11, 47, 90, 0.35);
  color: var(--fg);
}
html:not(.js) [data-theme="dark"] { background: var(--midnight); }
html:not(.js) [data-theme="dusk"] { background: var(--dusk); }
html:not(.js) [data-theme="light"] { background: var(--white); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; position: relative; z-index: 1; }
.sec { position: relative; padding: clamp(104px, 15vh, 200px) var(--gutter); }
.sec-full { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.display { font-weight: 800; font-size: clamp(2.75rem, 7.4vw, 8rem); line-height: 0.98; letter-spacing: -0.035em; }
.h2 { font-weight: 700; font-size: clamp(2rem, 4.3vw, 4rem); line-height: 1.06; letter-spacing: -0.025em; }
.h3 { font-weight: 600; font-size: clamp(1.25rem, 1.6vw, 1.75rem); line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.body { color: var(--muted); max-width: 64ch; }
.stack > * + * { margin-top: clamp(16px, 2.2vh, 28px); }
.label {
  display: inline-block; position: relative; padding-top: 16px;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--label); line-height: 1.3;
}
.label::before {
  content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 3px; border-radius: 3px;
  background: var(--grad); transform-origin: left center; transition: transform 0.9s var(--ease-out);
}
.motion .label:not(.is-in)::before { transform: scaleX(0); }
[data-theme="dark"] .accent, [data-theme="dusk"] .accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
[data-theme="light"] .accent {
  background: var(--grad) no-repeat 0 94% / 100% 0.12em; padding-bottom: 0.04em;
}
.kicker { font-weight: 600; font-size: clamp(1rem, 1.2vw, 1.2rem); color: var(--muted); }

.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 1.6em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease-ui), background-color 0.2s var(--ease-ui), box-shadow 0.2s var(--ease-ui), color 0.2s;
}
.btn-primary { background: var(--amber); color: var(--midnight); box-shadow: 0 10px 30px -12px rgba(253, 110, 12, 0.6); }
.btn-primary:hover { background: var(--grad); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid currentColor; color: var(--fg); }
.btn-ghost:hover { background: var(--card); transform: translateY(-2px); }
.btn-sm { --h: 42px; padding: 0 1.15em; font-size: 0.9rem; }
.btn .arr { transition: transform 0.2s var(--ease-ui); }
.btn:hover .arr { transform: translateX(4px); }

.plate { display: inline-flex; align-items: center; background: #FFFFFF; border-radius: 8px; padding: 9px 12px; box-shadow: 0 0 0 1px rgba(11, 47, 90, 0.08); }
.plate img { width: 132px; height: auto; }

.nav {
  position: fixed; left: 0; right: 0; top: var(--tk-h); z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: transform 0.45s var(--ease-out);
}
.nav.is-hidden { transform: translateY(calc(-110% - var(--tk-h))); }
.nav-right { display: flex; align-items: center; gap: 12px; }
body[data-theme="light"] .nav { --navfg: var(--navy); --navbg: rgba(255, 255, 255, 0.8); --navbd: var(--line); }
.progress { position: fixed; left: 0; right: 0; top: var(--tk-h); height: 3px; z-index: 61; pointer-events: none; }
.ticker {
  position: fixed; left: 0; right: 0; top: 0; z-index: 62; height: var(--tk-h); overflow: hidden;
  background: var(--dusk); color: #F7F9FC;
  border-bottom: 1px solid rgba(254, 177, 33, 0.35);
  box-shadow: 0 2px 18px rgba(253, 110, 12, 0.08);
}
.ticker::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #FD6E0C 30%, #FEB121 70%, transparent);
}
.ticker-label {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  background: var(--dusk); border: 1px solid rgba(254, 177, 33, 0.45);
}
.ticker-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex: none; }
.ticker-on { color: #22C55E; letter-spacing: 0.12em; }
.ticker-sep { color: rgba(254, 177, 33, 0.6); font-weight: 400; }
.ticker-label .txt { color: var(--amber); }
.ticker-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4ADE80; animation: tk-ping 1.6s var(--ease-out) infinite; }
@keyframes tk-ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.6); opacity: 0; } }
.ticker-view { position: absolute; inset: 0; overflow: hidden; }
.ticker-view::before, .ticker-view::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none; }
.ticker-view::before { left: 0; width: calc(var(--gutter) + 250px); background: linear-gradient(90deg, var(--dusk) 70%, transparent); }
.ticker-view::after { right: 0; width: 90px; background: linear-gradient(270deg, var(--dusk), transparent); }
.ticker-track { display: flex; height: 100%; width: max-content; list-style: none; will-change: transform; }
.ticker-item { display: inline-flex; align-items: center; gap: 9px; height: 100%; padding: 0 22px; white-space: nowrap; font-size: 0.84rem; border-right: 1px solid rgba(254, 177, 33, 0.22); }
.ticker-item svg { width: 15px; height: 15px; color: var(--amber); flex: none; }
.ticker-flag { font-size: 1.05rem; line-height: 1; }
.ticker-name { font-weight: 600; }
.ticker-time { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.74rem; color: rgba(254, 177, 33, 0.9); }
.ticker-item.is-new .ticker-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-still .ticker-live::after { animation: none; }
.is-still .ticker-view { overflow-x: auto; scrollbar-width: none; padding-left: calc(var(--gutter) + 230px); }
.is-still .ticker-view::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  :root { --tk-h: 34px; }
  .ticker-label { padding: 4px 9px; }
  .ticker-label .txt, .ticker-sep { display: none; }
  .ticker-view::before { width: calc(var(--gutter) + 90px); }
  .is-still .ticker-view { padding-left: calc(var(--gutter) + 80px); }
  .ticker-item { font-size: 0.8rem; padding: 0 16px; }
}
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

.thread { position: fixed; right: clamp(14px, 1.6vw, 28px); top: 50%; transform: translateY(-50%); z-index: 55; display: none; }
.thread ol { list-style: none; display: flex; flex-direction: column; gap: 14px; position: relative; }
.thread ol::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; transform: translateX(-50%); background: var(--thread-line, rgba(247, 249, 252, 0.2)); }
.thread .fill { position: absolute; left: 50%; top: 6px; width: 2px; height: calc(100% - 12px); transform: translateX(-50%) scaleY(var(--p, 0)); transform-origin: top; background: linear-gradient(180deg, #FD6E0C, #FEB121); border-radius: 2px; }
.thread a { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
.thread a i { width: 8px; height: 8px; border-radius: 50%; background: var(--thread-dot, rgba(247, 249, 252, 0.5)); transition: transform 0.2s var(--ease-ui), background 0.2s; }
.thread a.is-active i { background: var(--amber); transform: scale(1.6); box-shadow: 0 0 0 4px rgba(254, 177, 33, 0.22); }
.thread a .tt {
  position: absolute; right: 30px; top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  background: var(--midnight); color: #F7F9FC; transition: opacity 0.2s, transform 0.2s var(--ease-ui);
}
.thread a:hover .tt, .thread a:focus-visible .tt { opacity: 1; transform: translate(0, -50%); }
body[data-theme="light"] .thread { --thread-line: rgba(11, 47, 90, 0.18); --thread-dot: rgba(11, 47, 90, 0.4); }
@media (min-width: 1100px) { .thread { display: block; } }


#constellation { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
html:not(.js) #constellation { display: none; }
.js main > section, .js main > aside { background: transparent; }

.cursor { display: none; }
.has-cursor .cursor {
  display: block; position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1.5px solid rgba(254, 177, 33, 0.85);
  transition: width 0.25s var(--ease-ui), height 0.25s var(--ease-ui), margin 0.25s var(--ease-ui), background-color 0.25s, opacity 0.25s;
}
.has-cursor .cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(254, 177, 33, 0.12); }
.has-cursor .cursor.is-off { opacity: 0; }

.intro {
  position: fixed; inset: 0; z-index: 150; background: var(--midnight); color: #F7F9FC;
  display: grid; place-items: center;
  animation: introFailsafe 0.5s 7s forwards;
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.2, 1);
}
.intro.is-running { animation: none; }
html:not(.js) .intro, .is-still .intro { display: none; }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.5s; }
.intro .intro-plate {
  position: relative; background: #FFFFFF; border-radius: 10px; padding: clamp(14px, 2vw, 24px) clamp(18px, 2.6vw, 30px);
  opacity: 0; transform: scale(0.94); transition: opacity 0.5s var(--ease-out), transform 0.8s var(--ease-out);
}
.intro .intro-plate img { width: min(64vw, 460px); aspect-ratio: 1722 / 402; height: auto; }
.intro.is-logo .intro-plate { opacity: 1; transform: scale(1); }
.intro.is-logo canvas { opacity: 0; }
.intro .edge { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.intro.is-out { transform: translateY(-100%); }
.intro .skip-intro {
  position: absolute; right: 20px; bottom: 22px; font-size: 0.82rem; font-weight: 600; color: rgba(247, 249, 252, 0.8);
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(247, 249, 252, 0.25);
}

/* First-screen fit: top offset clears the fixed ticker + nav (~115px) with a small gap,
   so label → CTAs and the phone fit in a 1280×800 / 1440×900 viewport. */
.hero { padding-top: calc(clamp(60px, 8vh, 130px) + var(--tk-h)); padding-bottom: clamp(28px, 4vh, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero-copy { position: relative; }
/* Hero headline scale — one systematic rule for all 32 languages.
   --hero-fs: fluid base size bounded by viewport width AND height (short screens shrink too).
   --hero-fit: single height-budget factor (1 → 0.72) set by app.js heroFit() only when a
   translation would exceed --hero-max-lines; same algorithm for every language, no per-language sizes. */
.hero { --hero-fs: clamp(2.25rem, min(5.5vw, 8.8vh), 5.5rem); --hero-max-lines: 4; }
.hero h1 {
  margin-top: 12px; max-width: 100%;
  font-size: calc(var(--hero-fs) * var(--hero-fit, 1)); line-height: 1.02; letter-spacing: -0.03em;
  text-wrap: balance; overflow-wrap: break-word; hyphens: manual;
}
.hero h1:lang(zh), .hero h1:lang(ja), .hero h1:lang(ko) { letter-spacing: 0; line-height: 1.12; }
.hero .lead { margin-top: clamp(12px, 2vh, 24px); max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 4vh, 40px); }
.hero .ctas { margin-top: clamp(16px, 2.5vh, 28px); }
.micro { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
.hero::after {
  content: ""; position: absolute; right: -10vw; bottom: -20vh; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(253, 110, 12, 0.22), rgba(253, 110, 12, 0) 70%);
  pointer-events: none; z-index: 0;
}
.scroll-cue { position: absolute; left: var(--gutter); bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 12px; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-decoration: none; letter-spacing: 0.08em; }
.scroll-cue i { width: 1px; height: 42px; background: rgba(247, 249, 252, 0.3); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--amber); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

.split-vis .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split-vis .c { display: inline-block; }
.split-vis .pn-punct { display: inline; background: none; }
.split-vis .w > .accent.c { padding-bottom: 0.04em; }

.float { position: relative; z-index: 1; margin: 0; }
.float-tilt {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform 0.9s var(--ease-out); transform-style: preserve-3d; will-change: transform;
}
.float-bob { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }
.float video { width: 100%; height: auto; background: transparent; }
.hero-video video { aspect-ratio: 496 / 480; }
.hero-video .hero-scroll { width: min(118%, 640px); margin-left: auto; margin-right: max(-6vw, -80px); transform-origin: 50% 40%; }
.vid-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
.vid-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 0.78rem; font-weight: 600; color: var(--fg);
}
.vid-toggle svg { width: 12px; height: 12px; }

.pregunta .q { position: relative; margin-top: clamp(24px, 4vh, 40px); }
.pregunta .q-line { font-weight: 800; font-size: clamp(2.2rem, 6vw, 6.2rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 15ch; }
.pregunta .q-line + .q-line { margin-top: 0.4em; }
.pregunta .q-support { margin-top: clamp(28px, 4vh, 44px); }
.motion .pregunta .q-stage { display: grid; }
.motion .pregunta .q-stage > .q-line { grid-area: 1 / 1; margin-top: 0; }

.coste { overflow: hidden; }
.coste::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.coste-track { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; max-width: var(--maxw); margin-inline: auto; }
.coste-track > .panel { grid-column: 1 / -1; }
.panel-intro { max-width: 640px; }
.panel-intro .h2 { margin-top: 20px; }
.panel-intro .lead { margin-top: 22px; }
.panel-end { max-width: 860px; padding-top: 24px; }
.panel-end blockquote { font-weight: 800; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; }
.panel-end p { margin-top: 26px; }
.joke { font-weight: 600; font-size: 1.05rem; color: var(--muted); display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.joke::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.card { position: relative; }
.card-in {
  height: 100%; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 2.4vw, 32px); border-radius: 16px; background: var(--card); border: 1px solid var(--border);
}
.card-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247, 249, 252, 0.6); }
.card-t { font-weight: 700; font-size: clamp(1.6rem, 2.3vw, 2.3rem); line-height: 1.08; letter-spacing: -0.02em; }
.card-s { color: var(--muted); font-size: 0.95rem; }
.card.r2 .card-in { filter: grayscale(1); opacity: 0.72; border-style: dashed; }
.card.r3 .card-in {
  filter: grayscale(1) blur(0.3px); opacity: 0.5; border-style: dashed;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 93% 90%, 86% 84%, 78% 93%, 68% 86%, 58% 95%, 47% 87%, 37% 96%, 27% 88%, 16% 95%, 7% 87%, 0 93%);
}
.card.r3 .card-t { letter-spacing: 0.04em; }
.motion-h .coste { padding: 0; }
.motion-h .coste-track { display: flex; grid-template-columns: none; width: max-content; max-width: none; height: 100vh; height: 100svh; align-items: center; gap: clamp(18px, 2vw, 32px); padding: 0 var(--gutter); }
.motion-h .coste-track > .panel-intro { width: min(78vw, 620px); flex: none; margin-right: clamp(20px, 5vw, 80px); }
.motion-h .coste-track > .card { width: clamp(250px, 24vw, 340px); height: clamp(300px, 52vh, 440px); flex: none; }
.motion-h .coste-track > .joke { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); padding: 0 6px; }
.motion-h .coste-track > .panel-end { width: min(86vw, 860px); flex: none; margin-left: clamp(30px, 6vw, 120px); padding-top: 0; }

.orden-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 90px); align-items: center; width: 100%; }
.orden-states > div + div { margin-top: 40px; }
.motion .orden-states { display: grid; }
.motion .orden-states > div { grid-area: 1 / 1; margin-top: 0; }
.orden-states .h2 { margin-top: 12px; }
.orden-states .lead { margin-top: 18px; }
.orden-title { margin-top: 20px; }
.diagram { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(10px, 2.4vw, 36px); padding-bottom: 40px; }
.node { position: relative; width: min(100%, 250px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; text-align: center; }
.node-red { border-radius: 50%; border: 1.5px dashed rgba(43, 131, 204, 0.5); }
.node-proj { border-radius: 22px; background: rgba(247, 249, 252, 0.06); border: 1px solid rgba(247, 249, 252, 0.18); }
.node .cap { position: absolute; left: -20%; right: -20%; bottom: -34px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.node .k-proj { font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.node .opps { list-style: none; display: grid; gap: 8px; position: absolute; inset: 0; place-content: center; }
.node .opps li { font-size: clamp(0.72rem, 0.9vw, 0.85rem); font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(247, 249, 252, 0.08); border: 1px solid rgba(254, 177, 33, 0.5); }
.node .cap-b { opacity: 0; }
.arrow { width: clamp(30px, 4vw, 64px); color: var(--amber); }
.arrow svg { width: 100%; height: auto; }
html:not(.motion) .node-red { order: -1; }
html:not(.motion) .node-proj { order: 1; }
html:not(.motion) .node .k-proj, html:not(.motion) .node .cap-a { display: none; }
html:not(.motion) .node .cap-b { opacity: 1; }
.motion .node .opps li { opacity: 0; }
.wipe {
  position: absolute; inset: 0; z-index: 5; display: none; place-items: center; padding: var(--gutter);
  background: var(--grad); color: var(--midnight); clip-path: inset(0 100% 0 0); pointer-events: none;
}
.motion .wipe { display: grid; }
.wipe p { font-weight: 800; font-size: clamp(2.4rem, 7vw, 7rem); line-height: 1; letter-spacing: -0.035em; text-align: left; max-width: 12ch; }
.orden-was { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.capas-head { max-width: 760px; }
.capas-head .h2 { margin-top: 20px; }
.capas-head .lead { margin-top: 22px; }
.capas-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(40px, 7vh, 80px); }
.capas-stage { perspective: 1500px; display: grid; place-items: center; min-height: clamp(380px, 56vh, 600px); }
.capas-stack { position: relative; width: min(100%, 440px); aspect-ratio: 1.3; transform-style: preserve-3d; transform: rotateX(52deg) rotateZ(-20deg); }
.plane { position: absolute; inset: 0; border-radius: 22px; padding: clamp(18px, 2.2vw, 28px); display: flex; flex-direction: column; justify-content: space-between; transform-style: preserve-3d; }
.plane-1 { background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(11, 47, 90, 0.45); transform: translateZ(0); color: var(--navy);
  background-image: radial-gradient(rgba(5, 77, 133, 0.16) 1.4px, transparent 1.6px); background-size: 22px 22px; }
.plane-2 { background: rgba(6, 32, 63, 0.9); border: 1.5px dashed rgba(254, 177, 33, 0.75); color: #F7F9FC; transform: translateZ(190px); box-shadow: 0 50px 90px -40px rgba(6, 32, 63, 0.7); }
.plane .pl-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.plane-1 .pl-k { color: var(--signal); }
.plane-2 .pl-k { color: var(--amber); }
.plane .pl-t { font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.7rem); line-height: 1.15; }
.plane .pl-tag { align-self: flex-start; font-size: 0.75rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; }
.plane-1 .pl-tag { background: var(--white); border: 1px solid var(--line); }
.plane-2 .pl-tag { border: 1px solid rgba(254, 177, 33, 0.6); }
.plane-1 .plate { box-shadow: none; padding: 0; }
.plane-1 .plate img { width: 124px; }
.optin-line { position: absolute; left: 50%; top: 50%; width: 2px; height: 190px; transform-origin: top; transform: rotateX(90deg); background: repeating-linear-gradient(180deg, var(--amber) 0 6px, transparent 6px 12px); }
.capas-cols { display: grid; gap: 18px; }
.layer-card { padding: clamp(20px, 2.2vw, 30px); border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.layer-card.l2 { border-style: dashed; border-color: rgba(5, 77, 133, 0.35); background: rgba(255, 255, 255, 0.5); }
.layer-card h3 { margin-top: 10px; }
.ticks { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 14px; height: 3px; border-radius: 3px; background: var(--grad); }
.layer-card .foot { margin-top: 18px; font-weight: 600; color: var(--fg); }
.capas-remate { margin-top: clamp(36px, 6vh, 64px); }

.est-head { max-width: 760px; }
.est-head .h2 { margin-top: 20px; }
.est-head .lead { margin-top: 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tab {
  position: relative; min-height: 44px; padding: 0 18px; border-radius: 99px; font-weight: 600; font-size: 0.92rem;
  border: 1px solid var(--border); background: var(--card); color: var(--fg); transition: border-color 0.2s, color 0.2s;
}
.tab[aria-selected="true"] { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.est-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(30px, 5vh, 60px); }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; transition: opacity 0.4s var(--ease-ui); }
.js .step:not(.is-active) { opacity: 0.38; }
.step .num { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; color: var(--label); }
.step h3 { margin-top: 10px; }
.step .what { margin-top: 10px; color: var(--muted); }
.step-vis { display: none; }
.est-stage-col { position: relative; }
.est-stage { position: sticky; top: 14vh; height: 72vh; border-radius: 24px; border: 1px solid var(--border); }
.est-stage .cap { position: absolute; left: 22px; top: 18px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--signal); }
.est-stage .you { position: absolute; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.est-stage .you i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(254, 177, 33, 0.25); }
.est-remate { margin-top: clamp(30px, 5vh, 60px); }
.mini { width: 100%; max-width: 260px; margin-top: 18px; }
.js .mini { display: none; }

.fz-head .h2 { margin-top: 20px; max-width: 16ch; }
.f-stage { position: relative; height: clamp(300px, 50vh, 520px); margin-top: clamp(24px, 4vh, 48px); }
.f-stage span { position: absolute; top: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.f-stage .fa { left: 0; color: var(--amber); }
.f-stage .fb { right: 0; color: #9CC6EE; }
.fz-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(24px, 4vh, 40px); }
.fz-cols h3 { margin-bottom: 10px; }
.fz-quote { margin-top: clamp(40px, 7vh, 80px); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 24ch; }
.fz-final { margin-top: 20px; }

.bo-head { max-width: 860px; }
.bo-head .h2 { margin-top: 20px; }
.bo-head .lead { margin-top: 22px; }
.screen-wrap { perspective: 1800px; margin-top: clamp(40px, 7vh, 80px); position: relative; }
.screen-wrap::before { content: ""; position: absolute; inset: 10% 6% -6%; background: radial-gradient(closest-side, rgba(6, 32, 63, 0.35), transparent); filter: blur(30px); z-index: -1; }
.screen { position: relative; transform-style: preserve-3d; border-radius: clamp(12px, 1.6vw, 22px); padding: clamp(6px, 0.8vw, 12px); background: var(--midnight); box-shadow: 0 60px 120px -40px rgba(6, 32, 63, 0.6), 0 0 0 1px rgba(11, 47, 90, 0.2); max-width: 1120px; margin-inline: auto; }
.screen img { width: 100%; height: auto; border-radius: clamp(8px, 1vw, 14px); aspect-ratio: 16 / 9; }
.hot {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
  background: var(--amber); color: var(--midnight); box-shadow: 0 0 0 6px rgba(254, 177, 33, 0.28);
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.hot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(254, 177, 33, 0.7); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.hot:hover, .hot.is-on { transform: scale(1.15); }
.motion .screen-wrap:not(.hot-on) .hot { opacity: 0; transform: scale(0.4); }
.screen-wrap.hot-on .hot:nth-of-type(2) { transition-delay: 0.08s; }
.screen-wrap.hot-on .hot:nth-of-type(3) { transition-delay: 0.16s; }
.screen-wrap.hot-on .hot:nth-of-type(4) { transition-delay: 0.24s; }
.bo-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 5vh, 48px); counter-reset: bo; }
.bo-list li { counter-increment: bo; padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.25s var(--ease-ui); }
.bo-list li::before { content: counter(bo); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--midnight); color: var(--amber); font-weight: 700; font-size: 0.8rem; }
.bo-list li.is-on { border-color: var(--amber); transform: translateY(-3px); }
.bo-list b { display: block; margin-top: 10px; font-weight: 700; }
.bo-list span { display: block; margin-top: 4px; font-size: 0.92rem; color: var(--muted); }
.caption { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }

.pt-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pt-copy .h2 { margin-top: 20px; }
.pt-copy .lead { margin-top: 22px; }
.pt-remate { margin-top: 26px; font-weight: 600; font-size: clamp(1.2rem, 1.6vw, 1.6rem); line-height: 1.3; }
.pt-legal { margin-top: 16px; color: var(--muted); }
.orbit { position: relative; width: min(100%, 580px); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; list-style: none; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%); background: #FFFFFF; border-radius: 10px; padding: 6%; box-shadow: 0 0 0 10px rgba(247, 249, 252, 0.06), 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.orbit-core img { width: 100%; height: auto; }
.orbit-ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(247, 249, 252, 0.16); }
.sat {
  --R: 40cqi;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--R)) rotate(calc(-1 * var(--a)));
  animation: orbit 70s linear infinite;
}
@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--R)) rotate(calc(-1 * var(--a))); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--a) + 360deg)) translateX(var(--R)) rotate(calc(-1 * var(--a) - 360deg)); }
}
.orbit:hover .sat, .orbit:focus-within .sat { animation-play-state: paused; }
.sat-in { display: block; width: max-content; max-width: 170px; padding: 10px 14px; border-radius: 14px; background: rgba(6, 32, 63, 0.82); border: 1px solid rgba(247, 249, 252, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-align: left; }
.sat-in b { display: block; font-weight: 600; font-size: 0.9rem; line-height: 1.25; }
.sat-in small { display: block; margin-top: 3px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }

.nex-frame { border: 1px solid rgba(247, 249, 252, 0.22); border-radius: clamp(20px, 2.4vw, 36px); padding: clamp(28px, 5vw, 80px); position: relative; }
.nex-frame::before { content: "Capa 2"; position: absolute; top: -12px; left: clamp(24px, 4vw, 60px); padding: 0 10px; background: var(--midnight); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 249, 252, 0.7); }
.js .nex-frame::before { background: var(--midnight); }
.nex-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.nex-video { max-width: 340px; margin-inline: auto; }
.nex-video video { aspect-ratio: 480 / 848; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; border: 1px solid rgba(254, 177, 33, 0.6); color: var(--amber); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.nex-copy .h2 { margin-top: 20px; }
.nex-copy .lead { margin-top: 22px; }
.verbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; }
.verbs li { padding: 8px 16px; border-radius: 99px; background: rgba(247, 249, 252, 0.06); border: 1px solid rgba(247, 249, 252, 0.16); font-weight: 600; }
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 5vh, 56px); list-style: none; }
.agent { padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.agent b { display: block; font-weight: 700; }
.agent span { display: block; margin-top: 6px; font-size: 0.92rem; color: var(--muted); }
.agent em { display: inline-block; margin-top: 12px; font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.nex-legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92rem; }

.faq-head { max-width: 760px; }
.faq-head .h2 { margin-top: 20px; }
.faq-head .lead { margin-top: 22px; }
.faq { margin-top: clamp(32px, 5vh, 60px); max-width: 1040px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(18px, 2.6vh, 26px) 4px; font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform 0.35s var(--ease-out), background 0.2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy); transform: translate(-50%, -50%); border-radius: 2px; }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease-out); }
.faq details[open] summary .pm { background: var(--white); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .pm { border-color: var(--signal); }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.4s var(--ease-out), content-visibility 0.4s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.ans { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: clamp(16px, 2.4vw, 36px); padding: 4px 4px clamp(24px, 3vh, 32px); }
.ans dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--signal); position: relative; padding-top: 12px; }
.ans dt::before { content: ""; position: absolute; left: 0; top: 0; width: 32px; height: 2px; background: var(--line); }
.ans .how dt::before { background: var(--grad); height: 3px; }
.ans dd { margin-top: 8px; color: var(--muted); }
.ans .how dd { color: var(--navy); }
.share { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--signal); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }

.reg-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.reg-title { margin-top: 22px; }
.reg-title .ln { display: block; }
.reg-copy .lead { margin-top: 26px; }
.reg-stage { position: relative; height: clamp(240px, 40vh, 420px); }
.reg-sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(48px, 9vh, 100px); padding-top: 28px; border-top: 1px solid var(--border); }
.reg-sign p { color: var(--muted); font-size: 0.95rem; }
.end-band { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--grad); transform-origin: left; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 130; transform: translate(-50%, 140%);
  padding: 14px 20px; border-radius: 14px; background: #FFFFFF; color: var(--navy); font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 20px 50px -20px rgba(6, 32, 63, 0.6); transition: transform 0.45s var(--ease-out); max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); }
.toast::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--amber); vertical-align: middle; }

.foot { padding: 28px var(--gutter) 80px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #3E536E; background: var(--white); position: relative; z-index: 1; }

@media (max-width: 1100px) {
  .bo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { padding-top: calc(clamp(36px, 5vh, 72px) + var(--tk-h)); padding-bottom: clamp(20px, 3vh, 40px); }
  .hero { --hero-fs: clamp(2rem, 9.4vw, 2.75rem); --hero-max-lines: 5; }
  .hero-grid, .orden-grid, .capas-grid, .pt-grid, .nex-grid, .reg-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-video { width: 100%; margin-inline: auto; }
  .hero-video .hero-scroll { width: min(100%, 460px); margin-inline: auto; }
  .est-grid { grid-template-columns: minmax(0, 1fr); }
  .est-stage-col { display: none; }
  .step { min-height: auto; padding: 28px 0; border-top: 1px solid var(--line); }
  .js .step-vis { display: block; height: clamp(200px, 42vw, 300px); margin-top: 18px; border-radius: 18px; border: 1px solid var(--border); }
  .agents { grid-template-columns: minmax(0, 1fr); }
  .ans { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nex-video { max-width: 260px; }
  .reg-stage { order: -1; height: clamp(200px, 50vw, 300px); }
  .capas-stage { min-height: 380px; }
  .tabs { position: sticky; top: 64px; z-index: 3; padding: 8px 0; }
}
@media (max-width: 680px) {
  .nav { padding-top: 10px; padding-bottom: 10px; }
  .plate img { width: 120px; }
  .fz-cols { grid-template-columns: minmax(0, 1fr); }
  .bo-list { grid-template-columns: minmax(0, 1fr); }
  .hot { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 0.72rem; }
  .orbit { width: 100%; aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; container-type: normal; }
  .orbit-core { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; width: 120px; margin: 0 auto 10px; }
  .orbit-ring { display: none; }
  .sat { position: static; transform: none; animation: none; }
  .sat-in { width: 100%; max-width: none; }
  .scroll-cue { display: none; }
  .tabs { top: 58px; }
}
@media (max-width: 400px) {
  .btn { padding: 0 1.2em; }
  .btn-sm { padding: 0 0.9em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
.is-still .float-bob, .is-still .sat, .is-still .hot::after, .is-still .scroll-cue i::after { animation: none !important; }
.is-still .float-tilt { transform: none !important; }

/* In-repo integration: footer legal links (PreNet routes) */
.foot-legal { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 4px; }
.foot-legal a { color: inherit; opacity: .8; text-decoration: none; font-size: 0.82em; }
.foot-legal a:hover { opacity: 1; text-decoration: underline; }

/* Language selector (32 languages, scripts/i18n.js) */
.lang { position: relative; }
.lang[hidden] { display: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 0.85em;
  border-radius: 999px; border: 1.5px solid var(--navbd, var(--border)); background: var(--navbg, rgba(6, 32, 63, 0.35));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--navfg, var(--fg)); font: inherit; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; cursor: pointer;
  transition: transform 0.2s var(--ease-ui), border-color 0.2s var(--ease-ui), background-color 0.2s var(--ease-ui);
}
.lang-btn:hover { transform: translateY(-2px); border-color: var(--amber); }
.lang-btn:focus-visible { outline: 2px solid var(--focus, var(--amber)); outline-offset: 3px; }
.lang-btn svg { flex: none; }
.lang-caret { font-size: 0.7em; opacity: 0.75; transition: transform 0.2s var(--ease-ui); }
.lang.is-open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; list-style: none;
  width: 236px; max-height: min(62vh, 440px); overflow-y: auto; overscroll-behavior: contain; padding: 6px;
  background: rgba(11, 24, 40, 0.96); color: #F7F9FC; border: 1px solid rgba(247, 249, 252, 0.14); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(253, 110, 12, 0.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease-ui), transform 0.18s var(--ease-ui), visibility 0s linear 0.18s;
  scrollbar-width: thin; scrollbar-color: rgba(247, 249, 252, 0.25) transparent;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang-menu li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px; font-size: 0.88rem; line-height: 1.3; cursor: pointer; outline: none;
}
.lang-menu li:hover, .lang-menu li:focus-visible { background: rgba(247, 249, 252, 0.08); }
.lang-menu li[aria-selected="true"] { background: rgba(253, 110, 12, 0.16); color: var(--amber); font-weight: 600; }
.lang-flag { font-size: 1.05rem; line-height: 1; }
.lang-iso { font-size: 0.7rem; letter-spacing: 0.06em; opacity: 0.55; }
/* Mobile: the nav row is already full (logo + 2 CTAs), so the selector docks
   into the right end of the ticker bar instead of squeezing the logo. */
@media (max-width: 680px) {
  .ticker > .lang { position: absolute; top: calc((var(--tk-h) - 28px) / 2); right: 10px; z-index: 3; }
  .lang-btn { min-height: 28px; padding: 0 0.6em; gap: 4px; font-size: 0.72rem; border-color: rgba(247, 249, 252, 0.22); background: rgba(11, 24, 40, 0.92); color: #F7F9FC; }
  .lang-btn svg { width: 14px; height: 14px; }
  .lang-btn:hover { transform: none; }
  .lang-caret { display: none; }
  /* translated "Log in" labels can be longer than the English one */
  html:not([lang="en"]) .nav-right .btn-ghost { font-size: 0.8rem; padding: 0 0.8em; }
  .lang-menu { position: fixed; top: calc(var(--tk-h) + 6px); right: 10px; width: min(260px, calc(100vw - 20px)); max-height: min(70vh, 460px); }
}

/* Footer: dark/cosmic finish (links and routes unchanged) */
.foot[data-theme="dark"] {
  background: radial-gradient(120% 140% at 0% 0%, rgba(253, 110, 12, 0.10) 0%, rgba(253, 110, 12, 0) 45%), var(--dusk);
  color: rgba(247, 249, 252, 0.72);
  border-top: 1px solid rgba(247, 249, 252, 0.08);
}
.foot[data-theme="dark"]::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: 0.55;
}
.foot[data-theme="dark"] .foot-legal a { color: #F7F9FC; opacity: 0.78; }
.foot[data-theme="dark"] .foot-legal a:hover, .foot[data-theme="dark"] .foot-legal a:focus-visible { color: var(--amber); opacity: 1; }
.foot-copy { flex-basis: 100%; font-size: 0.78em; opacity: 0.6; }

/* Narrow phones (≤400px): logo + "Log in" + "Register free" must fit inside the
   gutters in every language. The logo plate keeps a floor, "Register free" never
   shrinks, and only a long translated "Log in" label gives way (ellipsis). */
@media (max-width: 400px) {
  .nav { gap: 10px; }
  .nav .plate { min-width: 64px; flex-shrink: 1000; }
  .nav-right { gap: 8px; min-width: 0; flex-shrink: 1; }
  .nav-right .btn-sm { padding: 0 0.75em; }
  .nav-right .btn-primary { flex-shrink: 0; }
  .nav-right .btn-ghost { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}


/* Testphasen-Hinweis: bestehende Typografie und Cosmic-Orange-Identität. */
.registration-notice {
  margin: auto;
  width: min(540px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid rgba(253, 110, 12, 0.4);
  border-radius: 20px;
  color: var(--white);
  background: var(--midnight);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-size: 16px;
  line-height: 1.65;
}
.registration-notice::backdrop { background: rgba(3, 14, 29, 0.7); }
.registration-notice-title { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.registration-notice #registration-notice-description p + p { margin-top: 12px; }
.registration-notice .btn { margin-top: 24px; background: var(--grad); color: var(--midnight); }
