/* ═══ 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.warning { opacity: 1; color: #fbbf24; }
.validation-icon.valid::before { content: '\2713'; font-weight: 800; }
.validation-icon.invalid::before { content: '\00d7'; font-weight: 800; font-size: 18px; }
.validation-icon.warning::before { content: '!'; 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; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL CONTRATAR — Resérvame
   Premium multi-step registration modal with logo cropper + PDF upload
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Overlay ─────────────────────────────────────────────────────────────── */
#modal-contratar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.25s ease;
}

#modal-contratar.open {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.mc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 720px;
    height: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#mc-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.mc-header {
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
}

.mc-header-left h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}

.mc-header-left p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}

.mc-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mc-close:hover {
    background: rgba(255, 77, 106, 0.15);
    color: #ff4d6a;
    border-color: rgba(255, 77, 106, 0.3);
}

/* ── Step Indicator ────────────────────────────────────────────────────────── */
.mc-steps {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 1rem 2rem;
    border-bottom: 2px solid rgba(164, 198, 21, 0.1);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.mc-steps::-webkit-scrollbar {
    display: none;
}

.mc-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.25s;
}

.mc-step.active {
    opacity: 1;
}

.mc-step.done {
    opacity: 0.7;
}

.mc-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.25s;
}

.mc-step.active .mc-step-num {
    background: rgba(164, 198, 21, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.mc-step.done .mc-step-num {
    background: rgba(164, 198, 21, 0.1);
    border-color: rgba(164, 198, 21, 0.4);
    color: var(--primary);
}

.mc-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.mc-step.active .mc-step-label {
    color: var(--text);
}

.mc-step.done .mc-step-label {
    color: var(--primary);
}

.mc-step-sep {
    flex: 1;
    min-width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 0.5rem;
}

/* ── Body ─────────────────────────────────────────────────────────────────── */
.mc-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.3) transparent;
}

.mc-body::-webkit-scrollbar {
    width: 4px;
}

.mc-body::-webkit-scrollbar-track {
    background: transparent;
}

.mc-body::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 2px;
}

/* ── Step Panels ──────────────────────────────────────────────────────────── */
.mc-panel {
    display: none;
    animation: panelIn 0.25s ease;
}

.mc-panel.active {
    display: block;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mc-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mc-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(164, 198, 21, 0.15);
}

.mc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 560px) {
    .mc-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ── Form Elements ───────────────────────────────────────────────────────── */
.mc-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.mc-field.full {
    grid-column: 1 / -1;
}

.mc-field label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mc-field label span.req {
    color: #f87171;
    margin-left: 2px;
}

.mc-field input,
.mc-field select,
.mc-field textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    color: #f1f5f9;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

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

.mc-field input:focus,
.mc-field select:focus,
.mc-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(164, 198, 21, 0.08);
}

.mc-field input::placeholder {
    color: #475569;
}

.mc-field select option {
    background: #1e293b;
}

/* ── Logo Upload Area ────────────────────────────────────────────────────── */
.mc-logo-upload {
    margin-bottom: 1.25rem;
}

.mc-drop-zone {
    border: 2px dashed rgba(164, 198, 21, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: rgba(164, 198, 21, 0.03);
    position: relative;
}

.mc-drop-zone:hover,
.mc-drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(164, 198, 21, 0.06);
}

.mc-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.mc-drop-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(164, 198, 21, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--primary);
}

.mc-drop-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.mc-drop-text strong {
    color: var(--primary);
}

.mc-drop-hint {
    font-size: 0.7rem;
    color: #475569;
    margin-top: 0.3rem;
}

/* ── Cropper Container ───────────────────────────────────────────────────── */
.mc-cropper-wrap {
    display: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 1rem;
    background: var(--bg-deep);
}

.mc-cropper-wrap.show {
    display: block;
}

#mc-cropper-canvas {
    width: 100%;
    max-height: 280px;
    display: block;
}

.mc-cropper-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mc-crop-info {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.mc-crop-info strong {
    color: var(--primary);
}

.mc-cropper-actions {
    display: flex;
    gap: 0.5rem;
}

.mc-preview-strip {
    display: none;
    margin-top: 0.75rem;
}

.mc-preview-strip.show {
    display: block;
}

.mc-preview-box {
    width: 100%;
    aspect-ratio: 800 / 220;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(164, 198, 21, 0.25);
    background: #000;
}

.mc-preview-box canvas,
.mc-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover to contain to ensure full logo is visible */
}

/* ── PDF Upload ──────────────────────────────────────────────────────────── */
.mc-pdf-zone {
    border: 2px dashed rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: rgba(99, 102, 241, 0.03);
    position: relative;
}

.mc-pdf-zone:hover,
.mc-pdf-zone.dragover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.06);
}

.mc-pdf-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.mc-pdf-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    color: #818cf8;
}

.mc-file-selected {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: rgba(164, 198, 21, 0.08);
    border: 1px solid rgba(164, 198, 21, 0.2);
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
}

.mc-file-selected.show {
    display: flex;
}

.mc-file-selected svg {
    flex-shrink: 0;
}

/* ── Terms Checkbox ──────────────────────────────────────────────────────── */
.mc-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(164, 198, 21, 0.04);
    border: 1px solid rgba(164, 198, 21, 0.12);
    border-radius: 12px;
    margin-top: 1rem;
    cursor: pointer;
}

.mc-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.mc-terms p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.mc-terms p a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Footer / Buttons ────────────────────────────────────────────────────── */
.mc-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.mc-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.mc-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-deep);
    box-shadow: 0 4px 16px rgba(164, 198, 21, 0.3);
}

.mc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(164, 198, 21, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.mc-btn-primary:active {
    transform: translateY(0);
}

.mc-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#mc-back-btn {
    display: none;
}

/* ── Progress Bar ────────────────────────────────────────────────────────── */
.mc-progress-bar {
    height: 3px;
    background: rgba(16, 185, 129, 0.1);
    position: relative;
    flex-shrink: 0;
}

.mc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 0 2px 2px 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Form Message ────────────────────────────────────────────────────────── */
#mc-msg {
    font-size: 0.82rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    display: none;
    align-items: center;
    gap: 0.4rem;
}

#mc-msg.show {
    display: flex;
}

#mc-msg.success {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

#mc-msg.error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ── Field Specific Errors ── */
.field-error-msg {
    color: #f87171;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 4px;
    display: none;
    animation: fadeIn 0.2s ease;
}

.field-error-msg.show {
    display: block;
}

.mc-field input.error, 
.form-group input.error {
    border-color: #f87171 !important;
    background: rgba(248, 113, 113, 0.04) !important;
}

.mc-field input.warning,
.form-group input.warning {
    border-color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.04) !important;
}

/* ── Success State ───────────────────────────────────────────────────────── */
#mc-success-panel {
    text-align: center;
    padding: 2.5rem 1rem;
    display: none;
}

#mc-success-panel.show {
    display: block;
}

.mc-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(164, 198, 21, 0.15);
    border: 2px solid rgba(164, 198, 21, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
}

#mc-success-panel h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

#mc-success-panel p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* ── Light Mode ──────────────────────────────────────────────────────────── */
[data-theme="light"] .mc-card {
    background: #ffffff;
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .mc-header-left h2 {
    color: #0f172a;
}

[data-theme="light"] .mc-field input,
[data-theme="light"] .mc-field select,
[data-theme="light"] .mc-field textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .mc-field select option {
    background: #ffffff;
    color: #0f172a;
}

[data-theme="light"] .mc-field input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] #modal-contratar {
    background: rgba(15, 23, 42, 0.6);
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.mc-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mc-spin 0.6s linear infinite;
    display: none;
}

.mc-spinner.show {
    display: inline-block;
}

@keyframes mc-spin {
    to {
        transform: rotate(360deg);
    }
}