/* ============================================================
   TopoAPP — Landing Page CSS
   Mobile-first | Paleta cálida del topo
   ============================================================ */

:root {
    --lp:        #D96A2B;   /* naranja primario */
    --lp-dark:   #BF5A1F;   /* hover */
    --lp-light:  #F5A05A;   /* secundario */
    --lp-warm:   #FDF0E6;   /* fondo cálido */
    --lp-text:   #2C1A0E;
    --lp-muted:  #7A5C44;
    --lp-border: #EAD9CC;
    --wa:        #25D366;
    --wa-dark:   #1ebe5d;
    --radius:    14px;
    --shadow:    0 4px 20px rgba(180,100,40,.13);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--lp-text);
    background: #fff;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ── Botones globales ─────────────────────────────────────── */
.ld-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--lp);
    color: #fff;
    border: 2px solid var(--lp);
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.ld-btn-primary:hover { background: var(--lp-dark); border-color: var(--lp-dark); color: #fff; transform: translateY(-1px); }

.ld-btn-ghost {
    display: inline-flex;
    align-items: center;
    color: var(--lp-text);
    border: 2px solid var(--lp-border);
    border-radius: 50px;
    padding: 9px 20px;
    font-weight: 500;
    font-size: .9rem;
    text-decoration: none;
    transition: border-color .2s;
}
.ld-btn-ghost:hover { border-color: var(--lp); color: var(--lp); }

.ld-btn-wa {
    display: inline-flex;
    align-items: center;
    background: var(--wa);
    color: #fff;
    border: 2px solid var(--wa);
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.ld-btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; transform: translateY(-1px); }

.ld-btn-lg { padding: 14px 30px; font-size: 1.05rem; }

/* ── Navbar ───────────────────────────────────────────────── */
.ld-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.ld-nav--scrolled {
    border-color: var(--lp-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.ld-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.ld-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--lp-text);
    flex-shrink: 0;
}
.ld-brand--footer { color: #fff; }
.ld-brand-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.ld-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    margin-left: 16px;
}
.ld-nav-links a {
    text-decoration: none;
    color: var(--lp-muted);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}
.ld-nav-links a:hover { color: var(--lp); }

.ld-nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* ── Hero ─────────────────────────────────────────────────── */
.ld-hero {
    padding: 120px 0 80px;
    background: linear-gradient(160deg, #fff 50%, var(--lp-warm) 100%);
    overflow: hidden;
}

.ld-badge-top {
    display: inline-flex;
    align-items: center;
    background: var(--lp-warm);
    color: var(--lp);
    border: 1px solid #F5C49E;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.ld-h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--lp-text);
}
.ld-highlight {
    color: var(--lp);
    position: relative;
}
.ld-highlight::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0; right: 0;
    height: 4px;
    background: var(--lp-light);
    border-radius: 2px;
    opacity: .5;
}

.ld-lead {
    font-size: 1.05rem;
    color: var(--lp-muted);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 500px;
}

.ld-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.ld-hero-footnote {
    font-size: .82rem;
    color: var(--lp-muted);
    margin: 0;
}

/* Mockup teléfono */
.ld-hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ld-mockup-glow {
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(217,106,43,.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.ld-mockup-phone {
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 70px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.1);
    width: 280px;
}

.ld-mockup-screen {
    background: #f8f5f2;
    border-radius: 30px;
    overflow: hidden;
    min-height: 400px;
}

.ld-mock-topbar {
    background: var(--lp);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
}
.ld-mock-dot {
    width: 8px; height: 8px;
    background: rgba(255,255,255,.5);
    border-radius: 50%;
}

.ld-mock-body { padding: 12px; }

.ld-mock-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ld-mock-card--orange { background: var(--lp); }
.ld-mock-card--orange .ld-mock-stat,
.ld-mock-card--orange .ld-mock-label { color: #fff; }

.ld-mock-stat { font-size: 1.4rem; font-weight: 800; color: var(--lp-text); }
.ld-mock-stat--green { color: #10b981; }
.ld-mock-stat--blue  { color: #3b82f6; }
.ld-mock-label { font-size: .7rem; color: var(--lp-muted); text-align: right; }

.ld-mock-item {
    font-size: .72rem;
    color: var(--lp-muted);
    padding: 6px 8px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Sección dolor ────────────────────────────────────────── */
.ld-pain {
    background: var(--lp-text);
    color: #fff;
    padding: 64px 0;
}
.ld-pain-intro {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 32px;
}
.ld-pain-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    height: 100%;
}
.ld-pain-emoji { font-size: 2rem; margin-bottom: 12px; }
.ld-pain-card p { margin: 0; color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.6; }
.ld-pain-solution {
    text-align: center;
    margin-top: 36px;
    font-size: 1.05rem;
    color: var(--lp-light);
}

/* ── Secciones generales ─────────────────────────────────── */
.ld-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.ld-section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.ld-section-header p {
    font-size: 1rem;
    color: var(--lp-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* ── Features ─────────────────────────────────────────────── */
.ld-features {
    padding: 80px 0;
    background: #fff;
}
.ld-feat-card {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}
.ld-feat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.ld-feat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.ld-feat-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.ld-feat-card p {
    font-size: .9rem;
    color: var(--lp-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Cómo funciona ────────────────────────────────────────── */
.ld-how {
    padding: 80px 0;
    background: var(--lp-warm);
}
.ld-step {
    text-align: center;
    padding: 16px;
}
.ld-step-num {
    width: 56px; height: 56px;
    background: var(--lp);
    color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(217,106,43,.35);
}
.ld-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.ld-step p  { font-size: .9rem; color: var(--lp-muted); line-height: 1.6; margin: 0; }

/* ── Testimonios ─────────────────────────────────────────── */
.ld-testimonios {
    padding: 80px 0;
    background: #fff;
}
.ld-testi-card {
    background: var(--lp-warm);
    border: 1px solid var(--lp-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    height: 100%;
}
.ld-testi-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 12px; }
.ld-testi-card p { font-size: .93rem; color: var(--lp-text); line-height: 1.65; margin-bottom: 20px; }
.ld-testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ld-testi-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.ld-testi-author strong { display: block; font-size: .9rem; }
.ld-testi-author span   { font-size: .78rem; color: var(--lp-muted); }

/* ── Precios ─────────────────────────────────────────────── */
.ld-precios {
    padding: 80px 0;
    background: var(--lp-text);
    color: #fff;
}
.ld-precios .ld-section-header h2 { color: #fff; }
.ld-precios .ld-section-header p  { color: rgba(255,255,255,.6); }

.ld-plan-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 32px 24px;
    height: 100%;
    position: relative;
    transition: transform .2s;
}
.ld-plan-card:hover { transform: translateY(-4px); }

.ld-plan-card--popular {
    background: rgba(255,255,255,.11);
    border-color: var(--lp-light);
    transform: translateY(-6px);
}
.ld-plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lp);
    color: #fff;
    border-radius: 50px;
    padding: 3px 16px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.ld-plan-name   { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.ld-plan-price  { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.ld-plan-period { font-size: .82rem; color: rgba(255,255,255,.5); margin-bottom: 24px; }

.ld-plan-features {
    list-style: none;
    padding: 0; margin: 0 0 28px;
}
.ld-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .875rem;
    color: rgba(255,255,255,.85);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.ld-plan-features li:last-child { border-bottom: none; }
.ld-plan-features .bi-check-lg { color: var(--lp-light); flex-shrink: 0; font-size: 1rem; }
.ld-plan-features .ld-no       { color: rgba(255,255,255,.35); }
.ld-plan-features .ld-no .bi-x-lg { color: rgba(255,255,255,.25); flex-shrink: 0; }

.ld-plan-btn {
    display: block;
    text-align: center;
    border-radius: 50px;
    padding: 11px 20px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s;
}
.ld-plan-btn--primary { background: var(--lp); color: #fff; border: 2px solid var(--lp); }
.ld-plan-btn--primary:hover { background: var(--lp-dark); border-color: var(--lp-dark); color: #fff; }
.ld-plan-btn--outline { background: transparent; color: rgba(255,255,255,.8); border: 2px solid rgba(255,255,255,.25); }
.ld-plan-btn--outline:hover { border-color: rgba(255,255,255,.6); color: #fff; }

.ld-precios-nota {
    text-align: center;
    margin-top: 48px;
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.ld-faq { padding: 80px 0; background: #fff; }

.ld-acc-item {
    border: 1px solid var(--lp-border) !important;
    border-radius: var(--radius) !important;
    margin-bottom: 10px;
    overflow: hidden;
}
.ld-acc-btn {
    font-weight: 600;
    font-size: .95rem;
    color: var(--lp-text) !important;
    background: #fff !important;
    padding: 18px 20px;
}
.ld-acc-btn:not(.collapsed) { color: var(--lp) !important; }
.ld-acc-btn::after { filter: none; }
.ld-acc-btn:not(.collapsed)::after { color: var(--lp); }
.ld-acc-body {
    font-size: .9rem;
    color: var(--lp-muted);
    line-height: 1.65;
    padding: 0 20px 18px;
    background: #fff;
}

/* ── CTA Final ───────────────────────────────────────────── */
.ld-cta-final {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--lp) 0%, #F5A05A 100%);
}
.ld-cta-final-inner {
    text-align: center;
    color: #fff;
}
.ld-cta-final h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.ld-cta-final p {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 32px;
    line-height: 1.6;
}
.ld-cta-final-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.ld-cta-final .ld-btn-primary {
    background: #fff;
    color: var(--lp);
    border-color: #fff;
}
.ld-cta-final .ld-btn-primary:hover {
    background: rgba(255,255,255,.9);
    color: var(--lp-dark);
    border-color: rgba(255,255,255,.9);
}

/* ── Footer ─────────────────────────────────────────────── */
.ld-footer {
    background: var(--lp-text);
    color: rgba(255,255,255,.75);
    padding: 60px 0 24px;
}
.ld-footer-tagline {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    margin: 10px 0 14px;
}
.ld-footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wa);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
}
.ld-footer-wa:hover { color: var(--wa-dark); }
.ld-footer-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.4);
    margin-bottom: 14px;
}
.ld-footer-links {
    list-style: none;
    padding: 0; margin: 0;
}
.ld-footer-links li { margin-bottom: 9px; }
.ld-footer-links a {
    text-decoration: none;
    color: rgba(255,255,255,.65);
    font-size: .875rem;
    transition: color .2s;
}
.ld-footer-links a:hover { color: var(--lp-light); }
.ld-footer-bottom {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}
.ld-footer-made a { color: rgba(255,255,255,.35); text-decoration: none; }
.ld-footer-made a:hover { color: var(--lp-light); }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ld-hero        { padding: 90px 0 60px; }
    .ld-mockup-phone { width: 240px; }
    .ld-nav-cta .ld-btn-ghost { display: none; }
    .ld-plan-card--popular { transform: none; }
    .ld-footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   Scroll Reveal
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .10s; }
.reveal-delay-2 { transition-delay: .20s; }
.reveal-delay-3 { transition-delay: .30s; }
.reveal-delay-4 { transition-delay: .40s; }
.reveal-delay-5 { transition-delay: .50s; }
.reveal-delay-6 { transition-delay: .60s; }

/* ============================================================
   Barra de estadísticas
   ============================================================ */
.ld-stats-bar {
    background: var(--lp-warm);
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
    padding: 28px 20px;
}
.ld-stats-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 48px;
    max-width: 860px;
    margin: 0 auto;
}
.ld-stat-item { text-align: center; }
.ld-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--lp);
    line-height: 1;
    display: block;
    min-width: 80px;
}
.ld-stat-label {
    font-size: .75rem;
    color: var(--lp-muted);
    font-weight: 500;
    margin-top: 5px;
    display: block;
}

/* ============================================================
   Floating CTA (aparece al scrollear)
   ============================================================ */
.ld-float-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(90px);
    z-index: 800;
    background: var(--lp);
    color: #fff;
    border-radius: 50px;
    padding: 14px 30px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 28px rgba(217,106,43,.5);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s ease, background .2s;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.ld-float-cta.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.ld-float-cta:hover { background: var(--lp-dark); color: #fff; }

/* ============================================================
   Mobile menu hamburger
   ============================================================ */
.ld-burger {
    display: none;
    background: none;
    border: 2px solid var(--lp-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px 10px;
    color: var(--lp-text);
    font-size: 1.1rem;
    line-height: 1;
    margin-left: auto;
    transition: border-color .2s;
}
.ld-burger:hover { border-color: var(--lp); color: var(--lp); }

.ld-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44,26,14,.97);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.ld-mobile-menu.open { display: flex; }
.ld-mobile-menu a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    opacity: .85;
    transition: opacity .2s, color .2s;
}
.ld-mobile-menu a:hover { opacity: 1; color: var(--lp-light); }
.ld-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.ld-mobile-close:hover { color: #fff; }

/* ============================================================
   Trust badges
   ============================================================ */
.ld-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 24px;
    margin-top: 20px;
}
.ld-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--lp-muted);
    font-weight: 500;
}
.ld-trust-item i { color: var(--lp); font-size: .9rem; }

/* ============================================================
   Wave / divisor SVG
   ============================================================ */
.ld-wave-wrap {
    line-height: 0;
    overflow: hidden;
}
.ld-wave-wrap svg { display: block; width: 100%; }

/* ============================================================
   Marquee de features (banda animada)
   ============================================================ */
.ld-marquee-wrap {
    background: var(--lp);
    overflow: hidden;
    padding: 12px 0;
    white-space: nowrap;
}
.ld-marquee-track {
    display: inline-flex;
    gap: 0;
    animation: ld-marquee 28s linear infinite;
}
.ld-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.9);
    font-size: .82rem;
    font-weight: 600;
    padding: 0 28px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.ld-marquee-item i { color: rgba(255,255,255,.6); font-size: .75rem; }
@keyframes ld-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   Mockup — animación al entrar
   ============================================================ */
.ld-mockup-phone {
    animation: ld-phone-float 4s ease-in-out infinite;
}
@keyframes ld-phone-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ============================================================
   Mejoras Mobile adicionales
   ============================================================ */
@media (max-width: 768px) {
    .ld-burger { display: flex; align-items: center; }
    .ld-trust-row { justify-content: center; }
    .ld-stats-inner { gap: 16px 32px; }
    .ld-stat-number { font-size: 1.6rem; }
    .ld-float-cta { font-size: .88rem; padding: 12px 24px; bottom: 16px; }
    .ld-marquee-item { font-size: .78rem; }
}
