:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --success-color: #10b981;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #18191b;
    --text-muted: #64748b;
    --card-border: #f1f5f9;
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 100px;
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.logo img { height: 55px; } /* Logo más grande como solicitado */

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary-color); }

/* Language Selector */
.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    background: white;
    border: 1px solid var(--card-border);
    padding: 8px 14px;
    border-radius: 14px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.lang-btn span {
    display: flex;
    align-items: center;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 160px;
    overflow: hidden;
    z-index: 1001;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    margin: 0 !important;
    transition: background 0.2s;
}

.lang-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.lang-dropdown span {
    font-size: 1.2rem;
}

.btn-cta {
    background-color: var(--primary-color);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

/* Hero */
.hero {
    padding: 160px 2rem 100px;
    background-color: #f8fafc; /* Color sólido idéntico al fondo de la imagen */
}

.container-hero {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; /* Forma orgánica de mancha */
    mix-blend-mode: multiply;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.1));
    transition: all 0.5s ease;
}

.hero-image img:hover {
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    transform: scale(1.02); /* Escala suave */
}

/* Animaciones Nativas */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating-hero {
    animation: float 6s ease-in-out infinite;
}

@keyframes soft-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-icon {
    animation: soft-float 4s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #0c121e;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-secondary {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .container-hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .hero p {
        margin: 0 auto 2.5rem;
    }
}

/* Pricing Section (Synced with Production) */
.pricing-section {
    padding: 100px 2rem;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 40px;
    border: 1px solid var(--card-border);
    padding: 3.5rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--card-shadow);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.06);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
}

.popular-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 900;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.price-val {
    font-size: 4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -2px;
}

.pricing-card h4 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-plan {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    display: inline-block;
}

.btn-plan.indigo { background: var(--primary-color); color: white !important; }
.btn-plan.green { background: var(--success-color); color: white !important; }
.btn-plan:hover { transform: scale(1.03); opacity: 0.95; }

.features-list {
    margin-top: 30px;
    width: 100%;
    list-style: none;
    padding: 0;
    text-align: left;
}

.features-list li {
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.features-list li i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
}

/* Feature Cards */
.features {
    padding: 100px 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 32px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Stats Section */
.stat-item {
    padding: 2rem;
    transition: all 0.3s;
}

.stat-item h2 {
    line-height: 1;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .grid { grid-template-columns: 1fr; }
}

/* --- Nuevas Secciones Qrbit (Premium Light Theme) --- */

/* How it Works */
.how-it-works {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step-card {
    padding: 2.5rem;
    position: relative;
    background: #ffffff;
    border-radius: 32px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
    border-color: var(--primary-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.step-card h3 {
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.step-card p {
    color: var(--text-muted);
}

/* Mockup Display (Light Version) */
.mockup-section {
    padding: 120px 0;
    background: #f8fafc;
    text-align: center;
    position: relative;
}

.mockup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

.mockup-container {
    margin-top: 4rem;
    position: relative;
    padding: 0 2rem;
}

.mockup-container img {
    max-width: 1000px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    transform: perspective(2000px) rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.mockup-container:hover img {
    transform: perspective(2000px) rotateX(0deg) scale(1.02);
}

/* FAQ Accordion */
.faq-section {
    padding: 120px 0;
    background: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq-item {
    background: #f8fafc;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    user-select: none;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 2.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 2.5rem 2rem;
    max-height: 300px;
}

/* Final CTA (Light Surprise) */
.final-cta {
    padding: 100px 50px;
    background: #ffffff;
    text-align: center;
    position: relative;
    border-radius: 60px;
    margin: 120px 2rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 50px 100px rgba(0,0,0,0.03);
    overflow: hidden;
}

.final-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.final-cta h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.04em;
}

.final-cta .btn-cta-premium {
    background: var(--primary-color);
    color: white !important;
    padding: 20px 50px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.final-cta .btn-cta-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .final-cta {
        margin: 60px 1rem;
        padding: 60px 1.5rem;
        border-radius: 40px;
    }
}

/* Control Cards Jade Style (Light) */
.control-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 6rem;
    padding: 0 1rem;
}

.control-card-jade-light {
    background: #ffffff;
    border-radius: 30px;
    padding: 4rem 2.5rem;
    text-align: left;
    position: relative;
    border: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 25px rgba(0,0,0,0.01);
}

.control-card-jade-light:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.08);
}

.control-card-jade-light .step-num {
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.control-card-jade-light h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.control-card-jade-light h3 span {
    color: var(--primary-color);
    display: block;
}

.control-card-jade-light p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .control-cards-grid { margin-top: 4rem; gap: 1.5rem; }
    .control-card-jade-light { padding: 3rem 2rem; }
    .control-card-jade-light h3 { font-size: 1.5rem; }
    .control-card-jade-light .step-num { font-size: 6rem; }
}

/* --- AI Chat Widget Premium --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

.chat-bubble {
    width: 65px;
    height: 65px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-bubble.active + .chat-hint {
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
    pointer-events: none;
}

.chat-hint {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    animation: float-hint 3s infinite ease-in-out;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.chat-hint::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

@keyframes float-hint {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-5px); }
}

.chat-bubble::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

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

.chat-header {
    background: var(--primary-color);
    padding: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.chat-header-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.chat-header-info span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.msg-ai {
    background: #f1f5f9;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.msg-user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-footer {
    padding: 20px;
    background: white;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: none;
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 12px;
    font-family: inherit;
    outline: none;
}

.chat-send {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send:active { transform: scale(0.9); }

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 5px 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 500px;
        right: -10px;
    }
}
