/* Colores de Theme.kt de la app: Ocean, Deep, Night, Growth, Ice */
:root {
    --ocean: #0789D8;
    --deep: #07366B;
    --night: #082F5E;
    --growth: #178F47;
    --growth-soft: #D7F5E3;
    --bg: #F3F8FC;
    --bg-alt: #FFFFFF;
    --surface: #FFFFFF;
    --surface-soft: #F5F8FB;
    --text: #0B2340;
    --text-soft: #4A5868;
    --line: #D3DCE5;
    --primary: #0789D8;
    --primary-text: #FFFFFF;
    --primary-soft: #DCEEFB;
    --logo-text: #012F64;
    --amber: #E8A317;
    --shadow: 0 18px 50px rgba(7, 54, 107, 0.14);
    --radius: 18px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #071A2E;
        --bg-alt: #0A2036;
        --surface: #0C2440;
        --surface-soft: #122C49;
        --text: #E6EEF7;
        --text-soft: #B3C3D6;
        --line: #2A4565;
        --primary: #4FB3F0;
        --primary-text: #00213D;
        --primary-soft: #173A60;
        --growth: #4CD483;
        --growth-soft: #0E4A2A;
        --logo-text: #DCEEFB;
        --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--primary); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--primary-text); box-shadow: 0 6px 18px rgba(7, 137, 216, 0.3); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(7, 137, 216, 0.42); }
.btn-outline { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-light { background: #FFFFFF; color: var(--deep); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:focus-visible, .billing-option:focus-visible, summary:focus-visible, .download:focus-visible, .nav a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Encabezado */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.topbar-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; color: var(--logo-text); }
.logo { width: 112px; height: 31px; color: var(--logo-text); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--text-soft); text-decoration: none; font-weight: 550; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--primary-soft); }
.topbar-actions { display: flex; gap: 6px; margin-left: auto; }

/* Portada */
.hero {
    padding: 64px 0 80px;
    background:
        radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
        radial-gradient(700px 380px at 0% 100%, color-mix(in srgb, var(--growth) 12%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--growth-soft);
    color: var(--growth);
    font-size: 14px;
    font-weight: 650;
    margin-bottom: 18px;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; color: var(--text); }
.accent {
    background: linear-gradient(90deg, #05A2EA, #0070CB 55%, #20B85A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}
.lead { font-size: 1.15rem; color: var(--text-soft); margin: 20px 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--text-soft); font-size: 15px; }
.hero-points li::before { content: "✓"; color: var(--growth); font-weight: 800; margin-right: 6px; }

/* Venta de ejemplo */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 28px 0; }
.device {
    width: 100%;
    max-width: 340px;
    padding: 18px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.device-bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-soft); font-weight: 600; }
.pill { padding: 3px 10px; border-radius: 999px; background: var(--growth-soft); color: var(--growth); font-size: 12px; }
.device-title { font-size: 18px; font-weight: 750; margin: 14px 0 8px; }
.cart { list-style: none; margin: 0; padding: 0; }
.cart li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cart .qty {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 750;
    font-size: 13px;
}
.cart .name { flex: 1; }
.cart .price { font-weight: 650; font-variant-numeric: tabular-nums; }
.methods { display: flex; gap: 6px; margin: 16px 0 12px; }
.methods span { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
.methods .on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.charge { padding: 14px; border-radius: 14px; background: var(--growth); color: #FFFFFF; text-align: center; font-weight: 750; font-size: 17px; }
@media (prefers-color-scheme: dark) { .charge { color: #00391C; } }
.toast {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.toast-top { top: 0; right: 0; }
.toast-bottom { bottom: 0; left: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-green { background: #20B85A; }
.dot-amber { background: var(--amber); }

/* Para quién */
.who { padding: 28px 0 8px; }
.who-title { text-align: center; color: var(--text-soft); font-weight: 650; font-size: 15px; margin-bottom: 14px; }
.who-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.who-list li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 550; }

/* Secciones */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--text-soft); margin-top: 12px; font-size: 1.08rem; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); font-size: 24px; margin-bottom: 16px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--text-soft); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--primary-text); font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { color: var(--text-soft); }

/* Planes */
.billing { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 0 auto 32px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.billing-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.billing-option.is-active { background: var(--primary); color: var(--primary-text); }
.save { padding: 2px 8px; border-radius: 999px; background: var(--growth-soft); color: var(--growth); font-size: 12px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.plan-full { border: 2px solid var(--growth); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 32px; padding: 4px 12px; border-radius: 999px; background: var(--growth); color: #FFFFFF; font-size: 13px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .plan-badge { color: #00391C; } }
.plan h3 { font-size: 1.3rem; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; }
.amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.per { color: var(--text-soft); font-weight: 550; }
.plan-desc { color: var(--text-soft); min-height: 1.55em; }
.plan-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 11px; flex: 1; }
.plan-list li { position: relative; padding-left: 28px; }
.plan-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--growth-soft);
    color: var(--growth);
    font-size: 12px;
    font-weight: 800;
}
.plan-list li:has(strong) { padding-left: 0; }
.plan-list li:has(strong)::before { content: none; }
.plans-note { text-align: center; color: var(--text-soft); font-size: 14px; margin-top: 24px; }

/* Opiniones */
.rating-summary { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.stars { color: #F2B01E; letter-spacing: 2px; font-size: 1.1rem; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reviews-empty { max-width: 620px; margin: 0 auto; padding: 36px 28px; border-radius: 22px; background: var(--bg); border: 1px dashed var(--line); text-align: center; }
.reviews-empty h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.reviews-empty p { color: var(--text-soft); margin-bottom: 22px; }
.stars-big { font-size: 1.8rem; letter-spacing: 4px; }
.review { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.review-text { flex: 1; }
.review-author { font-size: 14px; color: var(--text-soft); }
.review-author strong { color: var(--text); display: block; }

/* Descargas */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto; }
.download {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}
a.download:hover { border-color: var(--primary); transform: translateY(-2px); }
.download strong { display: block; }
.download small { color: var(--text-soft); font-size: 14px; }
.download-icon { font-size: 28px; }
.download-main { border: 2px solid var(--primary); }
.is-soon { opacity: 0.65; }

/* Preguntas */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.faq summary { padding: 18px 20px; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--text-soft); }

/* Llamado final */
.cta { padding: 0 0 80px; background: var(--bg-alt); }
.cta-box {
    max-width: 1100px;
    padding: 56px 32px;
    border-radius: 28px;
    text-align: center;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0789D8, #07366B 70%);
}
.cta-box h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; }
.cta-box p { margin: 12px 0 26px; opacity: 0.9; font-size: 1.08rem; }

/* Pie */
.footer { padding: 48px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer .logo { width: 120px; height: 34px; }
.footer-note { color: var(--text-soft); margin-top: 10px; font-size: 15px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); margin-bottom: 10px; }
.footer nav { display: flex; flex-direction: column; gap: 6px; }
.footer nav a { color: var(--text); text-decoration: none; }
.footer nav a:hover { color: var(--primary); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 14px; }

/* Tablet */
@media (max-width: 960px) {
    .nav { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero { padding: 40px 0 56px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .reviews { grid-template-columns: 1fr 1fr; }
}

/* Celular */
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .topbar-row { gap: 8px; height: 58px; }
    .logo { width: 96px; height: 27px; }
    .btn-ghost { display: none; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 32px; }
    .features, .steps, .plans, .reviews { grid-template-columns: 1fr; }
    .feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 18px; }
    .feature-icon { grid-row: span 2; margin: 0; }
    .hero-actions .btn { flex: 1; }
    .toast { font-size: 12.5px; padding: 8px 11px; }
    .plan { padding: 26px 22px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .cta { padding-bottom: 56px; }
    .cta-box { padding: 40px 22px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
