/* =========================================================
   Julen Marrero · Cartas digitales
   Mobile first: los estilos base son para móvil y se amplían
   con min-width en 600px (tablet), 900px y 1100px (escritorio).
   ========================================================= */

/* --- TEMA (tus colores de siempre) --- */
:root {
    --bg: #0b1120;
    --card: #151e32;
    --card-2: #111a2c;
    --nav: rgba(11, 17, 32, 0.92);
    --primary: #3b82f6;
    --accent: #0ea5e9;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: #1e293b;
    --input: #0f172a;
    --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    --display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gutter: 18px;
    --header-h: 64px;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f1f5f9;
    --card: #ffffff;
    --card-2: #f8fafc;
    --nav: rgba(241, 245, 249, 0.92);
    --primary: #2563eb;
    --accent: #0284c7;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --input: #ffffff;
    --shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.25);
    color-scheme: light;
}

/* --- BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); /* hueco para el botón fijo de WhatsApp */
    transition: background .3s, color .3s;
    -webkit-tap-highlight-color: transparent;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* --- BOTONES Y ETIQUETAS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px;
    background: var(--primary); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
    font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none;
    box-shadow: 0 6px 20px rgba(59, 130, 246, .35);
    transition: transform .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); box-shadow: none; }
.btn-full { width: 100%; margin-top: 10px; }

.badge {
    align-self: flex-start; width: fit-content;
    display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); background: rgba(14, 165, 233, .12); border: 1px solid rgba(14, 165, 233, .3);
    padding: 5px 12px; border-radius: 999px;
}
.badge-warn { color: #f59e0b; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .3); }
.badge-light { color: #fff; background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .35); }
.grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- CABECERA --- */
.topbar {
    position: sticky; top: 0; z-index: 30;
    background: var(--nav); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding-top: env(safe-area-inset-top, 0px);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; white-space: nowrap; }
.brand svg { color: var(--primary); width: 22px; height: 22px; }
.hl { color: var(--primary); }
.actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: var(--card); border: 1px solid var(--border); color: var(--text);
}
.icon-btn svg { width: 20px; height: 20px; }
.desk-only { display: none; }

/* Menú móvil: panel que baja bajo la cabecera */
.links {
    position: absolute; left: 0; right: 0; top: 100%;
    display: flex; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 18px;
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
}
.links.open { transform: none; opacity: 1; visibility: visible; }
.links a { text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.links a.menu-cta { color: var(--primary); border-bottom: 0; }

/* --- PORTADA --- */
.hero { display: grid; gap: 44px; padding-block: 36px 48px; }
.hero h1 { font-size: clamp(36px, 10vw, 68px); font-weight: 800; letter-spacing: -.03em; margin: 16px 0 16px; }
.hero-copy > p { color: var(--muted); font-size: 17px; max-width: 54ch; }
.hero-btns { display: grid; gap: 10px; margin: 26px 0 22px; }
.hero-ticks { list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.hero-ticks li { display: flex; align-items: center; gap: 8px; }
.hero-ticks svg { width: 16px; height: 16px; color: #22c55e; flex-shrink: 0; }

/* Móvil de ejemplo */
.phone {
    position: relative; justify-self: center; width: 100%; max-width: 290px;
    background: #0a0f1c; border: 8px solid #1f2a40; border-radius: 40px; padding: 30px 12px 16px;
    box-shadow: var(--shadow), 0 0 80px rgba(59, 130, 246, .25);
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 80px; height: 8px; border-radius: 99px; background: #1f2a40; }
.phone-screen { display: flex; flex-direction: column; gap: 10px; color: #f8fafc; }
.m-head { display: flex; justify-content: space-between; align-items: center; }
.m-logo { font-family: var(--display); font-weight: 800; font-size: 11px; line-height: 1.1; border: 1.5px dashed #3b82f6; border-radius: 10px; padding: 6px 8px; color: #93c5fd; }
.m-lang { display: flex; gap: 4px; }
.m-lang span, .m-cats span { font-size: 11px; padding: 3px 8px; border-radius: 99px; border: 1px solid #263451; color: #94a3b8; white-space: nowrap; }
.m-lang .on, .m-cats .on { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.m-cats { display: flex; gap: 5px; overflow: hidden; }
.m-item { display: flex; align-items: center; gap: 10px; background: #151e32; border-radius: 14px; padding: 8px; }
.m-pic { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.p1 { background: radial-gradient(circle at 50% 40%, #f59e0b 0 30%, #92400e 31% 55%, #fbbf24 56%); }
.p2 { background: radial-gradient(circle at 40% 40%, #fef3c7 0 18%, #dc2626 19% 60%, #f59e0b 61%); }
.p3 { background: radial-gradient(circle at 50% 35%, #86efac 0 30%, #fde68a 31% 55%, #f9a8d4 56%); }
.m-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-txt b { font-size: 13px; }
.m-txt small { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-al { display: flex; gap: 2px; font-size: 10px; margin-top: 2px; }
.m-price { font-family: var(--display); font-weight: 700; font-size: 13px; color: #38bdf8; white-space: nowrap; }
.m-day { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; background: linear-gradient(90deg, #3b82f6, #0ea5e9); border-radius: 12px; padding: 9px; }
.m-day svg { width: 14px; height: 14px; }
.qr-chip {
    position: absolute; left: -6px; bottom: 56px;
    display: flex; align-items: center; gap: 8px;
    background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 14px;
    padding: 9px 12px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
}
.qr-chip svg { color: var(--primary); width: 18px; height: 18px; }

/* --- SECTORES (carrusel deslizable en móvil) --- */
.sectors { border-block: 1px solid var(--border); background: var(--card-2); }
.sectors-in { display: flex; flex-direction: column; gap: 10px; padding-block: 18px; }
.sectors-label { color: var(--muted); font-size: 13px; }
.sectors ul {
    list-style: none; display: flex; gap: 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
}
.sectors ul::-webkit-scrollbar { display: none; }
.sectors li {
    flex-shrink: 0; scroll-snap-align: start;
    display: flex; align-items: center; gap: 8px;
    background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
    font-family: var(--display); font-weight: 500; font-size: 15px; white-space: nowrap;
}
.sectors li svg { color: var(--accent); width: 18px; height: 18px; }

/* --- BLOQUES --- */
.block { padding-block: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 28px; display: flex; flex-direction: column; gap: 12px; }
.section-head h2 { font-size: clamp(28px, 7.5vw, 44px); font-weight: 700; letter-spacing: -.02em; }
.section-head p { color: var(--muted); }

/* Problema / solución */
.problem { display: grid; gap: 14px; }
.problem-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.problem-card h2 { font-size: clamp(21px, 5.5vw, 28px); font-weight: 700; }
.problem-card p { color: var(--muted); }
.problem-card.solved { border-color: rgba(59, 130, 246, .5); background: linear-gradient(160deg, rgba(59, 130, 246, .12), var(--card) 60%); }
.problem-arrow { justify-self: center; color: var(--primary); transform: rotate(90deg); line-height: 0; }

/* Qué incluye */
.features { display: grid; gap: 12px; }
.feat { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.feat .ico { grid-row: span 2; }
.feat h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.feat p { color: var(--muted); font-size: 15px; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }
.c-blue { background: rgba(59, 130, 246, .15); color: #3b82f6; }
.c-sky { background: rgba(14, 165, 233, .15); color: #0ea5e9; }
.c-amber { background: rgba(245, 158, 11, .15); color: #f59e0b; }
.c-pink { background: rgba(236, 72, 153, .15); color: #ec4899; }
.c-green { background: rgba(34, 197, 94, .15); color: #22c55e; }
.c-violet { background: rgba(139, 92, 246, .15); color: #8b5cf6; }

/* Demo */
.demo { display: grid; background: var(--card); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.demo-copy { padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.demo-copy h2 { font-size: clamp(30px, 8vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.demo-copy > p { color: var(--muted); }
.demo-place { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.demo-place svg { width: 16px; height: 16px; }
.checks { list-style: none; display: grid; gap: 8px; margin-bottom: 6px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.demo-copy .btn { width: 100%; }
.demo-visual { order: -1; background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, .35), transparent 60%), #0a0a0a; display: grid; place-items: center; padding: 32px 20px; }
.mozaga { width: 100%; max-width: 250px; border: 1.5px solid #3a362f; border-radius: 30px; padding: 24px 16px; display: flex; flex-direction: column; gap: 10px; color: #e8dcc4; background: #0a0a0a; }
.mz-title { font-family: Georgia, 'Times New Roman', serif; font-size: 26px; text-align: center; line-height: 1.05; margin-bottom: 4px; }
.mz-lang { display: flex; justify-content: center; gap: 6px; font-size: 11px; }
.mz-lang span { border: 1px solid #3a362f; border-radius: 99px; padding: 2px 9px; }
.mz-lang .on { background: #e8dcc4; color: #0a0a0a; }
.mz-btn { border: 1px solid #e8dcc4; border-radius: 99px; text-align: center; padding: 9px; font-size: 14px; }
.mz-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #a79e8c; border-bottom: 1px dotted #3a362f; padding-bottom: 5px; }

/* Cómo funciona */
.steps { list-style: none; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.steps .num { grid-row: span 2; }
.num { font-family: var(--display); font-weight: 800; font-size: 18px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3b82f6, #0ea5e9); }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--muted); }

/* Dudas */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary); font-size: 24px; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* Contacto */
.contact { display: grid; gap: 24px; background: linear-gradient(135deg, #1d4ed8, #0ea5e9); border-radius: 24px; padding: 26px 18px; color: #fff; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info h2 { font-size: clamp(28px, 8vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.contact-info > p { color: rgba(255, 255, 255, .9); font-size: 16px; }
.direct { display: grid; gap: 12px; margin-top: 4px; }
.direct > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.direct svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .18); flex-shrink: 0; }
.direct span { display: flex; flex-direction: column; min-width: 0; }
.direct small { opacity: .85; }
.direct strong { overflow-wrap: anywhere; }
.contact-form { background: var(--card); color: var(--text); border-radius: 18px; padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); min-width: 0; }
.contact-form h3 { font-size: 21px; margin-bottom: 6px; }
.contact-form label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; background: var(--input); color: var(--text); border: 1px solid var(--border);
    border-radius: 12px; padding: 13px 14px; font: inherit;
    font-size: 16px; /* 16px evita el zoom automático en iPhone */
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.form-note { font-size: 14px; color: var(--accent); text-align: center; margin-top: 6px; }

/* Pie */
.footer { display: flex; flex-direction: column; gap: 10px; padding-block: 40px 24px; color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); }

/* Botón fijo de WhatsApp (solo móvil y tablet) */
.sticky-wa {
    position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 0 max(12px, env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px));
    min-height: 54px; border-radius: 999px;
    background: #22c55e; color: #fff; text-decoration: none;
    font-family: var(--display); font-weight: 700; font-size: 16px;
    box-shadow: 0 10px 30px rgba(34, 197, 94, .4);
}
.sticky-wa svg { width: 20px; height: 20px; }

/* =========================================================
   TABLET (≥ 600px)
   ========================================================= */
@media (min-width: 600px) {
    :root { --gutter: 28px; }
    .hero-btns { display: flex; flex-wrap: wrap; }
    .hero-ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
    .phone { max-width: 300px; }
    .qr-chip { left: -40px; }
    .sectors-in { flex-direction: row; align-items: center; gap: 18px; }
    .sectors ul { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
    .block { padding-block: 72px 0; }
    .section-head { text-align: center; align-items: center; margin-bottom: 40px; }
    .section-head .badge { align-self: center; }
    .features { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .feat { display: block; padding: 22px; }
    .feat h3 { margin: 14px 0 6px; }
    .demo-copy { padding: 34px; }
    .demo-copy .btn { width: auto; align-self: flex-start; }
    .contact { padding: 36px; }
    .contact-form { padding: 26px; }
    .footer { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
}

/* =========================================================
   ESCRITORIO (≥ 900px)
   ========================================================= */
@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .sticky-wa { display: none; }
    .menu-btn { display: none; }
    .desk-only { display: inline-flex; }
    .links {
        position: static; flex-direction: row; gap: 26px;
        background: none; border: 0; padding: 0; box-shadow: none;
        transform: none; opacity: 1; visibility: visible;
    }
    .links a { font-family: var(--body); font-size: 15px; padding: 0; border: 0; color: var(--muted); }
    .links a:hover { color: var(--text); }
    .links a.menu-cta { display: none; }
    .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(59, 130, 246, .45); }
    .btn-ghost:hover { border-color: var(--primary); box-shadow: none; }

    .hero { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding-block: 72px 64px; }
    .hero-copy > p { font-size: 18px; }
    .phone { animation: float 6s ease-in-out infinite; }

    .block { padding-block: 88px 0; }
    .problem { grid-template-columns: 1fr auto 1fr; gap: 20px; }
    .problem-card { padding: 32px; }
    .problem-arrow { transform: none; align-self: center; }

    .demo { grid-template-columns: 1fr 1fr; }
    .demo-visual { order: 0; padding: 44px 24px; }
    .demo-copy { padding: 44px; }

    .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .steps li { display: block; padding: 28px; }
    .steps h3 { margin: 16px 0 6px; font-size: 20px; }

    .contact { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px; border-radius: 28px; }
    .footer { padding-block: 48px; }
}

/* =========================================================
   ESCRITORIO GRANDE (≥ 1100px)
   ========================================================= */
@media (min-width: 1100px) {
    .features { grid-template-columns: repeat(4, 1fr); }
    .feat { transition: transform .2s, border-color .2s; }
    .feat:hover { transform: translateY(-4px); border-color: var(--primary); }
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .phone { animation: none !important; }
    *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   HERO DISRUPTIVO: antes / después
   ========================================================= */
.marquee { overflow: hidden; background: linear-gradient(90deg, #1d4ed8, #0ea5e9); color: #fff; padding-block: 9px; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; padding-inline: 18px; white-space: nowrap; }
.marquee-track span::after { content: '✦'; margin-left: 36px; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

.hx-grid { display: grid; gap: 34px; padding-block: 30px 44px; }
.hx-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hx .badge { display: inline-flex; align-items: center; gap: 6px; }
.hx .badge svg { width: 14px; height: 14px; }
.hx h1 { font-size: clamp(38px, 11vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.strike { position: relative; white-space: nowrap; }
.strike::after { content: ''; position: absolute; left: -2%; right: -2%; top: 52%; height: .12em; background: #ef4444; border-radius: 4px; transform: rotate(-4deg); }
.hx-lead { color: var(--muted); font-size: 17px; max-width: 56ch; }
.hx-lead strong { color: var(--text); }
.hx-btns { display: grid; gap: 10px; }
.btn-xl { min-height: 56px; font-size: 17px; padding-inline: 28px; }
.hx-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hx-proof div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; text-align: center; }
.hx-proof b { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.hx-proof span { font-size: 12px; color: var(--muted); line-height: 1.3; }

.ba-wrap { display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 0; }
.ba { position: relative; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow), 0 0 80px rgba(59, 130, 246, .2); user-select: none; touch-action: pan-y; }
.ba-panel { position: absolute; inset: 0; padding: 54px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.ba-before { background: #d9cdb5; }
.ba-after { background: radial-gradient(circle at 70% 0%, rgba(59, 130, 246, .45), transparent 55%), #0a0f1c; clip-path: inset(0 0 0 var(--pos)); }
.ba-tag { position: absolute; top: 16px; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.ba-tag-bad { left: 16px; background: #7f1d1d; color: #fecaca; }
.ba-tag-good { right: 16px; background: #22c55e; color: #052e16; }

.paper { position: relative; background: #f5ecd8; color: #3b3326; border-radius: 4px; padding: 18px 16px; font-family: 'Courier New', Courier, monospace; font-size: 13px; transform: rotate(-2deg); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.paper-title { text-align: center; font-weight: 700; letter-spacing: .3em; margin-bottom: 10px; border-bottom: 1px dashed #8a7c63; padding-bottom: 6px; }
.paper-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.paper-row s { color: #b91c1c; margin-right: 4px; }
.paper-row.blur { filter: blur(1.4px); opacity: .75; }
.paper-note { font-size: 10px; margin-top: 10px; font-style: italic; }
.stain { position: absolute; right: 14px; bottom: 22px; width: 64px; height: 64px; border-radius: 50%; border: 6px solid rgba(120, 72, 30, .28); filter: blur(.6px); }
.ba-pains { list-style: none; display: grid; gap: 6px; margin-top: auto; }
.ba-pains li { color: #7f1d1d; font-weight: 600; font-size: 13px; display: flex; gap: 6px; }
.ba-pains li::before { content: '✕'; }

.dmenu { display: flex; flex-direction: column; gap: 10px; color: #f8fafc; margin-left: auto; width: 100%; }

.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, .4); }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #1d4ed8; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.ba-handle svg { width: 22px; height: 22px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + .ba-handle, .ba:focus-within .ba-handle span { outline: 3px solid var(--accent); }
.ba-hint { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.ba-hint svg { width: 16px; height: 16px; }

@media (min-width: 600px) {
    .hx-btns { display: flex; flex-wrap: wrap; }
    .hx-proof { max-width: 460px; }
}
@media (min-width: 900px) {
    .hx-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding-block: 64px 72px; }
    .hx-lead { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Lista compacta de servicios */
.incl { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 760px; margin: 0 auto; }
.incl li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; font-weight: 600; font-size: 15px; }
.incl svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
@media (min-width: 600px) { .incl { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================
   NUEVA TIPOGRAFÍA Y HERO (v3)
   Sora para titulares, Manrope para texto
   ========================================================= */
:root {
    --display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.hero2 { padding-block: 44px 28px; text-align: center; }
.hero2 .wrap { display: flex; flex-direction: column; align-items: center; }
.hero2 .badge { align-self: center; display: inline-flex; align-items: center; gap: 6px; }
.hero2 .badge svg { width: 14px; height: 14px; }
.hero2 h1 { font-size: clamp(36px, 10.5vw, 76px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin: 20px auto 16px; max-width: 18ch; }
.hero2-lead { color: var(--muted); font-size: 17px; max-width: 56ch; margin: 0 auto; }
.hero2-btns { display: grid; gap: 10px; width: 100%; max-width: 420px; margin: 28px 0 24px; }
.hero2-proof { width: 100%; max-width: 620px; }
.hero2-ba { width: 100%; margin-top: 40px; }
.hero2 .ba { max-width: 920px; aspect-ratio: 4 / 5; }
.hero2 .ba-hint { justify-content: center; }
.hero2 .ba-pains { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
@media (min-width: 600px) {
    .hero2-btns { display: flex; justify-content: center; flex-wrap: wrap; max-width: none; width: auto; }
    .hero2 .ba { aspect-ratio: 4 / 4.2; }
}
@media (min-width: 900px) {
    .hero2 { padding-block: 72px 48px; }
    .hero2 .ba { aspect-ratio: 16 / 10; }
    .hero2 .ba-panel { padding: 56px 36px 28px; }
    .hero2 .paper { max-width: 340px; margin-left: 4%; }
    .hero2 .ba-pains { justify-content: flex-start; }
}
.m-day-chip { font: 700 10px var(--display); letter-spacing: .06em; text-transform: uppercase; background: rgba(34,197,94,.18); color: #86efac; border-radius: 999px; padding: 4px 9px; }
.dmenu .m-head { align-items: center; }
