/* ==========================================================================
   SOLARIS — estilos
   Sistema visual replicado de phantom.hackclub.com:
   fondo #0a0a0c, tinta crema #e9e6e1, títulos Instrument Serif itálica,
   texto en Geist Pixel Square, controles en Geist Sans, texturas Bayer.
   ========================================================================== */

/* ---------- fuentes ---------- */
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/InstrumentSerif-Italic-latin-ext.woff2) format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/InstrumentSerif-Italic-latin.woff2) format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url(fonts/GeistMono-Variable.woff2) format("woff2"); }
@font-face { font-family: "Geist Sans"; font-weight: 100 900; font-display: swap; src: url(fonts/Geist-Variable.woff2) format("woff2"); }
@font-face { font-family: "Geist Pixel Square"; font-weight: 400; font-display: swap; src: url(fonts/GeistPixel-Square.woff2) format("woff2"); }

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --font-instrument: "Instrument Serif";
  --font-geist-mono: "Geist Mono";
  --font-geist-sans: "Geist Sans";
  --font-pixel: "Geist Pixel Square";

  --bg: #0a0a0c;
  --fg: #e9e6e1;
  --surface: #2c2c31;
  --line: #4a4a52;
  --ink: #e9e6e1;
  --ink-dim: #a49c94;
  --ink-mid: #beb9b2;
  --ink-soft: #cfcac2;
  --on-light: #17161a;
  --panel: #45454c;
  --panel-lift: #6a6a72;
  --panel-raise: #8c8c94;
  --panel-line: #86868e;
  --control-radius: 10px;

  --tone-good-ink: #cdf0d5; --tone-good-fill: #16301e; --tone-good-line: #3f9d57;
  --tone-bad-ink: #f3ccd0;  --tone-bad-fill: #3a1519;  --tone-bad-line: #c2414c;
  --tone-open-ink: #f5e9b8; --tone-open-fill: #33290f; --tone-open-line: #c9a227;

  --text-xs: 13px; --text-sm: 17px; --text-md: 19px; --text-lg: 21px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-width: none; scroll-behavior: smooth; }
html::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body {
  background-color: var(--bg); width: 100%; min-height: 100%; color: var(--fg);
  font-family: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
[hidden] { display: none !important; }
::selection { color: #0a0a0c; background-color: #f2efe9; }
:focus-visible { outline-offset: 3px; outline: 2px solid #f2efe9; }
.sr-only { clip-path: inset(50%); white-space: nowrap; border: 0; width: 1px; height: 1px; margin: -1px; padding: 0; position: absolute; overflow: hidden; }

/* ---------- loader ---------- */
#loader { z-index: 200; background-color: #0a0a0c; place-items: center; display: grid; position: fixed; inset: 0; transition: opacity .5s var(--ease-out); }
#loader-word { color: #d7d7de; font-family: ui-monospace, monospace; font-size: clamp(28px, 11vw, 104px); font-weight: 800; }
#loader.is-done { opacity: 0; pointer-events: none; }
:root.is-loading #content { opacity: 0; }
#content { transition: opacity .6s .1s; }

/* ---------- fondo: campo de ruido pixelado + anillo + viñeta ---------- */
.field, .field-ring { width: 100dvw; height: 100dvh; image-rendering: pixelated; display: block; position: fixed; inset: 0; }
.field { z-index: 0; background-color: var(--bg); }
.field-ring { z-index: 2; pointer-events: none; }
.vignette {
  z-index: 3; pointer-events: none; position: fixed; inset: 0; width: 100dvw; height: 100dvh;
  background-image: radial-gradient(circle, #0a0a0c00 45dvh, #0a0a0c1c 70dvh, #0a0a0c5c 95dvh, #0a0a0c9c 120dvh, #0a0a0cb8 145dvh);
}
#content { width: 100%; position: relative; z-index: 4; }

/* ---------- hero ---------- */
.hero { width: 100%; height: 100svh; position: relative; }
.inner-page {
  --title-size: clamp(44px, 8vw, 150px);
  --col-gap: 22px;
  z-index: 1; position: relative; display: flex; flex-direction: column; justify-content: center;
  gap: var(--col-gap); color: #f2efe9; width: 50%; height: 100%; padding: 0 9vw;
  font-family: var(--font-pixel), ui-monospace, monospace;
}
.inner-page h1 {
  font-family: var(--font-instrument), ui-serif, Georgia, serif; font-style: italic;
  font-size: var(--title-size); font-weight: 400; line-height: 1; position: relative;
  text-shadow: 0 0 28px #f2efe933, 0 0 2px #f2efe980;
}
.hero-by { color: var(--ink-soft); margin-top: -20px; margin-bottom: 2px; font-size: 19px; }
.inner-page .lede { max-width: 380px; font-size: var(--text-lg); letter-spacing: .01em; color: var(--ink-soft); line-height: 1.7; }

/* banderín (sustituye el logo de la web original) */
.page-mark {
  width: calc(var(--title-size) * 1.226); height: calc(var(--title-size) * .435);
  margin: 0 0 calc(var(--title-size) * -.26) calc(var(--title-size) * .035);
  transform: translateY(calc(var(--title-size) * -.052)); flex: none; display: block;
}
.page-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* brillo detrás del título (equivalente a .hero-bloom) */
.hero-bloom {
  z-index: -1; pointer-events: none; position: absolute; left: -6%; top: 10%; width: 112%; height: 90%;
  background: radial-gradient(ellipse at center, #f2efe91f 0%, #f2efe90a 40%, transparent 70%); filter: blur(10px);
}

.faq-mark {
  display: inline-grid; place-items: center; vertical-align: 2px; height: 30px; margin-left: 8px; padding: 0 11px;
  color: var(--ink); background-color: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  background-image: var(--weave-bayer), var(--shade-raised);
  font-family: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: .04em; line-height: 1; text-decoration: none; cursor: pointer;
}
.faq-mark:hover, .faq-mark:focus-visible { color: var(--on-light); background-color: var(--ink); background-image: var(--weave-bayer-hard), var(--shade-raised); outline: none; }

/* objeto 3D del hero → prisma cromático tramado en canvas */
.model-wrap { width: 50vw; height: 95svh; position: absolute; bottom: 0; right: 0; cursor: pointer; }
.prism { position: absolute; inset: 0; margin: auto; width: min(80vh, 90%); height: min(80vh, 90%); image-rendering: pixelated; transform: translateY(-40px); display: block; }

/* ---------- controles (inputs y botones) ---------- */
.landing-actions { width: 100%; max-width: 390px; margin-top: 10px; font-family: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif; display: flex; flex-direction: column; gap: 10px; }
.landing-auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.landing-auth .control-input { grid-column: 1 / -1; width: 100%; min-width: 0; }
.landing-auth .control-btn { width: 100%; min-width: 0; }

.control-input, .control-btn, .control-textarea, .control-select {
  font: inherit; font-size: var(--text-sm); border-radius: var(--control-radius);
  border: 1px solid var(--line); padding: 9px 15px; line-height: 1.4286;
}
.control-input, .control-textarea, .control-select {
  min-width: 0; color: var(--ink); background-color: var(--surface);
  background-image: var(--weave-bayer), var(--shade-inset);
  font-family: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif;
}
.control-select { appearance: none; cursor: pointer; padding-right: 34px; background-image: var(--weave-bayer-soft), var(--shade-inset); }
.control-select option { color: var(--ink); background-color: var(--surface); }
.control-textarea { width: 100%; min-height: 96px; resize: vertical; }
.control-input::placeholder, .control-textarea::placeholder { color: var(--ink-dim); }
.control-input:focus, .control-input.has-value, .control-textarea:focus, .control-textarea.has-value, .control-select:focus {
  background-color: var(--panel); border-color: var(--panel-line); background-image: var(--weave-grid); outline: none;
}
.control-input.is-invalid { color: var(--tone-bad-ink); background-color: var(--tone-bad-fill); background-image: var(--weave-alarm), var(--shade-inset); border-color: var(--tone-bad-line); }
.control-input.is-invalid::placeholder { color: #dda2a8; }

.control-btn {
  text-align: center; min-width: 92px; color: var(--on-light); background-color: var(--ink); border-color: var(--ink);
  cursor: pointer; background-image: var(--weave-bayer), var(--shade-raised); font-weight: 500; text-decoration: none;
  font-family: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  transition: background-color .12s, color .12s, border-color .12s;
}
.control-btn:hover { background-color: #fff; background-image: var(--weave-bayer-hard), var(--shade-raised); }
.control-btn:focus-visible { color: var(--ink); background-color: var(--surface); border-color: var(--panel-line); background-image: var(--weave-bayer), var(--shade-inset); outline: none; }
.control-btn.is-quiet { color: var(--ink); border-color: var(--line); background-color: #3a3a40; background-image: var(--weave-bayer), var(--shade-inset); }
.control-btn.is-quiet:hover, .control-btn.is-quiet:focus-visible { color: var(--on-light); background-color: var(--ink); border-color: var(--ink); background-image: var(--weave-bayer-hard), var(--shade-raised); }
.control-btn.is-small { min-width: 0; font-size: var(--text-xs); padding: 6px 11px; }
.control-btn.is-large { font-size: var(--text-md); padding: 13px 22px; }
.control-btn svg { width: 1em; height: 1em; flex: none; }
.control-status { min-height: 1.2em; font-size: var(--text-xs); color: var(--ink-dim); grid-column: 1 / -1; font-family: var(--font-geist-sans), sans-serif; }
.control-status.is-good { color: var(--tone-good-ink); }
.control-status.is-invalid { color: #e08a92; }

/* ---------- bandas (secciones) ---------- */
.band {
  color: var(--ink-soft); font-family: var(--font-pixel), ui-monospace, monospace;
  display: flex; flex-direction: column; gap: 26px; padding: 11vh 9vw 0; position: relative; scroll-margin-top: 6vh;
}
.band.is-right { text-align: right; align-items: flex-end; }
.band.is-right > .panel-wide { text-align: left; }
.band-title { font-family: var(--font-instrument), ui-serif, Georgia, serif; color: #e9e6e1; font-size: clamp(34px, 5.5vw, 68px); font-style: italic; font-weight: 400; line-height: 1; }
.band-say { font-size: var(--text-md); letter-spacing: .01em; color: var(--ink-soft); line-height: 1.5; max-width: 62ch; }
.band-prose { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.band-prose p { font-size: var(--text-md); letter-spacing: .01em; line-height: 1.75; }
.band-prose strong { color: #f2efe9; }
.band-link, .band-link:visited { color: var(--ink); text-underline-offset: 3px; text-decoration: underline dotted; font-size: var(--text-sm); }
.band-link:hover { color: #fff; text-decoration-style: solid; }

/* ---------- panel de pasos / itinerario ---------- */
.steps {
  width: 100%; max-width: 760px; color: var(--ink); background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--control-radius); background-image: var(--weave-grid), var(--shade-inset);
  display: flex; flex-direction: column; list-style: none; overflow: hidden; text-align: left;
}
.step { display: grid; grid-template-columns: 70px 1fr auto; align-items: baseline; gap: 14px; padding: 16px; }
.step + .step { border-top: 1px solid #ffffff08; }
.step:last-child { background-color: var(--panel-lift); background-image: var(--weave-bayer), var(--shade-raised); }
.step-idx { font-size: var(--text-sm); color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.step:last-child .step-idx { color: var(--ink); }
.step-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.step-t { font-size: var(--text-md); letter-spacing: .01em; font-weight: 600; }
.step-d { font-size: var(--text-md); letter-spacing: .01em; color: var(--ink-soft); line-height: 1.7; }
.step:last-child .step-d { color: #e4dfd6; }
.step.is-now { background-color: var(--panel); background-image: var(--weave-bayer-hard), var(--shade-raised); }
.step.is-now .step-idx { color: var(--ink); }
.step-tag {
  font-family: var(--font-geist-mono), ui-monospace, monospace; font-size: var(--text-xs);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--ink-dim); white-space: nowrap;
}
.step:last-child .step-tag { color: var(--ink); border-color: var(--panel-line); }
.step-tag.is-solar { color: var(--tone-open-ink); background: var(--tone-open-fill); border-color: var(--tone-open-line); }

/* ---------- panel de invitación (formulario) ---------- */
.invite {
  width: 100%; max-width: 760px; text-align: left; color: var(--ink);
  background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--control-radius);
  background-image: var(--weave-grid), var(--shade-inset); overflow: hidden;
}
.invite-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px; font-family: var(--font-geist-sans), sans-serif; }
.invite-field { display: flex; flex-direction: column; gap: 6px; }
.invite-field.is-full { grid-column: 1 / -1; }
.invite-label { font-family: var(--font-pixel), monospace; font-size: var(--text-xs); color: var(--ink-dim); letter-spacing: .02em; }
.invite-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px;
  background-color: var(--panel-lift); background-image: var(--weave-bayer), var(--shade-raised);
}
.invite-foot p { font-family: var(--font-pixel), monospace; font-size: var(--text-xs); color: #e4dfd6; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  text-align: center; cursor: pointer; padding: 9px 10px; font-size: var(--text-sm); border-radius: var(--control-radius);
  border: 1px solid var(--line); background-color: #3a3a40; background-image: var(--weave-bayer), var(--shade-inset); color: var(--ink);
}
.seg input:checked + label { color: var(--on-light); background-color: var(--ink); border-color: var(--ink); background-image: var(--weave-bayer-hard), var(--shade-raised); }
.seg input:focus-visible + label { outline: 2px solid #f2efe9; outline-offset: 2px; }

/* boleto de invitación generado */
.ticket {
  display: none; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 22px 20px;
  border-top: 1px dashed var(--panel-line); background-image: var(--weave-grid-wide);
}
.ticket.is-shown { display: grid; animation: card-in .5s var(--ease-out) backwards; }
.ticket-name { font-family: var(--font-instrument), serif; font-style: italic; font-size: clamp(34px, 5vw, 56px); line-height: 1; color: #f2efe9; }
.ticket-meta { font-family: var(--font-pixel), monospace; font-size: var(--text-sm); color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }
.ticket-code { font-family: var(--font-geist-mono), monospace; font-size: var(--text-xs); color: var(--ink-dim); text-align: right; }
.ticket-code b { display: block; font-size: 22px; color: var(--ink); letter-spacing: .12em; margin-top: 4px; }

/* ---------- cifra gigante (equivalente a "50 hours") ---------- */
.band-figure { flex-flow: row wrap; align-items: center; gap: 24px 5vw; }
.figure-big {
  font-family: var(--font-instrument), ui-serif, Georgia, serif; font-style: italic; font-weight: 400; line-height: .8;
  font-size: clamp(120px, 20vw, 280px); color: #0000; -webkit-user-select: none; user-select: none; flex: none;
  background-image: linear-gradient(#e6e2da, #6a6a72); -webkit-background-clip: text; background-clip: text;
}
.figure-say { display: flex; flex-direction: column; flex: 340px; gap: 18px; max-width: 48ch; }
.figure-say p { font-size: var(--text-md); letter-spacing: .01em; line-height: 1.75; }

/* ---------- tarjetas ---------- */
.cards { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 10px; list-style: none; text-align: left; }
.card {
  color: var(--ink); background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--control-radius);
  background-image: var(--weave-grid), var(--shade-inset); display: flex; flex-direction: column; gap: 8px; padding: 16px;
  transition: border-color .12s;
}
.card:hover { border-color: var(--panel-line); }
.card h3 { letter-spacing: .01em; font-size: 22px; font-weight: 600; line-height: 1.2; }
.card p { font-size: var(--text-md); letter-spacing: .01em; color: var(--ink-soft); line-height: 1.65; }
.card p.card-by { color: var(--ink-dim); font-size: 14px; line-height: 1.4; margin-top: auto; }
.card-thumb {
  aspect-ratio: 16 / 9; margin: -16px -16px 4px; border-radius: var(--control-radius) var(--control-radius) 0 0;
  border-bottom: 1px solid var(--line); background-color: var(--panel-lift); overflow: hidden; display: block; position: relative;
}
.card-thumb canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.card-aside { font-size: var(--text-xs); color: var(--ink); font-family: var(--font-geist-mono), ui-monospace, monospace; white-space: nowrap; }
.card.is-listed { animation: card-in .44s var(--ease-out) backwards; animation-delay: calc(min(var(--i, 0), 12) * 30ms + 60ms); }
@keyframes card-in { 0% { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .card.is-listed, .ticket.is-shown { animation: none; } }

/* comparación lado a lado (energía normal vs solar) */
.versus { width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.versus .card.is-bad { background-color: var(--tone-bad-fill); border-color: #6b2a31; background-image: var(--weave-alarm), var(--shade-inset); }
.versus .card.is-good { background-color: var(--tone-good-fill); border-color: #2d6b3e; background-image: var(--weave-bayer), var(--shade-raised); }
.versus ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.versus li { font-size: var(--text-md); line-height: 1.55; color: var(--ink-soft); display: grid; grid-template-columns: 22px 1fr; }
.versus .card.is-bad li::before { content: "×"; color: #e08a92; }
.versus .card.is-good li::before { content: "+"; color: #8fd6a2; }
.stat-row { width: 100%; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: left; }
.stat { padding: 18px 16px; }
.stat b { font-family: var(--font-instrument), serif; font-style: italic; font-weight: 400; font-size: clamp(44px, 5vw, 64px); line-height: .9; color: #f2efe9; }
.stat span { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.5; }
.stat .stat-k { font-family: var(--font-geist-mono), ui-monospace, monospace; font-size: var(--text-xs); color: var(--ink-dim); letter-spacing: .02em; }
.stat-row.is-four { max-width: 1100px; grid-template-columns: repeat(4, 1fr); }
.stat.is-good { background-color: var(--tone-good-fill); border-color: #2d6b3e; background-image: var(--weave-bayer), var(--shade-raised); }
.stat.is-good .stat-k { color: var(--tone-good-ink); }
@media (width <= 1100px) and (width > 700px) { .stat-row.is-four { grid-template-columns: repeat(2, 1fr); } }

/* ---------- carrusel inclinado (equivalente al de premios) ---------- */
.reel-stage {
  --tilt-a: 2.5deg; --tilt-b: -2.5deg; --reel-card: 240px; --reel-gap: 12px;
  width: 100vw; margin-inline: calc(50% - 50vw); padding-block: 2.2vw; text-align: left;
  display: flex; flex-direction: column; align-items: center; gap: calc(4.4vw - 36px); overflow-x: clip;
}
.reel { width: 130vw; rotate: var(--tilt-a); flex: none; cursor: grab; user-select: none; }
.reel.is-second { rotate: var(--tilt-b); }
.reel-run { width: max-content; display: flex; animation: reel-drift var(--secs, 60s) steps(var(--steps, 600)) infinite; will-change: transform; }
.reel:not(.is-second) .reel-run { animation-direction: reverse; }
.reel:hover .reel-run { animation-play-state: paused; }
@keyframes reel-drift { to { transform: translate(-50%); } }
@media (prefers-reduced-motion: reduce) { .reel-run { animation: none; } }
.reel-pass { list-style: none; display: flex; }
.reel-slot { width: var(--reel-card); margin-right: var(--reel-gap); flex: none; display: grid; }
.reel-slot .card { gap: 6px; }
.reel-slot .card h3 { font-size: 19px; }
.reel-slot .card p { font-size: 15px; line-height: 1.5; }
.reel-slot .card-thumb { aspect-ratio: 16 / 8; }

/* ---------- compartir ---------- */
.share { width: 100%; max-width: 760px; text-align: left; display: flex; flex-direction: column; gap: 10px; font-family: var(--font-geist-sans), sans-serif; }
.share-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.share-row .control-input { font-family: var(--font-geist-mono), monospace; font-size: 15px; }
.share-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.qr-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.qr-card canvas { width: 132px; height: 132px; image-rendering: pixelated; border-radius: 6px; background: var(--ink); display: block; }

/* ---------- FAQ ---------- */
.band.band-faq { text-align: center; align-items: center; }
.band.band-faq .band-title, .band.band-faq .faq-list { width: 100%; max-width: 780px; text-align: left; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-q {
  appearance: none; text-align: left; width: 100%; color: var(--ink); border-radius: var(--control-radius);
  font-family: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif; font-size: var(--text-md); cursor: pointer;
  background-color: #0000; border: 1px solid #0000; display: grid; grid-template-columns: 30px 1fr 18px;
  align-items: baseline; gap: 12px; padding: 12px 14px; line-height: 1.4286;
}
.faq-q:hover, .faq-q:focus-visible, .faq-q[aria-expanded="true"] {
  color: #f7f4ee; background-color: var(--panel); border-color: var(--line);
  background-image: var(--weave-bayer-hard), var(--shade-raised); outline: none;
}
.faq-q-idx { color: var(--ink-dim); font-variant-numeric: tabular-nums; font-size: var(--text-xs); }
.faq-q-label { min-width: 0; font-weight: 600; }
.faq-q-sign { color: var(--ink-dim); text-align: right; font-size: var(--text-md); line-height: 1; transition: transform .2s var(--ease-out); }
.faq-q[aria-expanded="true"] .faq-q-sign { color: var(--ink); transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.faq-a.is-open { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a-inner { padding: 4px 16px 14px 56px; }
.faq-prose { max-width: 58ch; font-size: var(--text-md); letter-spacing: .01em; color: #dcd6cc; line-height: 1.75; font-family: var(--font-pixel), monospace; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  font-family: var(--font-geist-sans), sans-serif; font-size: var(--text-sm); padding: 10px 16px; border-radius: var(--control-radius);
  color: var(--on-light); background-color: var(--ink); background-image: var(--weave-bayer-hard), var(--shade-raised);
  transition: opacity .2s, transform .3s var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- pie de página ---------- */
.page-foot {
  color: var(--ink-soft); font-family: var(--font-pixel), ui-monospace, monospace; display: flex; flex-direction: column;
  justify-content: flex-end; gap: 40px; padding: 16vh 0 0; position: relative; overflow: hidden;
}
.page-foot a { color: #fff; text-underline-offset: 5px; font-weight: 700; text-decoration: underline dotted; }
.page-foot a:hover, .page-foot a:focus-visible { outline: none; text-decoration-style: solid; }
.foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 44px 6vw; padding: 0 9vw; }
.foot-about { display: flex; flex-direction: column; flex: 420px; gap: 18px; max-width: 58ch; }
.foot-about h2 { font-size: var(--text-lg); font-weight: 400; line-height: 1.2; }
.foot-about p { font-size: var(--text-md); letter-spacing: .01em; line-height: 1.75; }
.foot-side { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 32px 4vw; }
.foot-col { display: flex; flex-direction: column; gap: 12px; min-width: 160px; }
.foot-col h3 { font-size: var(--text-sm); color: var(--ink-soft); font-weight: 400; }
.foot-col ul { font-size: var(--text-sm); display: flex; flex-direction: column; gap: 10px; list-style: none; }
.page-credit { font-size: var(--text-sm); color: var(--ink-soft); }
.foot-mark {
  font-family: var(--font-instrument), ui-serif, Georgia, serif; font-style: italic; font-weight: 400; text-align: center;
  font-size: 25vw; line-height: .78; margin-top: 5vh; user-select: none; color: #0000;
  background-image: linear-gradient(#e6e2da, #6a6a72); -webkit-background-clip: text; background-clip: text;
}

/* ---------- aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .56s var(--ease-out), transform .56s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* pista "desliza" bajo el carrusel (solo móvil) */
.reel-hint { display: none; align-items: center; gap: 8px; font-size: var(--text-xs); color: var(--ink-dim); padding: 0 var(--gutter); align-self: flex-start; }
.reel-hint i { display: inline-block; width: 28px; height: 1px; background: currentColor; }

/* ---------- barra fija inferior (solo móvil) ---------- */
.mobile-bar { display: none; }

/* ---------- responsive ---------- */
@media (width <= 900px) {
  .hero { display: flex; flex-direction: column; height: auto; min-height: 100svh; }
  .inner-page { --title-size: clamp(44px, 19.5vw, 150px); --col-gap: 12px; flex: none; justify-content: flex-start; width: 100%; height: auto; padding: clamp(56px, 24svh - 120px, 96px) 11vw 0; }
  .model-wrap { pointer-events: none; flex: 1 1 0; width: 100%; height: auto; min-height: 220px; margin-top: 12px; position: relative; }
  .prism { width: min(46vh, 80%); height: min(46vh, 80%); transform: none; }
  .versus { grid-template-columns: 1fr; }
  .share-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== móvil (diseño principal para teléfonos) ===== */
@media (width <= 700px) {
  :root { --text-sm: 16px; --text-md: 17px; --text-lg: 19px; --gutter: 22px; }
  html { scroll-padding-top: 12px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* hero: todo cabe en la primera pantalla, el prisma ocupa el espacio que sobra */
  .inner-page { --title-size: clamp(56px, 21vw, 110px); --col-gap: 14px; padding: calc(40px + env(safe-area-inset-top)) var(--gutter) 0; }
  .page-mark { margin-bottom: calc(var(--title-size) * -.22); }
  .hero-by { margin-top: -12px; font-size: 16px; }
  .inner-page .lede { max-width: none; font-size: 18px; line-height: 1.6; }
  .faq-mark { height: 32px; padding: 0 13px; }
  .landing-actions { max-width: none; margin-top: 6px; }
  .model-wrap { min-height: 200px; margin-top: 0; }
  .prism { width: min(46svh, 94vw); height: min(46svh, 94vw); }

  /* controles con objetivos táctiles de 48px y texto ≥16px (evita el zoom de iOS) */
  .control-input, .control-btn, .control-select, .seg label { min-height: 48px; font-size: 16px; }
  .control-btn.is-small { min-height: 40px; }
  .control-status { font-size: 14px; }

  /* bandas: margen lateral fijo y menos aire vertical */
  .band { gap: 18px; padding: 72px var(--gutter) 0; }
  .band.is-right { text-align: left; align-items: stretch; }
  .band-title { font-size: clamp(40px, 12vw, 56px); }
  .band-say { font-size: 17px; }
  .band-prose p { line-height: 1.7; }

  /* invitación */
  .invite-form { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .invite-label { font-size: 14px; }
  .invite-foot { flex-direction: column; align-items: stretch; padding: 14px 16px 16px; }
  .invite-foot .control-btn { width: 100%; }
  .ticket { grid-template-columns: 1fr; padding: 20px 16px; }
  .ticket-code { text-align: left; }

  /* itinerario: hora arriba, actividad y etiqueta debajo, en una línea de tiempo */
  .step { grid-template-columns: 1fr auto; grid-template-areas: "idx tag" "body body"; gap: 6px 10px; padding: 14px 16px; }
  .step-idx { grid-area: idx; font-size: 15px; color: var(--ink); }
  .step-tag { grid-area: tag; justify-self: end; }
  .step-body { grid-area: body; }
  .step-t { font-size: 18px; }
  .step-d { font-size: 16px; line-height: 1.6; }
  .step:last-child .step-tag { color: var(--ink); border-color: var(--panel-line); }

  /* cifra gigante */
  .band-figure { flex-direction: column; align-items: flex-start; gap: 6px; }
  .figure-big { font-size: clamp(130px, 44vw, 220px); }
  .figure-say { flex: none; }

  /* estadísticas: carrusel horizontal con snap en vez de apilar 3 bloques */
  .stat-row {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .stat-row::-webkit-scrollbar { display: none; }
  .stat { flex: 0 0 78%; scroll-snap-align: start; }
  .stat b { font-size: 48px; }
  .versus li { font-size: 16px; }
  .card h3 { font-size: 20px; }

  /* carrusel solar: una sola fila que se desliza con el dedo */
  .reel-stage { --reel-card: 74vw; padding-block: 4px 8px; gap: 0; }
  .reel.is-second { display: none; }
  .reel {
    width: 100vw; rotate: 0deg; cursor: auto; user-select: auto;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    padding: 6px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
  }
  .reel::-webkit-scrollbar { display: none; }
  .reel-run { animation: none; width: max-content; }
  .reel-pass[aria-hidden="true"] { display: none; }
  .reel-slot { scroll-snap-align: start; }
  .reel-slot .card p { font-size: 15px; }
  .reel-hint { display: flex; margin-top: -6px; }

  /* compartir: el botón nativo manda en móvil */
  .share-row { grid-template-columns: 1fr auto; }
  .share-row .control-input { font-size: 14px; text-overflow: ellipsis; }
  .share-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .share-btns .control-btn { padding-inline: 8px; }
  .share-btns #share-native { grid-column: 1 / -1; order: -1; color: var(--on-light); background-color: var(--ink); border-color: var(--ink); background-image: var(--weave-bayer), var(--shade-raised); }
  .qr-card { grid-template-columns: auto 1fr; gap: 14px; }
  .qr-card canvas { width: 96px; height: 96px; }
  .qr-card p { font-size: 15px; }

  /* faq */
  .faq-q { grid-template-columns: 24px 1fr 16px; gap: 10px; padding: 14px 10px; font-size: 17px; min-height: 52px; }
  .faq-a-inner { padding: 2px 10px 16px 44px; }
  .faq-prose { font-size: 16px; }

  /* pie */
  .page-foot { padding-top: 96px; gap: 32px; }
  .foot-cols { gap: 32px; padding: 0 var(--gutter); }
  .foot-about { flex: 1 1 100%; min-width: 0; max-width: none; }
  .foot-about p { font-size: 16px; }
  .foot-nav { gap: 24px; }
  .foot-col { min-width: 0; flex: 1; }
  .foot-col ul { gap: 14px; }
  .page-credit { font-size: var(--text-xs); }
  .foot-mark { font-size: 23vw; margin-top: 4vh; }

  /* barra fija con las dos acciones principales */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(#0a0a0c00, #0a0a0ce6 30%); backdrop-filter: blur(2px);
    transform: translateY(110%); transition: transform .35s var(--ease-out);
  }
  .mobile-bar.is-shown { transform: none; }
  .mobile-bar .control-btn { width: 100%; min-width: 0; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

  /* sin hover en pantallas táctiles: el contenido aparece antes */
  .reveal { transform: translateY(6px); }
}


/* teléfonos muy pequeños (iPhone SE, etc.) */
@media (width <= 360px) {
  :root { --gutter: 18px; }
  .stat { flex-basis: 82%; }
}
/* teléfonos bajitos: el prisma se encoge para que el formulario quede visible */
@media (width <= 700px) and (height <= 680px) {
  .inner-page { padding-top: 28px; --title-size: 17vw; }
  .inner-page .lede { font-size: 16px; }
  .prism { width: min(30svh, 60vw); height: min(30svh, 60vw); }
}
