/* Prospex · un producto de masific. Tokens en :root; el panel los cambia (boot.js). */
:root {
  --bg: #0a0d14;
  --surface: #131824;
  --ink: #e9edf3;
  --muted: #8891a1;
  --accent: #5a9bfc;
  --accent-ink: #0a0d14;
  --radius: 4px;
  --deep: color-mix(in srgb, var(--bg) 55%, #000);
  --surface-2: color-mix(in srgb, var(--surface) 70%, var(--ink) 6%);
  --font-fallback: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Libre Franklin', var(--font-fallback);
  --font-text: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: var(--font-display);
  --m: clamp(16px, 2.2vw, 32px);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.2rem + 3.6vw, 5rem);
  --step-giant: clamp(4rem, 9vw, 11rem);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ok: #57c48a;
  --warn: #e7b04a;
  --bad: #ef6b5b;
  color-scheme: dark;
}
:root[data-mode='light'] { color-scheme: light; --deep: color-mix(in srgb, var(--bg) 82%, #000); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-family: var(--font-ui); }
.skip:focus { top: 8px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-ui); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-inv { background: var(--accent-ink); color: var(--accent); }
.btn-inv:hover { background: color-mix(in srgb, var(--accent-ink) 85%, var(--accent)); }
.btn-danger { background: var(--bad); color: #fff; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-family: var(--font-ui); font-size: 15px; }

/* ---------- barra ---------- */
.bar { display: flex; align-items: center; gap: 24px; padding: 18px var(--m); font-family: var(--font-ui); font-size: 15px; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.035em; }
.mark { fill: none; stroke: var(--ink); stroke-width: 5.5; stroke-linecap: round; transition: transform 300ms var(--ease); }
.mark .mark-dot { fill: var(--accent); stroke: none; }
.brand:hover .mark { transform: rotate(-8deg); }
.bar-links { display: flex; gap: 22px; margin-left: auto; }
.bar-links a, .bar-login { text-decoration: none; color: var(--ink); opacity: 0.8; transition: opacity 160ms; }
.bar-links a:hover, .bar-login:hover, .bar-links a[aria-current='true'] { opacity: 1; }
.bar-account { display: flex; align-items: center; gap: 18px; }
.bar-credits { color: var(--muted); font-size: 14px; }
.notice { margin: 0 var(--m) 8px; padding: 12px 16px; background: var(--surface); border-radius: var(--radius); font-family: var(--font-ui); font-size: 15px; }
.notice a { color: var(--accent); }

/* ---------- presentación ---------- */
.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: var(--bg);
  animation: intro-out 520ms var(--ease) 1850ms forwards; cursor: pointer;
}
.intro-on body { overflow: hidden; }
.intro-stage { display: grid; justify-items: center; gap: 18px; animation: intro-lift 520ms var(--ease) 1850ms forwards; }
.intro-mark { width: clamp(88px, 14vw, 132px); height: auto; overflow: visible; }
.intro-stem, .intro-bowl { fill: none; stroke: var(--ink); stroke-width: 5.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-stem { animation: draw 520ms var(--ease) 120ms forwards; }
.intro-bowl { transform-origin: 25.5px 20px; transform: rotate(-90deg); animation: draw 640ms var(--ease) 460ms forwards; }
.intro-dot { fill: var(--accent); transform-origin: 25.5px 20px; transform: scale(0); /* taste-skill-ignore: el punto del logo nace del centro */ animation: pop 420ms cubic-bezier(0.3, 1.6, 0.5, 1) 1020ms forwards; }
.intro-ping { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: 0; transform-origin: 25.5px 20px; animation: ping 900ms var(--ease) 1120ms forwards; }
.intro-word { display: flex; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.04em; line-height: 1; overflow: hidden; padding-bottom: 4px; }
.intro-word span { display: inline-block; transform: translateY(110%); animation: rise-in 560ms var(--ease) forwards; }
.intro-word span:nth-child(1) { animation-delay: 1040ms; }
.intro-word span:nth-child(2) { animation-delay: 1080ms; }
.intro-word span:nth-child(3) { animation-delay: 1120ms; }
.intro-word span:nth-child(4) { animation-delay: 1160ms; }
.intro-word span:nth-child(5) { animation-delay: 1200ms; }
.intro-word span:nth-child(6) { animation-delay: 1240ms; }
.intro-word span:nth-child(7) { animation-delay: 1280ms; }
.intro-credit { font-family: var(--font-ui); font-size: 14px; color: var(--muted); opacity: 0; animation: fade-in 500ms var(--ease) 1380ms forwards; }
.intro.is-done { display: none !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes ping { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(2.3); } }
@keyframes rise-in { to { transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes intro-lift { to { transform: translateY(-24px) scale(0.94); } }

/* ---------- portada: hero (frase partida por un marco) ---------- */
.hero { position: relative; height: 290svh; }
.hero-stage { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; }
.hero-title { font-size: clamp(1.9rem, 3.4vw, 3.7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; text-wrap: nowrap; }
.hero-a, .hero-b { position: absolute; top: 50%; transform: translateY(-50%); max-width: calc(32.5vw - var(--m) - 24px); }
.hero-a { left: var(--m); }
.hero-b { right: var(--m); text-align: right; }
.reel {
  --fw: 35vw; --fh: calc(var(--fw) * 9 / 16); --gap: 24px;
  position: absolute; left: 50%; top: 50%; width: var(--fw); height: calc(var(--fh) + 2 * (var(--gap) + 60px));
  transform: translate(-50%, -50%); overflow: hidden;
}
.reel-track { display: grid; gap: var(--gap); padding-top: calc(60px + var(--gap)); transition: transform 700ms var(--ease); }
.frame { margin: 0; height: var(--fh); background: var(--surface); border-radius: var(--radius); container-type: size; overflow: hidden; transition: opacity 500ms var(--ease); }
.frame:not(.is-current) { opacity: 0.45; }
.hero-foot { position: absolute; left: var(--m); bottom: 32px; width: min(30vw, 440px); display: grid; gap: 20px; }
.hero-lead { font-size: 18px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-stats { font-family: var(--font-ui); font-size: 14px; color: var(--muted); }
.hero-scroll { position: absolute; right: var(--m); bottom: 32px; font-family: var(--font-ui); font-size: 14px; color: var(--muted); }

/* Fragmentos de interfaz: miden en unidades del marco, como una imagen. */
[data-ui] { font-family: var(--font-ui); letter-spacing: -0.005em; }
.frame [class^='ui-'] { font-size: inherit; }
.ui-filter, .ui-card, .ui-csv { height: 100%; padding: 4.2cqw 4.6cqw; display: flex; flex-direction: column; gap: 2.3cqw; font-size: 2.85cqw; line-height: 1.25; }
.ui-title { font-weight: 700; font-size: 3.6cqw; }
.ui-chips { display: flex; flex-wrap: wrap; gap: 1.6cqw; }
.chip { padding: 1cqw 2.4cqw; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.chip.is-on { background: var(--accent); color: var(--accent-ink); }
.ui-row { display: flex; align-items: center; gap: 2.4cqw; }
.ui-label { color: var(--muted); }
.ui-select { padding: 1.2cqw 2.4cqw; background: var(--bg); border-radius: 4px; flex: 1; }
.ui-count { margin-top: auto; display: flex; align-items: baseline; gap: 1.8cqw; }
.ui-count b { font-size: 7.4cqw; letter-spacing: -0.04em; line-height: 1; }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; padding: 1.3cqw 2.8cqw; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ui-btn-ghost { background: var(--surface-2); color: var(--ink); }
.ui-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 3cqw; }
.ui-name { font-weight: 700; font-size: 4.6cqw; letter-spacing: -0.02em; }
.ui-meta { color: var(--muted); }
.ui-dl { margin: 0; display: grid; gap: 1.4cqw; }
.ui-dl div { display: grid; grid-template-columns: 18cqw 1fr; }
.ui-dl dt { color: var(--muted); }
.ui-dl dd { margin: 0; }
.ui-csv-head { display: flex; justify-content: space-between; align-items: center; }
.ui-csv table { width: 100%; border-collapse: collapse; }
.ui-csv th { text-align: left; color: var(--muted); font-weight: 500; padding: 1.4cqw 0; border-bottom: 1px solid var(--surface-2); }
.ui-csv td { padding: 1.4cqw 0; border-bottom: 1px solid var(--surface-2); }
.ui-csv tr.is-hover td { background: var(--surface-2); }
.blur { filter: blur(0.32em); user-select: none; }
.status { display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap; font-family: var(--font-ui); }
.status::before { content: ''; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--muted); }
.s-NO_WEB::before { background: var(--accent); }
.s-BROKEN_WEB::before { background: var(--bad); }
.s-OBSOLETE_WEB::before { background: var(--warn); }
.s-MODERN_WEB::before { background: var(--ok); }

/* ---------- pides / aparece ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; }
.show-in, .show-out { position: relative; min-height: 90svh; padding: 30svh var(--m) 140px; }
.show-in { background: var(--deep); }
.show-out { background: var(--ink); color: var(--bg); display: flex; justify-content: center; }
.ask { max-width: 25em; margin-left: calc(100% / 6 - var(--m)); }
.ask-line { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); line-height: 1.75; }
.ask-field select {
  appearance: none; -webkit-appearance: none; max-width: 100%;
  padding: 2px 30px 4px 10px; margin: 0 2px; border: 0; border-radius: var(--radius);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238891a1' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center / 11px;
  color: var(--accent); font-family: var(--font-text); font-size: inherit; cursor: pointer; transition: background-color 160ms;
}
.ask-field select:hover { background-color: var(--surface-2); }
.ask-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ask-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.show-h { position: absolute; bottom: 32px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; font-size: var(--step-head); }
.show-h-a { left: var(--m); }
.show-h-b { right: var(--m); }
.out { width: min(100%, 500px); align-self: flex-start; display: grid; gap: 18px; font-size: 15px; }
.out-total { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.out-total b { font-size: clamp(3rem, 2rem + 3vw, 5rem); letter-spacing: -0.045em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.out-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.out-bars li { display: grid; grid-template-columns: 9.5em 1fr 3.5em; align-items: center; gap: 12px; }
.out-bars .bar-track { height: 10px; background: color-mix(in srgb, var(--bg) 12%, transparent); border-radius: 99px; overflow: hidden; }
.out-bars .bar-fill { height: 100%; width: 100%; border-radius: 99px; background: var(--bg); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform 600ms var(--ease); }
.out-bars .is-on .bar-fill { background: var(--accent); }
.out-bars .n { text-align: right; font-variant-numeric: tabular-nums; }
.out-note { color: color-mix(in srgb, var(--bg) 68%, var(--ink)); }
.ui-btn-big { padding: 14px 20px; font-size: 16px; text-decoration: none; transition: transform 160ms var(--ease); }
.ui-btn-big:active { transform: scale(0.98); }

/* ---------- cómo funciona ---------- */
.how { padding: 200px var(--m) 160px; margin-left: calc((100vw - 2 * var(--m)) / 4); max-width: calc(560px + var(--m) * 2); }
.how h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); margin-bottom: 56px; }
.step { display: grid; gap: 16px; }
.step + .step { margin-top: 88px; }
.step-say { font-family: var(--font-ui); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.call { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px; background: var(--surface); border-radius: var(--radius); font-family: var(--font-ui); font-size: 15px; }
.call-q { padding: 6px 12px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.call .ui-btn { font-size: 15px; padding: 8px 14px; }
.resp { margin-left: 56px; padding: 20px; background: var(--surface-2); border-radius: var(--radius); font-size: 15px; }
.resp b { font-size: 22px; letter-spacing: -0.02em; }
.ui-list { list-style: none; margin: 0; padding: 0; }
.ui-list li { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 12px; padding: 10px 8px; border-radius: 4px; }
.ui-list li.is-hover { background: var(--surface); }
.ui-list li > span:nth-child(2) { color: var(--muted); }
.step-wide .resp { width: min(calc(100vw - 2 * var(--m) - (100vw - 2 * var(--m)) / 4 - 56px), 760px); }
.ui-scroll { overflow-x: auto; }
.ui-table { border-collapse: collapse; width: 100%; font-size: 14px; white-space: nowrap; }
.ui-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 14px 8px 0; border-bottom: 1px solid var(--surface); }
.ui-table td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--surface); }

/* ---------- precios: tabla grande ---------- */
.price { padding: 80px var(--m) 160px; }
.plans { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: clamp(1.0625rem, 0.9rem + 0.4vw, 1.375rem); }
.plans col:first-child, .plans th:first-child { width: 33.33%; }
.plans thead th { text-align: left; vertical-align: bottom; padding: 28px 24px 28px 0; font-weight: 400; }
.plans thead th.plan { padding-left: 24px; }
.plans h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.plan-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 3.2rem); letter-spacing: -0.035em; line-height: 1; }
.plan-price { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 3.2rem); letter-spacing: -0.035em; line-height: 1.05; margin-top: 6px; }
.plan-price small { font-size: 16px; letter-spacing: 0; color: inherit; opacity: 0.75; }
.plans tbody th { text-align: left; font-weight: 400; padding: 20px 24px 20px 0; color: var(--muted); }
.plans tbody td { padding: 20px 24px; }
.plans tbody tr:nth-child(odd) { background: var(--surface); }
.plans tbody tr:nth-child(odd) th { padding-left: 16px; }
.plans tbody tr:nth-child(even) th { padding-left: 16px; }
.plans .is-pick { background: var(--accent); color: var(--accent-ink); }
.plans tbody tr:nth-child(odd) .is-pick { background: color-mix(in srgb, var(--accent) 90%, var(--accent-ink)); }
.plans-go td, .plans-go th { padding-top: 28px !important; padding-bottom: 28px !important; background: transparent; }
.plans-go .is-pick { background: var(--accent) !important; }
.plans-go .muted { font-size: 15px; }

/* ---------- preguntas ---------- */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; padding: 40px var(--m) 200px; }
.faq-list { grid-column: 1 / 6; }
.faq-h { font-size: 18px; font-family: var(--font-ui); letter-spacing: -0.01em; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.faq ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.faq-q { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 9px 0; background: none; border: 0; text-align: left; font-family: var(--font-ui); font-size: 18px; color: var(--muted); cursor: pointer; transition: color 150ms; }
.faq-q::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-2px); transition: background-color 150ms, transform 150ms; }
.faq-q:hover, .faq-q[aria-expanded='true'] { color: var(--ink); }
.faq-q[aria-expanded='true']::before { background: var(--accent); transform: translateY(-2px) scale(1.25); }
.faq-a-inline { display: none; }
.faq-pane { grid-column: 7 / 13; position: sticky; top: 120px; align-self: start; font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.3; max-width: 30ch; min-height: 10em; transition: opacity 150ms; }
.faq-pane.is-swapping { opacity: 0; }

/* ---------- pie de baldosas ---------- */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 10px; }
.tile { background: var(--surface); border-radius: var(--radius); padding: 22px; min-height: 220px; display: flex; flex-direction: column; font-family: var(--font-ui); font-size: 16px; }
.tile a { text-underline-offset: 3px; }
.t-say { grid-column: 1 / 5; justify-content: space-between; gap: 24px; }
.t-say p:first-child { font-family: var(--font-text); font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
.t-legal { font-size: 13px; color: var(--muted); line-height: 1.5; }
.t-nav { grid-column: 5 / 8; gap: 8px; }
.t-nav a { text-decoration: none; width: fit-content; }
.t-nav a:hover { text-decoration: underline; }
.t-time { grid-column: 8 / 10; }
.t-clock { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.t-small { font-size: 14px; color: var(--muted); }
.t-time .t-small { margin-top: auto; }
.t-mail { grid-column: 10 / 13; justify-content: space-between; }
.t-mail a { font-size: 20px; word-break: break-all; }
.t-word { grid-column: 1 / 9; min-height: 320px; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; overflow: hidden; }
.t-word span { font-family: var(--font-display); font-weight: 700; font-size: var(--step-giant); letter-spacing: -0.05em; line-height: 0.85; }
.t-go { grid-column: 9 / 13; min-height: 320px; background: var(--accent); color: var(--accent-ink); text-decoration: none; justify-content: space-between; transition: background-color 200ms; }
.t-go span { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.03em; }
.t-go svg { align-self: flex-end; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: transform 260ms var(--ease); }
.t-go:hover svg { transform: translate(6px, -6px); }

/* ---------- entrada de secciones ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }
.motion-soft [data-rise] { transform: none !important; }
.motion-none *, .motion-none *::before, .motion-none *::after { animation: none !important; transition: none !important; }
.motion-none [data-rise] { opacity: 1 !important; transform: none !important; }

/* ---------- app: cuenta y buscador ---------- */
.app { padding: 32px var(--m) 160px; min-height: 70svh; font-family: var(--font-ui); font-size: 16px; }
.app h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem); margin-bottom: 12px; }
.app h2 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 14px; }
.app .lead { font-family: var(--font-text); font-size: var(--step-body); max-width: 60ch; color: var(--ink); }
.auth { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; padding-top: 6svh; }
.auth-copy { grid-column: 1 / 6; }
.auth-copy .lead { margin-top: 12px; }
.auth-form { grid-column: 7 / 12; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color 150ms, background-color 150ms;
}
.field input:hover, .field select:hover { background: var(--surface-2); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field .err { color: var(--bad); font-size: 14px; }
.field.has-err input { border-color: var(--bad); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.checkline input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: trampa para bots, no es una línea */
.form-msg { font-size: 15px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); }
.form-msg.is-error { background: color-mix(in srgb, var(--bad) 18%, var(--surface)); }
.form-msg.is-ok { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); }
.alt { font-size: 15px; color: var(--muted); }
.alt a { color: var(--ink); }

.finder { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 16px; display: grid; gap: 22px; padding: 22px; background: var(--surface); border-radius: var(--radius); max-height: calc(100svh - 32px); overflow: auto; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.filters legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--bg); color: var(--ink); font-size: 14px; transition: background-color 140ms, color 140ms; }
.toggle input:checked + span { background: var(--accent); color: var(--accent-ink); }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle:hover span { background: var(--surface-2); }
.toggle input:checked:hover + span { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.filters .field input, .filters .field select { background: var(--bg); }
.balance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.balance b { color: var(--ink); }
.counter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; background: var(--surface); border-radius: var(--radius); }
.counter-n { display: flex; align-items: baseline; gap: 10px; }
.counter-n b { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: tabular-nums; transition: opacity 150ms; }
.counter-n.is-busy b { opacity: 0.45; }
.counter-split { width: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.results { margin-top: 28px; display: grid; gap: 10px; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.results-head p { color: var(--muted); font-size: 15px; }
.results-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.co { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; padding: 20px 22px; background: var(--surface); border-radius: var(--radius); }
.co-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.co-meta { color: var(--muted); font-size: 15px; margin-top: 2px; }
.co-body { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; font-size: 15px; }
.co-body dt { color: var(--muted); font-size: 13px; }
.co-body dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.co-body a { color: var(--ink); text-underline-offset: 3px; }
.co-body a:hover { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 2px 9px; border-radius: 99px; background: var(--bg); font-size: 13px; }
.empty { padding: 48px 24px; text-align: left; background: var(--surface); border-radius: var(--radius); color: var(--muted); }
.empty b { color: var(--ink); display: block; font-size: 20px; margin-bottom: 6px; }

.acct { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 28px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; align-content: start; }
.panel-plan { grid-column: 1 / 7; }
.panel-buy { grid-column: 7 / 13; }
.panel-sec { grid-column: 1 / 7; }
.panel-danger { grid-column: 7 / 13; }
.big-n { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.packs { display: flex; flex-wrap: wrap; gap: 8px; }
.pack { min-width: 84px; }
.pack.is-on { background: var(--accent); color: var(--accent-ink); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.history { width: 100%; border-collapse: collapse; font-size: 15px; }
.history th { text-align: left; color: var(--muted); font-weight: 500; font-size: 14px; padding: 10px 12px 10px 0; }
.history td { padding: 14px 12px 14px 0; border-top: 1px solid var(--surface); vertical-align: top; }
.history a { color: var(--ink); }
.legal { max-width: 70ch; font-family: var(--font-text); }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-family: var(--font-display); font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { margin: 0 0 12px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--radius); font-family: var(--font-ui); font-size: 15px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); /* taste-skill-ignore: aviso flotante */ transition: opacity 200ms, transform 200ms var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- tableta y móvil ---------- */
@media (max-width: 900px) {
  .bar { gap: 14px; flex-wrap: wrap; }
  .bar-links { order: 3; width: 100%; margin-left: 0; gap: 18px; overflow-x: auto; }
  .bar-account { margin-left: auto; }
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 0; padding: 24px var(--m) 56px; display: grid; gap: 20px; overflow: visible; }
  .hero-title { display: contents; }
  .hero-a, .hero-b { position: static; transform: none; max-width: none; font-size: 9vw; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; }
  .hero-b { text-align: right; }
  .reel { --fw: calc(100vw - 2 * var(--m)); --fh: calc(var(--fw) * 3 / 4); --gap: 12px; position: relative; left: auto; top: auto; transform: none; height: calc(var(--fh) + 2 * (var(--gap) + 28px)); }
  .reel-track { padding-top: calc(28px + var(--gap)); }
  .ui-filter, .ui-card, .ui-csv { font-size: 4cqw; padding: 6cqw; gap: 3.6cqw; }
  .ui-title { font-size: 4.8cqw; }
  .ui-name { font-size: 5.6cqw; }
  .ui-dl div { grid-template-columns: 24cqw 1fr; }
  .ui-count b { font-size: 12cqw; }
  .hero-foot { position: static; width: auto; }
  .hero-lead { font-size: 16px; }
  .show { grid-template-columns: 1fr; }
  .show-in, .show-out { min-height: 62svh; padding: 48px 20px 120px; }
  .show-out { padding-top: 110px; padding-bottom: 56px; }
  .ask { margin-left: 0; }
  .ask-line { font-size: 18px; line-height: 1.9; }
  .show-h { font-size: 11vw; }
  .show-h-a { left: 20px; bottom: 24px; }
  .show-h-b { right: 20px; top: 24px; bottom: auto; }
  .how { margin-left: 0; max-width: none; padding: 120px 20px 100px; }
  .resp { margin-left: 0; }
  .step-wide .resp { width: auto; margin-right: calc(-1 * var(--m)); border-radius: var(--radius) 0 0 var(--radius); }
  .price { padding: 40px var(--m) 100px; }
  .plans, .plans thead, .plans tbody, .plans tr, .plans th, .plans td { display: block; width: auto !important; }
  .plans thead tr { display: none; }
  .faq { display: block; padding-bottom: 120px; }
  .faq-pane { display: none; }
  .faq-a-inline { display: block; padding: 4px 0 18px 22px; font-family: var(--font-text); font-size: 19px; line-height: 1.45; color: var(--ink); }
  .faq-a-inline[hidden] { display: none !important; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .tile { min-height: 0; padding: 20px; }
  .t-word { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .t-word span { font-size: 22vw; }
  .t-go { grid-column: 1 / -1; order: -1; min-height: 160px; }
  .t-nav { grid-column: 1; }
  .t-mail { grid-column: 2; }
  .t-time { grid-column: 1; }
  .t-say { grid-column: 2; }
  .t-say p:first-child { font-size: 19px; }
  .t-clock { font-size: 30px; }
  .t-mail a { font-size: 16px; }
  .auth-copy, .auth-form { grid-column: 1 / -1; }
  .finder { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .acct > .panel { grid-column: 1 / -1; }
  .co { grid-template-columns: 1fr; }
}
/* Precios en el móvil: cada plan, su bloque. Lo monta app.js en .plans-mobile. */
.plans-mobile { display: none; }
@media (max-width: 900px) {
  .plans { display: none; }
  .plans-mobile { display: grid; gap: 14px; }
  .pm { padding: 22px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 14px; }
  .pm.is-pick { background: var(--accent); color: var(--accent-ink); }
  .pm h3 { font-size: 9vw; line-height: 1; }
  .pm .pm-price { font-family: var(--font-display); font-size: 9vw; letter-spacing: -0.035em; line-height: 1; }
  .pm .pm-price small { font-size: 16px; letter-spacing: 0; }
  .pm dl { margin: 0; display: grid; gap: 10px; font-size: 17px; }
  .pm dt { opacity: 0.7; }
  .pm dd { margin: 0; }
  .price h2 { font-size: 30px; margin-bottom: 20px; }
}
@media (max-width: 560px) {
  .bar-login { display: none; }
  .bar-links { gap: 16px; font-size: 14px; }
  .out-bars li { grid-template-columns: 8em 1fr 3em; font-size: 14px; }
  .tiles { grid-template-columns: 1fr; }
  .t-nav, .t-mail, .t-time, .t-say { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .hero { height: auto; }
}
