/* =========================================
    ESTILOS MODERNOS (INDEX.CSS) 
    ========================================= */

/* 1. Variables y Reset */
:root {
    /* Paleta de Colores AI Dark Mode */
    --bg-dark: #0f111a;
    --bg-card: #161b28;
    --bg-card-hover: #1f2636;
    
    --primary: #6366f1; /* Indigo moderno */
    --primary-light: #818cf8;
    --secondary: #06b6d4; /* Cyan neón */
    --accent: #d946ef; /* Fuchsia para detalles */
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    /* Gradientes */
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, rgba(15, 17, 26, 0) 70%);
    
    /* Efectos */
    --glass-bg: rgba(22, 27, 40, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-neon: 0 0 20px rgba(99, 102, 241, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    /* Padding superior extra para el nuevo top bar */
    padding-top: 50px; 
    /* Prevenir scroll horizontal */
    max-width: 100vw;
}

/* =========================================
    LLUVIA DIGITAL DE FONDO
    ========================================= */
.digital-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(99, 102, 241, 0.6) 50%, 
        rgba(6, 182, 212, 0.8) 70%,
        transparent 100%);
    animation: rainFall linear infinite;
    opacity: 0.7;
}

/* Posicionamiento y timing individual para cada gota */
.rain-drop:nth-child(1) { left: 5%; animation-duration: 3s; animation-delay: 0s; }
.rain-drop:nth-child(2) { left: 12%; animation-duration: 2.5s; animation-delay: 0.3s; }
.rain-drop:nth-child(3) { left: 20%; animation-duration: 4s; animation-delay: 0.8s; }
.rain-drop:nth-child(4) { left: 28%; animation-duration: 3.2s; animation-delay: 1.2s; }
.rain-drop:nth-child(5) { left: 35%; animation-duration: 2.8s; animation-delay: 0.5s; }
.rain-drop:nth-child(6) { left: 43%; animation-duration: 3.5s; animation-delay: 1.8s; }
.rain-drop:nth-child(7) { left: 52%; animation-duration: 2.7s; animation-delay: 0.2s; }
.rain-drop:nth-child(8) { left: 60%; animation-duration: 4.2s; animation-delay: 1.5s; }
.rain-drop:nth-child(9) { left: 68%; animation-duration: 3.1s; animation-delay: 0.9s; }
.rain-drop:nth-child(10) { left: 75%; animation-duration: 2.9s; animation-delay: 2.1s; }
.rain-drop:nth-child(11) { left: 82%; animation-duration: 3.8s; animation-delay: 0.7s; }
.rain-drop:nth-child(12) { left: 88%; animation-duration: 2.6s; animation-delay: 1.4s; }
.rain-drop:nth-child(13) { left: 93%; animation-duration: 3.3s; animation-delay: 0.1s; }
.rain-drop:nth-child(14) { left: 8%; animation-duration: 4.1s; animation-delay: 2.3s; }
.rain-drop:nth-child(15) { left: 65%; animation-duration: 2.4s; animation-delay: 1.7s; }

@keyframes rainFall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Tipografía y Utilidades */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(to right, #818cf8, #22d3ee, #e879f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s ease infinite;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================
    2. NUEVO TOP BAR (Banderas)
    ========================================= */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #0b0d14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100; /* Por encima de todo */
    overflow: hidden;
    max-width: 100vw;
}

.top-bar-content {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 15px;
    max-width: 100%;
    overflow: hidden;
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

.separator {
    width: 1px;
    height: 15px;
    background: rgba(255,255,255,0.1);
}

/* =========================================
    3. Header & Navbar (Modificado)
    ========================================= */
.header {
    position: fixed;
    top: 50px; /* Ajustado para que quede debajo del top-bar */
    width: 100%;
    z-index: 1000;
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    padding: 8px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    width: 120px; 
    height: 45px;
    object-fit: contain;
    transition: var(--transition);
}

.navbar-brand:hover img {
    filter: grayscale(0%) brightness(100%);
}

/* Botón hamburguesa - Fix para móvil */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
    margin-right: 0;
    position: relative;
    z-index: 1001;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.2em;
    height: 1.2em;
}

/* Navbar responsive fixes - FORZADO */
.navbar {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.navbar > .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* Margin-left solo para desktop */
@media (min-width: 992px) {
    .navbar-brand {
        margin-left: 100px !important;
    }
}

/* Fixes específicos para móvil - FORZADO */
@media (max-width: 991.98px) {
    .navbar-brand {
        margin-left: 0 !important;
        flex-shrink: 0 !important;
        max-width: calc(100vw - 80px) !important;
    }
    
    .navbar-brand img {
        width: 100px !important;
        height: 38px !important;
        max-width: 100px !important;
    }
    
    .navbar-collapse {
        margin-top: 15px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .navbar-nav {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .btn-dashboard-nav {
        margin-left: 0 !important;
        margin-top: 10px !important;
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .navbar-toggler {
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.btn-dashboard-nav {
    background: var(--gradient-main);
    color: white !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    text-decoration: none;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
}

.btn-dashboard-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
    color: white;
}

/* =========================================
    4. Hero Section (Scroll Fix)
    ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Padding top ajustado: 50px(topbar) + 80px(header aprox) = 130px */
    padding-top: 130px; 
    padding-bottom: 50px;
    overflow: hidden;
    z-index: 1; /* Asegura nivel base */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-main);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Widgets Cards */
.ivr-widget, .bot-card, .whatsapp-bot {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Zadarma modal z-index */
#myZadarmaCallmeWidget16396 * {
    z-index: 99999999999999999999999999999 !important;
}

.ivr-widget:hover, .bot-card:hover, .whatsapp-bot:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-neon);
}

.bot-label, .widget-label {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    display: block;
    text-align: center;
    z-index: -1;
}

/* Separación explícita entre bots */
.bots-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

@media (max-width: 768px) {
    .bots-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.whatsapp-bot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.whatsapp-bot a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 1;
    margin-bottom: 15px;
}

.whatsapp-bot img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-bot:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Animación Hero Right Side - IA AVANZADA */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ai-animation {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor principal del cerebro IA */
.ai-brain-container {
    position: relative;
    width: 350px;
    height: 350px;
    animation: float 6s ease-in-out infinite;
}

/* Cerebro central con pulso */
.ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 10;
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: corePulse 2s infinite;
}

.core-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    animation: coreRotate 8s linear infinite;
}

.core-inner i {
    font-size: 2rem;
    color: white;
    animation: brainPulse 1.5s ease-in-out infinite alternate;
}

/* Capas de neuronas */
.neural-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.layer-1 {
    animation: layerRotate 20s linear infinite;
}

.layer-2 {
    animation: layerRotate 25s linear infinite reverse;
}

.layer-3 {
    animation: layerRotate 30s linear infinite;
}

/* Neuronas individuales */
.neuron {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary);
    animation: neuronPulse 3s ease-in-out infinite;
}

/* Posicionamiento de neuronas por capa */
.layer-1 .neuron:nth-child(1) { top: 20%; left: 50%; transform: translateX(-50%); }
.layer-1 .neuron:nth-child(2) { top: 50%; left: 15%; }
.layer-1 .neuron:nth-child(3) { top: 50%; right: 15%; }

.layer-2 .neuron:nth-child(1) { top: 10%; left: 30%; }
.layer-2 .neuron:nth-child(2) { top: 10%; right: 30%; }
.layer-2 .neuron:nth-child(3) { bottom: 10%; left: 25%; }
.layer-2 .neuron:nth-child(4) { bottom: 10%; right: 25%; }

.layer-3 .neuron:nth-child(1) { top: 35%; left: 5%; }
.layer-3 .neuron:nth-child(2) { top: 35%; right: 5%; }

/* Partículas de datos */
.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: particleFloat 4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent);
}

.particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; right: 25%; animation-delay: 0.8s; }
.particle:nth-child(3) { bottom: 25%; left: 30%; animation-delay: 1.6s; }
.particle:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 2.4s; }
.particle:nth-child(5) { top: 60%; left: 10%; animation-delay: 3.2s; }

/* Conexiones SVG */
.neural-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.connection {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawConnection 3s ease-in-out infinite;
}

.connection:nth-child(2) { animation-delay: 0.5s; }
.connection:nth-child(3) { animation-delay: 1s; }
.connection:nth-child(4) { animation-delay: 1.5s; }
.connection:nth-child(5) { animation-delay: 2s; }

.data-pulse {
    animation: dataPulse 2s ease-in-out infinite;
}

.data-pulse:nth-child(7) { animation-delay: 0.3s; }
.data-pulse:nth-child(8) { animation-delay: 0.6s; }

/* Etiquetas de IA flotantes */
.ai-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ai-label {
    position: absolute;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    animation: labelFloat 4s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.ai-label:nth-child(1) { animation-delay: 0s; }
.ai-label:nth-child(2) { animation-delay: 1s; }
.ai-label:nth-child(3) { animation-delay: 2s; }
.ai-label:nth-child(4) { animation-delay: 3s; }

/* ANIMACIONES KEYFRAMES */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes coreRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes brainPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes layerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes neuronPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px var(--secondary); }
    50% { transform: scale(1.3); box-shadow: 0 0 25px var(--secondary), 0 0 35px var(--secondary); }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

@keyframes drawConnection {
    0% { stroke-dashoffset: 100; opacity: 0; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -100; opacity: 0; }
}

@keyframes dataPulse {
    0%, 100% { r: 5; opacity: 0.6; }
    50% { r: 15; opacity: 0.2; }
}

@keyframes labelFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-10px) scale(1.05); opacity: 1; }
}

/* Botones móviles elegantes */
.btn-mobile-action {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 16px 32px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-mobile-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn-mobile-action:hover {
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-mobile-action:hover::before {
    left: 100%;
}

.btn-mobile-action:first-child {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-mobile-action:last-child {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.mobile-buttons {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Sections Generales */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1; /* Asegura que las secciones estén detrás del header en scroll */
}

/* Fondo de pepitas para todas las secciones (excepto footer) */
section:not(.footer)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 60%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 90%);
}

/* AI Assistant Iframe */
.ai-assistant {
    background: #0d0f16;
    padding-top: 50px;
    padding-bottom: 50px;
}

.ai-iframe-container {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    height: 80vh;
    max-height: 800px;
    min-height: 600px;
    transition: var(--transition);
    margin-top: 30px;
    z-index: 10;
}

.browser-header {
    background: #0f172a;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.browser-title {
    color: #94a3b8;
    font-size: 0.9rem;
    flex-grow: 1;
    text-align: center;
    font-family: monospace;
}

#aiFrame {
    width: 100%;
    height: calc(100% - 45px);
    background: white;
}

.fullscreen-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s;
}

.fullscreen-btn:hover { color: white; }

.loading-overlay {
    position: absolute;
    inset: 45px 0 0 0;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* Fullscreen iframe styles */
.ai-iframe-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: #1e293b !important;
}

/* Ocultar header cuando iframe está en fullscreen */
body.iframe-fullscreen .header {
    display: none !important;
}

body.iframe-fullscreen .top-bar {
    display: none !important;
}

/* Ocultar todas las secciones EXCEPTO la del Asistente IA */
body.iframe-fullscreen section:not(.ai-assistant) {
    display: none !important;
}

body.iframe-fullscreen footer {
    display: none !important;
}

/* NUEVA SECCIÓN: Dashboard Preview */
.dashboard-preview {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #131620 100%);
}

.dashboard-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: var(--glass-border);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dashboard-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.dashboard-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.dashboard-card:hover img {
    transform: scale(1.05);
}

.dashboard-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 17, 26, 0.95), transparent);
    padding: 40px 20px 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.dashboard-card:hover .dashboard-overlay {
    transform: translateY(0);
    opacity: 1;
}

.dashboard-overlay h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.dashboard-overlay p {
    color: var(--secondary);
    font-size: 0.9rem;
    margin: 0;
}

.dashboard-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.dashboard-card:hover .dashboard-icon {
    opacity: 1;
    transform: scale(1);
}

/* Modal Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary);
}

/* Services & Features */
.services, .features, .about {
    background: var(--bg-dark);
}

.feature-highlight {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(99,102,241,0.05) 100%);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    transition: var(--transition);
}

.feature-highlight:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-icon {
    min-width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.5rem;
}

/* Cards de Servicios */
.service-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
    cursor: pointer;
}

.service-link:hover { gap: 10px; }

.service-price {
    color: #f43f5e;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

/* 8. AI Logos (MODIFICADO) */
.ai-logos {
    background: #0b0d14;
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.logos-track {
    display: inline-flex;
    animation: scroll 30s linear infinite;
    gap: 80px; /* Aumentado el gap para que no choquen al ser grandes */
    align-items: center;
}

.logos-track img {
    height: 70px; /* <--- LOGOS MUY GRANDES (90px) */
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    filter: grayscale(100%) brightness(150%) contrast(0%);
    transition: none;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pricing */
.pricing {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #131620 100%);
}

.pricing-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    transform: scale(1.03);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.currency, .period {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.check-icon {
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* FAQ */
.faq {
    background: var(--bg-dark);
}

.accordion-item {
    background: transparent;
    border: none;
    margin-bottom: 15px;
}

.accordion-button {
    background: var(--bg-card);
    color: white;
    border: var(--glass-border);
    border-radius: 12px !important;
    padding: 20px 25px;
    font-weight: 600;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1) !important;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background: transparent;
    color: var(--text-muted);
    padding: 20px 25px;
    border-top: none;
}

/* Contact & Footer */
.contact {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, var(--bg-dark) 70%);
    text-align: center;
}

.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline-primary:hover {
    background: rgba(6, 182, 212, 0.1);
    color: white;
    border-color: var(--primary-light);
}

.footer {
    background: #050608;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 20px;
    color: var(--text-muted);
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--secondary);
}

/* Modal & Forms */
.modal-content {
    background: var(--bg-card);
    color: white;
    border: var(--glass-border);
    border-radius: 20px;
}

.modal-header, .modal-footer {
    border-color: rgba(255,255,255,0.05);
}

.form-control, .form-select {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
}

.form-control:focus, .form-select:focus {
    background: rgba(0,0,0,0.4);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-label {
    color: white !important;
    font-weight: 500;
}

/* Media Queries */
@media (max-width: 992px) {
    .pricing-card.featured {
        transform: none;
    }
    .hero h1 { font-size: 2.5rem; }
    .ai-iframe-container {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-bg-glow { width: 300px; height: 300px; }
    .neural-network { width: 250px; height: 250px; }
    .dashboard-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(15, 17, 26, 0.98), transparent);
    }
    .top-bar {
        justify-content: space-between;
        padding: 0 15px;
    }
    .top-bar-content {
        gap: 10px;
        font-size: 0.75rem;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .top-bar-content span {
        display: none;
    }
    .navbar-brand img {
        width: 100px;
        height: 38px;
    }
    .flag-icon {
        width: 20px;
        height: 20px;
    }
    .separator {
        width: 1px;
        height: 12px;
    }
}