:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --ink: #1b1f2a;
  --muted: #5d6475;
  --line: #e4e7ee;
  --accent: #0a74e8;
  --accent-ink: #ffffff;
  --btn: #1f2330;
  --btn-ink: #ffffff;
  --soft: #f1f4f9;
  --shadow: 0 1px 2px rgba(20, 28, 48, 0.06), 0 12px 40px rgba(20, 28, 48, 0.1);
  --serif: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218;
    --surface: #171b24;
    --ink: #eef0f5;
    --muted: #98a1b3;
    --line: #262c39;
    --accent: #4da3ff;
    --accent-ink: #08111f;
    --btn: #eef0f5;
    --btn-ink: #12151c;
    --soft: #1a1f2a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218; --surface: #171b24; --ink: #eef0f5; --muted: #98a1b3; --line: #262c39;
  --accent: #4da3ff; --accent-ink: #08111f; --btn: #eef0f5; --btn-ink: #12151c; --soft: #1a1f2a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-family: var(--serif); font-size: 1.7rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* Hero */
.hero { padding: 84px 0 40px; text-align: center; }
.hero .lead { margin: 22px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 0.9rem; }
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); align-items: center; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.frame-bar span { margin-left: 12px; font-size: 0.78rem; color: var(--muted); }
.hero-shot { margin-top: 56px; }
.hero-shot img { width: 100%; height: auto; }

/* Secciones */
section { padding: 96px 0; }
.sec-head { text-align: center; display: grid; gap: 14px; justify-items: center; margin-bottom: 52px; }
.alt { background: var(--soft); border-block: 1px solid var(--line); }

/* Features */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.card p { color: var(--muted); font-size: 0.98rem; }
.ico { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--accent); }
.ico svg { width: 22px; height: 22px; }
.wide { grid-column: span 2; }

/* Visor de producto */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.tab { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 9px 18px; border-radius: 999px; font: inherit; font-size: 0.95rem; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.panel[hidden] { display: none; }
.panel-text { text-align: center; color: var(--muted); max-width: 44rem; margin: 0 auto 28px; }
.panel img { width: 100%; height: auto; }

/* Dos columnas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { margin: 12px 0 18px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.checks svg { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.checks b { color: var(--ink); font-weight: 600; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); font-size: 0.9rem; }
.mini table { width: 100%; border-collapse: collapse; }
.mini th, .mini td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini th { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.mini td:last-child { color: var(--muted); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 0.78rem; }
.cite { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.cite mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 500; }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* CTA */
.cta { text-align: center; display: grid; gap: 18px; justify-items: center; }
footer { border-top: 1px solid var(--line); padding: 36px 0 52px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Páginas legales */
.doc { padding: 72px 0 96px; max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.draft { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 20px 0; font-size: 0.92rem; }

@media (max-width: 880px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  section { padding: 64px 0; }
  .hero { padding-top: 52px; }
  .nav-cta .btn-ghost { display: none; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
.plan-precio { font-family: var(--serif); font-size: 2rem; color: var(--ink) !important; }
.plan-precio b { font-weight: 500; }
.beta-bar { background: var(--btn); color: var(--btn-ink); text-align: center; font-size: 0.88rem; padding: 8px 16px; }
.beta-bar a { text-decoration: underline; font-weight: 600; margin-left: 6px; }
.plans { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.card .plan-precio { font-size: 2.2rem; line-height: 1.1; min-height: 2.4rem; }
.plans .card { grid-template-rows: auto auto auto 1fr auto; }
.plans .pill { border-radius: 12px; padding: 4px 12px; font-size: 0.82rem; }

/* Mi cuenta */
.cuenta { padding: 72px 0 96px; max-width: 640px; display: grid; gap: 20px; }
.cuenta h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.cuenta-bloque { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 14px; justify-items: start; }
.cuenta-bloque h2 { font-size: 1.6rem; }
.cuenta-bloque p { color: var(--muted); }
#form-espera { display: grid; gap: 14px; width: 100%; }
#form-espera label { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
#form-espera input[type=email], #form-espera input[type=text] { font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
#form-espera .opcional { color: var(--muted); font-weight: 400; }
#form-espera .check { grid-template-columns: 20px 1fr; align-items: start; font-weight: 400; color: var(--muted); }
#form-espera .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
#form-espera .trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-espera button { justify-self: start; }
#estado { min-height: 1.4em; font-size: 0.95rem; }
#estado.ok { color: #1a7f4b; }
#estado.error { color: #c0392b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #estado.ok { color: #4cc38a; } :root:not([data-theme="light"]) #estado.error { color: #ff7b6b; } }
/* Que las tarjetas queden alineadas aunque la etiqueta ocupe una o dos líneas. */
.plans .pill { display: flex; align-items: center; min-height: 3.1rem; justify-self: stretch !important; border-radius: 14px; }
@media (max-width: 1000px) { .plans .pill { min-height: 0; justify-self: start !important; display: inline-block; } }

/* 404 */
.nf { padding: 120px 0 140px; display: grid; gap: 18px; justify-items: start; max-width: 640px; }
.nf h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }

/* Hero rediseñado */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; text-align: center; }
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 760px; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
    radial-gradient(35% 40% at 85% 25%, color-mix(in srgb, #8b5cf6 14%, transparent), transparent 70%),
    radial-gradient(35% 40% at 12% 30%, color-mix(in srgb, #14b8a6 12%, transparent), transparent 70%); }
.hero-inner { position: relative; display: grid; justify-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; font-size: 0.88rem; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); box-shadow: 0 1px 2px rgba(20,28,48,.05); }
.badge:hover { border-color: var(--accent); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px color-mix(in srgb, #f59e0b 25%, transparent); }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.6rem); line-height: 1.02; margin-top: 26px; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin: 26px auto 0; font-size: clamp(1.1rem, 1.9vw, 1.3rem); max-width: 42rem; }
.hero-cta { margin-top: 34px; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0 0; padding: 0; }
.chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); font-size: 0.88rem; }
.hero-shot { margin-top: 56px; width: 100%; position: relative; }
.hero-shot .frame { box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow); border-radius: 20px 20px 0 0; border-bottom: 0; }
.hero-shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero-shot img { width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: top; }
@media (max-width: 560px) { .hero { padding-top: 44px; } .chips li { font-size: 0.8rem; } .hero-shot img { max-height: 340px; } }
.hero h1 { max-width: none; font-size: clamp(2.5rem, 6.2vw, 5rem); }
@media (max-width: 640px) { .hero h1 { font-size: clamp(2.3rem, 10vw, 3rem); } .hero h1 br { display: none; } }
.badge { justify-content: center; text-align: center; max-width: 100%; }
@media (max-width: 560px) { .badge { font-size: 0.8rem; padding: 7px 12px; } }

/* Flujos */
.flujos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.flujos .card h3 { display: flex; align-items: center; gap: 10px; }
.flujos .n { font-family: var(--sans); font-size: 0.8rem; background: var(--soft); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 2px 10px; }
.lista-flujos { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lista-flujos li { font-size: 0.88rem; padding: 6px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 880px) { .flujos { grid-template-columns: 1fr; } }
.cifras-flujos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; text-align: center; }
.cifras-flujos div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 16px; }
.cifras-flujos b { display: block; font-family: var(--serif); font-size: 3.2rem; font-weight: 500; line-height: 1; color: var(--accent); }
.cifras-flujos span { color: var(--muted); font-size: 0.95rem; }
.flujos .card p { max-width: 38rem; }
.mas { margin-top: 12px; }
.mas summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.mas[open] summary { margin-bottom: 10px; }
.plantillas { margin-top: 20px; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.area h4 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.mas-li { color: var(--muted) !important; background: transparent !important; border-style: dashed !important; }
.crear { margin-top: 20px; border-radius: 22px; padding: 34px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), color-mix(in srgb, #8b5cf6 12%, var(--surface))); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.crear > div { max-width: 40rem; display: grid; gap: 10px; }
.crear h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.crear p { color: var(--muted); }
@media (max-width: 880px) { .cifras-flujos { grid-template-columns: 1fr; } .areas { grid-template-columns: 1fr; } .crear { padding: 24px; } }
.card h3 .n { font-family: var(--sans); font-size: 0.8rem; background: var(--soft); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }
