/* ═══ RESÉRVAME — EPIC LANDING PAGE ═══ */
/* Design: Dark Luxury SaaS with Lime-Green accent */

:root {
    --bg-deep: #0A0A0B;
    --bg-dark: #111113;
    --bg-card: #18181B;
    --bg-card-hover: #1F1F23;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(164,198,21,0.3);
    --primary: #A4C615;
    --primary-light: #D4F635;
    --primary-dark: #7A9410;
    --text: #F5F5F7;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    --white: #FFFFFF;
    --danger: #EF4444;
    --success: #22C55E;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --shadow-lg: 0 25px 60px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 80px rgba(164,198,21,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-deep: #F3F4F6;
    --bg-dark: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F9FAFB;
    --border: #E5E7EB;
    --border-hover: rgba(164,198,21,0.6);
    --primary: #8CA70F; /* Slightly darker lime for contrast */
    --primary-light: #A4C615;
    --primary-dark: #6F850C;
    --text: #111827;
    --text-muted: #4B5563;
    --text-dim: #6B7280;
    --white: #111827;
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 40px rgba(164,198,21,0.15);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--primary); color: var(--bg-deep); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.section { padding: 120px 0; }
.section-dark { background: var(--bg-dark); }

/* ═══ GRADIENT TEXT ═══ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-first-line {
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

/* ═══ SECTION HEADERS ═══ */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(164,198,21,0.1);
    border: 1px solid rgba(164,198,21,0.2);
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 20px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ═══ BUTTONS ═══ */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary);
    color: var(--bg-deep);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 99px;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(164,198,21,0.3);
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(164,198,21,0.4); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 99px;
    border: 1.5px solid rgba(255,255,255,0.2);
    transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 99px;
    transition: color var(--transition);
}
.btn-ghost:hover { color: var(--primary); }

.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

.btn-icon {
    background: transparent;
    color: var(--text-muted);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.btn-icon:hover { color: var(--primary); background: rgba(164,198,21,0.1); }
.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ═══ NAVBAR ═══ */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}
#navbar.scrolled {
    background: rgba(10,10,11,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
[data-theme="light"] #navbar.scrolled {
    background: rgba(255,255,255,0.9);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--primary);
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-weight: 900; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--white); }

/* Logo dark/light switching */
.logo-img { height: 40px; width: auto; object-fit: contain; }
.logo-dark  { display: block; }
.logo-light { display: none; }
[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: block; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    transition: color var(--transition); position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.hamburger {
    display: none; background: none; padding: 8px;
    flex-direction: column; gap: 5px;
}
.hamburger span {
    width: 22px; height: 2px; background: var(--text);
    transition: all var(--transition);
}

/* ═══ HERO ═══ */
#hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-pattern {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(164,198,21,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164,198,21,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.glow {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.4;
}
.glow-1 { width: 600px; height: 600px; top: -200px; left: 50%; transform: translateX(-50%); background: rgba(164,198,21,0.15); }
.glow-2 { width: 400px; height: 400px; bottom: -100px; right: -100px; background: rgba(164,198,21,0.08); }

.hero-content { text-align: center; position: relative; z-index: 2; max-width: 900px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--primary);
    background: rgba(164,198,21,0.08);
    border: 1px solid rgba(164,198,21,0.2);
    padding: 8px 20px; border-radius: 99px; margin-bottom: 32px;
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(164,198,21,0.6);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

#hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.hero-cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.float-card {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    animation: floatY 6s ease-in-out infinite;
    transition: border-color var(--transition);
}
.float-card:hover { border-color: var(--border-hover); }
.fc-1 { animation-delay: 0s; }
.fc-2 { animation-delay: -2s; }
.fc-3 { animation-delay: -4s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.fc-icon { font-size: 28px; }
.fc-text { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.fc-text strong { color: var(--white); font-size: 18px; font-weight: 800; display: block; }

/* ═══ SOCIAL PROOF ═══ */
#social-proof { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-dark); }
.stats-bar { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--primary);
}
.stat-label { display: block; font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }

/* ═══ PROBLEM ═══ */
.problem-grid { display: flex; align-items: stretch; gap: 32px; justify-content: center; flex-wrap: wrap; }
.problem-card {
    flex: 1; min-width: 300px; max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}
.problem-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.problem-card.pain { border-color: rgba(239,68,68,0.2); }
.problem-card.pain:hover { border-color: rgba(239,68,68,0.4); }
.pc-header { margin-bottom: 24px; }
.pc-badge {
    display: inline-block;
    font-size: 13px; font-weight: 700;
    padding: 6px 14px; border-radius: 99px;
}
.pc-badge.bad { background: rgba(239,68,68,0.1); color: var(--danger); }
.pc-badge.good { background: rgba(164,198,21,0.1); color: var(--primary); }
.pc-list { display: flex; flex-direction: column; gap: 14px; }
.pc-list li { font-size: 15px; color: var(--text-muted); padding-left: 8px; }
.problem-arrow {
    display: flex; align-items: center;
    font-size: 48px; color: var(--primary); font-weight: 300;
}

/* ═══ FEATURES ═══ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(164,198,21,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
    color: var(--primary);
}
.feat-icon i { font-size: 24px; color: var(--primary); }
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 700; margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ═══ STEPS ═══ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card {
    text-align: center; position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    transition: all var(--transition);
}
.step-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.step-num {
    font-family: var(--font-display);
    font-size: 48px; font-weight: 900;
    color: var(--primary); opacity: 0.3;
    margin-bottom: 16px;
}
.step-line {
    position: absolute; top: 50%; right: -16px;
    width: 32px; height: 2px;
    background: linear-gradient(90deg, rgba(164,198,21,0.3), transparent);
}
.step-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-muted); }

/* ═══ VIDEO ═══ */
.video-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.video-wrapper video { width: 100%; display: block; }

/* ═══ TESTIMONIALS ═══ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}
.testimonial-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.tc-stars { color: var(--primary); font-size: 18px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card > p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; font-style: italic; }
.tc-author { display: flex; align-items: center; gap: 12px; }
.tc-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(164,198,21,0.15);
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.tc-author strong { font-size: 14px; color: var(--white); }
.tc-author span { font-size: 12px; color: var(--text-dim); }

/* ═══ PRICING ═══ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}
.price-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.price-card.popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(164,198,21,0.05) 0%, var(--bg-card) 100%);
    transform: scale(1.05);
}
.price-card.popular:hover { transform: scale(1.05) translateY(-4px); }
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: var(--bg-deep);
    font-size: 12px; font-weight: 700;
    padding: 4px 16px; border-radius: 99px;
}
.price-tier {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 700;
    color: var(--text-muted); margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: 0.1em;
}
.price-amount {
    font-family: var(--font-display);
    font-size: 36px; font-weight: 900;
    margin-bottom: 8px;
}
.price-currency { font-size: 20px; font-weight: 600; color: var(--text-muted); }
.price-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 28px; }
.price-features {
    text-align: left; margin-bottom: 28px;
    display: flex; flex-direction: column; gap: 12px;
}
.price-features li { font-size: 14px; color: var(--text-muted); }

/* ═══ FAQ ═══ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-q {
    width: 100%; background: none; border: none;
    color: var(--text); font-size: 16px; font-weight: 600;
    padding: 20px 24px;
    display: flex; justify-content: space-between; align-items: center;
    text-align: left;
    transition: color var(--transition);
}
.faq-q:hover { color: var(--primary); }
.faq-arrow {
    font-size: 24px; font-weight: 300; color: var(--primary);
    transition: transform var(--transition);
    flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 24px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ═══ CTA FINAL ═══ */
.cta-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(164,198,21,0.08) 0%, rgba(164,198,21,0.02) 100%);
    border: 1px solid rgba(164,198,21,0.15);
    border-radius: 24px;
    padding: 80px 40px;
    position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: rgba(164,198,21,0.06);
    filter: blur(100px);
}
.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; margin-bottom: 16px;
    position: relative;
}
.cta-box p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 36px; position: relative; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ═══ FOOTER ═══ */
#footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--text-dim); margin-top: 16px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 4px;
}
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: var(--text-dim); }

/* ═══ MODALS ═══ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    width: 100%; max-width: 460px;
    max-height: 90vh; overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: none; } }

.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.06); border: none;
    width: 32px; height: 32px; border-radius: 50%;
    color: var(--text-muted); font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.modal-card h2 {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 800;
    margin-bottom: 8px;
}
.modal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-group input {
    width: 100%; padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text); font-size: 15px;
    transition: border-color var(--transition);
}
.form-group input::placeholder { color: var(--text-dim); }
.form-group input:focus { border-color: var(--primary); outline: none; background: rgba(164,198,21,0.04); }

/* Uppercase for ID fields */
input[name="usrRut"], 
input[name="Titular_RUT"], 
input[name="Empresa_RUT"] {
    text-transform: uppercase;
}

.form-message { margin-top: 16px; text-align: center; padding: 12px; border-radius: var(--radius-xs); font-size: 14px; display: none; }
.form-message.success { display: block; background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.25); }
.form-message.error { display: block; background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.25); }

/* ── Validation Icons ── */
.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.validation-icon.valid { opacity: 1; color: var(--success); }
.validation-icon.invalid { opacity: 1; color: var(--danger); }
.validation-icon.valid::before { content: '\2713'; font-weight: 800; }
.validation-icon.invalid::before { content: '\00d7'; font-weight: 800; font-size: 18px; }

.mc-field .validation-icon {
    right: 12px;
    top: 50%; /* Adjusted for multi-step form fields */
}

/* ═══ SCROLL REVEAL (Premium Blur-In) ═══ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(6px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ═══ SPOTLIGHT HOVER (Tarjetas) ═══ */
.feature-card::after,
.testimonial-card::after,
.price-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(164, 198, 21, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}
.feature-card:hover::after,
.testimonial-card:hover::after,
.price-card:hover::after {
    opacity: 1;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
[data-theme="light"] ::-webkit-scrollbar-track { background: #F3F4F6; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #CCC; }

/* ═══ BADGE SHIMMER ═══ */
@keyframes badgeShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.hero-badge {
    background: linear-gradient(
        90deg,
        rgba(164,198,21,0.08) 0%,
        rgba(164,198,21,0.15) 25%,
        rgba(164,198,21,0.08) 50%,
        rgba(164,198,21,0.15) 75%,
        rgba(164,198,21,0.08) 100%
    ) !important;
    background-size: 200% auto !important;
    animation: badgeShimmer 4s linear infinite;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .section { padding: 80px 0; }

    /* ── Navbar Mobile ── */
    .nav-links,
    .nav-actions { display: none; }
    .hamburger { display: flex; }

    /* Mobile Menu Panel — single unified dropdown */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 32px rgba(0,0,0,0.4);
        padding: 16px 20px 20px;
        gap: 4px;
        z-index: 999;
    }

    .nav-links.open a {
        font-size: 15px;
        font-weight: 500;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open a:last-child {
        border-bottom: none;
    }

    /* Actions panel — sits right below nav-links */
    .nav-actions.open {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-top: none;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 32px rgba(0,0,0,0.4);
        padding: 14px 20px 20px;
        gap: 10px;
        z-index: 998;
        /* Pushed down below nav-links: 3 links * ~41px each + padding */
        margin-top: 155px;
    }

    .nav-actions.open .lang-selector { flex-shrink: 0; }

    #theme-toggle { margin: 0; }

    .nav-actions.open .btn-outline {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 10px 12px;
        font-size: 14px;
        border: 1.5px solid rgba(255,255,255,0.15);
    }

    .nav-actions.open .btn-primary {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 10px 12px;
        font-size: 14px;
    }

    /* ── Hero CTA buttons side-by-side ── */
    .hero-ctas {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
        padding: 0 8px;
    }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-outline {
        flex: 1;
        max-width: 180px;
        justify-content: center;
        padding: 12px 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* ── Grids ── */
    .features-grid,
    .steps-grid,
    .testimonials-grid,
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.popular { transform: none; }
    .price-card.popular:hover { transform: translateY(-4px); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .problem-arrow { display: none; }
    .problem-grid { flex-direction: column; align-items: center; }
    .hero-cards { flex-direction: column; align-items: center; }
    .stats-bar { gap: 24px; }
    .stat-divider { display: none; }
    .cta-box { padding: 48px 24px; }
}

