/* ───────────── Base ───────────── */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-roman.var.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --primary: #0695d6;
    --primary-dark: #0577ab;
    --primary-soft: #e6f4fb;
    --navy: #04223a;
    --navy-2: #0b3352;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-alt: #f6f9fc;
    --green: #16a34a;
    --green-soft: #dcfce7;
    --amber: #b45309;
    --amber-soft: #fef3c7;
    --red: #dc2626;
    --red-soft: #fee2e2;
    --whatsapp: #25d366;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
    --shadow-lg: 0 30px 60px -20px rgba(4, 34, 58, .35);
    --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid rgba(6, 149, 214, .5); outline-offset: 2px; }

.eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: .8rem;
}

/* ───────────── Botones ───────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.4em;
    border-radius: 10px; border: 1.5px solid transparent;
    font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(6, 149, 214, .7); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.btn.block { display: flex; width: 100%; }
.btn-whatsapp { background: var(--whatsapp); color: #06381c; }
.btn-whatsapp:hover { background: #1fbe5a; }

/* ───────────── Encabezado ───────────── */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 23, 42, .2); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; }
.brand-tagline { font-size: .78rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem; }
.main-nav a:not(.btn):hover { color: var(--primary-dark); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────── Portada ───────────── */

.hero {
    position: relative;
    padding: 72px 0 96px;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(6, 149, 214, .14), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(4, 34, 58, .06), transparent 60%),
        linear-gradient(180deg, #f8fbfe, #fff);
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: var(--muted); }
.hero-points li::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 6px; }

/* ───────────── Maquetas (comunes) ───────────── */

.chip {
    display: inline-block; font-style: normal; font-size: .72rem; font-weight: 650;
    padding: .2em .65em; border-radius: 999px; white-space: nowrap;
}
.chip-green { background: var(--green-soft); color: #166534; }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-red { background: var(--red-soft); color: #b91c1c; }
.chip-gray { background: #f1f5f9; color: var(--muted); }

.mini-btn {
    display: inline-block; font-size: .74rem; font-weight: 650;
    background: var(--primary); color: #fff; padding: .45em .9em; border-radius: 7px; white-space: nowrap;
}
.mini-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.mini-btn.disabled { background: #e2e8f0; color: var(--muted); }
.mini-btn.block { display: block; text-align: center; }
.muted { color: var(--muted); }

.mock-window {
    background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 23, 42, .08); overflow: hidden;
    transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
    font-size: 13px; line-height: 1.4;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-bar > span:nth-child(1) { background: #f87171; }
.mock-bar > span:nth-child(2) { background: #fbbf24; }
.mock-bar > span:nth-child(3) { background: #34d399; }
.mock-url { margin-left: 12px; flex: 1; background: #fff; border-radius: 6px; padding: 3px 10px; color: var(--muted); font-size: 11.5px; }
.mock-app { display: grid; grid-template-columns: 150px 1fr; min-height: 380px; }
.mock-side { background: var(--navy); color: #cbd5e1; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.mock-side i { font-style: normal; padding: 7px 10px; border-radius: 7px; font-size: 12px; }
.mock-side i.on { background: rgba(6, 149, 214, .25); color: #fff; }
.mock-logo { display: flex; align-items: center; gap: 8px; color: #fff; margin: 0 4px 12px; }
.mock-logo img { width: 24px; height: 24px; border-radius: 6px; }
.mock-main { padding: 16px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 12px; }
.mock-title { font-weight: 750; color: var(--ink); font-size: 15px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.mock-kpis small { display: block; color: var(--muted); font-size: 10.5px; }
.mock-kpis strong { font-size: 20px; color: var(--ink); }
.mock-kpis strong.warn { color: var(--red); }
.mock-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.mock-card-title { font-weight: 700; color: var(--ink); font-size: 12.5px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mock-alert { background: var(--amber-soft); color: #92400e; border-radius: 7px; padding: 6px 9px; font-size: 11.5px; }
.mock-actions { display: flex; justify-content: flex-end; gap: 6px; }

/* ───────────── Secciones ───────────── */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-sub { font-size: 1.12rem; color: var(--muted); margin-top: .6em; }

/* Dolores */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; position: relative;
}
.pain::before {
    content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px;
    background: linear-gradient(var(--red), #f97316); border-radius: 0 3px 3px 0;
}
.pain p { color: var(--muted); margin: 0; }

/* Funciones */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.feature.reverse .feature-copy { order: 2; }
.feature-tag {
    display: inline-block; font-size: .8rem; font-weight: 700; color: var(--primary-dark);
    background: var(--primary-soft); padding: .3em .8em; border-radius: 999px; margin-bottom: 14px;
}
.feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 750; }
.feature-copy > p { font-size: 1.06rem; }
.note { font-size: .95rem; color: var(--muted); font-style: italic; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
    content: ''; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2316a34a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks b { color: var(--ink); }
.checks.columns { grid-template-columns: 1fr 1fr; gap: 12px 32px; }

.feature-visual { display: flex; justify-content: center; }
.mock-panel, .mock-doc {
    width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; font-size: 14px; line-height: 1.45;
}
.mock-panel-title { font-weight: 750; color: var(--ink); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mock-panel-title .muted { font-weight: 600; font-size: 13px; }
.subject { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.subject b { color: var(--ink); display: block; }
.subject small { color: var(--muted); font-size: 12.5px; }
.subject .ok { color: var(--green); font-weight: 600; }
.subject .no { color: var(--red); font-weight: 600; }

.mock-doc { font-family: Georgia, 'Times New Roman', serif; }
.doc-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 10px; }
.doc-head b { color: var(--ink); letter-spacing: .04em; display: block; }
.doc-head small, .doc-num small { display: block; color: var(--muted); font-size: 12px; }
.doc-num { text-align: right; font-weight: 700; color: var(--ink); }
.mock-doc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mock-doc th, .mock-doc td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
.mock-doc th { color: var(--muted); font-weight: 600; font-size: 12px; }
.mock-doc td:last-child, .mock-doc th:last-child { text-align: right; }
.doc-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-family: 'Inter', system-ui, sans-serif; }
.doc-foot small { display: block; color: var(--muted); font-size: 11.5px; }
.doc-foot b { font-size: 12.5px; color: var(--ink); }
.doc-foot .chip { margin-left: auto; }
.qr { width: 56px; height: 56px; flex: none; }

.fee { display: grid; grid-template-columns: 1fr auto 90px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.fee .chip { justify-self: end; }
.fee-pay { display: flex; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--line); }
.fee.receipt { grid-template-columns: 1fr auto; color: var(--muted); font-size: 13px; }

.mock-phone {
    width: 280px; background: var(--ink); border-radius: 36px; padding: 12px; box-shadow: var(--shadow-lg); position: relative;
}
.phone-notch { width: 90px; height: 20px; background: var(--ink); border-radius: 0 0 14px 14px; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1; }
.phone-screen { background: var(--bg-alt); border-radius: 26px; padding: 38px 16px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.4; min-height: 440px; }
.phone-screen > b { font-size: 16px; color: var(--ink); }
.live { color: var(--red); font-weight: 700; font-size: 12px; }
.phone-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.phone-card b { color: var(--ink); }
.phone-card small { color: var(--muted); }

.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.more { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.more h3 { font-size: 1.08rem; }
.more p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Roles */
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.role { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.role-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.role ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .96rem; display: grid; gap: 6px; }

/* Por qué */
.section-dark { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #cbd5e1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #7dd3fc; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 26px; }
.why p { margin: 0; color: #b6c4d4; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; position: relative; }
.steps li { position: relative; }
.steps li:not(:last-child)::after {
    content: ''; position: absolute; top: 24px; left: 64px; right: -12px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step-num {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--primary); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px;
    box-shadow: 0 0 0 6px var(--primary-soft);
}
.steps p { color: var(--muted); margin: 0; }

/* Precios */
.launch {
    max-width: 680px; margin: 0 auto 28px; text-align: center;
    background: linear-gradient(90deg, #fff7ed, #fef3c7); border: 1px solid #fcd34d;
    color: #78350f; padding: 14px 20px; border-radius: 12px;
}
.billing-toggle { display: flex; justify-content: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; margin: 0 auto 36px; }
.billing-toggle button { font: inherit; font-weight: 650; font-size: .95rem; border: 0; background: none; padding: .6em 1.2em; border-radius: 999px; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle button.active { background: var(--navy); color: #fff; }
.save { font-size: .72rem; background: var(--green-soft); color: #166534; padding: .15em .6em; border-radius: 999px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 24px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 20px 40px -20px rgba(6, 149, 214, .45); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: .3em .9em; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.3rem; margin-bottom: .2em; }
.plan-for { color: var(--muted); font-size: .95rem; margin-bottom: 1.2em; }
.price { display: flex; align-items: baseline; gap: 2px; color: var(--ink); margin-bottom: .3em; }
.price .currency { font-size: 1.3rem; font-weight: 700; }
.price [data-price] { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; }
.price .per { color: var(--muted); font-weight: 600; margin-left: 4px; }
.price-custom { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.price-note { font-size: .88rem; color: var(--muted); min-height: 1.5em; }
.plan .btn { margin-top: auto; }

.included { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; margin-top: 28px; }
.included h3 { margin-bottom: 1em; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.extra { background: #fff; border: 1px dashed #cbd5e1; border-radius: 18px; padding: 26px 28px; }
.extra p:last-child { margin: 0; color: var(--muted); }
.extra-price { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: .4em; }
.extra-price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.fine-print { text-align: center; color: var(--muted); font-size: .9rem; margin: 28px 0 0; }

/* Preguntas */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 650; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; font-weight: 400; color: var(--primary); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--text); }

/* Contacto */
.section-contact { background: linear-gradient(160deg, var(--navy), #063a5e); color: #cbd5e1; }
.section-contact h2 { color: #fff; }
.section-contact .eyebrow { color: #7dd3fc; }
.section-contact .checks li { color: #e2e8f0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy > p { font-size: 1.1rem; }
.response-time { color: #94a3b8; font-size: .95rem !important; }

.lead-form { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
    font: inherit; font-size: .98rem; color: var(--ink);
    padding: .7em .85em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
    transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(6, 149, 214, .15); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.error { color: var(--red); font-size: .84rem; margin: 0; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-legal { font-size: .84rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* Pie */
.site-footer { background: #021626; color: #94a3b8; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: #94a3b8; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.brand-footer { color: #fff !important; margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding-top: 24px; font-size: .88rem; }
.footer-bottom a { color: #94a3b8; }

.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6);
    transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* Aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ───────────── Páginas internas (legales, gracias) ───────────── */

.page { padding: 64px 0 96px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page .updated { color: var(--muted); }
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 36px; margin: 0 auto 20px; }

/* ───────────── Responsive ───────────── */

@media (max-width: 1080px) {
    .roles-grid, .plans { grid-template-columns: repeat(2, 1fr); }
    .plans { gap: 28px 20px; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
    .steps li::after { display: none; }
}

@media (max-width: 920px) {
    :root { --header-h: 62px; }
    .menu-toggle { display: block; }
    .brand-name { font-size: 1.35rem; }
    .brand-tagline { font-size: .72rem; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    }
    .main-nav.open { transform: none; opacity: 1; visibility: visible; }
    .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
    .main-nav .btn { margin-top: 14px; padding: .85em; }

    .hero { padding: 48px 0 72px; }
    .hero-grid, .feature, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature.reverse .feature-copy { order: 0; }
    .mock-window { transform: none; }
    .pain-grid, .more-grid, .why-grid { grid-template-columns: 1fr 1fr; }
    .extras { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 72px 0; }
    .feature { margin-bottom: 72px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .container, .container.narrow { width: calc(100% - 32px); }
    .lead { font-size: 1.08rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .mock-app { grid-template-columns: 1fr; min-height: 0; }
    .mock-side { display: none; }
    .mock-kpis strong { font-size: 17px; }
    .pain-grid, .more-grid, .why-grid, .roles-grid, .plans, .steps, .extras, .checks.columns, .form-grid { grid-template-columns: 1fr; }
    .section-head { margin-bottom: 40px; }
    .billing-toggle { max-width: 100%; }
    .billing-toggle button { padding: .55em .75em; font-size: .88rem; gap: 6px; }
    .lead-form { padding: 24px 20px; }
    .included, .extra { padding: 24px 20px; }
    .fee { grid-template-columns: 1fr auto auto; gap: 8px; font-size: 13px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .whatsapp-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

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

/* Documentos legales */
.legal { font-size: 1rem; }
.legal .container { max-width: 760px; }
.legal-index { display: flex; flex-direction: column; gap: 6px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 8px 0 8px; }
.legal-doc { padding-top: 32px; }
.legal-doc + .legal-doc { border-top: 1px solid var(--line); margin-top: 40px; }
.legal-doc .legal-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .2em; }
.legal-doc h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.legal-doc h1:not(:first-child) { font-size: 1.5rem; margin-top: 2em; padding-top: 1.2em; border-top: 1px dashed var(--line); }
.legal-doc h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal-doc ul { padding-left: 1.2em; display: grid; gap: 4px; margin: 0 0 1em; }
.legal-doc p, .legal-doc li { color: var(--text); }
.legal .header-inner .btn { margin-left: auto; }

/* Video */
.section-video { padding-top: 72px; }
.video-frame { max-width: 1040px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(15, 23, 42, .08); background: #04223a; aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 18px 0 0; }
