/* =========================================
   VARIABLES & RESET (SaaS Moderno)
   ========================================= */
:root {
    --primary-color: #3b82f6;      
    --primary-dark: #2563eb;       
    --primary-glow: rgba(59, 130, 246, 0.5);
    
    --accent-color: #38bdf8;       
    
    /* Fondos */
    --bg-dark-overlay: rgba(15, 23, 42, 0.92); 
    --bg-footer: #0f172a;          
    
    /* Textos */
    --text-white: #f8fafc;          
    --text-muted: #94a3b8;         
    --text-dark: #1e293b;          
    
    /* Pricing */
    --radius-pill: 50px;         
    --radius-card: 16px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth; /* Scroll suave nativo */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    
    /* FONDO ANIMADO: Gradiente en movimiento sobre la imagen */
    background: linear-gradient(-45deg, var(--bg-dark-overlay), #0f172a, #1e3a8a, #0f172a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite; /* Animación de fondo */
    
    /* Imagen de fondo fija */
    position: relative;
}

body::before {
    content: '';
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('../img/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: -2;
    opacity: 0.4; /* Mezcla sutil */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animación Genérica de Entrada */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

.container {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   BOTONES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 12px 32px; border-radius: var(--radius-pill);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    border: 2px solid transparent; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; overflow: hidden;
}

.btn-primary {
    background: var(--primary-color); color: white;
    box-shadow: 0 4px 15px var(--primary-glow); border: none;
}
.btn-primary:hover {
    background: var(--primary-dark); transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px var(--primary-glow);
}
/* Efecto de brillo al pasar mouse */
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-primary:hover::after { left: 100%; }

.btn-outline-light {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.3); color: white;
}
.btn-outline-light:hover {
    background: white; color: var(--primary-color); border-color: white; transform: translateY(-3px);
}

.btn-outline-dark {
    background: transparent; border: 2px solid var(--text-dark); color: var(--text-dark);
}
.btn-outline-dark:hover {
    background: var(--text-dark); color: white; transform: translateY(-3px);
}

.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

.btn-login-nav {
    background: var(--primary-color); color: white; border: none;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}
.btn-login-nav:hover {
    background: var(--primary-dark); transform: translateY(-1px);
}

/* =========================================
   NAVBAR (BLANCO)
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); /* Más blur para efecto moderno */
    z-index: 1000; border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 80px; display: flex; align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-container { padding: 5px 0; display: flex; align-items: center; transition: transform 0.3s; }
.logo-container:hover { transform: scale(1.05); }
.logo-container img { height: 45px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; position: relative; }
/* Subrayado animado en links */
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--primary-color); transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover { color: var(--primary-color); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

/* =========================================
   HERO SPLIT (ANIMADO)
   ========================================= */
.hero {
    padding: 180px 0 120px; position: relative;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
                url('../img/fondo.png') no-repeat center center;
    overflow: hidden; 
}

/* Formas de Fondo Animadas */
.hero-bg-shape {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    z-index: 0; animation: floatShape 20s infinite alternate;
}
.shape-1 {
    width: 400px; height: 400px; background: var(--primary-color); top: -100px; left: -100px;
}
.shape-2 {
    width: 300px; height: 300px; background: var(--accent-color); bottom: 10%; right: -50px;
    animation-delay: -5s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(20deg); }
}

.hero-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr; 
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-side { 
    text-align: left; 
    animation: fadeInUp 1s ease-out forwards; /* Entrada animada */
}

.hero-text-side h1 {
    font-size: 3.8rem; line-height: 1.1; margin-bottom: 24px; color: white; font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.hero-text-side p {
    font-size: 1.25rem; color: #cbd5e1; margin-bottom: 35px; max-width: 550px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.badge-hero {
    display: inline-block; background: rgba(59, 130, 246, 0.15); color: #93c5fd;
    padding: 8px 20px; border-radius: 30px; font-size: 0.9rem; font-weight: 600;
    margin-bottom: 25px; border: 1px solid rgba(59, 130, 246, 0.4); backdrop-filter: blur(5px);
    transition: transform 0.3s;
}
.badge-hero:hover { transform: scale(1.05); background: rgba(59, 130, 246, 0.25); cursor: default; }

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #38bdf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900;
}

.hero-btns-split { display: flex; gap: 20px; margin-bottom: 40px; }

.hero-trust { display: flex; gap: 20px; font-size: 0.9rem; color: #94a3b8; font-weight: 500; flex-wrap: wrap; }
.hero-trust i { color: #10b981; margin-right: 5px; }

/* Video Side - Flotante 3D */
.hero-video-side { 
    perspective: 1000px; 
    animation: fadeInUp 1s ease-out 0.3s forwards; /* Entrada con retraso */
    opacity: 0; /* Inicio invisible para animation */
    width: 100%;
}

.video-window-container {
    background: rgba(30, 41, 59, 0.6); border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px); overflow: hidden; position: relative;
    transform: rotateY(-5deg) rotateX(2deg); 
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    max-width: 100%;
}
/* Efecto interactivo al mover mouse sobre video */
.video-window-container:hover { 
    transform: rotateY(0) rotateX(0) scale(1.02); 
    box-shadow: 0 50px 100px -20px rgba(59, 130, 246, 0.4);
}

.window-header {
    background: rgba(15, 23, 42, 0.6); padding: 12px 15px;
    display: flex; align-items: center; gap: 15px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dots-group { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #f59e0b; } .green { background: #10b981; }
.address-bar {
    flex-grow: 1; background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.5);
    padding: 4px; border-radius: 4px; font-size: 0.75rem; text-align: center;
}

.video-placeholder { position: relative; cursor: pointer; overflow: hidden; }
.video-placeholder img { width: 100%; display: block; transition: transform 0.5s; }
.video-placeholder:hover img { transform: scale(1.03); }

.play-button-pulse {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 70px; height: 70px; background: rgba(59, 130, 246, 0.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: pulse-blue 2s infinite; cursor: pointer; transition: transform 0.3s;
}
.play-button-pulse:hover { transform: translate(-50%, -50%) scale(1.1); background: #2563eb; }

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* NEW RULE FOR VIDEO WRAPPER ASPECT RATIO */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height / width = 9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.float-widget {
    position: absolute; bottom: 20px; right: -20px;
    background: rgba(15, 23, 42, 0.95); padding: 12px 20px;
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: floatWidget 6s ease-in-out infinite 1s;
}
.fw-icon { width: 35px; height: 35px; background: rgba(239, 68, 68, 0.2); color: #ef4444; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.fw-text { font-size: 0.85rem; line-height: 1.2; }
.fw-text strong { display: block; color: white; }
.fw-text span { color: #94a3b8; font-size: 0.75rem; }

.floating-anim-slow { animation: floatWidget 8s ease-in-out infinite; }
@keyframes floatWidget { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}
.wave-separator { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; }
.wave-separator svg { width: 100%; height: 80px; display: block; fill: rgba(15, 23, 42, 0.8); }

/* =========================================
   BARRA DE RUBROS
   ========================================= */
.rubros-bar {
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(5px);
    padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.rubros-bar p { text-align: center; font-size: 0.8rem; letter-spacing: 2px; color: #94a3b8; margin-bottom: 20px; font-weight: 700; }
.rubros-list { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.rubros-list span { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #e2e8f0; font-size: 1.1rem; opacity: 0.8; transition: 0.3s; cursor: default; }
.rubros-list span:hover { opacity: 1; color: var(--primary-color); transform: translateY(-5px) scale(1.1); }

/* =========================================
   FEATURES (Interactivas)
   ========================================= */
.features { 
    padding: 120px 0;
    /* Fondo Blanco/Gris en degradado */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(201, 206, 218, 0.95)),
                url('../img/fondo.png') no-repeat center center; 
    position: relative;
    z-index: 2;
}

.section-title.light-text h2 { color: var(--text-dark); margin-bottom: 15px; font-size: 2.8rem; }
.section-title.light-text p { color: #64748b; font-size: 1.1rem; }
.section-title { text-align: center; margin-bottom: 80px; max-width: 700px; margin-left: auto; margin-right: auto; }

.features-grid-advanced {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
}

/* Tarjetas con movimiento moderno */
.glass-card-dark {
    background: #1e293b; 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; padding: 35px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto elástico al hover */
    cursor: pointer; position: relative; overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.glass-card-dark:hover {
    background: #0f172a; 
    transform: translateY(-10px) scale(1.02); 
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px -12px rgba(59, 130, 246, 0.25);
}
/* Efecto de luz que pasa por la tarjeta */
.glass-card-dark::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg); transition: 0.5s; pointer-events: none;
}
.glass-card-dark:hover::before { left: 150%; transition: 0.7s; }

.feature-box .f-icon {
    width: 60px; height: 60px; background: rgba(59, 130, 246, 0.15);
    color: #60a5fa; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px; transition: transform 0.3s;
}
.glass-card-dark:hover .f-icon { transform: scale(1.1) rotate(5deg); background: rgba(59, 130, 246, 0.25); color: white; }

.glass-card-dark h3 { 
    font-size: 1.3rem; margin-bottom: 12px; 
    color: var(--accent-color); transition: color 0.3s;
}
.glass-card-dark p { 
    color: #f8fafc; font-size: 1rem; margin-bottom: 20px; opacity: 0.9;
}
.read-more {
    font-size: 0.9rem; color: var(--accent-color); font-weight: 600; 
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease; display: inline-block;
}
.glass-card-dark:hover .read-more { opacity: 1; transform: translateY(0); }

/* =========================================
   DEEP DIVE (SCROLL ANIMADO)
   ========================================= */
.deep-dive {
    padding: 100px 0;
    background: linear-gradient(to bottom,rgba(15,23,42,0.5) 0%, rgba(15,23,42,0.9)),
                url('../img/fondo.png') no-repeat center center;
}
.split-section { display: flex; align-items: center; gap: 80px; margin-bottom: 120px; transition: transform 0.5s; }
.split-section:hover { transform: translateY(-5px); }

.split-section.reverse { flex-direction: row-reverse; }

.split-text h3 { color: var(--primary-color); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.split-text h2 { font-size: 2.8rem; margin-bottom: 25px; color: white; line-height: 1.1; }
.split-text p { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 30px; }
.check-list-light li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; font-weight: 500; color: white; }
.check-list-light i { color: #34d399; background: rgba(52, 211, 153, 0.15); padding: 5px; border-radius: 50%; font-size: 0.9rem; }
.glass-img { 
    width: 100%; border-radius: 16px; 
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6); 
    border: 1px solid rgba(255,255,255,0.1); 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.glass-img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.8);
}

/* =========================================
   NUEVA SECCIÓN: FUTURO & ADAPTABILIDAD
   ========================================= */
.future-section {
    padding: 100px 0;
    /* Fondo con imagen personalizada + overlay oscuro */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
    background-size: cover;
    position: relative;
}
.future-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.future-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; padding: 40px;
    position: relative; overflow: hidden;
    transition: transform 0.4s;
}
.future-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.1); }

.future-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}
.future-icon {
    font-size: 2.5rem; color: var(--accent-color); margin-bottom: 20px;
    /* ANIMACIÓN ELIMINADA COMO SE SOLICITÓ */
}

.future-card h2 { color: white; font-size: 2rem; margin-bottom: 20px; }
.future-card p { color: #94a3b8; margin-bottom: 15px; font-size: 1rem; }

.roadmap-list { margin-top: 30px; }
.roadmap-item {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    background: rgba(255,255,255,0.03); border-radius: 10px; margin-bottom: 10px;
    color: #cbd5e1; font-weight: 500; transition: background 0.3s, transform 0.3s;
}
.roadmap-item:hover { background: rgba(255,255,255,0.08); transform: translateX(5px); }

.roadmap-item.done { border-left: 3px solid #10b981; }
.roadmap-item.done i { color: #10b981; }
.roadmap-item.active { border-left: 3px solid #3b82f6; background: rgba(59, 130, 246, 0.1); color: white; }
.roadmap-item.active i { color: #3b82f6; animation: spin 4s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.roadmap-item.mystery { border-left: 3px solid #8b5cf6; opacity: 0.7; }
.blur-text { filter: blur(4px); margin-left: 10px; opacity: 0.5; transition: filter 0.5s; }
.roadmap-item.mystery:hover .blur-text { filter: blur(0); opacity: 1; }

/* =========================================
   PRICING
   ========================================= */
.pricing { padding: 100px 0; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(201, 206, 218, 0.95)),
                url('../img/fondo.png') no-repeat center center; ; position: relative; z-index: 2; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.pricing-card { 
    position: relative; display: flex; flex-direction: column; background: white; border-radius: 16px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); padding: 30px; 
    transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.pricing-card.popular { 
    border: 2px solid var(--primary-color); transform: scale(1.05); z-index: 1; 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); 
}
.pricing-card.popular:hover { transform: scale(1.08); box-shadow: 0 30px 50px rgba(59, 130, 246, 0.2); }

.section-title.dark-text h2 { color: var(--text-dark); }
.section-title.dark-text p { color: #64748b; }
.plan-header { text-align: center; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; padding-bottom: 20px; }
.plan-header h3 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 10px; }
.price { font-size: 2rem; font-weight: 800; color: var(--text-dark); }
.duration { font-size: 0.9rem; color: #64748b; }
.badge-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.plan-features { margin-bottom: 30px; flex: 1; }
.plan-features li { margin-bottom: 12px; font-size: 0.9rem; display: flex; gap: 10px; align-items: center; color: var(--text-dark); }
.plan-features i { color: var(--primary-color); }
.contact-card { background: linear-gradient(135deg, white, #f1f5f9); border: 2px dashed #cbd5e1; justify-content: center; align-items: center; text-align: center; box-shadow: none; }
.contact-icon { font-size: 3rem; color: #94a3b8; margin-bottom: 15px; transition: transform 0.3s; }
.contact-card:hover .contact-icon { transform: scale(1.2) rotate(10deg); color: var(--primary-color); }

/* =========================================
   FOOTER (AZUL PROFUNDO)
   ========================================= */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white; padding: 80px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content { text-align: center; margin-bottom: 50px; }
.footer-logo-container {
    background: white; display: inline-block; padding: 12px 25px; border-radius: 50px;
    margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.3s;
}
.footer-logo-container:hover { transform: rotate(5deg) scale(1.1); }

.footer-logo-container img { height: 50px; width: auto; }
.footer p { color: #cbd5e1; max-width: 600px; margin: 0 auto 30px auto; font-size: 1.05rem; }
.social-links { display: flex; justify-content: center; gap: 20px; }
.social-links a { font-size: 1.6rem; color: #94a3b8; transition: all 0.3s; }
.social-links a:hover { color: var(--accent-color); transform: translateY(-5px) scale(1.2); }
.footer-links-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px; margin-bottom: 40px;
}
.footer-links-grid h4 { margin-bottom: 20px; color: white; font-weight: 700; }
.footer-links-grid a { color: #94a3b8; font-size: 0.95rem; transition: color 0.2s, padding-left 0.2s; }
.footer-links-grid a:hover { color: white; padding-left: 5px; }
.footer-bottom { text-align: center; color: #64748b; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }

/* =========================================
   BOTÓN FLOTANTE (FAB)
   ========================================= */
.fab-container {
    position: fixed; bottom: 30px; right: 30px; z-index: 2000;
}
.fab-main {
    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; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: bounceIn 1s 1s backwards;
}
.fab-container:hover .fab-main { transform: rotate(45deg) scale(1.1); background: var(--primary-dark); }

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.fab-options {
    position: absolute; bottom: 70px; right: 5px;
    display: flex; flex-direction: column; gap: 10px;
    opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    transform: translateY(20px);
}
.fab-container:hover .fab-options { opacity: 1; visibility: visible; transform: translateY(0); }

.fab-item {
    width: 50px; height: 50px; border-radius: 50%; color: white;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: 0.2s;
}
.fab-item:hover { transform: scale(1.2); }
.fab-item.whatsapp { background: #25d366; }
.fab-item.email { background: #ea4335; }

/* =========================================
   MODALES (ANIMACIONES POP RENOVADAS)
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); /* Blur más fuerte */
    z-index: 3000; display: none; opacity: 0; transition: opacity 0.4s ease;
}
.modal-overlay.active { display: block; opacity: 1; }

.modal {
    position: fixed; top: 50%; left: 50%; 
    /* Estado inicial de la animación: pequeño y transparente */
    transform: translate(-50%, -50%) scale(0.8);
    
    /* NUEVO FONDO: Gradiente Oscuro Animado */
    background: linear-gradient(135deg, #1e293b, #0f172a, #1e293b);
    background-size: 200% 200%;
    animation: modalGradient 5s ease infinite; /* Fondo Animado */
    
    width: 90%; max-width: 600px; padding: 0;
    border-radius: 16px; z-index: 3001;
    display: none; opacity: 0; 
    
    /* Borde sutil */
    border: 1px solid rgba(255,255,255,0.1);
    color: white; /* Texto blanco forzado */

    /* Transición elástica moderna (cubic-bezier) */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); overflow: hidden;
}

@keyframes modalGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.modal.active { 
    display: block; opacity: 1; 
    /* Estado final: escala normal */
    transform: translate(-50%, -50%) scale(1); 
}

.modal-header {
    background: transparent; padding: 15px 25px; border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { color: white; font-size: 1.25rem; margin: 0; }
.close-btn { 
    background: none; border: none; font-size: 1.2rem; cursor: pointer; color: rgba(255,255,255,0.7); 
    transition: transform 0.2s, color 0.2s;
}
.close-btn:hover { color: #ef4444; transform: rotate(90deg); }

.modal-body { padding: 25px; color: #cbd5e1; }
.modal-footer { padding: 15px 25px; text-align: right; background: transparent; border-top: 1px solid rgba(255,255,255,0.1); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero-split-layout { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-text-side { text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; }
    .hero-text-side h1 { font-size: 2.5rem; width: 100%; }
    .hero-text-side p { font-size: 1.1rem; width: 100%; }
    .hero-btns-split { justify-content: center; width: 100%; }
    .hero-trust { justify-content: center; width: 100%; }
    .hero-video-side { width: 100%; max-width: 500px; margin: 0 auto; perspective: none; }
    .video-window-container { transform: none !important; } /* Desactivar 3D en tablets/móviles */
    
    .future-grid { grid-template-columns: 1fr; }
    .split-section { flex-direction: column !important; text-align: center; gap: 30px; margin-bottom: 80px; }
    .split-section.reverse { flex-direction: column !important; }
    .split-text { width: 100%; }
    .split-text h2 { font-size: 2rem; }
    .split-image { width: 100%; max-width: 500px; margin: 0 auto; }
    .check-list-light li { justify-content: center; }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .navbar { height: 70px; }
    .menu-toggle { display: block; color: var(--text-dark); }
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%;
        background: white; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid #eee;
    }
    .nav-links a { color: var(--text-dark); width: 100%; text-align: center; padding: 12px 0; font-size: 1rem; }
    .nav-links.active { display: flex; animation: slideDown 0.3s ease forwards; }
    
    .nav-links .btn { width: 100%; margin-top: 10px; padding: 12px; }
    
    .hero-text-side h1 { font-size: 2rem; }
    .hero-btns-split { flex-direction: column; gap: 15px; width: 100%; }
    .btn-lg { width: 100%; padding: 14px; font-size: 1rem; }
    
    .rubros-list { gap: 15px; }
    .rubros-list span { font-size: 0.9rem; }
    
    .features-grid-advanced { grid-template-columns: 1fr; gap: 20px; }
    .glass-card-dark { padding: 25px; }
    
    .section-title h2 { font-size: 1.8rem; }
    
    .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
    .pricing-card { padding: 25px; }
    .pricing-card.popular { transform: none; border-width: 1px; }
    
    .float-widget { display: none !important; }
    .hero-bg-shape { display: none; } /* Limpiar el fondo para mejorar rendimiento y evitar cortes */
}

@media (max-width: 480px) {
    .hero-text-side h1 { font-size: 1.6rem; word-wrap: break-word; }
    .hero-text-side p { font-size: 0.95rem; }
    .badge-hero { font-size: 0.8rem; padding: 6px 15px; }
    .footer-links-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .social-links { gap: 12px; }
    .fab-container { bottom: 15px; right: 15px; }
    .fab-main { width: 50px; height: 50px; }
}