/* Human Reviewed — tipografía grande, mucho aire, un solo acento, secciones claras y oscuras. */
:root {
  --bg: #fbfbfd; --surface: #ffffff; --text: #1d1d1f; --muted: #6e6e73; --line: #e5e5ea;
  --accent: #0a7d5a; --accent-2: #1fb985; --accent-ink: #ffffff;
  --dark: #000000; --dark-surface: #151517; --dark-text: #f5f5f7; --dark-muted: #a1a1a6; --dark-line: #2c2c2e;
  --crit: #e5484d; --ok: #30a46c; --warn: #f5a524;
  --radius: 22px; --nav-h: 52px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #151517; --text: #f5f5f7; --muted: #a1a1a6; --line: #2c2c2e;
    --accent: #2fd19a; --accent-2: #7cf0c5; --accent-ink: #00170f;
    --dark: #0b0b0c; --dark-surface: #1c1c1e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; }

/* Barra superior translúcida */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 14px; }
.brand { font-weight: 600; letter-spacing: -0.2px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nav nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.nav nav a { color: var(--muted); }
.nav nav a[aria-current="page"] { color: var(--text); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

/* Botones tipo píldora */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 500;
  font-size: 17px; background: var(--accent); color: var(--accent-ink); transition: transform .2s ease, filter .2s ease; }
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--accent); padding-left: 6px; padding-right: 6px; }
.btn.ghost::after { content: "›"; font-size: 1.25em; line-height: 1; }
.btns { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; }

/* Portada */
.hero { text-align: center; padding: 84px 0 40px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 17px; margin: 0 0 10px; }
h1 { font-size: clamp(40px, 7.4vw, 84px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 auto 18px; max-width: 15ch; font-weight: 700; }
.grad { background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, #6aa9ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; color: var(--muted); max-width: 34em; margin: 0 auto 30px; letter-spacing: -0.01em; }
.note { display: block; color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Secciones */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 700; }
.center { text-align: center; }
.sub { color: var(--muted); font-size: clamp(18px, 2vw, 21px); max-width: 36em; margin: 0 auto 44px; }
.dark { background: var(--dark); color: var(--dark-text); }
.dark .sub, .dark .muted { color: var(--dark-muted); }

/* Ventana de terminal animada */
.window { max-width: 720px; margin: 10px auto 0; border-radius: 16px; background: #0d0d0f; color: #e8e8ea; text-align: left;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; }
.window .bar { display: flex; gap: 7px; padding: 12px 14px; background: #1a1a1d; align-items: center; }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; } .window .bar i:nth-child(3) { background: #28c840; }
.window .bar span { margin-left: 8px; font: 12px ui-monospace, Menlo, monospace; color: #8e8e93; }
.term { margin: 0; padding: 18px 20px 22px; font: 14px/1.75 ui-monospace, "SF Mono", Menlo, monospace; min-height: 240px; white-space: pre-wrap; }
.term .l { display: block; }
.term .k { color: #8e8e93; } .term .c { color: #ff6b6b; } .term .w { color: #ffc24b; } .term .o { color: #3ddc97; }
.js .term .l { opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.js .term .l.on { opacity: 1; transform: none; }
.term .cursor { display: inline-block; width: 8px; height: 1.1em; background: #3ddc97; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; text-align: center; }
.stat b { display: block; font-size: clamp(48px, 7vw, 76px); letter-spacing: -0.04em; line-height: 1; font-weight: 700; }
.stat p { color: var(--dark-muted); margin: 12px auto 0; max-width: 22em; font-size: 16px; }
.src { text-align: center; font-size: 12px; color: var(--dark-muted); margin-top: 36px; }

/* Tarjetas */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px 26px; border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.22); }
.card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); }
.card h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Mosaico de la portada */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tile { border-radius: 28px; padding: 48px 36px 40px; text-align: center; min-height: 420px; display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden; position: relative; }
.tile.light { background: var(--surface); border: 1px solid var(--line); }
.tile.darkt { background: var(--dark); color: var(--dark-text); }
.tile h3 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 10px; }
.tile p { color: var(--muted); margin: 0 auto 22px; max-width: 24em; }
.tile.darkt p { color: var(--dark-muted); }
.tile .art { font: 13px/1.7 ui-monospace, Menlo, monospace; text-align: left; border-radius: 14px; padding: 14px 16px; margin-top: 26px;
  background: color-mix(in srgb, var(--text) 5%, transparent); }
.tile.darkt .art { background: #141416; }
.tile .art .c { color: var(--crit); } .tile .art .o { color: var(--ok); }

/* Pasos con línea de progreso */
.steps { position: relative; max-width: 720px; margin: 0 auto; padding-left: 44px; }
.steps::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 13px; top: 6px; width: 2px; height: calc(var(--p, 1) * (100% - 12px));
  background: linear-gradient(var(--accent), var(--accent-2)); transition: height .2s linear; }
.step { position: relative; padding: 0 0 38px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: attr(data-n); position: absolute; left: -44px; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); z-index: 1; }
.step h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--muted); }

/* Selector segmentado */
.seg { display: inline-flex; background: color-mix(in srgb, var(--text) 8%, transparent); border-radius: 999px; padding: 3px; margin: 0 auto 26px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 15px; padding: 7px 18px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.dark .seg { background: #1f1f22; } .dark .seg button[aria-pressed="true"] { background: #3a3a3c; color: #fff; }

/* Informe */
.report { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px; text-align: left; }
.dark .report { background: var(--dark-surface); border-color: var(--dark-line); }
.finding { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.dark .finding { border-color: var(--dark-line); }
.finding:first-child { border-top: 0; }
.finding b { font-size: 17px; }
.finding p { grid-column: 2; margin: 0; color: var(--muted); font-size: 15px; }
.dark .finding p { color: var(--dark-muted); }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; align-self: start; margin-top: 2px; white-space: nowrap; }
.tag.crit { background: color-mix(in srgb, var(--crit) 16%, transparent); color: var(--crit); }
.tag.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.js [data-state] { display: none; }
.js [data-view="antes"] [data-state="antes"], .js [data-view="despues"] [data-state="despues"] { display: grid; }

/* Chat del agente */
.chat { max-width: 520px; margin: 0 auto; background: var(--dark-surface); border-radius: 26px; padding: 22px 18px; text-align: left; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; margin: 8px 0; font-size: 15px; line-height: 1.4; }
.msg.user { margin-left: auto; background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { background: #2c2c2e; color: #f5f5f7; border-bottom-left-radius: 6px; }
.flag { display: block; margin: 2px 0 14px; font-size: 13px; font-weight: 600; }
.flag.c { color: #ff6b6b; } .flag.o { color: #3ddc97; }
.js .chat [data-state] { display: none; }
.js [data-view="antes"] .chat [data-state="antes"], .js [data-view="despues"] .chat [data-state="despues"] { display: block; }

/* Precios */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card h3 { margin: 0 0 4px; font-size: 19px; }
.price-card .amount { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 8px; }
.price-card p { margin: 0; color: var(--muted); font-size: 15px; }
.buy { text-align: center; margin-top: 40px; }

/* Reglas y preguntas */
.rules { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.rules li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: var(--muted); font-size: 15px; }
.rules li::before { content: "✓"; display: block; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
details { border-top: 1px solid var(--line); padding: 20px 4px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 26px; line-height: 1; transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; max-width: 40em; }

.verified { text-align: center; color: var(--muted); font-size: 14px; max-width: 40em; margin: 0 auto; }
footer { border-top: 1px solid var(--line); padding: 26px 0 44px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* Aparecer al bajar (solo con JavaScript; sin él, todo se ve) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .term .l { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
  .term .cursor { animation: none; }
}
@media (max-width: 640px) {
  .nav nav a:not(.lang) { display: none; }
  .hero { padding-top: 56px; }
  section { padding: 72px 0; }
  .tile { min-height: 0; padding: 36px 22px 28px; }
}

.mt { margin-top: 40px; }

/* Promoción (Black Friday). Sin la clase promo-on, o cuando app.js ve que terminó, rigen los precios normales. */
[data-promo] { display: none; }
.promo-on [data-promo] { display: revert; }
.promo-on [data-regular] { display: none; }
.promo-on .promo-bar { display: block; }
.promo-bar { background: #000; color: #f5f5f7; font-size: 14px; }
.promo-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.promo-bar a { color: #7cf0c5; font-weight: 600; }
.promo-tag { background: linear-gradient(100deg, #2fd19a, #7cf0c5); color: #00170f; font-weight: 700; font-size: 12px;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.promo-count { font-variant-numeric: tabular-nums; color: #a1a1a6; }
.amount s { color: var(--muted); font-weight: 500; font-size: .62em; margin-right: 4px; }
.amount .off { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent); border-radius: 999px; padding: 3px 9px; letter-spacing: 0; }

/* Botón propio en cada tarjeta de precios */
.price-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.card-cta { margin-top: auto; }
.btn.small { font-size: 15px; padding: 9px 16px; }
.btn.ghost-btn { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.buy { margin-top: 28px; }

/* Desplegable «Qué incluye» dentro de cada tarjeta */
.price-card details.incluye { border: 0; padding: 0; margin-top: 14px; }
.price-card details.incluye summary { font-size: 15px; font-weight: 600; color: var(--accent); justify-content: flex-start; gap: 8px; }
.price-card details.incluye summary::after { font-size: 20px; }
.price-card details.incluye ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.price-card details.incluye li { margin: 6px 0; }
.price-card details.incluye li b { color: var(--text); font-weight: 600; }

/* Páginas legales */
.legal { padding-top: 56px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); max-width: none; margin-bottom: 8px; }
.legal h1 + p { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.tabla-legal { overflow-x: auto; margin: 12px 0; }
.tabla-legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla-legal th, .tabla-legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla-legal th { color: var(--muted); font-weight: 600; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Aceptación antes de pagar */
.aceptar { display: grid; gap: 16px; margin-top: 24px; max-width: 560px; }
.aceptar .campo { display: grid; gap: 6px; font-size: 15px; }
.aceptar input[type=email] { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #d2d2d7); background: transparent; color: inherit; }
.aceptar .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.aceptar .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.aceptar .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.tile.wide { grid-column: 1 / -1; min-height: 0; }
