/* fractax.com — mismos colores que la app (azul #3B82F6, dorado Premium). */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --text: #0F172A;
  --text-dim: #475569;
  --border: #E2E8F0;
  --accent: #3B82F6;
  --accent-strong: #2563EB;
  --gold: #E0A400;
  --ok: #10B981;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1120;
    --surface: #111827;
    --surface-2: #1E293B;
    --text: #F1F5F9;
    --text-dim: #94A3B8;
    --border: #1F2A3D;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-dim); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.lang { font-weight: 600; }
@media (max-width: 720px) { .nav a:not(.lang):not(.btn) { display: none; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-gold { background: var(--gold); color: #1F1600; }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.btn-soon { opacity: .55; pointer-events: none; cursor: default; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 auto 18px; max-width: 900px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-dim); max-width: 720px; margin: 0 auto 30px; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero small { display: block; margin-top: 14px; color: var(--text-dim); font-size: 14px; }
.shot { margin: 48px auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); max-width: 1040px; }

/* Secciones */
section { padding: 72px 0; }
section.alt { background: var(--surface-2); }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-title h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-title p { color: var(--text-dim); font-size: 18px; margin: 0; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
.icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.icon svg { width: 17px; height: 17px; }

.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr 1.25fr; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; margin: 0 0 14px; }
.split p { color: var(--text-dim); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 30px; position: relative; margin: 10px 0; font-size: 16px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.split .shot { margin: 0; }

.note { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--text-dim); }

/* Precios */
.pricing { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); max-width: 820px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.plan.premium { border: 2px solid var(--gold); position: relative; }
.plan .tag { position: absolute; top: -13px; right: 22px; background: var(--gold); color: #1F1600; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 21px; display: flex; align-items: center; gap: 8px; }
.plan .crown { color: var(--gold); width: 22px; height: 22px; flex: none; }
.plan .crown-free { color: var(--accent); }
/* Iconos de Font Awesome (los mismos que la app) dentro del texto */
.icon-inline { width: 1em; height: 1em; vertical-align: -0.125em; }
.icon-inline.crown { color: var(--gold); }
.plan .price { font-size: 44px; font-weight: 800; margin: 14px 0 0; letter-spacing: -0.02em; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--text-dim); }
.plan .alt-price { color: var(--text-dim); margin: 4px 0 18px; font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: 15.5px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan .btns { display: grid; gap: 10px; }
.pricing-foot { text-align: center; color: var(--text-dim); margin-top: 22px; font-size: 14.5px; }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--text-dim); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-dim); margin: 10px 0 0; }

/* CTA final y pie */
.cta { text-align: center; }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; }
.cta p { color: var(--text-dim); font-size: 18px; margin: 0 0 26px; }
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--text-dim); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .disclaimer { flex-basis: 100%; margin: 0; font-size: 13px; }

/* Paginas legales */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: 34px; margin: 0 0 6px; }
.legal .updated { color: var(--text-dim); margin: 0 0 28px; }
.legal h2 { font-size: 21px; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--text-dim); font-size: 16px; }
.draft { padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 16%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); font-size: 14.5px; margin-bottom: 26px; }
.legal details { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 8px 0; background: var(--surface); }
.legal details summary { cursor: pointer; }
.legal pre { white-space: pre-wrap; font-size: 12.5px; color: var(--text-dim); max-height: 320px; overflow: auto; }
