:root {
  --bg: #04060d;
  --ink: #f2f4fa;
  --ink2: #cdd2df;
  --muted: #a3abbd;
  --violet: #b8a8f6;
  --violet-fill: #6552d0;
  --on-violet: #ffffff;
  --font-brand: "Outfit Variable", "Avenir Next", "Avenir", "Sora", "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --line: rgba(160, 180, 255, 0.18);
  --accent: #7aa2ff;
  --gold: #ffcf8a;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The two canvases sit behind everything; WebGL failing leaves this gradient. */
#space, #stars {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  display: block;
}
#space { z-index: -2; background: radial-gradient(120% 90% at 50% 20%, #0d1633 0%, var(--bg) 70%); }
#stars { z-index: -1; pointer-events: none; }

.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(1rem, env(safe-area-inset-top)) clamp(1rem, 4vw, 3rem) 1rem;
  transition: opacity 1s ease;
}
.brand { display: inline-flex; align-items: center; color: rgba(255, 244, 232, 0.96); text-decoration: none; }
.brand .word { font-size: 2.34rem; font-weight: 400; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.brand .lig { display: inline-block; height: .594em; width: 1.098em; vertical-align: -.054em; margin: 0 .04em; object-fit: contain; filter: drop-shadow(0 0 4px rgba(141, 160, 255, 0.18)); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sound {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .9rem;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}
.sound[aria-pressed="true"] { color: var(--ink); border-color: var(--violet); }
.sound:focus-visible, .cta:focus-visible, .brand:focus-visible, .open-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

main { position: relative; z-index: 1; transition: opacity 1.2s ease; }

.hero, .panel {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(1.25rem, 6vw, 6rem);
  max-width: 76rem;
}
.hero { gap: 1.25rem; }
/* Empty stretches of scroll so the star tunnel has room to travel. */
.voyage { height: 110svh; }
.eyebrow { color: var(--violet); letter-spacing: .35em; text-transform: uppercase; font-size: .75rem; }
h1, h2, h3, .brand { font-family: var(--font-brand); }
h1 { font-size: clamp(2.2rem, 7.5vw, 5.6rem); line-height: 1.02; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
/* one ink: the headline is solid --ink, no glow */
h1 em { font-style: normal; color: var(--ink); }
.pillars { list-style: none; padding: 0; margin: .5rem 0 .9rem; display: grid; gap: .55rem; }
.pillar { padding-left: 1rem; border-left: 2px solid rgba(255, 255, 255, 0.28); font: 400 clamp(1rem, 1.6vw, 1.3rem)/1.3 var(--font-sans); color: var(--ink2); }
h2 { font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.1; font-weight: 600; margin-bottom: 2rem; text-wrap: balance; }
.lead { color: var(--ink2); font-size: clamp(1rem, 2vw, 1.3rem); max-width: 34rem; }

.cta {
  align-self: flex-start;
  display: inline-block;
  margin-top: .75rem;
  padding: .8rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  text-decoration: none;
  transition: background .2s;
}
.cta:hover { background: rgba(255, 255, 255, 0.14); }

.hint { margin-top: 2.5rem; color: var(--muted); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--ink2); }

.panel-end { min-height: 80svh; }
.foot { position: relative; z-index: 1; padding: 2rem clamp(1.25rem, 6vw, 6rem); color: var(--muted); font-size: .8rem; }

/* ---- the black hole gate ------------------------------------------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: end center;
  padding-bottom: clamp(3rem, 15svh, 9rem);
  pointer-events: none;
}
.open-btn {
  pointer-events: auto;
  appearance: none;
  padding: .85rem 2.1rem .85rem 2.4rem;
  border: 1px solid rgba(255, 214, 160, 0.38);
  border-radius: 999px;
  background: rgba(255, 214, 160, 0.06);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: rgba(255, 232, 200, 0.92);
  font: 600 .74rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .38em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 240, 220, 0.16), 0 0 26px rgba(255, 150, 60, 0.12);
  animation: pulse 3.4s ease-in-out infinite;
  transition: opacity .5s ease, transform .6s ease, background .25s, border-color .25s, color .25s;
}
.open-btn:hover { border-color: rgba(255, 224, 180, 0.8); color: #fff; background: rgba(255, 214, 160, 0.14); }
@keyframes pulse {
  50% { box-shadow: inset 0 1px 0 rgba(255, 240, 220, 0.16), 0 0 40px rgba(255, 150, 60, 0.32); }
}

/* sound toggle: tiny equalizer, animated while the sound is on */
.sound { display: inline-flex; align-items: center; gap: .55rem; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: .8rem; }
.eq i { display: block; width: 2px; height: 30%; background: currentColor; border-radius: 1px; }
.sound[aria-pressed="true"] .eq i { animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s !important; }
.eq i:nth-child(3) { animation-delay: -.6s !important; }
.eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ---- states -------------------------------------------------------------- */
html[data-state="closed"], html[data-state="opening"] { overflow: hidden; }

html[data-state="closed"] main, html[data-state="closed"] .foot, html[data-state="closed"] .bar,
html[data-state="opening"] main, html[data-state="opening"] .foot, html[data-state="opening"] .bar {
  opacity: 0;
  pointer-events: none;
}
html[data-state="opening"] .open-btn { opacity: 0; transform: scale(.85); pointer-events: none; animation: none; }
html[data-state="open"] .gate { display: none; }

/* Content builds in as the universe blooms out of the black hole. */
html[data-state] .hero > * { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease; }
html[data-state="open"] .hero > * { opacity: 1; transform: none; }
html[data-state="open"] .hero > :nth-child(2) { transition-delay: .15s; }
html[data-state="open"] .hero > :nth-child(3) { transition-delay: .3s; }
html[data-state="open"] .hero > :nth-child(4) { transition-delay: .45s; }
html[data-state="open"] .hero > :nth-child(5) { transition-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
  .open-btn, .brand .word { animation: none; }
  .sound[aria-pressed="true"] .eq i { animation: none; height: 70%; }
  html[data-state] .hero > * { transition: none; }
}

/* =========================================================================
   Sections: método, IA aplicada, selector, trabajo, contacto
   ========================================================================= */
:root { --hot: var(--violet); --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --line2: rgba(160, 180, 255, 0.32); }

.sec { min-height: 100svh; max-width: 80rem; padding: 6rem clamp(1.25rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: center; gap: .9rem; position: relative; }
.sec-end { min-height: 80svh; }
.sec .cta { margin-top: 1rem; }
.label, .mono { font: 500 .78rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label.hot { color: var(--hot); }
.sub { color: var(--ink2); max-width: 46rem; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.note { color: var(--muted); font-size: .85rem; max-width: 42rem; }
.voyage { height: 140svh; display: flex; align-items: center; padding: 0 clamp(1.25rem, 6vw, 6rem); }
.interlude { font-size: clamp(1.7rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; max-width: 18ch; text-wrap: balance; }

.glass {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  padding: 1.5rem;
}
.glass h3, .stage h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -.01em; margin: .25rem 0 .9rem; }
.chip { display: inline-block; font: 500 .7rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 1px 10px; border: 1px solid var(--line2); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.chip.hotchip { border-color: rgba(184, 168, 246, .55); color: var(--hot); }
.chip.dashed { border-style: dashed; }
.chip.ok { color: #5bd6a0; border-color: rgba(91, 214, 160, .45); background: rgba(91, 214, 160, .08); }
.chip.bad { color: #ff7a8a; border-color: rgba(255, 122, 138, .5); background: rgba(255, 122, 138, .08); }
.btn { display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start; padding: .8rem 1.4rem; border-radius: 12px; background: var(--violet-fill); color: var(--on-violet); font-weight: 600; text-decoration: none; transition: filter .2s, transform .2s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:focus-visible, .star-btn:focus-visible, .pk-opt:focus-visible, .term-pp:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* reveal on scroll (only when JS is present) */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }


/* ---- 02 IA aplicada ----------------------------------------------------- */
.duo { display: grid; grid-template-columns: 1fr 7rem 1fr; gap: 0; align-items: stretch; margin-top: 1rem; }
.checks { list-style: none; padding: 0; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 2.6rem; color: var(--ink2); min-height: 1.8rem; }
.checks i { position: absolute; left: 0; top: -.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid rgba(184, 168, 246, .5); background: rgba(184, 168, 246, .08); }
.checks i::after { content: ''; position: absolute; left: .6rem; top: .35rem; width: .38rem; height: .72rem; border: solid var(--hot); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.tl-wrap { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.tl { list-style: none; padding: 0; margin-top: 1.1rem; display: flex; position: relative; }
.tl::before, .tl::after { content: ''; position: absolute; top: .45rem; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.tl::after { background: linear-gradient(90deg, rgba(184, 168, 246, .35), var(--hot)); transform-origin: left; transform: scaleX(var(--tp, 1)); transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.tl li { flex: 1; text-align: center; padding-top: 1.7rem; position: relative; font: 500 .68rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tl li::before { content: ''; position: absolute; top: 0; left: 50%; width: .95rem; height: .95rem; margin-left: -.475rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); z-index: 1; transition: background .4s, border-color .4s; }
.tl li.is-done::before { background: var(--hot); border-color: var(--hot); }
.tl li.is-cur { color: var(--ink); }
.tl li.is-cur::before { background: var(--bg); border-color: var(--hot); box-shadow: 0 0 0 4px rgba(184, 168, 246, .25), 0 0 14px rgba(184, 168, 246, .6); }
.links { display: grid; align-content: center; gap: 3.2rem; padding: 0 .5rem; text-align: center; }
.lk { display: grid; gap: .5rem; justify-items: center; }
.lk .label { font-size: .68rem; }
.dots { display: block; width: 100%; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 11px); background-size: 22px 2px; }
.lk-l .dots { --c: #9fb4e8; animation: dashL 1.1s linear infinite; }
.lk-r .dots { --c: var(--hot); animation: dashR 1.1s linear infinite; }
.lk-l .dots::before, .lk-r .dots::after { content: ''; position: absolute; top: -4px; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 0 0 2px; }
.lk-l .dots::before { left: 0; color: #9fb4e8; transform: rotate(-45deg); }
.lk-r .dots::after { right: 0; color: var(--hot); transform: rotate(135deg); }
@keyframes dashL { to { background-position: -22px 0; } }
@keyframes dashR { to { background-position: 22px 0; } }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.term { background: rgba(5, 13, 26, .72); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: .45rem; padding: .55rem .9rem; background: rgba(240, 244, 248, .045); border-bottom: 1px solid var(--line); font: 500 .74rem/1 var(--mono); color: var(--muted); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(157, 178, 201, .34); }
.term-bar > span { margin-left: .5rem; flex: 1; }
.term-pp { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; padding: 0 .7rem; border: 1px solid var(--line2); border-radius: 8px; background: transparent; color: var(--ink); font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.term-pp:hover { border-color: var(--hot); color: var(--hot); }
.pp-ico { width: 9px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.is-paused .pp-ico { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.feed { list-style: none; padding: .6rem 0; height: 24rem; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%); mask-image: linear-gradient(180deg, transparent 0, #000 26%); }
.fd-l { display: grid; grid-template-columns: 40px 78px 1fr; gap: 2px 10px; padding: 6px 14px; font-size: .84rem; line-height: 1.45; }
.fd-l time { font: 400 .72rem/1.9 var(--mono); color: #8ea2b9; }
.fd-l b { font: 600 .8rem/1.7 var(--mono); }
.fd-l[data-r="a"] b { color: var(--hot); } .fd-l[data-r="r"] b { color: #9db2c9; } .fd-l[data-r="y"] b { color: #f0f4f8; }
.fd-m { color: var(--ink2); }
.fd-u { color: transparent; }
.fd-c { grid-column: 3; justify-self: start; font: 500 .66rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 0 8px; border-radius: 999px; border: 1px solid; font-style: normal; }
.fd-l.is-typing .fd-c { opacity: 0; }
.fd-caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: text-bottom; background: var(--hot); animation: blink 1.05s steps(1) infinite; }
.is-paused .fd-caret { animation: none; opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }
.fd-l.is-slide { animation: slideUp .28s ease-out; }
@keyframes slideUp { from { transform: translateY(var(--sy, 20px)); } to { transform: none; } }

/* ---- 03 selector -------------------------------------------------------- */
.pk { display: grid; grid-template-columns: 19rem 1fr; gap: 1.4rem; margin-top: 1rem; align-items: stretch; }
.pk-list { position: relative; display: grid; align-content: start; gap: .35rem; padding-left: .3rem; }
.pk-ind { position: absolute; left: 0; top: 0; width: 3px; height: 1px; background: var(--hot); border-radius: 2px; transform: translateY(var(--iy, 0)) scaleY(var(--ih, 56)); transform-origin: top; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.pk-opt { display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; text-align: left; padding: .8rem .9rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: .98rem; line-height: 1.3; cursor: pointer; transition: background .3s, color .3s; }
.pk-opt b { font: 500 .78rem/1.6 var(--mono); color: #8ea2b9; letter-spacing: .08em; }
.pk-opt[aria-selected="true"] { background: rgba(16, 32, 58, .92); color: var(--ink); }
.pk-opt[aria-selected="true"] b { color: var(--hot); }
.pk-stage { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr auto; gap: 0 1.6rem; min-height: 28rem; padding: 1.6rem; }
.pk-panel { grid-column: 1; grid-row: 1; opacity: 0; visibility: hidden; transition: opacity .16s ease, visibility 0s .16s; display: flex; flex-direction: column; gap: .7rem; }
.pk-panel.is-on { opacity: 1; visibility: visible; transition: opacity .4s ease .08s; }
.pk-title { position: relative; font-size: clamp(1.25rem, 2.3vw, 1.9rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
.pk-fx { position: absolute; inset: 0; pointer-events: none; }
.pk-fx i { font-style: normal; color: var(--hot); }
.is-scr .pk-real { visibility: hidden; }
.pk-body { color: var(--ink2); }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: .6rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.4rem; color: var(--ink2); font-size: .94rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid rgba(184, 168, 246, .5); background: rgba(184, 168, 246, .08); color: var(--hot); font: 500 .74rem/1.55rem var(--mono); text-align: center; }
.pk-side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: .8rem; }
.pk-vis { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 13, 26, .55); position: relative; overflow: hidden; }
.pk-vis svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pk-cap { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; font: 500 .78rem/1.3 var(--mono); letter-spacing: .04em; color: var(--ink2); }
.pk-stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; color: var(--ink2); font-size: .9rem; }
.pk-stat b { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.03em; color: var(--hot); font-variant-numeric: tabular-nums; }
.pk-stage > .btn { grid-column: 1 / -1; grid-row: 2; margin-top: 1.2rem; }
.vis-stroke { stroke: #9fb4e8; fill: none; stroke-width: 1.5; }
.vis-hot { stroke: var(--hot); fill: none; stroke-width: 1.5; }
.vis-fill { fill: rgba(159, 180, 232, .15); stroke: #9fb4e8; stroke-width: 1.2; }
.vis-dot { fill: #f0f4f8; }
.vis-flow { stroke-dasharray: 4 6; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.vis-bar { transform-origin: bottom; animation: grow 1.6s ease-in-out infinite alternate; }
@keyframes grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

/* ---- 04 trabajo --------------------------------------------------------- */
.card .label { margin-bottom: .4rem; }
.card h3 { margin-bottom: .5rem; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }

@media (max-width: 920px) {
  .method, .pk, .duo { grid-template-columns: 1fr; }
  .links { grid-auto-flow: column; gap: 1rem; padding: 1.4rem 0; }
  .pk-list { display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .4rem; }
  .pk-opt { flex: 0 0 14.5rem; border: 1px solid var(--line); }
  .pk-ind { display: none; }
  .pk-stage { grid-template-columns: 1fr; min-height: 0; }
  .pk-side { grid-column: 1; grid-row: 2; margin-top: 1rem; }
  .pk-panel { grid-row: 1; }
  .pk-stage > .btn { grid-row: 3; }
  .feed { height: 20rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .dots, .vis-flow, .vis-bar, .fd-caret { animation: none; }
}

.vis-bar.d1 { animation-delay: -.2s; } .vis-bar.d2 { animation-delay: -.6s; } .vis-bar.d3 { animation-delay: -1s; }
.vis-bar.d4 { animation-delay: -.4s; } .vis-bar.d5 { animation-delay: -.8s; }
.vis-fill.vis-bad, .vis-bad { stroke: #ff7a8a; fill: rgba(255, 122, 138, .2); }

/* ---- tighter vertical rhythm so each stop fits one screen ---------------- */
.bar::before { content: ''; position: absolute; inset: 0 0 -1.6rem; background: linear-gradient(180deg, rgba(4, 6, 13, .78), rgba(4, 6, 13, 0)); z-index: -1; pointer-events: none; }
.sec { padding-top: 4.6rem; padding-bottom: 3.2rem; gap: .5rem; }
.sec h2 { font-size: clamp(1.6rem, 3.3vw, 2.7rem); margin-bottom: .6rem; }
.sub { font-size: clamp(.95rem, 1.25vw, 1.08rem); }
.duo { margin-top: .5rem; }
.glass { padding: 1.2rem; }
.checks { gap: .55rem; }
.tl-wrap { margin-top: 1rem; padding-top: .8rem; }
.feed { height: 17rem; }
.pk { margin-top: .5rem; gap: 1.1rem; }
.pk-opt { padding: .6rem .8rem; font-size: .92rem; }
.pk-stage { min-height: 0; padding: 1.2rem; }
.pk-panel { gap: .5rem; }
.steps { gap: .45rem; }
.steps li { font-size: .88rem; }
.pk-body { font-size: .95rem; }
.pk-vis { aspect-ratio: 16 / 10; }
.pk-stage > .btn { margin-top: .8rem; padding: .65rem 1.2rem; }


/* 01 Método: every rule lives in fx.css */

/* footer links to the static pages: crawlable, so search engines can reach them from the home page */
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.foot-links a { color: var(--ink2); text-underline-offset: .18em; }
.foot-links a:hover { color: var(--ink); }

/* ---- Privacy / Terms: a floating glass card over the live scene (no band); header and footer stay. Shown by html[data-legal]. ---- */
/* .legal is only the click area and the scroller; the dimming is a soft vignette, so there are no hard edges to read as a bar */
.legal { display: none; position: fixed; inset: 4.2rem 0 var(--foot-h, 0px) 0; z-index: 7; overflow-y: auto; overscroll-behavior: contain; padding: 1rem clamp(1rem, 4vw, 2rem); }
html[data-legal] .legal { display: grid; place-items: center; }
html[data-legal] { overflow: hidden; }
html[data-legal] .gate { opacity: 0; pointer-events: none; }
/* z-index 6: above the header (5) and the footer, below the card (7), so the dimming is one continuous gradient with no seam at the header or footer edges */
html[data-legal] body::after { content: ''; position: fixed; inset: 0; z-index: 6; pointer-events: none; animation: legal-veil .6s ease both;
  background: radial-gradient(70% 60% at 50% 52%, rgba(4, 6, 13, .82) 0%, rgba(4, 6, 13, .6) 55%, rgba(4, 6, 13, .32) 100%); }
@keyframes legal-veil { from { opacity: 0; } to { opacity: 1; } }

.legal-card { display: none; position: relative; width: min(100%, 56rem); max-height: 100%; overflow-y: auto; outline: none;
  padding: clamp(1.4rem, 3.4vw, 2.4rem); border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 90px rgba(120, 100, 235, .16), inset 0 1px 0 rgba(255, 255, 255, .12); }
html[data-legal="privacy"] #legal-privacy, html[data-legal="terms"] #legal-terms { display: grid; animation: legal-in .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes legal-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.legal-card::before { content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 207, 138, .85), transparent); }

/* editorial layout: title on the left, points on the right */
.legal-card { grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); column-gap: clamp(1.5rem, 4vw, 3rem); align-content: start; }
.legal-card > .label { grid-area: 1 / 1; margin-bottom: .5rem; }
.legal-card > h2 { grid-area: 2 / 1; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; margin: 0 0 .6rem;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 232, 200, .85)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal-card > .updated { grid-area: 3 / 1; color: var(--muted); font-size: .85rem; }
.legal-card > ul { grid-area: 1 / 2 / span 4; list-style: none; padding: 0; display: grid; gap: 0; align-content: start; }
.legal-card > .legal-other { grid-area: 4 / 1; align-self: end; margin-top: 1.4rem; font-size: .92rem; }
.legal-card li { position: relative; padding: .85rem 0 .85rem 1.3rem; color: var(--ink2); font-size: .95rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.legal-card li:first-child { padding-top: 0; }
.legal-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-card li::before { content: ''; position: absolute; left: 0; top: 1.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(255, 205, 130, .7); }
.legal-card li:first-child::before { top: .68em; }
.legal-card li b { color: var(--ink); font-weight: 600; }
.legal-card a { color: var(--violet); text-underline-offset: .18em; }
.legal-card a:hover { color: var(--ink); }
.legal-close { position: absolute; top: .7rem; right: 1rem; font-size: 1.8rem; line-height: 1; text-decoration: none; color: var(--ink2); z-index: 1; }
.legal-close:hover { color: #fff; }
@media (max-width: 860px) {
  .legal { inset: 3.8rem 0 var(--foot-h, 0px) 0; padding: .6rem; }
  .legal-card { grid-template-columns: 1fr; }
  .legal-card > .label, .legal-card > h2, .legal-card > .updated, .legal-card > ul, .legal-card > .legal-other { grid-area: auto; }
  .legal-card > ul { margin-top: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html[data-legal] body::after, .legal-card { animation: none !important; } }

@media (max-width: 560px) {
  .brand .word { font-size: clamp(1.665rem, 6.3vw, 2.07rem); }
  .brand .lig { width: 1.098em; height: auto; aspect-ratio: 760 / 410; vertical-align: middle; }
}
