:root {
    --bg-color: #040406; /* Deep dark tech */
    --surface: rgba(10, 10, 15, 0.6);
    --surface-border: rgba(0, 242, 254, 0.15); /* Tech neon border tint */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #00f2fe; /* Neon cyan */
    --accent-alt: #7b2cbf; /* Neon purple */
    --gradient-1: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
html { scroll-behavior: smooth; background-color: var(--bg-color); color: var(--text-primary); overflow-x: hidden; }
body { overflow-x: hidden; position: relative; }

/* Main wrap to cover the bottom reveal logo */
.main-wrapper {
    position: relative;
    z-index: 10;
    background: var(--bg-color);
}

.blob-bg {
    position: fixed; top: -10vw; left: -10vw; width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%; filter: blur(40px); z-index: -1; animation: drift 15s infinite alternate ease-in-out;
    will-change: transform;
}
.blob-bg.bg-2 {
    top: auto; bottom: -10vw; left: auto; right: -10vw;
    background: radial-gradient(circle, rgba(120,120,125,0.04) 0%, rgba(0,0,0,0) 70%);
    animation-direction: alternate-reverse; animation-duration: 20s;
}

@keyframes drift { 0% { transform: translate(0, 0); } 100% { transform: translate(5vw, 5vw); } }

.glass {
    background: var(--surface); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border); border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
a { text-decoration: none; color: inherit; }

.btn-primary, .btn-secondary, .btn-cta-nav {
    display: inline-block; padding: 14px 32px; border-radius: 30px; font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; border: none; font-size: 1rem;
}
.btn-primary { background: var(--gradient-1); color: #040406; box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4); }
.btn-secondary { background: transparent; border: 1px solid var(--surface-border); color: var(--text-primary); }
.btn-secondary:hover { background: rgba(0, 242, 254, 0.05); border-color: var(--accent); transform: translateY(-2px); }

.glow-effect { position: relative; overflow: hidden; }
.glow-effect::before {
    content: ''; position: absolute; top: 50%; left: -50%; width: 200%; height: 10px;
    background: rgba(255, 255, 255, 0.5); filter: blur(10px); transform: translateY(-50%) rotate(45deg);
    transition: 0.5s; opacity: 0;
}
.glow-effect:hover::before { animation: sweep 1s; opacity: 1; }
@keyframes sweep { 0% { left: -50%; } 100% { left: 150%; } }

.navbar {
    position: fixed; top: 0; width: 100%; padding: 15px 5%; display: flex; justify-content: space-between;
    align-items: center; z-index: 1000; background: rgba(13, 13, 16, 0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border); transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    will-change: background, padding;
}
.navbar::before {
    content: '';
    display: block;
    width: 200px;
    height: 30px;
}
.navbar.at-top {
    background: transparent;
    padding: 20px 5%;
    border-bottom-color: transparent;
    box-shadow: none;
}
.navbar .logo {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    will-change: transform, top, left;
    white-space: nowrap;
    z-index: 1001;
}
.logo-img {
    height: 16px;
    width: auto;
    max-width: 100%;
    display: block;
}
.navbar.at-top .logo {
    top: 150px;
    left: 50% !important;
    transform: translate(-50%, -50%);
    font-size: 6vw; /* Optimized for desktop */
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    color: var(--text-primary);
}
@media (max-width: 900px) {
    .navbar.at-top .logo {
        top: 130px;
        left: 50% !important;
        transform: translate(-50%, -50%);
        font-size: 7vw; /* Fixed for tablet */
        background: none;
        -webkit-text-fill-color: var(--text-primary);
        color: var(--text-primary);
    }
    .hero { padding-top: 260px; }
}
.logo { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; font-weight: 800; letter-spacing: 5px; background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo a { font-family: 'Orbitron', sans-serif; }

.navbar .slogan-nav {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1.5px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.navbar.at-top .slogan-nav {
    opacity: 1;
    transition: opacity 0.5s ease 0.3s;
}

.nav-links { display: flex; list-style: none; gap: 30px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { color: var(--text-secondary); font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--text-primary); }


.nav-actions { display: flex; align-items: center; gap: 20px; }
.lang-selector { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); padding: 6px 14px; border-radius: 20px; border: 1px solid var(--surface-border); transition: opacity 0.3s ease, transform 0.3s ease; }
.lang-btn { background: transparent; border: none; color: var(--text-secondary); font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: color 0.3s ease; padding: 2px; }
.lang-btn.active, .lang-btn:hover { color: var(--text-primary); }
.lang-divider { width: 1px; height: 14px; background: var(--surface-border); }

.btn-cta-nav { padding: 10px 20px; border: 1px solid rgba(255,255,255,0.2); font-size: 0.9rem; }
.btn-cta-nav:hover { background: var(--text-primary); color: var(--bg-color); }

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 260px; }
.hero-content { max-width: 800px; padding: 0 20px; z-index: 2; position: relative; }
.hero h1 { font-size: 4.8rem; line-height: 1.1; margin-bottom: 30px; font-weight: 800; letter-spacing: -1.5px; min-height: 3.6em; text-align: center; display: block; }
.hero p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 40px; font-weight: 400; line-height: 1.6; }
.location-highlight { display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgba(0, 149, 246, 0.15); color: #4DA2FF; font-weight: 600; border: 1px solid rgba(0, 149, 246, 0.3); margin: 0 4px; }
.hero-actions { display: flex; gap: 20px; justify-content: center; }

.hero-marquee { margin-top: 40px; width: 100%; overflow: hidden; background: rgba(255, 255, 255, 0.03); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); padding: 15px 0; white-space: nowrap; display: flex; }
.marquee-content { display: flex; width: max-content; animation: scroll 20s linear infinite; will-change: transform; contain: layout; }
.marquee-track { display: flex; gap: 50px; padding-right: 50px; }
.marquee-track span { font-weight: 500; color: var(--text-primary); letter-spacing: 1px; }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.section-title { font-size: 3rem; font-weight: 800; letter-spacing: -1px; text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 60px; line-height: 1.6; }

.services { padding: 120px 5%; max-width: 1200px; margin: 0 auto; }
.services-grid { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.service-card { --scale: 1; --y: 0px; flex: 1; min-width: 300px; max-width: 500px; padding: 40px; transform: scale(var(--scale)) translateY(var(--y)); transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); background: rgba(10, 10, 15, 0.6); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: transparent; transition: background 0.4s; }
.service-card:hover { --y: -15px; border-color: rgba(0, 242, 254, 0.3); box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15); }
.service-card:hover::before { background: var(--gradient-1); }
.icon-container { width: 70px; height: 70px; background: linear-gradient(135deg, rgba(0,242,254,0.1), rgba(123,44,191,0.1)); border: 1px solid rgba(0, 242, 254, 0.3); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; color: var(--accent); box-shadow: 0 8px 20px rgba(0,242,254,0.1); }
.animated-icon svg { width: 30px; height: 30px; transition: transform 0.3s ease; }
.service-card:hover .animated-icon svg { animation: floatIcon 2s infinite ease-in-out; }
.service-card:hover .animated-icon.advanced svg { animation: spinSlow 3s infinite linear; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes spinSlow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.service-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.service-card h4.price { font-size: 2.2rem; font-weight: 800; margin-bottom: 25px; color: var(--text-primary); }
.pricing-card-header { display: flex; align-items: baseline; justify-content: flex-start; gap: 12px; margin-bottom: 5px; flex-wrap: wrap; }
.setup-portion, .monthly-portion { display: flex; flex-direction: column; align-items: flex-start; }
.setup-amount { font-size: 1.2rem; font-weight: 600; color: var(--text-secondary); opacity: 0.8; }
.setup-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-top: -2px; }
.price-plus { font-size: 1.5rem; color: var(--text-secondary); opacity: 0.3; font-weight: 300; align-self: center; }
.monthly-amount { font-size: 3.5rem; font-weight: 800; color: var(--text-primary); letter-spacing: -2px; line-height: 1; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.monthly-label { font-size: 0.9rem; font-weight: 600; color: var(--accent); margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; }
.billing-note { font-size: 0.75rem; color: var(--text-secondary); font-style: italic; margin-bottom: 25px; opacity: 0.6; }
.value-breakdown { font-size: 0.85rem; color: #040406; background: var(--gradient-1); padding: 6px 12px; border-radius: 6px; margin-bottom: 25px; font-weight: 700; display: inline-block; box-shadow: 0 4px 15px rgba(0,242,254,0.2); }
.service-card p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; min-height: 48px; }
.service-features { list-style: none; padding-right: 10px; }
.service-features li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; line-height: 1.4; }
.service-features li::before { content: '✓'; color: #000; font-weight: bold; font-size: 0.75rem; background: rgba(255,255,255,0.8); border-radius: 50%; min-width: 20px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

/* Popular Badge & Card Styles */
.service-card.popular {
    position: relative;
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.15);
    background: linear-gradient(180deg, rgba(10,10,15,0.9) 0%, rgba(0,242,254,0.05) 100%);
    --scale: 1.05;
}
.service-card.popular::before { background: var(--gradient-1); }
.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-1);
    color: #040406;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
}
.service-btn { display: block; text-align: center; margin-top: 30px; width: 100%; padding: 12px; font-size: 0.95rem; }

.guarantee-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    margin: 60px auto 0;
    padding: 15px 30px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.05);
    border-radius: 12px;
    color: #81c784;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Objetivo Section */
.objetivo-section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
.objetivo-container { padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.objetivo-content { flex: 1; text-align: left; }
.objetivo-content .section-title { text-align: left; margin-bottom: 30px; font-size: 2.5rem; }
.objetivo-text p { color: var(--text-secondary); line-height: 1.8; font-size: 1.1rem; margin-bottom: 20px; }
.objetivo-text strong { color: var(--text-primary); font-weight: 600; }
.objetivo-logo-wrap { flex: 1; display: flex; justify-content: center; position: relative; }
.giant-logo-img {
    max-width: 450px;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.1)) brightness(1.1);
    transition: transform 0.5s ease;
}
.giant-logo-img:hover {
    transform: scale(1.05);
}

.how-it-works { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
.process-flow { display: flex; align-items: center; justify-content: space-between; margin-top: 60px; flex-wrap: wrap; gap: 20px; }
.process-step { flex: 1; min-width: 250px; text-align: center; padding: 20px; }
.step-number { width: 60px; height: 60px; background: var(--text-primary); color: var(--bg-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 20px; }
.process-step h4 { font-size: 1.3rem; margin-bottom: 10px; }
.process-step p { color: var(--text-secondary); font-size: 0.95rem; }
.process-connector { height: 2px; flex: 1; background: rgba(0, 242, 254, 0.1); position: relative; min-width: 50px; overflow: hidden; border-radius: 2px; }
.process-connector::after { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--gradient-1); transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 0 10px rgba(0, 242, 254, 0.8); }
.process-connector.reveal.active::after { width: 100%; }
.lottie-step-arrow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity 1s 1.5s; }
.process-connector.reveal.active .lottie-step-arrow { opacity: 1; }
@media (max-width: 900px) {
    .process-connector { display: none; }
    .process-flow { flex-direction: column; gap: 40px; }
    .objetivo-container { flex-direction: column; padding: 40px 20px; text-align: center; }
    .objetivo-content .section-title { text-align: center; }
    .giant-logo-img { max-width: 280px; margin-top: 20px; }
}

/* Casos de Uso */
.use-cases-section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; text-align: center; }
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 60px; }
.use-case-card { padding: 40px 30px; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; }
.uc-icon { font-size: 3rem; margin-bottom: 20px; display: inline-block; animation: floatIcon 3s infinite ease-in-out; }
.use-case-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-primary); }
.use-case-card p { color: var(--text-secondary); line-height: 1.6; }
.highlight { color: #fff; font-weight: 600; padding: 2px 8px; background: rgba(255,255,255,0.08); border-radius: 4px; display: inline-block; margin: 2px 0; }
.use-case-card strong { color: var(--text-primary); }

/* Demo Section - Instagram Mockup */
.demo-section { padding: 100px 5%; max-width: 800px; margin: 0 auto; text-align: center; }
.ig-mockup { max-width: 360px; margin: 50px auto 0; background: #000; border: 8px solid #1a1a1a; border-radius: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.ig-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #262626; background: #000; }
.ig-user-info { display: flex; align-items: center; gap: 12px; }
.ig-avatar-wrap { padding: 2px; border-radius: 50%; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.ig-avatar { width: 34px; height: 34px; border-radius: 50%; background: #262626; border: 2px solid #000; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #a8a8a8; }
.ig-avatar svg { margin-top: 5px; width: 20px; height: 20px; }
.ig-username { font-weight: 600; font-size: 0.95rem; color: #f5f5f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ig-actions { display: flex; gap: 15px; color: #f5f5f5; }
.ig-chat-area { position: relative; padding: 20px 15px 90px 15px; display: flex; flex-direction: column; height: 550px; box-sizing: border-box; background: #000; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.demo-meta-fixed { position: absolute; top: 15px; left: 0; width: 100%; font-size: 0.75rem; color: #737373; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.demo-messages-container { display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; height: 100%; padding-top: 40px; box-sizing: border-box; width: 100%; }
.demo-step { display: flex; flex-direction: column; opacity: 0; transform: translateY(15px); }
.typing-mock { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); margin-bottom: 2px; }
.typing-mock .dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; display: inline-block; animation: typingBounce 1.2s infinite ease-in-out; }
.typing-mock .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-mock .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.demo-meta { font-size: 0.75rem; color: #737373; margin-bottom: 5px; }
.text-center { text-align: center; width: 100%; display: block; }
.demo-bubble { padding: 10px 14px; border-radius: 18px; max-width: 80%; font-size: 0.85rem; line-height: 1.4; word-wrap: break-word; }
.user-bubble { background: #262626; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bot-bubble { background: #3797f0; color: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.ig-link { display: inline-block; background: rgba(255,255,255,0.2); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; margin: 4px 0; transition: background 0.3s; }
.ig-link:hover { background: rgba(255,255,255,0.3); }

/* IG Bottom Input Bar */
.ig-bottom-bar { display: flex; align-items: center; gap: 10px; opacity: 0; animation: fadeUpAnim 0.5s ease forwards; background: #000; position: absolute; bottom: 0; left: 0; width: 100%; box-sizing: border-box; padding: 15px 15px 25px 15px; border-top: 1px solid #1a1a1a; z-index: 10; }
.ig-cam-btn { width: 44px; height: 44px; border-radius: 50%; background: #0095f6; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.ig-cam-btn svg { width: 26px; height: 26px; }
.ig-input-box { flex-grow: 1; display: flex; align-items: center; justify-content: space-between; background: #262626; border-radius: 20px; padding: 8px 15px; border: 1px solid #333; }
.ig-placeholder { color: #737373; font-size: 0.9rem; }
.ig-input-icons { display: flex; align-items: center; color: #f5f5f5; }
.ig-extra-icons { display: flex; align-items: center; gap: 10px; color: #f5f5f5; flex-shrink: 0; }

.cta-section { padding: 100px 5%; display: flex; justify-content: center; }
.cta-container { max-width: 800px; width: 100%; padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-container h2 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.2; }
.cta-container p { color: var(--text-secondary); margin-bottom: 40px; }

.cta-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 450px;
    margin: 0 auto;
}
.calendly-btn {
    width: 100%;
    text-align: center;
    padding: 18px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: var(--bg-color);
    border-radius: 12px;
}
.cta-divider {
    width: 100%;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--surface-border);
    margin: 10px 0;
}
.cta-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #15151a; /* matches glass bg roughly */
    padding: 0 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-form { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.contact-form input { width: 100%; padding: 15px 20px; border-radius: 12px; border: 1px solid var(--surface-border); background: rgba(0, 0, 0, 0.4); color: var(--text-primary); font-size: 1rem; outline: none; transition: border-color 0.3s ease; }
.contact-form input:focus { border-color: rgba(255, 255, 255, 0.4); }

/* Bottom Reveal Logo */
body { padding-bottom: 0; } /* Remove padding, use spacer instead */
.bottom-reveal-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    background: var(--bg-color);
    overflow: hidden;
}
.reveal-spacer {
    height: 400px;
    width: 100%;
}
.bottom-reveal-logo {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11vw;
    font-weight: 800;
    letter-spacing: 5px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.03);
    user-select: none;
    pointer-events: none;
}

footer { border-top: 1px solid var(--surface-border); padding: 50px 5% 30px; margin-top: 50px; text-align: center; color: var(--text-secondary); background: var(--bg-color); position: relative; z-index: 10; }
.footer-logo { margin-bottom: 20px; }
.footer-socials { display: flex; justify-content: center; gap: 25px; margin-top: 25px; }
.social-link { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); transition: color 0.3s; font-size: 0.95rem; }
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { color: var(--text-primary); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; }

.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUpAnim 0.8s forwards; }
.fade-in { opacity: 0; animation: fadeInAnim 1s ease forwards; }
.delay-1 { animation-delay: 0.15s; } 
.delay-2 { animation-delay: 0.3s; } 
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }
@keyframes fadeUpAnim { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInAnim { to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translate(0) scale(1) rotateX(0deg) !important; }

/* Modifiers */
.reveal.zoom-in { transform: scale(0.85); }
.reveal.fade-left { transform: translateX(60px); }
.reveal.fade-right { transform: translateX(-60px); }
.reveal.flip-up { transform: perspective(800px) rotateX(25deg) translateY(20px); }

    .ig-chat-area { height: 600px; padding-bottom: 110px; }
    .demo-meta-fixed { top: 10px; }


/* --- CHATBOT WIDGET --- */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
}

.chat-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: 2px solid rgba(0, 242, 254, 0.3);
    color: #040406;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle:hover {
    transform: scale(1.15) rotate(15deg);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 480px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(4, 4, 6, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.1);
    transform: translateY(20px) scale(0.9);
}

.chatbot-widget.active .chat-window {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 20px;
    background: rgba(0, 242, 254, 0.05);
    border-bottom: 1px solid rgba(0, 242, 254, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bot-status.online {
    background: #00f2fe;
    box-shadow: 0 0 10px #00f2fe;
}

.bot-name {
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.close-chat {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px;
}

.chat-messages {
    flex: 1;
    min-height: 0; /* Previene que empuje la caja de texto hacia abajo */
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    overscroll-behavior: contain;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: messageIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(15px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.message.bot {
    align-self: flex-start;
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8f9fa;
    border-bottom-left-radius: 4px;
}

.message.user {
    align-self: flex-end;
    background: var(--gradient-1);
    color: #040406;
    font-weight: 600;
    border-bottom-right-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 242, 254, 0.25);
}

.chat-input-area {
    padding: 15px 20px;
    background: rgba(10, 10, 15, 0.9);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 12px;
    align-items: center;
}

#chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 15px;
    padding: 10px 15px;
    color: white;
    outline: none;
    transition: all 0.3s;
}

#chat-input:focus {
    border-color: #00f2fe;
    background: rgba(255, 255, 255, 0.1);
}

.send-btn {
    background: transparent;
    border: none;
    color: #00f2fe;
    cursor: pointer;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: scale(1.1);
}

.mic-btn {
    background: transparent;
    border: none;
    color: #a8a8a8;
    cursor: pointer;
    transition: transform 0.2s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.mic-btn:hover {
    transform: scale(1.1);
    color: #fff;
}
.mic-btn.recording {
    color: #ff4757;
    animation: pulse-red 1.2s infinite;
}
@keyframes pulse-red {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 71, 87, 0.7)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.9)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 71, 87, 0)); }
}

/* Chat Tooltip */
.chat-tooltip {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 260px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 12px 35px 12px 15px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1; 
}
.chat-tooltip.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1000;
}
.chat-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #111;
    border-bottom: 1px solid var(--surface-border);
    border-right: 1px solid var(--surface-border);
    transform: rotate(45deg);
}
.close-tooltip {
    position: absolute;
    top: 5px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}
.close-tooltip:hover {
    color: var(--text-primary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: 20px;
        right: 20px;
        z-index: 100000;
    }
    .chat-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0;
        z-index: 100001 !important;
        display: flex;
        flex-direction: column;
        transform: translateY(100%) scale(0.9); /* Oculto hacia abajo en móvil */
    }
    .chatbot-widget.active .chat-window {
        transform: translateY(0) scale(1) !important;
    }
    .chat-input-area {
        padding-bottom: max(15px, env(safe-area-inset-bottom));
    }
}

.message.typing {
    font-style: italic;
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-color);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-icon {
    width: 80px;
    height: 80px;
    animation: spin360 1s linear infinite;
}

@keyframes spin360 {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Resultados Stats / Microinteractions */
.results-section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; text-align: center; }
.stats-grid { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; justify-content: center; align-items: stretch; }
.stat-card { flex: 1; min-width: 300px; padding: 50px 40px; text-align: center; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }

/* Circular Chart */
.stat-circle { position: relative; width: 160px; height: 160px; margin: 0 auto 30px; }
.circular-chart { display: block; margin: 0 auto; max-width: 100%; max-height: 250px; width: 100%; height: 100%; }
.circle-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 2.8; }
.circle { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke: #00f2fe; stroke-dasharray: 0, 100; transition: stroke-dasharray 2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stat-card.reveal.active .circle { stroke-dasharray: 95, 100; animation: drawCircle 2s ease-out forwards; }
.stat-value { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; font-weight: 800; color: var(--text-primary); letter-spacing: -2px; }
@keyframes drawCircle { 0% { stroke-dasharray: 0, 100; } 100% { stroke-dasharray: 95, 100; } }

.stat-card h3 { font-size: 1.6rem; margin-bottom: 15px; color: var(--text-primary); }
.stat-card p { color: var(--text-secondary); line-height: 1.6; }

/* Bar Chart */
.stat-bars-wrapper { display: flex; flex-direction: column; gap: 35px; width: 100%; justify-content: center; height: 100%; }
.stat-bar-container { text-align: left; }
.stat-bar-label { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 600; font-size: 1.1rem; }
.stat-bar-track { width: 100%; height: 8px; background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; position: relative; }
.stat-bar-fill { height: 100%; background: var(--gradient-1); border-radius: 10px; width: 0; transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stat-card.reveal.active .stat-bar-fill { width: var(--target-width); }

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

body.loading, body.chat-active {
    overflow: hidden;
}

/* --- TYPING EFFECT --- */
.typing-wrapper {
    position: relative;
    display: inline-block;
}
.typing-cursor {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-primary);
    animation: blink 0.8s infinite;
    margin-left: 2px;
    white-space: nowrap;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.typing-text {
    display: inline-block;
}

/* --- QUIZ SECTION --- */
.quiz-section {
    padding: 100px 5%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.quiz-container {
    padding: 40px;
    margin-top: 40px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.quiz-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
}
.quiz-progress-fill {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    transition: width 0.4s ease;
}
.quiz-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.quiz-step h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}
.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}
.quiz-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
.quiz-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
.quiz-option.selected {
    background: var(--text-primary);
    color: var(--bg-color);
}
.hidden {
    display: none !important;
}

/* Quiz Lead Form */
.quiz-lead-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInAnim 0.5s ease;
}
.quiz-calc-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: var(--text-secondary);
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.quiz-final-wrap {
    max-width: 500px;
    margin: 0 auto;
}
.quiz-final-wrap h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.quiz-final-wrap p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}
#quiz-form input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 25px; /* Added spacing */
}
#quiz-form input:focus {
    border-color: #00f2fe;
}
#quiz-form button {
    border: none;
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* MASTER MOBILE OVERRIDES - CONSOLIDATED AT BOTTOM TO ELIMINATE REDUNDANCY */
@media (max-width: 768px) {
    /* Navbar Core: Uses height animation to sync with logo movement */
    .navbar {
        height: 70px !important;
        padding: 0 5% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #0d0d10 !important; /* Solid deep black for maximum contrast */
        backdrop-filter: none !important; /* Eliminate "grey fog" blur on mobile browsers */
        border-bottom: none !important; /* Perfect seamless blending */
        box-shadow: none !important;
        /* Late background fade for premium transition */
        transition: height 0.7s cubic-bezier(0.25, 1, 0.3, 1), 
                    background 0.5s ease 0.2s !important;
    }

    /* Entrance State: Expanded navbar height drives the logo down */
    .navbar.at-top {
        height: 210px !important;
        background: transparent !important;
        border-bottom-color: transparent !important;
        backdrop-filter: none !important;
        transition: height 0.7s cubic-bezier(0.25, 1, 0.3, 1), 
                    background 0.3s ease !important;
    }

    /* Fixed Language Selector: Remains in banner position regardless of navbar expansion */
    .nav-actions {
        position: absolute !important;
        top: 35px !important;
        right: 5% !important;
        transform: translateY(-50%) !important;
        z-index: 1002 !important;
    }

    /* Master Logo Logic: Locked at top: 50% for zero-jitter vertical centering */
    .navbar .logo {
        position: absolute !important;
        top: 50% !important; /* Constant vertical anchor */
        left: 5% !important;
        width: auto !important;
        text-align: left !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: translate(0, -50%) !important;
        font-size: 1.8rem !important;
        letter-spacing: 4px !important;
        /* Single coordinate path for transform and left */
        transition: transform 0.7s cubic-bezier(0.25, 1, 0.3, 1), 
                    left 0.7s cubic-bezier(0.25, 1, 0.3, 1),
                    font-size 0.7s cubic-bezier(0.25, 1, 0.3, 1) !important;
        display: block !important;
        z-index: 1003 !important;
    }

    /* Slogan Relocation: Moves to the top row with language selector to prevent center clutter */
    .navbar .slogan-nav {
        position: absolute !important;
        top: 35px !important;
        left: 5% !important;
        transform: translateY(-50%) !important;
        font-size: 0.75rem !important;
        width: auto !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.5s ease !important;
    }

    .navbar.at-top .slogan-nav {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Logo Entrance State: Vertically stays at 50% of the expanded nav, horizontally centered */
    .navbar.at-top .logo {
        left: 50% !important;
        transform: translate(calc(-50% + 2px), -50%) !important;
        font-size: 9.5vw !important;
        letter-spacing: 4px !important;
    }


    /* Component Stabilizers */
    .logo-img { max-width: 80vw; }
    .hero { padding-top: 185px; padding-bottom: 30px; }
    .nav-links, .btn-cta-nav { display: none; }
    .hero h1 { font-size: 2.2rem; min-height: 4.5em; }
    .hero p { font-size: 1rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions a { width: 100%; }
    .section-title { font-size: 2rem; }
    .footer-socials { flex-direction: column; gap: 15px; align-items: center; }
    .bottom-reveal-container { height: 250px; }
    .reveal-spacer { height: 250px; }
    .giant-logo { font-size: 2.2rem; }
}
