 /* =========================================
       1. CONFIGURACIÓN GLOBAL (FIX DE DESBORDAMIENTO)
       ========================================= */
    :root {
        --bg-main: #ffffff;
        --bg-secondary: #f8fafc;
        --bg-card: #ffffff;
        --border-color: #e2e8f0;
        --accent: #2563eb;
        --accent-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        --accent-light: rgba(37, 99, 235, 0.1);
        --text-main: #0f172a;
        --text-body: #334155;
        --text-muted: #64748b;
        --radius: 12px;
        --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
        --shadow-card: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.01);
    }

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

    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden; /* CLAVE: Esto mata el scroll horizontal fantasma */
        font-family: 'Outfit', sans-serif;
        background-color: var(--bg-main);
        color: var(--text-body);
        line-height: 1.6;
    }

    /* Utilitarios */
    .container { max-width: 1300px; margin: 0 auto; padding: 0 25px; }
    .text-center { text-align: center; }
    a { text-decoration: none; transition: 0.3s; }
    ul { list-style: none; }
    h1, h2, h3, h4, h5 { color: var(--text-main) !important; font-weight: 800; }
    p { color: var(--text-body); }
    .highlight { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }

    /* =========================================
       2. HEADER & NAVEGACIÓN
       ========================================= */
    header {
        padding: 0 40px; position: fixed; width: 100%; top: 0;
        background: rgba(15, 23, 42, 0.95); /* Oscuro sólido para contraste */
        backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        height: 90px; display: flex; align-items: center; z-index: 1000;
    }
    header nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    .logo img { height: 100px; width: auto; transition: transform 0.3s; }
    .logo:hover img { transform: scale(1.05); }
    
    .nav-links { display: flex; align-items: center; gap: 40px; }
    .nav-links a { color: #e2e8f0; font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
    .nav-links a:hover { color: #3b82f6; }
    
    .cta-header { background: var(--accent-gradient); color: white !important; padding: 12px 30px; border-radius: 50px; box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3); }
    .cta-header:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5); }

    /* Botón Hamburguesa: Forzado a Blanco */
    .menu-toggle { display: none; font-size: 2rem; color: white !important; background: none; border: none; cursor: pointer; z-index: 1100; }
    
    /* =========================================
   DROPDOWN MENU (Estilo Floix Dark)
   ========================================= */
.nav-item.has-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* El menú oculto por defecto */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Justo debajo del header */
    left: 50%;
    transform: translateX(-50%) translateY(20px); /* Centrado y un poco abajo */
    background: rgba(15, 23, 42, 0.95); /* Fondo oscuro Prisma */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    width: 500px; /* Ancho del menú */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;
}

/* Triangulito superior */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(15, 23, 42, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mostrar al pasar el mouse (Hover) */
.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Estructura interna */
.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columnas */
    gap: 30px;
}

.dropdown-col h4 {
    color: #64748b !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-col a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    padding: 8px 0;
    font-size: 0.95rem;
    text-transform: none; /* Quitamos mayúsculas forzadas */
    transition: 0.2s;
}

.dropdown-col a i {
    color: var(--accent); /* Tu azul/cian */
    width: 20px;
    text-align: center;
    transition: 0.2s;
}

.dropdown-col a:hover {
    color: white;
    transform: translateX(5px);
}

.dropdown-col a:hover i {
    color: #22d3ee; /* Cian brillante al hover */
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

    /* =========================================
       3. HERO SECTION
       ========================================= */
    /* =========================================
       3. HERO SECTION (CON NUEVA IMAGEN DE FONDO)
       ========================================= */
    .hero {
        min-height: 100vh; 
        display: flex; 
        align-items: center; 
        justify-content: center;
        position: relative; 
        padding: 120px 20px 60px 20px;
        
        /* IMAGEN DE FONDO + CAPA OSCURA (OVERLAY) */
        /* El gradiente oscuro es vital para que el texto blanco se lea perfecto sobre las luces de la imagen */
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7)), url('img/hero.jpg');
        
        background-size: cover;       /* Cubre toda la pantalla */
        background-position: center;  /* Centra la imagen */
        background-repeat: no-repeat;
        background-attachment: fixed; /* EFECTO PARALLAX (La imagen se queda fija al scrollear) */
        
        overflow: hidden;
    }
    
    /* =========================================
   CORRECCIÓN HERO: TEXTO NEÓN
   ========================================= */

/* 1. Forzamos que el título general sea BLANCO PURO y tenga sombra negra */
.hero h1 { 
    color: #ffffff !important; 
    font-size: 4.5rem; 
    line-height: 1.1; 
    margin-bottom: 30px; 
    letter-spacing: -1px;
    /* Esta sombra negra ayuda a separar las letras de la imagen de fondo */
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8); 
}

/* 2. El gradiente "Para Tu Negocio" mucho más brillante */
.hero h1 .highlight {
    /* Usamos Cian (#22d3ee) y Azul Claro (#60a5fa) en lugar de azules oscuros */
    background: linear-gradient(to right, #22d3ee, #60a5fa);
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Quitamos la sombra negra del texto general para que no ensucie el color */
    text-shadow: none; 
    
    /* Agregamos un RESPLANDOR (Glow) Cian detrás de las letras */
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.6));
    
    font-weight: 800;
}
    .hero p { font-size: 1.4rem; color: #94a3b8; max-width: 700px; margin: 0 auto 50px auto; }
    .hero-badges-container { display: flex; justify-content: center; gap: 30px; margin-top: 60px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
    .hero-badge { display: flex; align-items: center; gap: 10px; color: #cbd5e1; font-size: 0.9rem; font-weight: 500; }
    .hero-btns { display: flex; justify-content: center; gap: 20px; }
    .btn {padding: 16px 40px; border-radius: 50px; font-weight: 700; font-size: 1.1rem; cursor: pointer; display: inline-block; transition: 0.3s;}

    /* SECCIONES & GRIDS */
    .section-header { text-align: center; max-width: 900px; margin: 0 auto 70px auto; }
    .section-header h2 { font-size: 3rem; margin-bottom: 15px; } 
    .section-header p { font-size: 1.3rem; }
    .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
    .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

    /* DIFERENCIAL */
    .comparison-section { min-height: 90vh; display: flex; align-items: center; background: var(--bg-secondary); padding: 100px 0; }
    .badge-pill { display: inline-block; padding: 8px 16px; background: #e0f2fe; color: #0284c7; border-radius: 50px; font-weight: 700; font-size: 0.85rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
    .diferencial-text h2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; color: var(--text-main); }
    .diferencial-text p { font-size: 1.15rem; color: var(--text-body); margin-bottom: 25px; max-width: 90%; }
    .stats-row { display: flex; gap: 40px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border-color); }
    .stat-item strong { display: block; font-size: 2.5rem; color: var(--accent); line-height: 1; margin-bottom: 5px; }
    .stat-item span { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
    .diferencial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
    .feature-card { background: white; padding: 30px 25px; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: 0.3s; }
    .feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--accent); }
    .f-icon { width: 50px; height: 50px; background: #f8fafc; border-radius: 12px; color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 20px; transition: 0.3s; }
    .feature-card:hover .f-icon { background: var(--accent); color: white; }
    .feature-card h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-main); }
    .feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

    /* SOLUCIONES (RBAC) */
    .rbac-section { min-height: 100vh; display: flex; align-items: center; background-color: #0f172a; position: relative; padding: 100px 0; }
    .rbac-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%); z-index: 0; }
    .rbac-info h2 { color: white !important; font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; }
    .rbac-info p { color: #94a3b8; font-size: 1.15rem; margin-bottom: 20px; max-width: 90%; }
    .rbac-info strong { color: white; }
    .badge-dark-mode { background: rgba(255,255,255,0.1); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
    .rbac-list { margin-top: 40px; display: flex; flex-direction: column; gap: 25px; }
    .rbac-list li { display: flex; gap: 20px; align-items: flex-start; }
    .icon-box { width: 50px; height: 50px; background: rgba(37, 99, 235, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #60a5fa; font-size: 1.2rem; flex-shrink: 0; }
    .rbac-list div strong { display: block; font-size: 1.1rem; margin-bottom: 5px; }
    .rbac-list div span { color: #64748b; font-size: 0.95rem; }
    
    .rbac-visual { position: relative; height: 500px; display: flex; justify-content: center; align-items: center; }
    .hierachy-card { width: 320px; background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 20px; position: absolute; transition: 0.4s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
    .rbac-visual:hover .hierachy-card { transform: translateY(0) scale(1); }
    .rbac-visual:hover .card-admin { transform: translateY(-140px) scale(1.05); z-index: 3; border-color: #3b82f6; }
    .rbac-visual:hover .card-staff { transform: translateY(0px) scale(1); z-index: 2; opacity: 0.8; }
    .rbac-visual:hover .card-user  { transform: translateY(140px) scale(0.95); z-index: 1; opacity: 0.6; }
    .card-admin { top: 50px; z-index: 3; transform: translateX(-40px); }
    .card-staff { top: 180px; z-index: 2; transform: translateX(0px); opacity: 0.9; }
    .card-user  { top: 310px; z-index: 1; transform: translateX(40px); opacity: 0.8; }
    .h-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; color: white; font-weight: 700; }
    .h-header i { font-size: 1.2rem; color: #38bdf8; }
    .status-dot { margin-left: auto; width: 10px; height: 10px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px #22c55e; }
    .fake-line { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-bottom: 10px; }
    .fake-line.full { width: 100%; } .fake-line.half { width: 60%; }
    .h-tag { display: inline-block; padding: 5px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-top: 10px; background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
    .h-tag.warning { background: rgba(234, 179, 8, 0.2); color: #facc15; }
    .h-tag.info { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

    /* RUBROS */
    .tech-section { padding: 100px 0; background: var(--bg-secondary); min-height: 90vh; display: flex; flex-direction: column; justify-content: center; }
    .tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; width: 100%; }
    .tech-card { background: white; border-radius: 20px; overflow: hidden; position: relative; border: 1px solid var(--border-color); transition: all 0.4s ease; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%; }
    .tech-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-card); border-color: var(--accent); }
    .card-bg-icon { position: absolute; top: -20px; right: -20px; font-size: 10rem; color: rgba(0,0,0,0.03); transform: rotate(15deg); transition: 0.4s; pointer-events: none; }
    .tech-card:hover .card-bg-icon { color: rgba(37, 99, 235, 0.05); transform: rotate(0deg) scale(1.1); }
    .tc-content { padding: 30px 25px; z-index: 2; display: flex; flex-direction: column; height: 100%; }
    .tc-icon { width: 60px; height: 60px; background: #eff6ff; color: var(--accent); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; transition: 0.3s; }
    .tech-card:hover .tc-icon { background: var(--accent); color: white; }
    .tech-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-main); }
    .tech-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; line-height: 1.5; }
    .tc-features { margin-bottom: 25px; border-top: 1px solid #f1f5f9; padding-top: 20px; }
    .tc-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-body); margin-bottom: 8px; }
    .tc-features li i { color: #10b981; font-size: 0.9rem; }
    .tc-btn { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
    .tc-btn:hover { gap: 12px; color: #1e40af; }
    .card-health { border-top: 4px solid #ef4444; }
    .card-engineering { border-top: 4px solid #f59e0b; }
    .card-sports { border-top: 4px solid #22c55e; }
    .card-edu { border-top: 4px solid #3b82f6; }

    /* PORTAFOLIO */
    .portfolio { padding: 100px 0; background: var(--bg-main); overflow: hidden; border-top: 1px solid var(--border-color); }
    .marquee-container { width: 100%; overflow: hidden; padding: 40px 0; position: relative; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); white-space: nowrap; }
    .marquee-container::before, .marquee-container::after { content: ""; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; pointer-events: none; }
    .marquee-container::before { left: 0; background: linear-gradient(to right, var(--bg-main), transparent); }
    .marquee-container::after { right: 0; background: linear-gradient(to left, var(--bg-main), transparent); }
    .marquee-track { display: inline-flex; animation: scroll 30s linear infinite; gap: 60px; }
    .marquee-item { font-size: 1.5rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; display: flex; align-items: center; gap: 10px; opacity: 0.7; transition: 0.3s; white-space: nowrap; }
    .marquee-item:hover { opacity: 1; transform: scale(1.1); }
    .marquee-container:hover .marquee-track { animation-play-state: paused; }
    .marquee-item.laravel:hover { color: #FF2D20; } .marquee-item.php:hover { color: #777BB4; } .marquee-item.mysql:hover { color: #00758F; } .marquee-item.js:hover { color: #F7DF1E; } .marquee-item.aws:hover { color: #FF9900; } .marquee-item.stack:hover { color: #0f172a; } .marquee-item.html:hover { color: #E34F26; } .marquee-item.css:hover { color: #1572B6; }
    
    .portfolio-dark { padding: 100px 0; background-color: #0f172a; position: relative; border-top: 1px solid rgba(255,255,255,0.05); overflow: hidden; }
    .portfolio-dark .section-header h2 { color: white !important; }
    .portfolio-dark .section-header p { color: #94a3b8 !important; font-size: 1.2rem; }
    .portfolio-marquee-dark { width: 100%; padding: 40px 0; position: relative; }
    .portfolio-card { width: 450px; height: 280px; flex-shrink: 0; border-radius: 16px; overflow: hidden; cursor: pointer; position: relative; border: none; background: white; transition: 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
    .portfolio-card:hover { transform: scale(1.02); border-color: var(--accent); }
    .portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
    .portfolio-card:hover img { transform: scale(1.1); }
    .portfolio-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px; background: linear-gradient(to top, #0f172a, transparent); color: white; opacity: 0; transition: 0.3s; transform: translateY(20px); }
    .portfolio-card:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }
    .portfolio-track { display: flex; gap: 30px; width: max-content; animation: scrollPortfolio 40s linear infinite; }
    .marquee-fade { position: absolute; top: 0; bottom: 0; width: 150px; z-index: 10; pointer-events: none; }
    .fade-left { left: 0; background: linear-gradient(to right, #0f172a, transparent); }
    .fade-right { right: 0; background: linear-gradient(to left, #0f172a, transparent); }
    @keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
    @keyframes scrollPortfolio { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

    /* PRECIOS */
    .pricing-section { padding: 100px 0; background: var(--bg-main); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
    .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; align-items: stretch; }
    .pricing-card { background: white; border: 1px solid var(--border-color); border-radius: 20px; padding: 40px 30px; display: flex; flex-direction: column; position: relative; transition: all 0.3s ease; }
    .card-header { text-align: center; margin-bottom: 20px; }
    .icon-circle { width: 60px; height: 60px; margin: 0 auto 20px auto; background: #f8fafc; color: var(--text-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: 0.3s; }
    .pricing-card h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--text-main); }
    .pricing-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; min-height: 45px; }
    .price-block { text-align: center; margin-bottom: 20px; }
    .currency { display: block; font-size: 0.9rem; color: var(--text-muted); font-weight: 600; margin-bottom: 5px; }
    .amount { font-size: 3.5rem; font-weight: 800; color: var(--text-main); line-height: 1; letter-spacing: -1px; }
    .amount-text { font-size: 2.5rem; font-weight: 800; color: var(--text-main); line-height: 1; }
    .billing { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; margin-top: 8px; font-weight: 600; letter-spacing: 0.5px; }
    .divider { height: 1px; background: #f1f5f9; margin: 20px 0; width: 100%; }
    .features-list { margin: 0 0 30px 0; padding: 0; list-style: none; flex-grow: 1; }
    .features-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-size: 0.95rem; color: var(--text-body); }
    .features-list li i { color: #10b981; font-size: 1rem; flex-shrink: 0; }
    .card-basic:hover { border-color: #cbd5e1; box-shadow: var(--shadow-sm); transform: translateY(-5px); }
    .card-pro { border: 2px solid var(--accent); box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08); transform: scale(1.02); z-index: 2; }
    .card-pro .icon-circle { background: #eff6ff; color: var(--accent); }
    .card-pro:hover { transform: scale(1.05); box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15); }
    .popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
    .card-enterprise { background: #0f172a; border-color: #1e293b; color: white; }
    .card-enterprise h3, .card-enterprise .amount, .card-enterprise .amount-text { color: white !important; }
    .card-enterprise p, .card-enterprise .currency, .card-enterprise .billing { color: #94a3b8 !important; }
    .card-enterprise .divider { background: rgba(255,255,255,0.1); }
    .card-enterprise li { color: #cbd5e1; }
    .card-enterprise li i { color: #38bdf8; }
    .card-enterprise .icon-circle { background: rgba(255,255,255,0.05); color: white; }
    .card-enterprise:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); border-color: #38bdf8; }
    .btn-plan { display: block; width: 100%; padding: 14px; text-align: center; border-radius: 10px; font-weight: 700; transition: 0.3s; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }
    .btn-outline { background: transparent; border: 1px solid #cbd5e1; color: var(--text-main); }
    .btn-outline:hover { background: #f8fafc; border-color: var(--text-main); }
    .btn-blue { background: var(--accent); color: white; border: none; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
    .btn-blue:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4); }
    .btn-glow { background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%); color: white; border: none; box-shadow: 0 0 15px rgba(6, 182, 212, 0.4); }
    .btn-glow:hover { background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%); transform: translateY(-2px); box-shadow: 0 0 25px rgba(6, 182, 212, 0.6); }

    /* CIERRE ÉPICO */
    
    .cta-card-dark { background: #0f172a; border-radius: 24px; padding: 60px; width: 100%; max-width: 1100px; position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 30px 60px -10px rgba(15, 23, 42, 0.3); border: 1px solid #1e293b; }
    .cta-card-dark::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(#334155 1px, transparent 1px); background-size: 30px 30px; opacity: 0.1; pointer-events: none; }
    .cta-content { position: relative; z-index: 2; max-width: 600px; display: flex; flex-direction: column; gap: 25px; }
    .cta-card-dark h2 { font-size: 3rem; color: white !important; line-height: 1.1; }
    .cta-description { color: #94a3b8 !important; font-size: 1.1rem; line-height: 1.6; }
    .cta-description strong { color: #e2e8f0; }
    .guarantee-grid { display: flex; gap: 30px; margin-top: 10px; flex-wrap: wrap; }
    .g-item { display: flex; align-items: center; gap: 12px; }
    .g-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.1); color: #38bdf8; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
    .g-item strong { display: block; color: white; font-size: 0.95rem; }
    .g-item span { color: #64748b; font-size: 0.8rem; }
    .cta-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; align-items: flex-start; }
    .btn-lg-glow { padding: 18px 40px; font-size: 1.1rem; background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%); box-shadow: 0 0 30px rgba(37, 99, 235, 0.4); border: 1px solid #60a5fa; }
    .btn-lg-glow:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(37, 99, 235, 0.6); }
    .cta-note { font-size: 0.85rem; color: #64748b; margin-left: 5px; }
    .cta-visual { position: absolute; right: -50px; top: 50%; transform: translateY(-50%) rotate(-15deg); opacity: 0.05; pointer-events: none; }
    .big-shield { font-size: 25rem; color: white; }

    /* FOOTER */
    footer { padding: 80px 0 40px; background: #0f172a; color: #94a3b8; text-align: center; }
    .social-links { margin: 30px 0; display: flex; justify-content: center; gap: 30px; }
    .social-links a { font-size: 1.8rem; color: #94a3b8; }
    .social-links a:hover { color: white; }

    /* ANIMACIONES */
    .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); filter: blur(5px); }
    .reveal.active { opacity: 1; transform: translateY(0); filter: blur(0); }
    .delay-100 { transition-delay: 0.1s; } .delay-200 { transition-delay: 0.2s; } .delay-300 { transition-delay: 0.3s; }

    /* MODALES GENERALES */
    .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 4000; opacity: 0; visibility: hidden; transition: 0.3s; }
    .modal-overlay.active { opacity: 1; visibility: visible; pointer-events: all; }
    .modal-content { background: white; padding: 40px; border-radius: var(--radius); width: 90%; max-width: 550px; position: relative; }
    .close-modal { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2rem; cursor: pointer; color: #94a3b8; z-index: 50; }
    .form-input, .form-select, .form-textarea { width: 100%; padding: 12px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; margin-bottom: 20px; }
    .form-input:focus { outline: none; border-color: var(--accent); background: white; box-shadow: 0 0 0 3px var(--accent-light); }

    /* MODAL PORTFOLIO (CORREGIDO IMÁGENES & ESTRUCTURA) */
    .preview-modal { 
        position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); 
        width: 95%; max-width: 900px; 
        max-height: 90vh; /* Altura máxima pantalla */
        background: white; z-index: 3000; border-radius: var(--radius); 
        box-shadow: 0 25px 50px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: 0.3s; 
        display: flex; flex-direction: column; 
    }
    .preview-modal.active { opacity: 1; visibility: visible; }
    
    .preview-hero { 
        height: 250px; flex-shrink: 0; position: relative; background: #f1f5f9; 
        overflow: hidden; /* Evita que la imagen se salga */
    }
    .preview-hero img { 
        width: 100%; height: 100%; 
        object-fit: cover; object-position: center top; 
    }
    
    .preview-scroll-area { flex-grow: 1; overflow-y: auto; padding: 40px; }
    
    /* REGLA DE ORO PARA IMÁGENES DENTRO DE MODALES */
    .preview-scroll-area img, #modalGallery img, .cs-gallery img {
        max-width: 100% !important; /* Nunca más ancho que el padre */
        height: auto !important;
        display: block;
        margin: 20px 0;
        border-radius: 8px;
        box-shadow: var(--shadow-sm);
    }

    .preview-btn { background: var(--text-main); color: white; padding: 10px 25px; border-radius: 50px; display: inline-flex; align-items: center; gap: 10px; }
    .preview-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: white; border-radius: 50%; border: none; z-index: 3010; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

    .case-study-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 30px; }
    .cs-section h4 { color: var(--text-main); font-size: 1.1rem; margin-bottom: 10px; border-bottom: 2px solid var(--border-color); padding-bottom: 5px; display: inline-block; }
    .cs-text { color: var(--text-body); font-size: 1rem; margin-bottom: 25px; line-height: 1.7; }
    .tech-tags { display: flex; flex-wrap: wrap; gap: 10px; }
    .tech-tag { background: #f1f5f9; color: var(--text-muted); padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border-color); }

    /* MODAL "VER DETALLES" (SCROLL & FIXED) */
    .plan-details-content {
        background: white; border-radius: 16px; width: 95%; max-width: 900px;
        max-height: 90vh; display: flex; flex-direction: column; position: relative;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); animation: slideUp 0.4s ease forwards;
    }
    
    #closeDynamicBtn { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.2); color: white; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; border: none; cursor: pointer; z-index: 50; transition: 0.3s; }
    #closeDynamicBtn:hover { background: rgba(255, 255, 255, 0.4); }

    .plan-header { background: var(--accent); padding: 40px 40px 20px 40px; text-align: center; color: white; flex-shrink: 0; }
    .plan-header h3 { color: white !important; font-size: 2rem; margin: 10px 0; }
    .plan-header p { color: #bfdbfe; font-size: 1.1rem; }
    .badge-white { background: white; color: var(--accent); padding: 5px 15px; border-radius: 20px; font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; }

    .plan-body-scroll { overflow-y: auto; flex-grow: 1; padding: 0; }
    .plan-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

    .plan-col-left { padding: 40px; background: #f8fafc; border-right: 1px solid var(--border-color); }
    .plan-col-left h4, .plan-col-right h4 { color: var(--text-main) !important; font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
    .plan-col-left p { margin-bottom: 15px; font-size: 0.95rem; line-height: 1.6; color: var(--text-body); }
    .ideal-for { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
    .ideal-for span { font-weight: 600; color: var(--text-main); font-size: 0.9rem; }
    .ideal-for i { color: #10b981; margin-right: 8px; }
    .plan-col-right { padding: 40px; background: white; }
    .spec-list { display: flex; flex-direction: column; gap: 20px; }
    .spec-list li { display: flex; gap: 15px; align-items: flex-start; }
    .spec-list i { font-size: 1.2rem; color: var(--accent); background: #eff6ff; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }
    .spec-list strong { display: block; color: var(--text-main); font-size: 1rem; }
    .spec-list span { font-size: 0.85rem; color: var(--text-muted); }

    .plan-footer { padding: 20px 40px; background: white; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
    .price-summary { display: flex; flex-direction: column; }
    .price-summary .small { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
    .price-summary .big { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; }

    /* LIGHTBOX & WHATSAPP (CORREGIDO Z-INDEX) */
    .lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 5000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s; }
    .lightbox-overlay.active { opacity: 1; visibility: visible; }
    .lightbox-img { max-width: 90%; max-height: 85vh; border-radius: 4px; }
    .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: white; border: none; width: 60px; height: 60px; border-radius: 50%; font-size: 2rem; cursor: pointer; }
    .lb-prev { left: 30px; } .lb-next { right: 30px; }
    .lightbox-close { position: absolute; top: 30px; right: 30px; font-size: 3rem; color: white; background: none; border: none; cursor: pointer; z-index: 5001; }
    
    .whatsapp-float { 
        position: fixed; bottom: 30px; right: 30px; 
        background: #25D366; color: white; width: 60px; height: 60px; 
        border-radius: 50%; display: flex; align-items: center; justify-content: center; 
        font-size: 35px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
        z-index: 5000; /* MÁXIMA PRIORIDAD */
        transition: 0.3s; text-decoration: none; 
    }
    .whatsapp-float:hover { transform: scale(1.1); color: white; }
    
    /* =========================================
   NUEVA SECCIÓN: SERVICIOS DE INGENIERÍA
   ========================================= */
    .engineering-services {
        background-color: #020617; /* Un tono más oscuro que el azul navy, casi negro */
        padding: 100px 0;
        position: relative;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .eng-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
        gap: 30px;
        max-width: 1100px;
        margin: 0 auto;
    }
    
    .eng-card {
        background: rgba(30, 41, 59, 0.4); /* Fondo semitransparente */
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        padding: 40px;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
    }
    
    /* Efecto Hover: Borde brillante y subida */
    .eng-card:hover {
        transform: translateY(-5px);
        border-color: #3b82f6; /* Azul eléctrico */
        background: rgba(30, 41, 59, 0.6);
        box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.2);
    }
    
    .eng-icon-box {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: #38bdf8; /* Celeste */
        margin-bottom: 25px;
        transition: 0.3s;
    }
    
    .eng-card:hover .eng-icon-box {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
    }
    
    .eng-card h3 {
        color: white !important;
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .eng-card p {
        color: #94a3b8;
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .eng-card ul {
        margin-top: auto; /* Empuja la lista al fondo si hay espacio */
        padding: 0;
        list-style: none;
        border-top: 1px solid rgba(255,255,255,0.05);
        padding-top: 20px;
    }
    
    .eng-card ul li {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #cbd5e1;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .eng-card ul li i {
        color: #10b981; /* Check verde */
        font-size: 0.9rem;
    }
    
    /* Responsive: 1 Columna en celular */
    @media (max-width: 900px) {
        .eng-grid {
            grid-template-columns: 1fr;
        }
        .eng-card {
            padding: 30px;
        }
    }

    /* =========================================
       MEDIA QUERIES (TODO EL RESPONSIVE)
       ========================================= */
    @media (max-width: 1200px) {
        .tech-grid { grid-template-columns: repeat(2, 1fr); }
        .services-grid { grid-template-columns: repeat(2, 1fr); }
        .pricing-card:last-child { grid-column: span 2; }
    }

    @media (max-width: 900px) {
        .grid-2 { grid-template-columns: 1fr; gap: 40px; }
        .hero { padding: 150px 0 80px 0; }
        .hero h1 { font-size: 3rem; }
        .cta-card-dark { padding: 40px 30px; flex-direction: column; text-align: center; }
        .cta-content { align-items: center; }
        .badge-pill { align-self: center !important; }
        .guarantee-grid { justify-content: center; gap: 20px; }
        .g-item { flex-direction: column; text-align: center; }
        .cta-actions { align-items: center; width: 100%; }
        .btn-lg-glow { width: 100%; }
        .cta-visual { display: none; }
        
        /* SOLUCIONES MOBILE (ARREGLADO) */
        .rbac-section { padding-bottom: 120px; overflow: visible; }
        .rbac-visual { height: auto; margin-top: 40px; flex-direction: column; gap: 20px; display: flex; }
        .hierachy-card { position: relative; top: auto; left: auto; transform: none !important; width: 100%; }
        .card-admin, .card-staff, .card-user { top: auto; left: auto; transform: none !important; }
    }

    @media (max-width: 768px) {
        header { height: 80px; padding: 0 20px; }
        .logo img { height: 60px; }
        
        .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: #0f172a; flex-direction: column; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,0.1); display: none; }
        .nav-links.active { display: flex; }
        
        /* FIX TOGGLE & SCROLL */
        .menu-toggle { display: block !important; color: white !important; z-index: 2000; }
        
        .hero h1 { font-size: 2.3rem; }
        .hero p { font-size: 1.1rem; }
        .hero-badges-container { gap: 15px; flex-direction: column; }
        
        .tech-grid, .services-grid { grid-template-columns: 1fr; }
        .pricing-card:last-child { grid-column: auto; }
        .portfolio-card { width: 300px; height: 200px; }
        
        .preview-header-row { flex-direction: column; align-items: flex-start; }
        .preview-btn { width: 100%; justify-content: center; }
        .comparison-section, .rbac-section { padding: 60px 0; }
        .alert-box, .success-box { padding: 25px 20px; }
        .role-visual { gap: 15px; }
        .fade-left, .fade-right { width: 50px; }
        .case-study-grid { grid-template-columns: 1fr; gap: 20px; }
        .preview-modal { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
        
        /* MODAL HERO REDUCIDO EN MÓVIL (EVITA TAPAR TÍTULO) */
        .preview-hero { height: 180px; }
        
        /* MODAL VER DETALLES MOBILE */
        .plan-header { padding: 30px 20px; }
        .plan-body-grid { grid-template-columns: 1fr; }
        .plan-col-left { border-right: none; border-bottom: 1px solid var(--border-color); padding: 30px; }
        .plan-col-right { padding: 30px; }
        .plan-footer { flex-direction: column; gap: 15px; text-align: center; }
        #closeDynamicBtn { top: 10px; right: 10px; background: rgba(0,0,0,0.2); }
    }
    
    /* =========================================
   NUEVA SECCIÓN FINAL (REDISEÑO OSCURO)
   ========================================= */

    /* Fondo negro total para la sección */
    .final-cta-section {
        background-color: #050505; /* Casi negro absoluto */
        padding: 120px 0;
        position: relative;
        border-top: 1px solid #1e293b;
    }
    
    /* Títulos y Subtítulos Centrados */
    .cta-title {
        font-size: 3.5rem;
        color: white !important;
        margin-bottom: 20px;
        line-height: 1.1;
    }
    
    .highlight-cyan {
        color: #06b6d4; /* Color Cyan brillante */
        background: linear-gradient(120deg, #06b6d4 0%, #22d3ee 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .cta-subtitle {
        color: #94a3b8;
        font-size: 1.2rem;
        max-width: 700px;
        margin: 0 auto 60px auto;
    }
    
    /* Grid de 3 Tarjetas */
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .benefit-card {
        background: rgba(255, 255, 255, 0.02); /* Fondo sutil */
        border: 1px solid #1e293b; /* Borde gris oscuro */
        border-radius: 16px;
        padding: 40px 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: 0.3s ease;
    }
    
    .benefit-card:hover {
        border-color: #06b6d4; /* Borde Cyan al pasar mouse */
        background: rgba(6, 182, 212, 0.05);
        transform: translateY(-5px);
    }
    
    .b-icon {
        font-size: 1.8rem;
        color: #06b6d4;
        margin-bottom: 20px;
    }
    
    .benefit-card h3 {
        color: white !important;
        font-size: 1.1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .benefit-card p {
        color: #64748b;
        font-size: 0.95rem;
        text-align: center;
        margin: 0;
        line-height: 1.5;
    }
    
    /* Botón Cyan Solido */
    .cta-actions-centered {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-cyan {
        background: #06b6d4; /* Cyan solido */
        color: #000; /* Texto negro para contraste */
        padding: 18px 40px;
        border-radius: 8px; /* Bordes menos redondeados que antes */
        font-weight: 800;
        font-size: 1.1rem;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: 0.3s;
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    }
    
    .btn-cyan:hover {
        background: #22d3ee;
        box-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
        transform: translateY(-2px);
        color: black;
    }
    
    /* Adaptación Mobile */
    @media (max-width: 900px) {
        .benefits-grid {
            grid-template-columns: 1fr; /* Una columna en celular */
            gap: 20px;
        }
        .cta-title {
            font-size: 2.5rem;
        }
        .btn-cyan {
            width: 100%;
            justify-content: center;
        }
    }
    
    /* =========================================
   SECCIÓN PROCESO (TIMELINE ANIMADO)
   ========================================= */
.process-section {
    background-color: #050505; /* Mismo negro que el CTA final */
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    padding: 20px 0;
}

/* Líneas conectores */
.timeline-line-bg, .timeline-line-progress {
    position: absolute;
    top: 30px; /* Alineado al centro del círculo */
    left: 0;
    height: 4px;
    border-radius: 4px;
    z-index: 1;
}

.timeline-line-bg {
    width: 100%;
    background: #1e293b; /* Gris oscuro */
}

.timeline-line-progress {
    width: 0%; /* Empieza vacío para la animación */
    background: linear-gradient(90deg, #06b6d4, #3b82f6); /* Cian a Azul */
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1); /* Animación suave */
}

/* Pasos individuales */
.process-step {
    position: relative;
    z-index: 2; /* Sobre la línea */
    flex: 1;
    text-align: center;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: #0f172a; /* Fondo oscuro para tapar la línea de atrás */
    border: 2px solid #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #06b6d4;
    margin-bottom: 25px;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* Efecto al activarse (cuando llega el scroll) */
.process-step.active .step-circle {
    border-color: #06b6d4;
    background: #0f172a;
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    transform: scale(1.1);
}

.step-content h3 {
    color: white !important;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-content p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- RESPONSIVE VERTICAL (CELULAR) --- */
@media (max-width: 900px) {
    .timeline-container {
        flex-direction: column;
        gap: 40px;
        padding-left: 20px; /* Espacio para la línea vertical */
    }

    .timeline-line-bg, .timeline-line-progress {
        width: 4px;
        height: 100%; /* Ahora es alto completo */
        left: 49px; /* Posición vertical alineada a círculos */
        top: 0;
    }
    
    .timeline-line-progress {
        width: 4px;
        height: 0%; /* Animación vertical */
        transition: height 2s ease;
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .step-circle {
        flex-shrink: 0; /* Que no se aplaste */
        margin-bottom: 0;
    }
}

/* =========================================
   NUEVO FOOTER (4 COLUMNAS DARK)
   ========================================= */
.footer-section {
    background-color: #050505; /* Fondo negro continuo */
    padding: 80px 0 30px 0;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr; /* Ajuste de anchos */
    gap: 40px;
    margin-bottom: 60px;
}

/* Columna 1: Logo y Redes */
.footer-logo-img {
    height: 60px; /* Ajusta según tu logo */
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Vuelve el logo blanco si es oscuro */
}

.footer-desc {
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 250px;
}

.social-icons-box {
    display: flex;
    gap: 15px;
}

.social-icons-box a {
    width: 40px;
    height: 40px;
    background: #1e293b; /* Gris oscuro caja */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #cbd5e1;
    transition: 0.3s;
}

.social-icons-box a:hover {
    background: #06b6d4; /* Cyan al pasar mouse */
    color: black;
    transform: translateY(-3px);
}

/* Títulos de Columnas */
.footer-col h4 {
    color: white !important;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Listas de Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: #94a3b8;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: #06b6d4;
    padding-left: 5px; /* Efecto de movimiento */
}

/* Columna Contacto */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-list li i {
    color: #06b6d4; /* Iconos cyan */
    font-size: 1rem;
}

.contact-list li a {
    color: #94a3b8;
}

.contact-list li a:hover {
    color: white;
}

/* =========================================
   CORRECCIÓN: CENTRADO DE COLUMNA 1 (LOGO)
   ========================================= */
.brand-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente la imagen y los iconos */
    text-align: center;  /* Centra el texto del párrafo */
}

/* Aseguramos que la descripción no se vaya de ancho al estar centrada */
.brand-col .footer-desc {
    max-width: 100%; /* Aprovecha el espacio */
    margin-left: auto;
    margin-right: auto;
}

/* Botón WhatsApp */
.btn-whatsapp-footer {
    display: inline-block;
    background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
    width: 100%; /* Botón ancho completo en su columna */
}

.btn-whatsapp-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Barra inferior Copyright */
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 50px;
        text-align: center;
    }

    .footer-desc {
        margin: 0 auto 25px auto; /* Centrar texto descripción */
    }

    .social-icons-box {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center; /* Centrar items de contacto */
    }
}

/* =========================================
   SECCIÓN BLOG (TARJETAS DARK)
   ========================================= */
.blog-section {
    padding: 100px 0;
    background-color: #0f172a; /* Azul muy oscuro, casi negro */
    border-top: 1px solid rgba(255,255,255,0.05);
}

.blog-grid {
    display: grid !important;
    margin-top: 40px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px;
    width: 100%;
}

.blog-card {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: #06b6d4; /* Cian al hover */
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.blog-img-box {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-card:hover .blog-img-box img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.blog-tag {
    color: #06b6d4;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-card h3 {
    color: white !important;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Empuja el botón al fondo */
}

.read-more {
    color: #06b6d4;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.read-more:hover {
    gap: 10px;
    color: white;
}

/* --- ESTILOS DEL MODAL DE BLOG --- */
.blog-modal-content {
    background: #0f172a;
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 16px;
    position: relative;
    overflow-y: auto;
    border: 1px solid #1e293b;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: slideUp 0.4s ease forwards;
}

.blog-modal-header {
    position: relative;
}

.blog-modal-header img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%); /* Desvanecido abajo */
}

.blog-meta-modal {
    padding: 0 40px;
    margin-top: -40px; /* Sube sobre la imagen */
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.blog-modal-header h2 {
    padding: 0 40px;
    color: white !important;
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.blog-modal-body {
    padding: 0 40px 40px 40px;
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-modal-body h3 {
    color: #06b6d4;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .blog-modal-header img { height: 200px; }
    .blog-modal-header h2 { font-size: 1.8rem; padding: 0 20px; }
    .blog-modal-body { padding: 0 20px 30px 20px; }
    .blog-meta-modal { padding: 0 20px; }
}

/* =========================================
   FIX FINAL: ELIMINAR ESPACIO BLANCO DERECHO
   ========================================= */

/* 1. Blindamos las secciones nuevas para que nada se salga */
.process-section,
.final-cta-section,
.footer-section,
.blog-section {
    width: 100%;
    overflow: hidden; /* Corta cualquier elemento que se salga de los bordes */
    position: relative;
}

/* 2. Aseguramos que el body nunca exceda el ancho de la ventana */
html, body {
    width: 100%;
    overflow-x: hidden !important; /* Fuerza bruta para evitar scroll horizontal */
    position: relative;
}