:root {
    --bg: #f5f8ff;
    --surface: #ffffff;
    --surface-soft: #f0f7ff;
    --text: #0f172a;
    --muted: #53657d;
    --line: #d7e3f4;
    --primary: #0d6efd;
    --primary-dark: #0757cc;
    --accent: #10b981;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 18px 42px rgba(15, 23, 42, 0.07);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1180px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 18%, rgba(13,110,253,.12), transparent 22%),
        radial-gradient(circle at 90% 8%, rgba(14,165,233,.12), transparent 24%),
        radial-gradient(circle at 75% 82%, rgba(16,185,129,.08), transparent 24%);
    z-index: -1;
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(245,248,255,.90);
    border-bottom: 1px solid rgba(215,227,244,.75);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 14px 28px rgba(13,110,253,.28);
}

.brand-text { font-size: 1.05rem; white-space: nowrap; }

.main-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.main-nav a {
    color: var(--muted);
    font-weight: 700;
    font-size: .94rem;
}

.main-nav a:hover { color: var(--primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn.full { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: #fff;
    box-shadow: 0 16px 34px rgba(13,110,253,.26);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1d4ed8);
    box-shadow: 0 20px 36px rgba(13,110,253,.30);
}

.btn-secondary,
.btn-ghost {
    background: rgba(255,255,255,.92);
    color: var(--text);
    border-color: var(--line);
}

.btn-secondary:hover,
.btn-ghost:hover {
    border-color: #b7d2f8;
    box-shadow: var(--shadow-soft);
}

.btn-big {
    min-height: 58px;
    padding: 0 26px;
}

.hero {
    padding: 90px 0 78px;
    background:
        linear-gradient(120deg, rgba(255,255,255,.24), rgba(227,242,255,.45)),
        var(--bg);
    border-bottom: 1px solid rgba(215,227,244,.7);
}

.hero-grid,
.problem-grid,
.split-grid,
.contact-grid {
    display: grid;
    gap: 34px;
}

.hero-grid {
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(13,110,253,.09);
    color: var(--primary);
    font-weight: 900;
    font-size: .82rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.contact-section h2 {
    margin: 18px 0 16px;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.hero-copy h1 {
    font-size: clamp(2.65rem, 5.2vw, 5.2rem);
    max-width: 760px;
}

.hero-lead,
.section-head p,
.contact-section p {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 720px;
}

.hero-actions,
.hero-points,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions { margin-top: 30px; }

.hero-points {
    margin-top: 22px;
    color: var(--muted);
    font-weight: 800;
}

.hero-points span {
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(215,227,244,.9);
    box-shadow: 0 8px 22px rgba(15,23,42,.05);
}

.hero-card { min-width: 0; }

.product-preview {
    width: min(620px, 100%);
    margin: 0 auto;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(183,210,248,.95);
    border-radius: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: floaty 5.6s ease-in-out infinite;
}

@keyframes floaty {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.preview-top {
    display: flex;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(248,251,255,.8);
}

.preview-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.preview-body {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr);
    min-height: 440px;
}

.preview-sidebar {
    background: linear-gradient(180deg, #eaf4ff, #f5faff);
    border-right: 1px solid var(--line);
    padding: 22px 16px;
}

.preview-logo {
    font-weight: 900;
    color: #154ea8;
    margin-bottom: 18px;
}

.preview-menu {
    padding: 12px 13px;
    border-radius: 13px;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 8px;
}

.preview-menu.active {
    background: #dbeafe;
    color: var(--primary);
}

.preview-content {
    padding: 22px;
    min-width: 0;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.preview-stats div,
.preview-card,
.message-preview {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

.preview-stats strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 6px;
}

.preview-stats small,
.turno-line small,
.preview-card-head span,
.message-preview p {
    color: var(--muted);
}

.preview-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.turno-line {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid #e8eef8;
}

.turno-line:first-of-type { border-top: 0; }

.turno-line span {
    color: var(--primary);
    font-weight: 900;
}

.turno-line small { display: block; }

.message-preview {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    margin-top: 14px;
    background: linear-gradient(135deg,#ecfdf5,#fff);
    border-color: #bbf7d0;
}

.message-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #fff;
    font-weight: 900;
}

.message-preview p { margin: 4px 0 0; }

.section {
    padding: 86px 0;
    overflow-x: clip;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(238,246,255,.84));
    border-top: 1px solid rgba(215,227,244,.75);
    border-bottom: 1px solid rgba(215,227,244,.75);
}

.section-head {
    max-width: 820px;
    margin-bottom: 32px;
}

.grid {
    display: grid;
    gap: 20px;
}

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card,
.form-card,
.info-box,
.pricing-note {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    min-width: 0;
}

.card {
    padding: 26px;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 56px rgba(15,23,42,.11);
    border-color: #bbd4fb;
}

.problem-grid {
    grid-template-columns: .95fr 1.05fr;
    align-items: center;
}

.pain-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.pain-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.pain-item span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 18px;
}

.pain-item strong {
    display: block;
    font-size: 1.05rem;
}

.icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.feature-card h3,
.plan-card h3,
.faq-card h3,
.list-card h3,
.steps-card h3,
.mini-card h3 {
    margin-top: 0;
}

.feature-card p,
.mini-card p,
.plan-card p,
.faq-card p,
.step-item p,
.list-card li,
.info-box span {
    color: var(--muted);
}

.split-grid {
    grid-template-columns: 1fr 1fr;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 900;
}

.step-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid #e6edf8;
}

.step-item:first-of-type { border-top: 0; }

.step-item span {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#dbeafe,#e0f2fe);
    color: var(--primary);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(13,110,253,.16);
}

.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 22px;
    display: grid;
    gap: 10px;
    color: var(--muted);
}

.plan-card li::before {
    content: '•';
    color: var(--primary);
    margin-right: 8px;
    font-weight: 900;
}

.plan-tag {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 900;
    font-size: .8rem;
    margin-bottom: 10px;
    max-width: max-content;
}

.plan-price {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    margin: 10px 0 18px;
    color: #101827;
    letter-spacing: -.04em;
}

.plan-price small {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
}

.plan-btn-bottom { margin-top: auto; }

.plan-card.featured {
    border-color: rgba(13,110,253,.45);
    background: linear-gradient(180deg, rgba(239,246,255,.92), rgba(255,255,255,.98));
    transform: translateY(-8px);
}

.plan-card.featured .plan-price { color: var(--primary); }

.pricing-note {
    margin-top: 28px;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.96));
}

.pricing-note div {
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2ecfb;
}

.pricing-note strong,
.pricing-note span {
    display: block;
}

.pricing-note strong {
    margin-bottom: 5px;
}

.pricing-note span {
    color: var(--muted);
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-grid {
    grid-template-columns: 1fr .95fr;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.info-box { padding: 18px; }

.info-box strong {
    display: block;
    margin-bottom: 6px;
}

.form-card { padding: 26px; }

.contact-form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 800;
    font-size: .94rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 15px;
    font: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: .22s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(147,197,253,.22);
    transform: translateY(-1px);
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.alert.success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.site-footer {
    padding: 28px 0 42px;
    border-top: 1px solid rgba(215,227,244,.75);
    background: #f8fbff;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: var(--muted);
    font-weight: 700;
}

.footer-links a:hover { color: var(--primary); }

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.from-left { transform: translateX(-38px); }
.reveal.from-right { transform: translateX(38px); }
.reveal.delay-1 { transition-delay: .14s; }
.reveal.delay-2 { transition-delay: .24s; }

.reveal.is-visible {
    opacity: 1;
    transform: translate(0,0);
}

@media (max-width: 1080px) {
    .hero-grid,
    .split-grid,
    .contact-grid,
    .cards-3,
    .cards-4,
    .problem-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-note {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-wrap {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 18px;
        background: rgba(255,255,255,.98);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .main-nav.open { display: flex; }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 10px;
    }

    .nav-actions .btn {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-grid,
    .split-grid,
    .contact-grid,
    .cards-3,
    .cards-4,
    .faq-grid,
    .problem-grid,
    .pain-panel {
        grid-template-columns: 1fr;
    }

    .preview-body {
        grid-template-columns: 1fr;
    }

    .preview-sidebar {
        display: none;
    }

    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .section,
    .hero {
        padding: 68px 0 54px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    .hero-copy h1 {
        font-size: 2.28rem;
    }

    .preview-stats {
        grid-template-columns: 1fr;
    }

    .plan-price {
        font-size: 34px;
    }

    .btn,
    .menu-toggle {
        min-height: 48px;
    }

    .card,
    .form-card,
    .info-box,
    .pricing-note {
        padding: 18px;
    }

    .nav-actions {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        width: 100%;
        margin-left: 0;
    }

    .brand {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-points {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-points span {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* ===== BLOQUE WHATSAPP OFICIAL ===== */
.whatsapp-official-section {
    padding-top: 40px;
}

.official-box {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 46px;
    background:
        radial-gradient(circle at 92% 10%, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(135deg, #0d6efd, #1d4ed8 60%, #0f3f9e);
    color: #fff;
    box-shadow: 0 30px 70px rgba(13, 110, 253, .28);
}

.official-box::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: -70px;
    bottom: -90px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}

.official-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.official-eyebrow {
    background: rgba(255,255,255,.16);
    color: #fff;
    margin-bottom: 18px;
}

.official-box h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.official-box p {
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: 1.08rem;
    line-height: 1.75;
}

.official-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.official-item {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 22px;
    padding: 22px;
    backdrop-filter: blur(12px);
}

.official-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, .95);
    color: #fff;
    font-weight: 900;
    margin-bottom: 14px;
}

.official-item strong {
    display: block;
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.official-item p {
    font-size: .96rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .official-box {
        padding: 30px;
    }

    .official-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== SECCIÓN UN SOLO PLAN ===== */
.single-plan-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.single-plan-card {
    width: 100%;
    max-width: 760px;
    text-align: center;
    padding: 34px;
}

.single-plan-card .plan-price {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    margin: 16px 0 20px;
}

.single-plan-text {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 24px;
}

.single-plan-card ul {
    text-align: left;
    max-width: 560px;
    margin: 26px auto 28px;
}

.single-plan-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0 10px;
}

.single-plan-highlights div {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 18px 14px;
    box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

.single-plan-highlights strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 8px;
}

.single-plan-highlights span {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-size: .92rem;
}

@media (max-width: 700px) {
    .single-plan-card {
        padding: 22px;
    }

    .single-plan-highlights {
        grid-template-columns: 1fr;
    }
}
