/* ============================
   e-gym Landing Page
   Dark mode first, minimal, fast
   ============================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; }

/* ---------- Theme Tokens ---------- */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --accent: #10b981;
    --accent-dark: #059669;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1120px;
}

/* DARK (default) */
html.theme-dark, html[data-theme="dark"] {
    --bg: #0b0f14;
    --bg-alt: #111820;
    --surface: #161d28;
    --surface-hover: #1c2536;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-heading: #f1f5f9;
    --border: #1e293b;
    --border-hover: #334155;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --card-bg: #131a24;
    --nav-bg: rgba(11,15,20,0.88);
    --hero-gradient: linear-gradient(180deg, #0d1a1f 0%, #0b0f14 60%);
    --phone-bg: #1a2332;
    --phone-item: #1e293b;
    --phone-bar-bg: #131a24;
    --pricing-featured-bg: linear-gradient(145deg, #0f2027 0%, #0b1117 100%);
    --pricing-featured-border: var(--primary);
    --lead-bg: linear-gradient(135deg, #0f2027 0%, #162235 100%);
    --faq-surface: #131a24;
    --cta-final-bg: linear-gradient(180deg, var(--bg) 0%, #0d1a1f 100%);
}

/* LIGHT */
html:not(.theme-dark):not([data-theme="dark"]) {
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --card-bg: #ffffff;
    --nav-bg: rgba(255,255,255,0.88);
    --hero-gradient: linear-gradient(180deg, var(--primary-light) 0%, #ffffff 60%);
    --phone-bg: #f8fafc;
    --phone-item: #ffffff;
    --phone-bar-bg: #ffffff;
    --pricing-featured-bg: #ffffff;
    --pricing-featured-border: var(--primary);
    --lead-bg: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    --faq-surface: #ffffff;
    --cta-final-bg: linear-gradient(180deg, #ffffff 0%, var(--primary-light) 100%);
}

/* Logo toggle */
html.theme-dark .nav-logo-light,
html[data-theme="dark"] .nav-logo-light { display: none; }
html.theme-dark .nav-logo-dark,
html[data-theme="dark"] .nav-logo-dark { display: block; }
html:not(.theme-dark):not([data-theme="dark"]) .nav-logo-dark { display: none; }
html:not(.theme-dark):not([data-theme="dark"]) .nav-logo-light { display: block; }

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 720px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.d-none { display: none !important; }
.w-full { width: 100%; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.justify-center { justify-content: center; }
hr { border: none; border-top: 1px solid var(--border); margin: 0.75rem 0; }

/* ---------- Gradient text ---------- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    border: none; cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    gap: 0.25rem;
    position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-accent:hover { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5); }

.btn-primary-landing {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
html.theme-dark .btn-primary-landing,
html[data-theme="dark"] .btn-primary-landing { color: var(--primary-light); border-color: var(--primary); }
.btn-primary-landing:hover { background: var(--primary); color: #fff; }

.btn-primary-sm {
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}
.btn-primary-sm:hover { background: var(--primary-dark); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}
.btn-ghost:hover { color: var(--primary); background: var(--surface-hover); border-radius: var(--radius); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-full { width: 100%; }
.btn-tag {
    background: rgba(255,255,255,0.25);
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 700;
    margin-left: 0.35rem;
}

/* Pulse glow effect on CTA */
.pulse-glow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.15); }
}

/* Theme toggle */
.btn-theme-toggle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    transition: all var(--transition);
    position: relative;
}
.btn-theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.btn-theme-toggle .fa-sun { display: none; }
.btn-theme-toggle .fa-moon { display: block; }
html.theme-dark .btn-theme-toggle .fa-sun,
html[data-theme="dark"] .btn-theme-toggle .fa-sun { display: block; }
html.theme-dark .btn-theme-toggle .fa-moon,
html[data-theme="dark"] .btn-theme-toggle .fa-moon { display: none; }

/* ---------- Nav ---------- */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.landing-nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 2rem;
}
.nav-brand {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 800; font-size: 1.15rem; color: var(--text-heading);
}
.nav-links { display: none; align-items: center; gap: 0.25rem; }
.nav-links a {
    padding: 0.4rem 0.85rem; border-radius: var(--radius);
    font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
    transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--surface-hover); }
.nav-actions { display: none; align-items: center; gap: 0.5rem; }

.nav-hamburger {
    display: flex; flex-direction: column; gap: 5px; padding: 0.5rem;
    background: none; border: none; cursor: pointer;
}
.nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
    display: none; flex-direction: column; padding: 1rem 1.25rem 1.5rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    padding: 0.75rem 0; font-weight: 500; font-size: 1rem; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border: none; margin-top: 0.5rem; }

/* ---------- Hero ---------- */
.hero {
    padding: 7rem 0 3rem;
    background: var(--hero-gradient);
    overflow: hidden;
    position: relative;
}
.hero-particles {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.08;
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 0.08; }
    90% { opacity: 0.08; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}
.hero-grid {
    display: grid; grid-template-columns: 1fr; gap: 3rem;
    align-items: center; position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 600; color: var(--primary);
    margin-bottom: 1.25rem;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900; color: var(--text-heading);
    margin-bottom: 1rem; letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 1.05rem; color: var(--text-muted);
    max-width: 520px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-sub strong { color: var(--text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-trust {
    display: flex; align-items: center; gap: 0.65rem;
    font-size: 0.8rem; color: var(--text-muted);
}
.hero-trust-avatars { display: flex; }
.avatar-dot {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--bg);
    margin-left: -8px;
}
.avatar-dot:first-child { margin-left: 0; }
.avatar-dot:nth-child(1) { background: #6366f1; }
.avatar-dot:nth-child(2) { background: #f59e0b; }
.avatar-dot:nth-child(3) { background: #ec4899; }
.avatar-dot:nth-child(4) { background: var(--accent); }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-phone {
    width: 260px;
    background: #0f172a;
    border-radius: 32px;
    padding: 12px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05), 0 0 80px rgba(13,148,136,0.15);
    position: relative; z-index: 2;
}
.phone-notch {
    width: 100px; height: 24px;
    background: #0f172a;
    border-radius: 0 0 14px 14px;
    margin: 0 auto;
    position: relative; z-index: 2;
}
.phone-screen {
    background: var(--phone-bg);
    border-radius: 22px;
    padding: 0.5rem 0.85rem 0.85rem;
    min-height: 380px;
    display: flex; flex-direction: column; gap: 0.6rem;
}
.phone-top-bar {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.25rem;
    font-size: 0.7rem; font-weight: 700; color: var(--text-heading);
}
.phone-header {
    display: flex; gap: 0.3rem; justify-content: center; margin-bottom: 0.5rem;
}
.phone-day {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 0.65rem; font-weight: 700;
    color: var(--text-muted);
    background: var(--phone-item);
}
.phone-day.active { background: var(--primary); color: #fff; }
.phone-day.dim { opacity: 0.35; }
.phone-exercise {
    display: flex; align-items: center; gap: 0.6rem;
    background: var(--phone-item);
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}
.phone-ex-icon {
    width: 32px; height: 32px;
    background: rgba(13,148,136,0.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 0.75rem;
}
.phone-ex-info { flex: 1; }
.phone-ex-name { font-size: 0.7rem; font-weight: 600; color: var(--text-heading); }
.phone-ex-meta { font-size: 0.6rem; color: var(--text-muted); }
.phone-ex-check {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem;
    background: var(--accent); color: #fff;
}
.phone-ex-check.pending { background: var(--border); color: var(--text-muted); }
.phone-bar {
    display: flex; justify-content: space-around;
    background: var(--phone-bar-bg);
    border-radius: 14px;
    padding: 0.5rem;
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.phone-bar span {
    font-size: 0.9rem; color: var(--text-muted);
    padding: 0.25rem 0.75rem; border-radius: 8px;
    opacity: 0.4;
}
.phone-bar span.active { color: var(--primary); background: rgba(13,148,136,0.12); opacity: 1; }

/* Phone slide-in animation */
.anim-slide-in {
    opacity: 0;
    transform: translateX(30px);
    animation: slideIn 0.5s ease forwards;
}
@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Floating badges */
.float-badge {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
    white-space: nowrap;
    z-index: 3;
    animation: floatBadge 3s ease-in-out infinite;
}
.float-badge i { margin-right: 0.3rem; }
.float-badge-1 { top: 15%; right: -10px; animation-delay: 0s; }
.float-badge-1 i { color: var(--accent); }
.float-badge-2 { bottom: 30%; left: -15px; animation-delay: 1s; }
.float-badge-2 i { color: #f59e0b; }
.float-badge-3 { top: 55%; right: -20px; animation-delay: 2s; }
.float-badge-3 i { color: #6366f1; }
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-label {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.8rem; font-weight: 700;
    color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.section-label-green { color: var(--accent); }
.section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800; color: var(--text-heading);
    margin-bottom: 0.75rem; letter-spacing: -0.02em;
}
.section-sub {
    font-size: 1rem; color: var(--text-muted);
    max-width: 600px; margin-bottom: 2.5rem; line-height: 1.7;
}
.section-profes { background: var(--bg-alt); }

/* ---------- Features Grid ---------- */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition);
}
.feature-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.feature-icon {
    width: 48px; height: 48px;
    background: rgba(13,148,136,0.12);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary);
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.05rem; font-weight: 700; color: var(--text-heading);
    margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Benefits (Alumnos) ---------- */
.section-alumnos { background: var(--bg); }
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
.benefit-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.benefit-item:hover { border-color: var(--accent); background: var(--surface-hover); }
.benefit-check {
    width: 32px; height: 32px; min-width: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.75rem;
    margin-top: 0.15rem;
}
.benefit-item h4 {
    font-size: 0.95rem; font-weight: 700; color: var(--text-heading);
    margin-bottom: 0.25rem;
}
.benefit-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cta-center { text-align: center; }

/* ---------- Pricing ---------- */
.section-precios { background: var(--bg-alt); }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.pricing-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pricing-featured {
    background: var(--pricing-featured-bg);
    border-color: var(--pricing-featured-border);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(13,148,136,0.1);
}
.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 700;
}
.pricing-header h3 {
    font-size: 1.25rem; font-weight: 800; color: var(--text-heading);
    margin-bottom: 0.5rem;
}
.pricing-price {
    font-size: 2.25rem; font-weight: 900; color: var(--text-heading);
    margin-bottom: 1.5rem;
}
.pricing-price span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.pricing-features { text-align: left; margin-bottom: 1.5rem; }
.pricing-features li {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.5rem 0;
    font-size: 0.9rem; color: var(--text);
    border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border: none; }
.pricing-features li i { color: var(--accent); font-size: 0.75rem; min-width: 16px; }

/* ---------- Testimonios ---------- */
.section-testimonios { background: var(--bg); }
.testimonios-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.testimonio-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}
.testimonio-stars { color: #fbbf24; font-size: 0.85rem; margin-bottom: 0.75rem; display: flex; gap: 0.15rem; }
.testimonio-card > p {
    font-size: 0.95rem; color: var(--text);
    line-height: 1.7; margin-bottom: 1.25rem;
    font-style: italic; opacity: 0.85;
}
.testimonio-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonio-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.8rem;
}
.testimonio-author strong { display: block; font-size: 0.9rem; color: var(--text-heading); }
.testimonio-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Lead ---------- */
.section-lead { padding: 3rem 0; }
.lead-card {
    background: var(--lead-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
}
.lead-content h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; color: #fff; }
.lead-content p { font-size: 0.95rem; opacity: 0.8; margin-bottom: 1.5rem; }
.lead-form-row { display: flex; flex-direction: column; gap: 0.75rem; }
.lead-input {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.9rem; font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}
.lead-input::placeholder { color: rgba(255,255,255,0.5); }
.lead-input:focus { border-color: var(--accent); }
.lead-disclaimer {
    font-size: 0.75rem; opacity: 0.5;
    margin-top: 0.75rem;
    display: flex; align-items: center; gap: 0.35rem;
}
.lead-success { text-align: center; }
.lead-success i { font-size: 2.5rem; color: var(--accent); margin-bottom: 0.75rem; }
.lead-success p { font-size: 1rem; }

/* ---------- FAQ ---------- */
.section-faq { background: var(--bg-alt); }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
    background: var(--faq-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item[open] { border-color: var(--primary); }
.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer; color: var(--text-heading);
    list-style: none;
    display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.25rem; font-weight: 300;
    color: var(--text-muted);
    transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '\2212'; color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9rem; color: var(--text-muted); line-height: 1.7;
}

/* ---------- CTA Final ---------- */
.section-cta-final {
    padding: 5rem 0;
    background: var(--cta-final-bg);
}
.section-cta-final h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900; color: var(--text-heading);
    margin-bottom: 0.75rem;
}
.section-cta-final p {
    font-size: 1.05rem; color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.landing-footer {
    background: #070a0f;
    color: rgba(255,255,255,0.6);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { font-size: 0.85rem; margin-top: 0.75rem; line-height: 1.6; max-width: 280px; }
.footer-logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 800; font-size: 1.1rem; color: #fff;
}
.footer-col h4 {
    font-weight: 700; font-size: 0.85rem;
    color: #fff; margin-bottom: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-col a { display: block; font-size: 0.85rem; padding: 0.3rem 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}

/* ---------- Scroll animations ---------- */
[data-anim] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-anim="fade-up"] { transform: translateY(30px); }
[data-anim="fade-right"] { transform: translateX(-40px); }
[data-anim="fade-left"] { transform: translateX(40px); }
[data-anim="pop"] { transform: scale(0.8); }
[data-anim].visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ---------- Counters ---------- */
.counter-animate {
    display: inline-block;
    transition: all 0.3s ease;
}

/* =========================================
   Responsive
   ========================================= */
@media (min-width: 768px) {
    .hero { padding: 8rem 0 4rem; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .hero-phone { width: 280px; }
    .nav-links { display: flex; }
    .nav-actions { display: flex; }
    .nav-hamburger { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonios-grid { grid-template-columns: repeat(3, 1fr); }
    .lead-card { padding: 3rem; }
    .lead-form-row { flex-direction: row; }
    .lead-input { flex: 1; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .section { padding: 5rem 0; }
    .float-badge-1 { right: -30px; }
    .float-badge-2 { left: -30px; }
    .float-badge-3 { right: -40px; }
}

@media (min-width: 1024px) {
    .hero { padding: 9rem 0 5rem; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-phone { width: 300px; }
    .section { padding: 6rem 0; }
    .section-cta-final { padding: 6rem 0; }
}

@media (max-width: 767px) {
    .float-badge { display: none; }
}

/* ---------- Legal Modals ---------- */
.legal-modal-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}
.legal-modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.legal-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.3s ease;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.legal-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.legal-modal-header h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--text-heading);
    margin: 0; display: flex; align-items: center;
}
.legal-modal-header h3 i { color: var(--primary); }
.legal-modal-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-hover);
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    line-height: 1;
}
.legal-modal-close:hover { border-color: var(--primary); color: var(--primary); }
.legal-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.75;
}
.legal-modal-body h4 {
    font-size: 0.95rem; font-weight: 700;
    color: var(--text-heading);
    margin: 1.5rem 0 0.5rem;
}
.legal-modal-body h4:first-of-type { margin-top: 0.75rem; }
.legal-modal-body p { margin-bottom: 0.75rem; color: var(--text-muted); }
.legal-modal-body ul {
    margin: 0 0 0.75rem 0; padding-left: 1.25rem;
    list-style: disc;
}
.legal-modal-body ul li {
    margin-bottom: 0.35rem; color: var(--text-muted);
}
.legal-modal-body strong { color: var(--text); }
.legal-modal-body em { color: var(--text-muted); font-size: 0.85rem; }

/* Custom scrollbar for modal */
.legal-modal-body::-webkit-scrollbar { width: 6px; }
.legal-modal-body::-webkit-scrollbar-track { background: transparent; }
.legal-modal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.legal-modal-body::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Focus visible */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
