/* Touched Block · sitio público (touchedblock.app). Mismos colores que el juego (apps/client/src/theme.ts). */

@font-face {
  font-family: 'Roboto Variable';
  src: url('/assets/fonts/roboto-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto Variable';
  src: url('/assets/fonts/roboto-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

:root {
  color-scheme: dark;
  --bg: #12121a;
  --bg-2: #161621;
  --panel: #1c1c28;
  --panel-2: #22222f;
  --border: #2a2a3d;
  --row: #26263a;
  --bar: #232333;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.56);
  --accent: #77ccff;
  --accent-soft: rgba(119, 204, 255, 0.13);
  --good: #5fe08a;
  --bad: #ff6369;
  --gold: #ffd166;
  --trap: #ff2a2a;
  --blue: #0091ff;
  --blue-2: #0074d6;
  --font: 'Roboto Variable', Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
  --wrap: 1120px;
  --gutter: 16px;
  --header-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: #a6ddff;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible {
  border-radius: 999px;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
code {
  font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 5px;
}
.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;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #0b0b12;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 10px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ------------------------------------------------------------------ cabecera */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 18, 26, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 42, 61, 0.7);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover {
  color: var(--text);
}
.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.nav {
  display: none;
  margin-left: auto;
  gap: 4px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.site-header .btn {
  margin-left: auto;
}
@media (min-width: 860px) {
  .nav {
    display: flex;
  }
  .site-header .btn {
    margin-left: 8px;
  }
}

/* ------------------------------------------------------------------ botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  font: 700 16px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2aa6ff 0%, var(--blue) 55%, var(--blue-2) 100%);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
}
.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}
.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 15px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.btn-lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 18px;
}
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* "Próximamente" en las tiendas: no son enlaces (todavía no hay app publicada). */
.stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 400px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 12px 8px 10px;
  border-radius: 14px;
  min-width: 0;
  background: #0d0d14;
  border: 1px solid #34344b;
  color: var(--text);
  cursor: default;
  user-select: none;
}
.store svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--text);
}
.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--gold);
}
.store b {
  font-size: 17px;
  font-weight: 700;
}

/* ------------------------------------------------------------------ bloques (iguales a los del juego) */

.blk {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
  color: #fff;
  font-weight: 800;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}
.blk .n {
  display: block;
  line-height: 1.15;
  pointer-events: none;
}
.blk.red .n {
  color: var(--trap);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.blk .life {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.85);
  transform-origin: 0 50%;
  pointer-events: none;
}
/* bloques de muestra (estáticos, dentro del texto) */
.blk.static {
  position: relative;
  flex: none;
}

/* ------------------------------------------------------------------ portada */

.hero {
  position: relative;
  padding: 28px 0 40px;
  overflow: hidden;
}
.hero::before {
  /* resplandor de fondo, como la imagen para compartir */
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background: radial-gradient(closest-side, rgba(0, 145, 255, 0.16), transparent 70%) 80% 30% / 70% 80% no-repeat,
    radial-gradient(closest-side, rgba(110, 86, 207, 0.14), transparent 70%) 10% 60% / 60% 70% no-repeat;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  gap: 28px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  justify-self: start;
}
.hero h1 {
  font-size: clamp(48px, 13vw, 92px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-top: 14px;
}
.hero h1 .b {
  color: var(--accent);
}
.lead {
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  margin-top: 16px;
  max-width: 34em;
}
.lead strong {
  color: var(--text);
  font-weight: 700;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}
.hero-cta .btn-lg {
  align-self: flex-start;
}
.hero-note {
  color: var(--soft);
  font-size: 14px;
}

/* Campo de prueba: aquí aparecen la mayoría de los bloques que se pueden tocar. */
.field {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 28px 28px, var(--bg-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.field-hud {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(28, 28, 40, 0.9);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.chip b {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.chip.streak b {
  color: var(--gold);
}
.pause {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(28, 28, 40, 0.9);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.pause:hover {
  background: #2a2a3d;
}
.pause svg {
  width: 16px;
  height: 16px;
}
.pause .i-play {
  display: none;
}
.pause[aria-pressed='true'] .i-play {
  display: block;
}
.pause[aria-pressed='true'] .i-pause {
  display: none;
}
.field-hint {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--soft);
}
.field-hint .red {
  color: var(--trap);
  font-weight: 800;
}
.field-toast {
  position: absolute;
  left: 50%;
  top: 58px;
  transform: translate(-50%, 0);
  max-width: calc(100% - 24px);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(28, 28, 40, 0.92);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.field-toast.on {
  opacity: 1;
  transform: translate(-50%, 4px);
}
.field-toast.good {
  color: var(--good);
}
.field-toast.bad {
  color: var(--bad);
}
.field-toast.gold {
  color: var(--gold);
}
.field.paused::after {
  content: 'En pausa';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--soft);
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero {
    padding: 56px 0 72px;
  }
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
  }
  .field {
    min-height: 480px;
  }
}

/* ------------------------------------------------------------------ capa de bloques interactivos */

/* Cubre todo el documento (los bloques se desplazan con la página). No recibe toques: solo los
   bloques. Los bloques aparecen únicamente donde no hay texto ni botones. */
#blocks {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  overflow: visible;
  z-index: 10;
  pointer-events: none;
}
#blocks .blk {
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  will-change: transform, opacity;
}
.spawn {
  animation: blk-spawn 250ms cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes blk-spawn {
  from {
    transform: scale(0) rotate(-20deg);
  }
  to {
    transform: scale(1) rotate(0);
  }
}
.hit {
  animation: blk-hit 120ms linear both;
}
@keyframes blk-hit {
  0% {
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
.gone {
  background: #555555 !important;
  pointer-events: none !important;
  animation: blk-gone 300ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}
.gone .n {
  color: #fff !important;
}
@keyframes blk-gone {
  to {
    transform: scale(0.2) rotate(25deg);
    opacity: 0;
  }
}
.shake {
  animation: blk-shake 250ms linear both;
}
@keyframes blk-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-7px);
  }
  40% {
    transform: translateX(7px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}
.part {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  pointer-events: none;
  will-change: transform, opacity;
}
.float {
  position: absolute;
  width: 120px;
  margin-left: -60px;
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  pointer-events: none;
  color: var(--good);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  animation: rise 800ms cubic-bezier(0, 0, 0.58, 1) both;
}
.float.neg {
  color: var(--bad);
}
@keyframes rise {
  to {
    transform: translateY(-40px);
    opacity: 0;
  }
}
.flash {
  position: absolute;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.65);
  animation: flash 420ms ease-out both;
}
@keyframes flash {
  from {
    box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.65);
    background: rgba(229, 72, 77, 0.28);
  }
  to {
    box-shadow: 0 0 0 36px rgba(229, 72, 77, 0);
    background: rgba(229, 72, 77, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spawn {
    animation: fade-in 200ms ease both;
  }
  .hit {
    animation: none;
  }
  .gone {
    animation: fade-out 250ms ease both;
  }
  .shake {
    animation: none;
  }
  .float {
    animation: fade-out 700ms ease both;
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }
  @keyframes fade-out {
    to {
      opacity: 0;
    }
  }
}

/* ------------------------------------------------------------------ secciones */

section.block {
  padding: 56px 0;
}
@media (min-width: 900px) {
  section.block {
    padding: 88px 0;
  }
}
.kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 900;
  margin-top: 8px;
}
.section-lead {
  color: var(--muted);
  font-size: 18px;
  margin-top: 12px;
  max-width: 40em;
}
.head {
  margin-bottom: 28px;
  max-width: 760px;
}

/* Pasos */
.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.step-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: -6px;
}
.step h3 {
  font-size: 20px;
  font-weight: 800;
}
.step p {
  color: var(--muted);
  font-size: 15px;
}
.demo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 10px 2px 6px;
}
.demo .eq {
  font-weight: 800;
  font-size: 18px;
  color: var(--muted);
}
.demo .taps {
  display: flex;
  gap: 5px;
}
.demo .taps i {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--accent);
  opacity: 0.85;
}
.timebar {
  position: relative;
  flex: 1;
  height: 10px;
  border-radius: 99px;
  background: var(--bar);
  overflow: hidden;
}
.timebar i {
  position: absolute;
  inset: 0 38% 0 0;
  background: var(--accent);
  border-radius: 99px;
}
.demo-time {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}
.demo-time .timebar {
  flex: none;
}
.demo-time .row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 15px;
}
.demo-time .plus {
  color: var(--good);
}
.demo-time .minus {
  color: var(--bad);
}
.hearts {
  color: #ff4d6d;
  letter-spacing: 2px;
  font-size: 16px;
}
.hearts .off {
  color: #3a3a4d;
}

/* Etapas */
.stages {
  margin-top: 36px;
  padding: 20px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.stages h3 {
  font-size: 20px;
  font-weight: 800;
}
.stages > p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 15px;
}
.track {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 760px) {
  .track {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}
.track li {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
@media (min-width: 760px) {
  .track li {
    flex-direction: column;
    padding-right: 16px;
  }
  .track li::after {
    content: '';
    position: absolute;
    left: 56px;
    right: 8px;
    top: 21px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--border), rgba(42, 42, 61, 0.3));
  }
  .track li:last-child::after {
    display: none;
  }
}
.badge {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 17px;
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.track b {
  display: block;
  font-size: 16px;
}
.track div span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.track div .when {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

/* Características */
.features {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  padding: 20px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 14px;
}
.card p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}
.ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.ico svg {
  width: 24px;
  height: 24px;
}
.tiers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tiers span {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

/* Juego limpio y descarga */
.split {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 145, 255, 0.12), rgba(110, 86, 207, 0.1)), var(--panel);
  border: 1px solid var(--border);
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 40px;
  }
}
.split h2 {
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 900;
}
.split p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 17px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}
.checks li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--good)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%2312121a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}
.split .kicker,
.download .kicker {
  font-size: 13px;
  color: var(--gold);
  margin: 0 0 8px;
  max-width: none;
}
.download {
  text-align: center;
  padding: 36px 20px;
  border-radius: 28px;
  background: radial-gradient(closest-side, rgba(0, 145, 255, 0.18), transparent) 50% 0 / 120% 120% no-repeat, var(--panel);
  border: 1px solid var(--border);
}
.download h2 {
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 900;
}
.download p {
  color: var(--muted);
  font-size: 17px;
  margin: 12px auto 0;
  max-width: 36em;
}
.download .stores {
  margin: 24px auto 0;
  text-align: left;
}
.download .btn {
  margin-top: 22px;
}

/* Preguntas frecuentes */
.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}
details {
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-weight: 700;
  font-size: 17px;
  position: relative;
  border-radius: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
}
details[open] summary::after {
  content: '−';
}
details > div {
  padding: 0 18px 16px;
  color: var(--muted);
}
details > div p + p {
  margin-top: 8px;
}

/* ------------------------------------------------------------------ pie */

.site-footer {
  position: relative;
  padding: 36px 0 max(36px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #0f0f16;
  color: var(--soft);
  font-size: 14px;
}
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
}
.foot > :first-child {
  grid-column: 1 / -1;
}
@media (min-width: 760px) {
  .foot > :first-child {
    grid-column: auto;
  }
  .foot {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.foot h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.foot a {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}
.foot a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.foot a.brand {
  display: flex;
  margin-bottom: 10px;
  padding: 0;
}
.foot p {
  max-width: 30em;
}
/* Créditos: una línea por persona (el " · " solo queda para lectores sin CSS) */
.foot .credits {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.foot .credits > span {
  display: block;
}
.foot .credits > .sep {
  display: none;
}
.foot .credits a {
  display: inline;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
.foot .credits a:hover {
  text-decoration-color: currentColor;
}
.copy {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--row);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}

/* ------------------------------------------------------------------ páginas de texto (legales y soporte) */

.doc {
  max-width: 780px;
  padding-top: 32px;
  padding-bottom: 48px;
}
.doc h1 {
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 900;
}
.doc .updated {
  color: var(--soft);
  font-size: 14px;
  margin-top: 8px;
}
.doc .intro {
  color: var(--muted);
  font-size: 18px;
  margin-top: 16px;
}
.doc .toc {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.doc .toc h2 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 8px;
}
.doc .toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2 220px;
  column-gap: 28px;
}
.doc .toc li {
  margin: 0 0 4px;
  break-inside: avoid;
}
.doc section {
  margin-top: 16px;
  padding: 20px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.doc section h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
}
.doc section h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 18px 0 6px;
}
.doc section p,
.doc section ul,
.doc section ol {
  margin: 0 0 10px;
}
.doc section > :last-child {
  margin-bottom: 0;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 6px;
}
.doc li::marker {
  color: var(--accent);
}
.doc a {
  overflow-wrap: anywhere;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 4px 0 10px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px;
  border-top: 1px solid var(--row);
}
.doc th {
  color: var(--muted);
  font-weight: 700;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 -4px 10px;
  padding: 0 4px;
}
.callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(119, 204, 255, 0.35);
}
.callout p + p {
  margin-top: 6px;
}
.steps-list {
  counter-reset: s;
  list-style: none;
  padding: 0 !important;
}
.steps-list li {
  position: relative;
  padding-left: 44px;
  min-height: 32px;
  margin-bottom: 12px;
}
.steps-list li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.ui {
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 7px;
  border-radius: 7px;
  white-space: nowrap;
}
.danger-ui {
  color: #ffb3b6;
  background: rgba(229, 72, 77, 0.22);
}
.mail {
  font-weight: 700;
  font-size: 1.05em;
}

/* 404 */
.notfound {
  text-align: center;
  padding: 40px 0 24px;
}
.notfound h1 {
  font-size: clamp(64px, 18vw, 120px);
  font-weight: 900;
  line-height: 1;
}
.notfound p {
  color: var(--muted);
  font-size: 18px;
  margin: 12px auto 0;
  max-width: 30em;
}
.notfound .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.notfound .field {
  margin: 28px auto 0;
  max-width: 560px;
  min-height: 300px;
}
.notfound .field-hint {
  font-size: 13px;
  margin: 0;
  max-width: none;
}
.float.msg {
  width: 260px;
  margin-left: -130px;
  font-size: 15px;
  line-height: 1.3;
  animation-duration: 1400ms;
}
.float.msg.neg {
  color: #ff8a8f;
}
