/* Voltia: colores de constants/theme.ts. Fuente del sistema para no gastar datos. */
:root {
  --bg: #EFEFEA;
  --card: #FFFFFF;
  --ink: #111111;
  --soft: #4E4E4A; /* texto secundario: #8A8A85 de la app no llega a 4.5:1 sobre el fondo */
  --accent: #FFA91F;
  --line: #DADAD4;
  --radius: 24px;
  --shadow: 0 6px 16px rgb(0 0 0 / .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg) linear-gradient(180deg, rgb(255 122 26 / .16), rgb(255 169 31 / 0) 520px) no-repeat;
  color: var(--ink);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.03em; }
h1 { font-size: clamp(2.25rem, 8vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.5rem); font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }

a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

svg { display: block; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
main > .wrap, main > section { margin-top: 64px; }
main > .hero { margin-top: 8px; }

.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; z-index: 1; }
.skip:focus { top: 12px; }

/* Cabecera */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; }
.mark { width: 36px; height: 36px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  background: var(--accent); color: var(--ink);
  border-radius: 999px; font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  box-shadow: 0 6px 18px rgb(255 122 26 / .3);
  transition: transform .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; box-shadow: none; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: none; margin-top: 20px; }
.btn-ink:focus-visible { outline-color: var(--accent); }

/* Hero */
.hero { display: grid; gap: 32px; align-items: center; }
.eyebrow { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin-bottom: 8px; }
.lead { margin-top: 16px; font-size: 1.125rem; color: var(--soft); max-width: 34em; }
.cta { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.meta { font-size: .875rem; color: var(--soft); }
.version { max-width: 100%; }
.version code { font-size: .75rem; word-break: break-all; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

.live { margin: 0; padding: 20px 16px 16px; }
.ring { width: 100%; max-width: 300px; height: auto; margin: 0 auto; font-family: inherit; }
.wave { animation: wave 4.2s linear infinite; }
.wave-back { animation-duration: 6s; animation-direction: reverse; }
@keyframes wave { to { transform: translateX(-63px); } }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 0; }
.stats div { background: var(--bg); border-radius: 16px; padding: 12px 14px; }
.stats dt { font-size: .8125rem; color: var(--soft); }
.stats dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }

/* Rejillas */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.grid .card p, .list p { margin-top: 8px; color: var(--soft); }
.ico { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 16px; background: var(--ink); color: var(--accent); margin-bottom: 18px; }
.ico svg, .req svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: 2.5rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: #C76A00; margin-bottom: 14px; }

.split { display: grid; gap: 64px; }
.list { list-style: none; margin: 0; display: grid; gap: 20px; }
.req li { display: flex; align-items: center; gap: 12px; }
.req svg { flex: none; color: #C76A00; }

/* FAQ */
.faq { padding-top: 8px; padding-bottom: 8px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 14px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; color: var(--soft); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; color: var(--soft); }

.support { background: var(--accent); box-shadow: none; }
.support .eyebrow, .support p { color: var(--ink); }
.support h2 { margin-bottom: 12px; }
.support p { max-width: 36em; }

.foot { margin-top: 48px; padding-bottom: 40px; text-align: center; font-size: .875rem; color: var(--soft); display: grid; gap: 6px; }
.foot a { text-underline-offset: 3px; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 16px; }
.lost .mark { width: 72px; height: 72px; }
.lost .btn { margin-top: 8px; }

@media (min-width: 640px) {
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .card { padding: 28px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 1fr; gap: 48px; padding-top: 24px; }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.3fr 1fr; gap: 24px; }
  main > .wrap, main > section { margin-top: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
