/* Tokens copiados de src/theme/tokens.css de la app (Fluent): mismo gris de ventana, mismas
   tarjetas blancas, mismo azul. Si la app cambia de estilo, se cambia aquí. */
:root {
  --bg-window: #f3f3f3;
  --bg-card: #ffffff;
  --bg-hover: rgba(0,0,0,.04);
  --stroke: rgba(0,0,0,.0578);
  --stroke-strong: rgba(0,0,0,.12);
  --text: #1a1a1a;
  --text-2: rgba(0,0,0,.6063);
  --text-3: rgba(0,0,0,.55);
  --accent: #0078d4;
  --accent-text: #0e5fa6;
  --accent-subtle: rgba(0,120,212,.10);
  --on-accent: #ffffff;
  --positive: #0e760e;
  --positive-bg: rgba(15,123,15,.10);
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 20px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.05), 0 0 1px rgba(0,0,0,.06);
  --shadow-shot: 0 32px 64px rgba(0,0,0,.18), 0 0 8px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.05);
  --font: "Segoe UI Variable", "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --header: rgba(243,243,243,.82);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-window: #202020;
    --bg-card: #2b2b2b;
    --bg-hover: rgba(255,255,255,.06);
    --stroke: rgba(255,255,255,.08);
    --stroke-strong: rgba(255,255,255,.14);
    --text: #ffffff;
    --text-2: rgba(255,255,255,.70);
    --text-3: rgba(255,255,255,.50);
    --accent: #60cdff;
    --accent-text: #60cdff;
    --accent-subtle: rgba(96,205,255,.12);
    --on-accent: #000000;
    --positive: #6ccb5f;
    --positive-bg: rgba(108,203,95,.14);
    --shadow-card: 0 1px 2px rgba(0,0,0,.3);
    --shadow-shot: 0 32px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
    --header: rgba(32,32,32,.82);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg-window: #202020;
  --bg-card: #2b2b2b;
  --bg-hover: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.08);
  --stroke-strong: rgba(255,255,255,.14);
  --text: #ffffff;
  --text-2: rgba(255,255,255,.70);
  --text-3: rgba(255,255,255,.50);
  --accent: #60cdff;
  --accent-text: #60cdff;
  --accent-subtle: rgba(96,205,255,.12);
  --on-accent: #000000;
  --positive: #6ccb5f;
  --positive-bg: rgba(108,203,95,.14);
  --shadow-card: 0 1px 2px rgba(0,0,0,.3);
  --shadow-shot: 0 32px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  --header: rgba(32,32,32,.82);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg-window); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-md); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--stroke); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: var(--r-md); }
.site-header nav a:hover { background: var(--bg-hover); color: var(--text); }
.site-header nav a.lang { border: 1px solid var(--stroke-strong); margin-left: 6px; }
.theme-toggle { display: grid; place-items: center; width: 34px; height: 34px; margin-left: 4px; border: 1px solid var(--stroke-strong); border-radius: var(--r-md); background: none; color: var(--text-2); cursor: pointer; }
.theme-toggle:hover { background: var(--bg-hover); color: var(--text); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (max-width: 640px) { .site-header nav a:not(.lang):not(.keep) { display: none; } }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--r-lg); font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--stroke-strong); background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-card); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn-soon { cursor: default; }

/* Portada */
.hero { text-align: center; padding: 72px 0 0; }
.hero .app-icon { width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.eyebrow { display: inline-block; color: var(--accent-text); background: var(--accent-subtle); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; max-width: 820px; margin: 0 auto; }
.hero .sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); max-width: 640px; margin: 20px auto 0; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.stage { position: relative; margin: 56px auto 0; max-width: 1000px; }
.shot { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shot-shadow, var(--shadow-shot)); background: var(--bg-card); }
.shot img { width: 100%; }
.phone { position: absolute; right: -2%; bottom: -64px; width: 24%; min-width: 120px; border-radius: 9% / 4.2%; border: 5px solid #111; background: #111; box-shadow: var(--shadow-shot); overflow: hidden; }
.phone img { width: 100%; border-radius: 7% / 3.4%; }
@media (max-width: 720px) { .phone { right: 4px; bottom: -40px; border-width: 3px; } }
.fineprint { font-size: 13px; color: var(--text-3); margin-top: 18px; }
.stage + .fineprint { margin-top: 84px; text-align: center; }

/* Secciones */
section { padding: 88px 0 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -.015em; font-weight: 700; }
.section-head p { color: var(--text-2); font-size: 18px; margin-top: 12px; }
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--stroke); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-card); }
.card h3 { font-size: 17px; font-weight: 600; margin: 14px 0 6px; }
.card p { color: var(--text-2); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-subtle); color: var(--accent-text); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Funciones con captura */
.feature { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr 1.35fr; margin-top: 56px; }
.feature.flip { grid-template-columns: 1.35fr 1fr; }
.feature.flip .copy { order: 2; }
.feature .copy h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
.feature .copy p { color: var(--text-2); font-size: 17px; margin-top: 12px; }
.feature .copy ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.feature .copy li { color: var(--text-2); font-size: 15px; padding-left: 26px; position: relative; }
.feature .copy li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 6px; height: 11px; border: solid var(--positive); border-width: 0 2px 2px 0; transform: rotate(40deg); }
@media (max-width: 860px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip .copy { order: 0; } }

.tax-note { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--accent-subtle); border-left: 3px solid var(--accent); color: var(--text); font-size: 14px; line-height: 1.5; }
.tax-note strong { display: block; margin-bottom: 4px; }

.maker { display: grid; gap: 28px 44px; grid-template-columns: 1fr 1.35fr; align-items: center; background: var(--bg-card); border: 1px solid var(--stroke); border-radius: var(--r-2xl); padding: 44px 40px; box-shadow: var(--shadow-card); }
.maker .eyebrow { margin-bottom: 14px; }
.maker h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
.maker-text p { color: var(--text-2); font-size: 16px; }
.maker-text p + p { margin-top: 14px; }
.maker-text em { color: var(--text); }
@media (max-width: 860px) { .maker { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Privacidad */
.privacy-band { background: var(--bg-card); border: 1px solid var(--stroke); border-radius: var(--r-2xl); padding: 40px 28px; box-shadow: var(--shadow-card); }
.privacy-band .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; }
.privacy-band h3 { font-size: 16px; font-weight: 600; }
.privacy-band p.small { color: var(--text-2); font-size: 15px; margin-top: 4px; }

/* Planes */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.plan { background: var(--bg-card); border: 1px solid var(--stroke); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); position: relative; }
.plan .tag { position: absolute; top: -12px; left: 22px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan .price { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--text-2); }
.plan .alt { color: var(--text-3); font-size: 14px; margin-top: 2px; }
.plan ul { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.plan li { font-size: 15px; color: var(--text-2); padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 6px; height: 11px; border: solid var(--positive); border-width: 0 2px 2px 0; transform: rotate(40deg); }

/* FAQ */
details { background: var(--bg-card); border: 1px solid var(--stroke); border-radius: var(--r-xl); padding: 16px 20px; margin-top: 10px; box-shadow: var(--shadow-card); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-3); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-2); margin-top: 10px; font-size: 15px; }

/* Cierre */
.final { text-align: center; }
.final h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -.015em; }
.final p { color: var(--text-2); margin: 12px auto 24px; max-width: 520px; font-size: 18px; }

/* Páginas de texto */
.doc { padding: 56px 20px 0; overflow-wrap: break-word; }
@media (max-width: 640px) { .doc { padding-top: 36px; } .doc table { display: block; overflow-x: auto; } }

.doc p, .doc li { font-size: 16px; line-height: 1.65; }
.doc li + li { margin-top: 6px; }
.doc h2 { margin: 44px 0 8px; padding-top: 28px; border-top: 1px solid var(--stroke); }
.doc .meta { display: inline-block; font-size: 13px; color: var(--text-2); background: var(--bg-card); border: 1px solid var(--stroke); border-radius: 999px; padding: 3px 12px; margin-top: 14px; }
.doc .lead { font-size: 18px; line-height: 1.6; }
.doc .lead a { font-weight: 600; }
.doc h1 + .lead { margin-top: 16px; }
/* Preguntas frecuentes (soporte): desplegables, como en la portada */
.faq h2 { border-top: 0; padding-top: 0; margin-top: 36px; }
.faq details { margin-top: 10px; }
.faq summary { align-items: center; }
.faq summary .q { display: flex; align-items: center; gap: 14px; }
.faq summary .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; }
.faq summary .ico svg { width: 20px; height: 20px; }
.faq details p { margin: 10px 0 0 50px; padding: 0; background: none; border: 0; box-shadow: none; }
@media (max-width: 640px) { .doc h2 { margin-top: 36px; padding-top: 22px; } footer a { display: inline-block; margin-bottom: 6px; } }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.doc h2 { font-size: 22px; font-weight: 700; margin: 40px 0 8px; letter-spacing: -.01em; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 22px 0 4px; }
.doc p, .doc li { color: var(--text-2); margin-top: 8px; }
.doc ul { padding-left: 22px; }
.doc .lead { font-size: 19px; margin-top: 14px; }
.doc .meta { font-size: 14px; color: var(--text-3); margin-top: 10px; }
.doc strong { color: var(--text); }
.doc .note { background: var(--accent-subtle); border-radius: var(--r-xl); padding: 14px 18px; color: var(--text); font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; background: var(--bg-card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--stroke); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; }

.doc h2 { display: flex; align-items: center; gap: 12px; }
.doc .num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-subtle); color: var(--accent-text); font-size: 14px; font-weight: 700; }
/* Resumen de privacidad: tarjeta con checks */
.doc ul.summary { list-style: none; padding: 8px 20px 12px; margin-top: 12px; background: var(--bg-card); border: 1px solid var(--stroke); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.doc ul.summary li { position: relative; padding-left: 28px; margin-top: 12px; }
.doc ul.summary li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 6px; height: 11px; border: solid var(--positive); border-width: 0 2px 2px 0; transform: rotate(40deg); }
/* Tabla de proveedores: filas alternas y cabecera destacada */
.doc th { background: var(--bg-hover); font-size: 14px; }
.doc tr:last-child td { border-bottom: 0; }

/* Pie */
footer { margin-top: 96px; border-top: 1px solid var(--stroke); padding: 28px 0 48px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-2); text-decoration: none; margin-right: 16px; }
footer a:hover { color: var(--text); }
