/* Estilos de las páginas públicas (landing, precios, legales). Usa las variables de app.css. */
body.site { background: var(--surface); }
.site-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem clamp(1rem, 4vw, 2.5rem); background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header nav { display: flex; align-items: center; gap: 1rem; }
.site-header nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .95rem; }
@media (max-width: 640px) { .site-header nav a:not(.btn) { display: none; } .site-header nav a[href="/entrar"] { display: inline; } }

.site main > section { padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem); max-width: 1120px; margin: 0 auto; }
.site h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -.02em; }
.site h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.01em; margin-bottom: 1.25rem; }
.site h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin: 0 0 .5rem; }
.btn.big { min-height: 52px; padding: .8rem 1.4rem; font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 .75rem; }
.cta-row.center { justify-content: center; }

.hero { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin: 0 0 1rem; }

/* Maqueta del celular */
/* Teléfono de gama alta (estilo "Pro Max"): borde de titanio, bisel delgado, isla, barra de estado y botones. */
.phone { position: relative; justify-self: center; width: min(330px, 100%); aspect-ratio: 9 / 19.5; padding: 3px; border-radius: 58px;
  background: linear-gradient(145deg, #e3ded5 0%, #9c968b 22%, #d9d4ca 48%, #8a847a 74%, #cfc9be 100%);
  box-shadow: 0 40px 80px -28px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.5); }
.phone-bezel { height: 100%; border-radius: 55px; padding: 9px; background: #050505; box-shadow: inset 0 0 0 1px #1d1d1d; }
.phone-screen { height: 100%; position: relative; overflow: hidden; border-radius: 47px; background: var(--bg); padding: 10px 14px 26px; font-size: .82rem; color: var(--text); }
.ph-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 34px; margin: 0 4px 8px; font-size: .78rem; font-weight: 700; color: var(--text); }
.ph-time { padding-left: 10px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ph-island { position: absolute; left: 50%; top: 4px; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000;
  box-shadow: inset -22px 0 0 -10px #000, inset 0 0 0 1px #111; }
.ph-island::after { content: ""; position: absolute; right: 9px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3d63 0 25%, #0b0f1c 60%); }
.ph-icons { display: flex; align-items: center; gap: 5px; padding-right: 6px; }
.ph-icons svg { fill: currentColor; display: block; }
.ph-tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 8px 10px 22px;
  background: var(--surface); border-top: 1px solid var(--line); }
.ph-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .62rem; color: var(--muted); }
.ph-tabbar span.on { color: var(--brand); font-weight: 700; }
.ph-home { position: absolute; z-index: 1; left: 50%; bottom: 8px; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: var(--text); opacity: .85; }
.ph-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #7d776d, #cfc9be); }
.ph-action { left: -3px; top: 132px; height: 30px; }
.ph-vol-up { left: -3px; top: 182px; height: 54px; }
.ph-vol-down { left: -3px; top: 248px; height: 54px; }
.ph-power { right: -3px; top: 200px; height: 82px; background: linear-gradient(90deg, #cfc9be, #7d776d); }
.ph-camera { right: -3px; top: 420px; height: 44px; background: linear-gradient(90deg, #cfc9be, #7d776d); }
.m-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.m-top .logo { width: 24px; height: 24px; font-size: .8rem; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.m-kpis div, .m-total { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .55rem; display: flex; flex-direction: column; }
.m-kpis b { font-size: 1.2rem; }
.m-kpis .ok { color: var(--ok); } .m-kpis .warn { color: var(--warn); } .m-kpis .bad { color: var(--bad); }
.m-total { margin: .4rem 0 .6rem; }
.m-total b { color: var(--bad); font-size: 1.15rem; }
.m-row { display: flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .55rem; margin-top: .35rem; }
.m-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-row small { color: var(--muted); }
.m-row .chip { font-size: .62rem; }
.m-wa { background: var(--wa); color: #fff; border-radius: 7px; padding: .2rem .45rem; font-size: .68rem; font-weight: 700; }

.pain { background: var(--bg); border-radius: 24px; }
.grid3 { display: grid; gap: 1rem; }
.grid2 { display: grid; gap: 1rem; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } .grid2 { grid-template-columns: repeat(2, 1fr); } }
.pain-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; }
.pain-icon { color: var(--brand); display: block; margin-bottom: .5rem; }
.sub-h2 { margin-top: 2.25rem; }
.feature { border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.feature p { color: var(--muted); margin: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: .2rem; padding-left: 3rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.steps span { color: var(--muted); }

.roi { background: var(--brand-soft); border-radius: 24px; }
.roi-grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .roi-grid { grid-template-columns: repeat(3, 1fr); } }
.roi-out { font-size: 1.15rem; margin-top: 1.25rem; }
.roi-out b { color: var(--brand); }

.pricing { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 860px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; background: var(--surface); }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 12px 30px -16px color-mix(in srgb, var(--brand) 60%, transparent); }
.price-card .badge { position: absolute; top: -12px; left: 1.5rem; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.price { font-size: 2.2rem; font-weight: 800; margin: .25rem 0 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { padding-left: 1.1rem; margin: 1rem 0 1.5rem; flex: 1; }
.price-card li { margin: .3rem 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: .6rem 0 0; }
.final-cta { text-align: center; }

.narrow { max-width: 820px; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.narrow > section { padding-left: 0 !important; padding-right: 0 !important; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; scroll-margin-top: 5rem; }
.legal p, .legal li { color: var(--text); }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
.site-footer nav a { color: var(--muted); }

/* Calculadoras y plantilla */
.calc h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: .25rem 0 .5rem; }
.calc h2 { font-size: 1.3rem; margin: 1.75rem 0 .75rem; }
.crumbs { color: var(--muted); margin-bottom: .5rem; }
.card-lite { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; }
.calc-form { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 700px) { .calc-form { grid-template-columns: 1fr 1fr; } .calc-form label:first-child, .calc-form button { grid-column: 1 / -1; } }
.calc-form button { justify-self: start; }
.calc-result { border: 2px solid var(--brand); border-radius: 16px; padding: 1.25rem; margin: 1.5rem 0; }
.calc-result h2 { margin-top: 0; }
.big-q { color: var(--brand); white-space: nowrap; }
.breakdown { width: 100%; border-collapse: collapse; }
.breakdown td { padding: .55rem .25rem; border-top: 1px solid var(--line); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown tr.total td { font-weight: 800; }
.formula { font-family: Consolas, "SFMono-Regular", monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; overflow-x: auto; }
.cta-box { background: var(--brand-soft); border-radius: 16px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.cta-box h2 { margin-top: 0; }
.sources li { margin: .3rem 0; }
.calc-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 700px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-card { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; color: var(--text); text-decoration: none; }
.calc-card h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.calc-card p { color: var(--muted); margin: 0 0 .75rem; }
.calc-card span { color: var(--brand); font-weight: 700; }
.calc-card:hover { border-color: var(--brand); }
.sheet-mock { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 1.5rem 0; background: #fff; color: #17201d; font-family: Arial, sans-serif; }
.sheet-mock .sheet-tabs { display: flex; gap: 2px; background: #eef1ef; padding: 6px 6px 0; font-size: .78rem; overflow-x: auto; }
.sheet-mock .sheet-tabs span { padding: .3rem .7rem; background: #e2e6e3; border-radius: 6px 6px 0 0; white-space: nowrap; }
.sheet-mock .sheet-tabs span.on { background: #fff; font-weight: 700; color: #0f766e; }
.sheet-mock table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.sheet-mock th { background: #0f766e; color: #fff; padding: .45rem; text-align: left; font-size: .75rem; }
.sheet-mock td { border: 1px solid #e2e6e3; padding: .4rem .45rem; white-space: nowrap; }
.sheet-mock .wa-link { color: #1f9d55; font-weight: 700; }
@media (max-width: 560px) { .sheet-mock { overflow-x: auto; } .sheet-mock table { min-width: 520px; } }
.buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.buy .price { margin: 0; }
.features-list li { margin: .5rem 0; }
.center-text { text-align: center; }
.center-text .btn { margin: 1rem auto; }
.m-total b.ok { color: var(--ok); }
.included { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.4rem; margin-bottom: 1rem; }
.included h3 { margin: 0 0 .5rem; font-size: 1rem; }
.included ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
@media (min-width: 760px) { .included ul { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }

/* Los enlaces internos (#como-funciona) no quedan tapados por el encabezado fijo. */
html { scroll-padding-top: 80px; }
.buy-form { display: grid; gap: .5rem; min-width: min(100%, 340px); }
.buy-billing { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.buy-billing label { font-size: .85rem; display: grid; gap: .2rem; }
.buy-form p { margin: 0; }
