/* =========================================
   CONFIGURACIÓN GENERAL Y VARIABLES
   ========================================= */
:root {
    --bg-dark: #0a0a0b;        /* Negro suave mate */
    --accent-blue: #0052ff;    /* Azul eléctrico corporativo */
    --text-main: #ffffff;
    --text-dim: #a1a1a6;       /* Gris claro para textos secundarios */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

/* =========================================
   HEADER / NAVBAR PREMIUM (AJUSTE GRANDE)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px; /* Altura aumentada para mayor impacto */
    display: flex;
    align-items: center;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
    transition: var(--transition);
}

.header-container {
    width: 96%; /* Aprovecha casi todo el ancho de la pantalla */
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Título RS WEB a la izquierda y con Estilo */
.logo-area {
    display: flex;
    align-items: center;
    margin-left: -10px; /* Pegado al borde izquierdo */
}

.logo-text {
    font-size: 32px; /* Tamaño grande */
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--accent-blue), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(0, 82, 255, 0.4);
    letter-spacing: 2px;
}

/* --- NAVEGACIÓN --- */
.nav-links {
    display: flex;
    gap: 60px; /* Separación amplia para llenar el espacio */
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 16px; /* Letra más grande */
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.nav-item:hover {
    color: var(--text-main);
}

/* --- SOLUCIÓN AL DESPLEGABLE (CORREGIDO PARA NAVBAR 100PX) --- */
.dropdown {
    position: relative;
    /* Aumentamos el área de detección hacia abajo */
    padding-bottom: 40px; 
    margin-bottom: -40px;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    /* Bajamos el menú para que no tape el enlace, pero que esté cerca */
    top: 80%; 
    left: 50%;
    transform: translateX(-50%);
    background: #161617;
    min-width: 260px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

/* El puente invisible ahora es más grande para cubrir el hueco de la navbar de 100px */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -45px; 
    left: 0;
    width: 100%;
    height: 45px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-dim);
    padding: 14px 28px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: var(--glass-bg);
    color: var(--accent-blue);
    padding-left: 35px;
}
/* =========================================
   BOTONES DE ACCIÓN (TAMAÑO EXTRA)
   ========================================= */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 40px;
}

.login-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 17px;
    font-weight: 600;
    transition: opacity 0.3s;
}

/* Botón Azul Grande */
.cta-button {
    background: var(--accent-blue);
    color: white;
    padding: 18px 45px; /* Botón muy grande y profesional */
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 82, 255, 0.5);
}

/* =========================================
   ANIMACIONES
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 1100px) {
    .nav-links { gap: 30px; }
    .logo-text { font-size: 24px; }
}
/* =========================================
   SECCIÓN HERO PREMIUM
   ========================================= */
.hero {
    height: 100vh; /* Ocupa toda la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px; /* Espacio para que el header no lo tape */
    position: relative;
    overflow: hidden;
}

.hero-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

/* Título Gigante e Impactante */
.hero-title {
    font-size: clamp(40px, 6vw, 85px); /* Se ajusta solo al tamaño de pantalla */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-main);
    letter-spacing: -2px;
}

.highlight {
    background: linear-gradient(45deg, var(--accent-blue), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtítulo elegante */
.hero-subtitle {
    font-size: 20px;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 45px auto;
    line-height: 1.8;
    font-weight: 400;
}

/* Botones del Hero */
.hero-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
}

/* Reemplaza tus secciones de botones con este código unificado */

.cta-button-hero {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 20px 50px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    /* EL BRILLO AZUL QUE SOLICITASTE */
    box-shadow: 0 0 20px rgba(0, 82, 255, 0.6); 
}

.cta-button-hero:hover {
    transform: translateY(-5px);
    /* EL BRILLO SE INTENSIFICA AL PASAR EL RATÓN */
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.8);
}

/* Ajuste específico para que el botón del Navbar no sea tan gigantesco pero mantenga el estilo */
.navbar .cta-button-hero {
    padding: 14px 35px;
    font-size: 16px;
}

/* Elimina o comenta el antiguo .cta-button para evitar conflictos */

.btn-secundario {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-secundario:hover {
    border-bottom: 2px solid var(--accent-blue);
}

/* Efecto de luz ambiental en el fondo */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.15) 0%, rgba(10, 10, 11, 0) 70%);
    z-index: 1;
    pointer-events: none;
}
 
/* Estilo de las partículas */
.particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent-blue); /* Usamos tu azul corporativo */
    border-radius: 50%;
    pointer-events: none; /* Para que no estorben al hacer clic */
    z-index: 99999;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: fadeAndScale 0.6s ease-out forwards; /* Dura menos de 1s */
}

@keyframes fadeAndScale {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* =========================================
   SECCIÓN CTA CON RECTÁNGULO Y SOMBRA
   ========================================= */
.final-cta {
    padding: 140px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f0f10 50%, var(--bg-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.final-cta::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.cta-box-premium {
    width: 100%;
    max-width: 1300px;
    background: linear-gradient(135deg, #111112 0%, #1a1a1b 50%, #111112 100%);
    padding: 100px 40px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(0, 82, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    
    border: 1px solid rgba(0, 82, 255, 0.2);
    transition: all 0.4s ease;
}

.cta-box-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 82, 255, 0.5), transparent);
}

.cta-box-premium::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 82, 255, 0.03), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cta-box-premium:hover {
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(0, 82, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 82, 255, 0.3);
    transform: translateY(-5px);
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.cta-title-wide {
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 60%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.blue-solid {
    color: var(--accent-blue);
    display: inline-block;
    text-shadow: 0 0 30px rgba(0, 82, 255, 0.4);
}

.cta-text-wide {
    font-size: 20px;
    color: var(--text-dim);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.cta-note-detail {
    font-size: 15px;
    color: var(--text-dim);
    margin-top: 15px;
    opacity: 0.8;
}

/* Estilo para que el botón se vea imponente dentro del rectángulo */
.cta-box-premium .cta-button {
    padding: 20px 60px;
    font-size: 18px;
    border-radius: 50px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box-premium .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 82, 255, 0.4);
}
/* 1. EL ESTILO DEL BOTÓN (AZUL CON BRILLO) */
.cta-button-hero, .cta-button-nav {
    background: linear-gradient(135deg, #0052ff 0%, #0041cc 100%);
    color: white !important;
    padding: 16px 50px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 82, 255, 0.5);
    box-shadow: 
        0 10px 30px rgba(0, 82, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.cta-button-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button-hero:hover::before {
    left: 100%;
}

/* 2. EL EFECTO DE PULSO (ANIMACIÓN) */
.pulse-effect {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 10px 30px rgba(0, 82, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    70% { box-shadow: 0 0px 0px 20px rgba(0, 82, 255, 0), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    100% { box-shadow: 0 10px 30px rgba(0, 82, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
}

/* 3. EFECTO AL PASAR EL RATÓN */
.cta-button-hero:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 82, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #0041cc 0%, #002d99 100%);
}

/* --- WRAPPER PARA EL BOTÓN --- */
.cta-actions-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0 35px 0;
    width: 100%;
}

/* --- NUEVO ESTILO: AVISO DE RESPUESTA 24H --- */
/* CENTRADO TOTAL DE LOS BADGES */
.cta-footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    width: 100%;
    flex-wrap: wrap;
}

.info-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 82, 255, 0.05) 100%);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(0, 82, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 44px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.1);
}

.info-badge:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 82, 255, 0.1) 100%);
    border-color: rgba(0, 82, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.15);
    transform: translateY(-2px);
}

.info-item {
    font-size: 14px;
    color: #c1c1c6;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.2px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #00ff88; /* Punto verde neón */
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88; /* Efecto de luz */
}

.info-item {
    font-size: 14px;
    color: #a1a1a6;
    font-weight: 500;
}

/* =========================================
   MODAL DE PRESUPUESTO
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #111112 0%, #1a1a1b 100%);
    border: 1px solid rgba(0, 82, 255, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(0, 82, 255, 0.2);
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #a1a1a6;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #0052ff;
}

.modal-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    color: #a1a1a6;
    font-size: 16px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 82, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #707070;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 82, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 82, 255, 0.1);
}

.services-section {
    margin-bottom: 30px;
}

.services-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 82, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 82, 255, 0.4);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #0052ff;
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: #0052ff;
    font-weight: 600;
}

.checkbox-item span {
    font-size: 14px;
    color: #a1a1a6;
    flex: 1;
    transition: color 0.3s ease;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0052ff 0%, #0041cc 100%);
    color: white;
    border: 1px solid rgba(0, 82, 255, 0.5);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 82, 255, 0.5);
    background: linear-gradient(135deg, #0041cc 0%, #002d99 100%);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: #707070;
    margin-top: 15px;
}
.envio-exito {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 11, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

/* =========================================
   1. ESTILOS DE LOS BOTONES (MANTENER)
   ========================================= */
.btn-submit, #btnEmpezar, #btnEmpezarHero, #btnEmpezarCTA {
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10; /* Asegura que sean clicables */
}

/* =========================================
  /* =========================================
   CAPA DE ÉXITO: AVIÓN Y ORDENADOR NEÓN
   ========================================= */
.exito-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 11, 0.98); /* Fondo oscuro RS WEB */
    display: none; /* Se activa con .active desde JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(15px);
}

/* Esta es la clase que el JS añade para que se vea */
.exito-overlay.active { 
    display: flex !important; 
    animation: fadeIn 0.4s ease forwards;
}

.exito-container {
    text-align: center;
    padding: 20px;
}

/* Contenedor del Avión y Ordenador */
.nave-espacial {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
}

.el-avion {
    font-size: 80px;
    color: #00d4ff;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
    animation: flightPath 3s infinite ease-in-out;
}

.el-ordenador {
    position: absolute;
    font-size: 24px;
    color: #ffffff;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: computerFloat 1.5s infinite ease-in-out;
}

/* Título con el degradado que querías */
.titulo-neon {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 32px;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitulo {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-family: 'Inter', sans-serif;
}

.subtitulo span { color: #00d4ff; font-weight: bold; }

/* Barra de carga */
.progress-loader {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin: 30px auto;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: #00d4ff;
    box-shadow: 0 0 10px #00d4ff;
    animation: progressRun 4s forwards;
}

/* ANIMACIONES */
@keyframes flightPath {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(-15deg); }
}

@keyframes computerFloat {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -60%); }
}

@keyframes progressRun { to { width: 100%; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

   /* =========================================
   FOOTER DEFINITIVO: RSW STUDIO PREMIUM
   ========================================= */
.footer-rs {
    background-color: var(--bg-dark); 
    color: var(--text-main);
    padding: 100px 0 40px 0;
    position: relative;
    font-family: 'Inter', sans-serif;
    /* Línea neón corregida con tu azul corporativo */
    border-top: 1px solid rgba(0, 82, 255, 0.4); 
    box-shadow: 0 -15px 40px rgba(0, 82, 255, 0.05);
    overflow: hidden;
}

/* Resplandor superior para que la línea no sea "plana" */
.footer-rs::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    filter: blur(1px);
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.footer-brand h3 {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    
    /* 1. Definimos el degradado */
    background-image: linear-gradient(45deg, var(--accent-blue), #ffffff);
    
    /* 2. Cortamos el fondo para que solo ocupe las letras (Webkit para Chrome/Safari) */
    -webkit-background-clip: text;
    
    /* 3. Cortamos el fondo para Firefox y otros estándar */
    background-clip: text;
    
    /* 4. Hacemos que el color del texto sea transparente para que se vea el fondo */
    -webkit-text-fill-color: transparent;
    color: transparent; 
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 16px;
    max-width: 350px;
    line-height: 1.7;
}

.footer-info h4 {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    font-weight: 700;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 15px;
    transition: var(--transition);
}

.footer-link i {
    color: var(--accent-blue);
    font-size: 18px;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(8px);
}

.insta-icon-premium {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 82, 255, 0.3);
    border-radius: 14px;
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.insta-icon-premium:hover {
    background: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.4);
}

.footer-bottom {
    margin-top: 80px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: #55555c;
    font-size: 13px;
    letter-spacing: 1px;
}

.footer-bottom span {
    color: var(--accent-blue);
    font-weight: 700;
}

/* Mobile */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p, .footer-link {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Obliga al cuerpo a medir toda la pantalla */
    margin: 0;
}

.footer-rs {
    margin-top: auto; /* Esto empuja el footer al fondo automáticamente */
}
/* Asegúrate de que tus secciones tengan este contenedor */
.section-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================================
   ESTILOS POR QUÉ NOSOTROS - RSW STUDIO
   ========================================= */
.porque-nosotros {
    padding: 120px 0;
    background-color: var(--bg-dark);
    position: relative;
}

.container-premium {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.badge {
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 15px;
    display: inline-block;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Tarjetas Estilo Cristal */
.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(0, 82, 255, 0.15);
    border-radius: 24px;
    padding: 50px 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-blue);
    background: rgba(0, 82, 255, 0.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 82, 255, 0.1);
}

/* La tarjeta del medio resalta un poco más por defecto */
.active-card {
    border-color: rgba(0, 82, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 82, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: var(--transition);
}

.feature-card i {
    font-size: 30px;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 10px var(--accent-blue));
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.feature-card p {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.8;
}

/* Cierre de sección */
.closing-phrase {
    text-align: center;
    margin-top: 80px;
    font-size: 20px;
    color: #ffffff;
    font-style: italic;
    opacity: 0.9;
}

.closing-phrase strong {
    color: var(--accent-blue);
    font-weight: 800;
}

/* Responsivo */
@media (max-width: 768px) {
    .grid-features { grid-template-columns: 1fr; }
    .feature-card { padding: 40px 30px; }
}


/* Estilos del Modal */
.modal-overlay {
    display: none; /* Escondido por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0a0a0a;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 82, 255, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
}

/* Color blanco para la página actual */
.nav-item.active {
    color: #ffffff !important;
    font-weight: 600;
    position: relative;
}

/* Opcional: una línea azul debajo para que sea más premium */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0052ff;
}

/* --- SECCIÓN NUESTROS PROYECTOS --- */

.project-card-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    margin: 40px auto;
    max-width: 1100px;
    backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Efecto de luz azul al pasar el ratón */
.project-card-premium:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(0, 82, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 82, 255, 0.2);
}

.project-image {
    flex: 1;
    min-width: 350px;
    padding: 40px; /* Reducido ligeramente para dar más espacio a la imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 82, 255, 0.15) 0%, transparent 70%);
    position: relative;
}

/* AJUSTE ESPECÍFICO DEL LOGO */
.project-image img {
    width: 100%;             /* Permite que use el ancho disponible */
    max-width: 280px;        /* Aumentado un poco para que llene mejor el recuadro */
    height: auto;
    object-fit: contain;     /* Evita que el logo se deforme */
    filter: drop-shadow(0 0 15px rgba(0, 82, 255, 0.4));
    transition: all 0.6s ease;
    display: block;
}

.project-card-premium:hover .project-image img {
    transform: scale(1.08); /* Efecto de acercamiento suave sin rotación brusca */
}

.project-info {
    flex: 1.2;
    min-width: 350px;
    padding: 60px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.project-tag {
    color: #0052ff;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.project-title {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 25px;
    font-weight: 800;
}

.project-description {
    color: #999;
    line-height: 1.8;
    margin-bottom: 35px;
    font-size: 1.1rem;
}

/* Etiquetas de tecnología */
.tech-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.pill {
    background: rgba(0, 82, 255, 0.05);
    padding: 8px 18px;
    border-radius: 50px;
    color: #0052ff;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 82, 255, 0.2);
    transition: all 0.3s ease;
}

.pill:hover {
    background: #0052ff;
    color: white;
}

/* Responsivo */



.trail-dot {
    position: fixed;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #0052ff 0%, rgba(0, 82, 255, 0) 80%);
    border-radius: 50%;
    pointer-events: none; /* No interfiere con clics */
    z-index: 9999;
    transition: transform 0.1s linear, opacity 0.5s ease-out;
}



/* Ajuste del logo al lado del texto */
.nav-logo-img {
    height: 35px; /* Tamaño equilibrado para que no sea más alto que el texto */
    width: auto;
    border-radius: 8px; /* Un poco de redondeado si la imagen es cuadrada */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .nav-logo-img {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
}

/* Alineación general del logo-area */
.logo-area {
    display: flex;
    align-items: center;
}


/* Brillo neón para el logo de la Navbar */
.logo-link img {
    filter: drop-shadow(0 0 8px rgba(0, 82, 255, 0.5)); /* Brillo azul suave inicial */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-link:hover img {
    filter: drop-shadow(0 0 15px rgba(0, 82, 255, 0.8)); /* El brillo se intensifica al hacer hover */
    transform: scale(1.1); /* Crece ligeramente */
}

/* Opcional: Refuerzo del texto al lado del logo */
.logo-link:hover .logo-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    color: #ffffff;
}


/* --- INTEGRACIÓN DE LOGO PREMIUM --- */
.logo-link img {
    height: 42px;
    width: auto;
    border-radius: 8px;
    /* Filtros para que el logo no se vea "muerto" */
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 10px rgba(0, 82, 255, 0.5));
    mix-blend-mode: lighten; /* Fusiona el fondo negro del JPEG con la navbar */
    transition: all 0.4s ease;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    
    /* Degradado metálico corregido */
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    background-clip: text;
    -webkit-background-clip: text; /* Prefijo para navegadores basados en Chrome/Safari */
    color: transparent; /* Obligatorio para que se vea el fondo de arriba */
    display: inline-block;
}

.logo-link:hover img {
    transform: scale(1.1);
    filter: brightness(1.3) drop-shadow(0 0 18px rgba(0, 82, 255, 0.8));
}


@keyframes brilloLogo {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.logo-text {
    background: linear-gradient(90deg, #fff, #0052ff, #fff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: brilloLogo 5s linear infinite;
}

.logo-link img:hover {
    filter: drop-shadow(0 0 15px rgba(0, 82, 255, 0.6));
    transform: scale(1.05);
}

/* Esto expande el menú a los bordes y quita el hueco de la derecha */
.header-container {
    max-width: 95% !important; /* Usa casi todo el ancho de la pantalla */
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Separa el logo de los links y del botón */
    align-items: center;
    padding: 10px 0;
}

/* Para que los enlaces del menú no estén tan pegados entre sí */
.nav-links {
    display: flex;
    gap: 35px; /* Más espacio entre cada sección del menú */
    flex: 1; /* Esto ayuda a empujar los botones a la derecha */
    justify-content: center;
}

/* Estilo para el área de los botones de la derecha */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: flex-end;
}

/* Efecto hover profesional para el logo */
.logo-link img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 82, 255, 0.7));
}



/* Expandir el contenedor al máximo para eliminar huecos a los lados */
.header-container {
    max-width: 98% !important; /* Casi el 100% de la pantalla */
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Empuja el logo a la izquierda y botones a la derecha */
    align-items: center;
    padding: 5px 20px;
}

/* Centrar los links del menú en el espacio sobrante */
.nav-links {
    display: flex;
    gap: 40px; 
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Centrado matemático perfecto */
}

/* Ajustar bloque de la derecha (Acceso Cliente y Botón) */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 30px; /* Espacio elegante entre ellos */
    margin-left: auto; /* Refuerza el empuje a la derecha */
}

/* Estilo para que el texto de Acceso Cliente resalte más */
.login-link {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap; /* Evita que se corte el texto */
}

/* Efecto hover profesional para el logo grande */
.logo-link img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(0, 82, 255, 0.8));
}


/* 1. Expandir la barra al 100% de la pantalla para quitar los huecos */
.header-container {
    max-width: 100% !important; 
    width: 100%;
    padding: 0 40px; /* Margen elegante en los bordes */
    display: flex;
    justify-content: space-between; /* Empuja logo a izq y botones a der */
    align-items: center;
    height: 100px; /* Barra más alta para que quepa un logo grande */
}

/* 2. El Logo: Ahora sí es GRANDE y ANCHO */
.main-logo {
    height: 85px !important; /* Casi el doble de alto */
    width: auto;
    min-width: 250px; /* Forzamos la anchura para que se vea de lejos */
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 82, 255, 0.6)); /* Brillo de calidad */
    transition: transform 0.3s ease;
}

/* 3. Menú central: Lo mantenemos en medio sin que moleste */
.nav-links {
    display: flex;
    gap: 30px;
    flex-grow: 1; /* Esto ocupa el espacio sobrante de forma inteligente */
    justify-content: center;
}

/* 4. Bloque derecho: Pegado al borde como indicaste */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 30px;
    min-width: fit-content;
}

/* Mejoramos el botón de presupuesto para que esté a la altura del nuevo logo */
.cta-button-hero {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
}


/* 1. Contenedor: Máximo ancho pero con aire en los bordes */
.header-container {
    max-width: 98% !important;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px; /* Espacio arriba/abajo y a los lados */
}

/* 2. El Logo: Tamaño estético y posición a la izquierda */
.main-logo {
    height: 55px !important; /* Altura ideal: ni gigante ni invisible */
    width: auto;
    display: block;
    margin-left: 0; /* Asegura que esté pegado a la izquierda */
    filter: drop-shadow(0 0 10px rgba(0, 82, 255, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* 3. Menú: Empujado para que no choque con el logo */
/* --- NAVEGACIÓN: EQUILIBRIO DE ESPACIOS --- */
.nav-links {
    display: flex;
    gap: 45px; /* Un pelo menos de espacio para que el bloque sea compacto */
    align-items: center;
    position: absolute;
    /* Posición estratégica para que no deje huecos gigantes en ningún lado */
    left: 45%; 
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.nav-item {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 16px; 
    font-weight: 700; 
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.4s ease;
    white-space: nowrap;
}

/* --- BOTONES DERECHA: MÁS CUERPO PARA CERRAR EL HUECO --- */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 40px; /* Aumentamos el hueco entre el login y el botón azul */
}

/* Ajuste del botón para que ocupe un poco más de espacio visual a la derecha */
.navbar .cta-button-hero {
    padding: 14px 38px !important; /* Más ancho para equilibrar el final de la barra */
    font-size: 15px !important;
    min-width: 180px; /* Le damos un ancho mínimo para que sea un bloque sólido */
    text-align: center;
}

/* AJUSTE PARA PANTALLAS GRANDES (Evita que se pierda el equilibrio) */
@media (min-width: 1700px) {
    .nav-links {
        left: 42%; /* En monitores muy grandes, lo pegamos un poco más al logo */
    }
    .nav-buttons {
        gap: 60px; /* Y separamos más los botones finales */
    }
}

/* RESPONSIVO */
@media (max-width: 1300px) {
    .nav-links {
        position: static;
        transform: none;
        margin: 0 auto; /* Si no hay espacio, que se centre solo */
    }
}
/* Efecto hover elegante */
.main-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 15px rgba(0, 82, 255, 0.6));
}



/* =========================================
   HEADER / NAVBAR PREMIUM DEFINITIVO
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px; 
    display: flex;
    align-items: center;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
}

.header-container {
    width: 96%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Necesario para el centrado del menú */
}

/* LOGO AJUSTADO */
.logo-area {
    display: flex;
    align-items: center;
    z-index: 10;
}

.main-logo {
    height: 70px; /* Tamaño ideal para no tocar los bordes */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 82, 255, 0.3));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

/* NAVEGACIÓN: ELIMINA HUECOS MUERTOS */
.nav-links {
    display: flex;
    gap: 40px; 
    align-items: center;
    position: absolute;
    left: 46%; /* Ajuste fino para equilibrar derecha e izquierda */
    transform: translateX(-50%);
}

.nav-item {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 15px; 
    font-weight: 700; 
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.4s ease;
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
}

/* BOTONES DERECHA: RELLENO DE ESPACIO */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 35px;
    z-index: 10;
}

.login-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.navbar .cta-button-hero {
    padding: 12px 30px !important;
    font-size: 15px !important;
    min-width: 170px;
    text-align: center;
}

/* RESPONSIVO PARA PANTALLAS MEDIANAS */
@media (max-width: 1400px) {
    .nav-links {
        position: static;
        transform: none;
        margin: 0 auto;
        gap: 25px;
    }
    .header-container {
        justify-content: space-between;
    }
}







:root {
  --primary-blue: #0052FF;
  --bg-card: #0a0a0a;
  --radius: 24px;
}

/* Contenedor Principal del Proyecto */
.proyecto-card {
  display: flex;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  align-items: center;
  gap: 50px;
  max-width: 1000px;
  margin: 20px auto;
  border: 1px solid #1a1a1a;
}

/* Contenedor del Logo (El recuadro) */
.visual-container {
  position: relative;
  width: 350px;
  height: 350px;
  perspective: 1200px; /* Profundidad 3D */
}

/* Lógica del Flip */
.flip-wrapper {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.visual-container:hover .flip-inner {
  transform: rotateY(180deg); /* Animación tipo "tumbado" lateral */
}

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Ajuste del Logo en el recuadro */
.flip-front {
  background: transparent;
}

.logo-adaptado {
  width: 85%; /* Ajusta esto para que el logo respire dentro del cuadro */
  height: 85%;
  object-fit: contain;
  border-radius: 40px; /* El estilo redondeado de tu imagen */
}

/* Parte de atrás con el nombre */
.flip-back {
  background: #111;
  transform: rotateY(180deg);
  border: 1px solid var(--primary-blue);
}

.revelacion-texto {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  font-size: 2rem;
}

.revelacion-texto .accent {
  color: var(--primary-blue);
  display: block;
}

/* Efecto de luz azul de fondo */
.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: var(--primary-blue);
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
}

/* Estilos de texto rápidos */
.tag { color: var(--primary-blue); font-size: 12px; letter-spacing: 2px; }
h2 { color: white; font-size: 40px; margin: 10px 0; }
.blue-text { color: var(--primary-blue); }
p { color: #888; line-height: 1.6; }
.btn-explorar {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
}













.automation-section {
  background-color: #050505;
  padding: 100px 20px; /* Mucho más espacio arriba y abajo */
  display: flex;
  flex-direction: column; /* Fuerza a que los bloques vayan uno debajo de otro */
  align-items: center;
  gap: 60px; /* Espacio real entre el título, la rejilla y el botón */
}

.header-content {
  text-align: center;
  max-width: 800px;
}

.header-content h1 {
  font-size: 3.5rem;
  color: white;
  margin: 20px 0;
}

.blue-glow {
  color: #0052FF;
  text-shadow: 0 0 30px rgba(0, 82, 255, 0.4);
}

/* LA REJILLA: Ahora no se amontona */
.automation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1200px;
}

.grid-item {
  background: #0f0f0f;
  padding: 40px;
  border-radius: 28px;
  border: 1px solid #1a1a1a;
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-10px);
  border-color: #0052FF;
}

/* BOTÓN WHATSAPP */
.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0052FF;
  color: white;
  padding: 18px 35px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(0, 82, 255, 0.3);
  transition: 0.3s;
}

.btn-whatsapp:hover {
  transform: scale(1.05);
  background: #0044d6;
  box-shadow: 0 15px 40px rgba(0, 82, 255, 0.5);
}








.automation-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Bajamos el inicio de la sección para que no pegue al menú, 
       pero sin dejar el hueco gigante de antes */
    padding: 80px 20px 100px 20px; 
    background-color: #050505;
    min-height: auto; /* Permite que el footer suba de forma natural */
}

.header-content {
    text-align: center;
    max-width: 900px;
    /* Este margen añade el espacio extra que pedías 
       específicamente para el texto de arriba */
    margin-top: 20px; 
    margin-bottom: 50px;
}

/* Ajuste específico para el texto pequeño de "INFRAESTRUCTURA DIGITAL" */
.eyebrow {
    display: block;
    color: #0052FF;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 15px; /* Separa un poco del H1 principal */
    text-transform: uppercase;
}










.automation-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Espaciado ajustado: bajamos un poco el contenido del menú */
  padding: 100px 20px;
  background-color: #050505;
  overflow: hidden; /* Para que el brillo no cree scroll */
}

/* Efecto de luz ambiental en el fondo */
.main-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 20px; /* Ajuste estético para bajarlo un poco */
  margin-bottom: 60px;
}

/* EFECTO DE LUZ EN EL TEXTO */
.blue-glow {
  color: #0052FF;
  /* Resplandor multicapa para que se vea intenso */
  text-shadow: 
    0 0 10px rgba(0, 82, 255, 0.8),
    0 0 30px rgba(0, 82, 255, 0.4),
    0 0 60px rgba(0, 82, 255, 0.2);
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  from {
    text-shadow: 0 0 10px rgba(0, 82, 255, 0.8), 0 0 30px rgba(0, 82, 255, 0.4);
  }
  to {
    text-shadow: 0 0 20px rgba(0, 82, 255, 0.9), 0 0 50px rgba(0, 82, 255, 0.6), 0 0 80px rgba(0, 82, 255, 0.3);
  }
}

.eyebrow {
  display: block;
  color: #0052FF;
  letter-spacing: 4px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* Ajuste de las tarjetas para que no se vean pegadas */
.automation-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  width: 100%;
}

.automation-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ajuste: Bajamos el contenido para que sea estético respecto al menú */
    padding: 100px 20px; 
    background-color: #050505;
    overflow: hidden;
}

/* Luz de fondo para eliminar el hueco negro aburrido */
.main-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 850px;
    /* Bajamos un poco más el bloque de texto */
    margin-top: 30px; 
    margin-bottom: 60px;
}

/* RECUPERADO: Efecto de luz azul en el texto */
.blue-glow {
    color: #0052FF;
    font-weight: bold;
    text-shadow: 
        0 0 15px rgba(0, 82, 255, 0.7),
        0 0 30px rgba(0, 82, 255, 0.3);
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    from { text-shadow: 0 0 15px rgba(0, 82, 255, 0.7), 0 0 30px rgba(0, 82, 255, 0.3); }
    to { text-shadow: 0 0 25px rgba(0, 82, 255, 0.9), 0 0 50px rgba(0, 82, 255, 0.5); }
}

.eyebrow {
    display: block;
    color: #0052FF;
    letter-spacing: 4px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 20px; /* Espacio estético entre la cejilla y el h1 */
}

/* Estilo para las tarjetas para que se mantengan centradas */
.automation-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}



/* Mejora de la Rejilla */
.automation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Tarjetas Estilo Premium */
.grid-item {
    background: linear-gradient(145deg, #0f0f0f 0%, #050505 100%);
    padding: 45px 35px;
    border-radius: 32px; /* Bordes más suaves */
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.grid-item:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 82, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 82, 255, 0.1);
}

/* Contenedor de Icono */
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 82, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 82, 255, 0.2);
}

.grid-item h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.grid-item p {
    color: #999;
    font-size: 1rem;
    line-height: 1.6;
}

/* Efecto de luz interna en cada tarjeta al pasar el mouse */
.item-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 82, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.grid-item:hover .item-glow {
    opacity: 1;
}

/* Fondo de puntos decorativo (opcional para llenar huecos) */
.grid-dot-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#1a1a1a 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    z-index: 1;
}




/* Estilo para las tarjetas de IA (Sobres) */
.ia-info-extra {
    margin-top: 80px;
    text-align: center;
    max-width: 1000px;
    color: white;
}

.ia-info-extra h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0052FF;
}

.info-steps {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.step {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 20px;
    flex: 1;
    min-width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.step strong {
    display: block;
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step p {
    font-size: 0.9rem;
    color: #888;
}

.active-step {
    border-color: #0052FF;
    box-shadow: 0 0 20px rgba(0, 82, 255, 0.2);
    background: rgba(0, 82, 255, 0.05);
}

/* Animación especial para los iconos de IA */
.icon-box i {
    /* Definimos el degradado */
    background: linear-gradient(45deg, #0052FF, #00c6ff);
    
    /* Recorte del fondo al texto (Versión estándar y Webkit) */
    background-clip: text;
    -webkit-background-clip: text;
    
    /* Hacer el color del icono transparente para que se vea el degradado */
    color: transparent;
    -webkit-text-fill-color: transparent;
    
    /* Efecto de brillo */
    filter: drop-shadow(0 0 5px rgba(0, 82, 255, 0.5));
    
    /* Opcional: para que se vea bien centrado */
    display: inline-block;
}


/* Contenedor principal de 3 columnas */
.ia-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas */
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* La Tarjeta (Sobre) */
.ia-card {
    position: relative;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    height: 300px; /* Altura fija para que todas sean iguales */
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenido interno */
.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: transform 0.5s ease;
}

/* El texto que está oculto al principio */
.reveal-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-top: 0;
}

.reveal-text p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-link {
    display: block;
    margin-top: 15px;
    color: #0052FF;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* --- EFECTO HOVER (CUANDO PASAS EL RATÓN) --- */

.ia-card:hover {
    border-color: #0052FF;
    transform: translateY(-5px);
    background: linear-gradient(180deg, #0a0a0a 0%, #0d1117 100%);
}

.ia-card:hover .card-content {
    transform: translateY(-20px); /* Sube un poco el icono y titulo */
}

.ia-card:hover .reveal-text {
    max-height: 200px; /* Se abre el sobre */
    opacity: 1;
    margin-top: 20px;
}

/* Brillo sutil de fondo en la tarjeta */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 82, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.ia-card:hover .card-glow {
    opacity: 1;
}

/* Responsive: en móviles pasa a 1 columna */
@media (max-width: 992px) {
    .ia-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .ia-bento-grid {
        grid-template-columns: 1fr;
    }
}


.ia-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Espaciado más fino */
    max-width: 1000px; /* Contenedor más estrecho para que no se estiren tanto */
    margin: 40px auto;
    padding: 0 20px;
}

.ia-card {
    text-decoration: none; /* Quita el subrayado del enlace */
    position: relative;
    background: rgba(255, 255, 255, 0.02); /* Fondo más sutil */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 20px;
    height: 180px; /* Altura mucho más pequeña y estética */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-card h3 {
    color: white;
    font-size: 1.1rem;
    margin-top: 10px;
    transition: 0.3s;
}

/* Efecto al pasar el ratón */
.ia-card:hover {
    height: 240px; /* Solo crece lo justo para mostrar el texto */
    border-color: #0052FF;
    background: rgba(0, 82, 255, 0.03);
    transform: translateY(-5px);
}

.reveal-text {
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
}

.ia-card:hover .reveal-text {
    max-height: 120px;
    opacity: 1;
    margin-top: 15px;
}

.reveal-text p {
    font-size: 0.85rem;
    color: #ababab;
    margin: 0;
}

.card-link {
    display: inline-block;
    margin-top: 12px;
    color: #0052FF;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Ajuste de iconos para que sean más pequeños */
.icon-box {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

/* Responsive para que en móvil no se rompa */
@media (max-width: 850px) {
    .ia-bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .ia-bento-grid { grid-template-columns: 1fr; }
}



/* Contenedor del texto motivador */
.ia-hero-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

/* Etiqueta pequeña superior */
.badge {
    background: rgba(0, 82, 255, 0.1);
    color: #0052FF;
    padding: 6px 15px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    border: 1px solid rgba(0, 82, 255, 0.3);
    display: inline-block;
    margin-bottom: 20px;
}

/* Título principal */
.motivation-title {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
}

/* Subtítulo descriptivo */
.motivation-subtitle {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .motivation-title {
        font-size: 2rem;
    }
    .ia-hero-text {
        margin-bottom: 40px;
    }
}





/* --- SECCIÓN PRINCIPAL IA --- */
.ia-section {
    padding-top: 140px; /* Espacio para el menú */
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* --- TEXTO HERO --- */
.ia-hero-text {
    text-align: center;
    max-width: 900px;
    margin-bottom: 40px;
    padding: 0 20px;
    z-index: 2;
}

.motivation-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.motivation-subtitle {
    font-size: 1.1rem;
    color: #888;
    max-width: 700px;
    margin: 0 auto;
}

/* --- BENTO GRID COMPACTO --- */
.ia-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    width: 95%;
    margin-bottom: 40px;
}

.ia-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    height: 180px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.ia-card:hover {
    background: rgba(0, 82, 255, 0.05);
    border-color: #0052FF;
    transform: translateY(-5px);
}

/* --- CALCULADORA PEGADA --- */
.ia-impact-zone {
    padding: 20px 20px 80px 20px;
    background: #000;
    display: flex;
    justify-content: center;
}

.impact-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.impact-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 30px;
    margin-top: 30px;
}

.impact-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #1a1a1a;
    border-radius: 10px;
    margin: 30px 0;
}

.impact-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    background: #0052FF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px #0052ff;
}

.impact-stats {
    display: flex;
    justify-content: space-around;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    display: block;
}




/* --- SOLUCIÓN DEFINITIVA HUECO NEGRO --- */
/* Forzamos a que las secciones no midan más de lo que ocupa su contenido */
.ia-section, .ia-impact-zone, main {
    min-height: auto !important; 
    height: auto !important;
    margin: 0 !important;
    padding-bottom: 20px !important;
}

/* Pegamos la cuadrícula de tarjetas a la calculadora */
.ia-bento-grid {
    margin-bottom: 0 !important; /* Eliminamos el espacio de abajo de las tarjetas */
    padding-bottom: 20px !important;
}

/* Ajustamos la zona de la calculadora para que suba */
.ia-impact-zone {
    margin-top: 0 !important; /* Asegura que empiece justo donde acaban las tarjetas */
    padding-top: 0 !important;
}

/* Si usas el wrapper que te pasé antes, esto lo centra todo */
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
}





/* Estilos específicos para Base de Datos */
.db-hero {
    padding: 140px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.db-glow {
    position: absolute;
    top: 0;
    width: 100%;
    height: 400px;
    background: radial-gradient(circle at top, rgba(0, 82, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.db-performance-zone {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #000, #050505);
}

.db-sim-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 30px;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.db-visual {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.db-server {
    font-size: 3rem;
    color: #0052ff;
    transition: 0.2s;
}

.db-results {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    font-weight: 700;
}

.db-results span {
    display: block;
    font-size: 1.5rem;
}





/* Etiquetas de Casos de Uso */
.case-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 82, 255, 0.3);
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-tag:hover {
    background: #0052ff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 82, 255, 0.4);
}

/* Botón Flotante */
.wa-floating-box {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 10px 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.8s ease-out;
}

.wa-btn-circle {
    width: 50px;
    height: 50px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.3s;
}

.wa-btn-circle:hover {
    transform: scale(1.1) rotate(10deg);
}

.wa-text {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

.wa-text strong { font-size: 0.9rem; color: white; }
.wa-text span { font-size: 0.75rem; color: #888; }

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.cases-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.case-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 12px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.case-tag:hover {
    background: rgba(0, 82, 255, 0.1);
    border-color: #0052ff;
    color: white;
    transform: translateY(-5px) scale(1.02);
}

/* Estilo especial para el botón de "Y mucho más" */
.custom-idea {
    background: linear-gradient(90deg, rgba(0, 82, 255, 0.2), rgba(0, 255, 136, 0.1)) !important;
    border: 1px dashed #0052ff !important;
    color: white !important;
    font-weight: 700;
}

.custom-idea:hover {
    background: #0052ff !important;
    box-shadow: 0 0 25px rgba(0, 82, 255, 0.5);
}

.custom-idea i {
    animation: rotateLight 2s infinite linear;
}

@keyframes rotateLight {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #ffcc00; }
    100% { transform: scale(1); }
}


.btn-whatsapp-premium {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-whatsapp-premium:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    filter: brightness(1.1);
}

.btn-whatsapp-premium i {
    font-size: 1.5rem;
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}




.cta-container {
    position: relative;
    z-index: 999; /* Esto lo pone por encima de cualquier fondo o capa */
}

.btn-whatsapp-premium {
    pointer-events: auto !important; /* Asegura que detecte el clic */
}

/* Estilo para el activador del mensaje */
.tooltip-trigger {
    position: relative;
    cursor: help;
    border-bottom: 1px dashed #0052ff; /* Una línea sutil para indicar que hay info */
}

/* El recuadro explicativo */
.tooltip-box {
    visibility: hidden;
    width: 280px;
    background-color: rgba(10, 10, 10, 0.95); /* Fondo casi negro */
    color: #fff;
    text-align: left;
    border: 1px solid #0052ff; /* Borde azul marca */
    padding: 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    text-transform: none; /* Para que no salga todo en mayúsculas si el título lo está */
    
    /* Posicionamiento */
    position: absolute;
    z-index: 100;
    bottom: 125%; /* Aparece arriba de la palabra */
    left: 50%;
    transform: translateX(-50%);
    
    /* Efectos */
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Flechita inferior del recuadro */
.tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0052ff transparent transparent transparent;
}

/* Mostrar al pasar el ratón */
.tooltip-trigger:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}



.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-15px);
    border-color: #0052ff;
    background: rgba(0, 82, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.price-card.featured {
    border: 2px solid #0052ff;
    background: rgba(0, 82, 255, 0.02);
    transform: scale(1.05);
}

.card-tier {
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    background: #333;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 40px;
    width: 150px;
    text-align: center;
}

.price-card h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
}

.price-desc {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 30px;
    height: 50px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
}

.feature-list li {
    color: #ccc;
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i.fa-check { color: #00ff88; }
.feature-list li.disabled { color: #444; text-decoration: line-through; }

.btn-plan {
    display: block;
    width: 100%;
    padding: 15px;
    background: white;
    color: black;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.price-card:hover .btn-plan {
    background: #0052ff;
    color: white;
}



.price-card.custom-plan:hover {
    border-style: solid;
    background: linear-gradient(145deg, rgba(0, 82, 255, 0.05), rgba(0, 255, 136, 0.05));
    box-shadow: 0 0 30px rgba(0, 82, 255, 0.2);
}

.custom-plan .btn-plan:hover {
    background: white !important;
    color: black !important;
}


.pricing-grid-final {
    display: flex;
    justify-content: center; /* Las centra en pantalla */
    align-items: stretch;    /* Hace que todas tengan la misma altura */
    gap: 20px;               /* Espacio entre tarjetas */
    max-width: 1400px;       /* Ancho máximo para que no se peguen a los bordes */
    margin: 50px auto;       /* Centra el bloque entero */
    padding: 0 20px;
}

.price-card {
    flex: 1;                 /* Obliga a las 4 a repartirse el espacio por igual */
    min-width: 250px;        /* Evita que se encojan demasiado */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Ajuste para que en pantallas pequeñas de móvil se pongan una debajo de otra */
@media (max-width: 1100px) {
    .pricing-grid-final {
        flex-wrap: wrap; /* En tablets o portátiles pequeños permite que bajen */
    }
    .price-card {
        flex: 1 1 45%; /* Se ponen de 2 en 2 */
    }
}

@media (max-width: 700px) {
    .price-card {
        flex: 1 1 100%; /* En móviles de 1 en 1 */
    }
}



.addon-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.addon-card:hover {
    background: rgba(0, 82, 255, 0.05);
    border-color: #0052ff;
    transform: translateY(-5px);
}

.addon-icon {
    font-size: 2rem;
    color: #0052ff;
    margin-bottom: 20px;
}

.addon-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.addon-explain {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.addon-explain strong {
    color: #ccc;
}

.addon-badge {
    display: inline-block;
    background: rgba(0, 82, 255, 0.1);
    color: #0052ff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
}



/* --- SECCIÓN ADICIONALES RSW STUDIO --- */

.ia-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

/* Efecto de brillo en el título */
.blue-glow {
    color: #0052ff;
    text-shadow: 0 0 15px rgba(0, 82, 255, 0.6);
}

.ia-hero-text {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    background: rgba(0, 82, 255, 0.1);
    color: #0052ff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid rgba(0, 82, 255, 0.2);
}

/* Estilo de las Tarjetas Addon - CORREGIDO EL FALLO DE VISIBILIDAD */
.addon-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    /* CAMBIO CLAVE: Cambiado de 0 a 1 para que sea visible sin depender de JS */
    opacity: 1; 
    transform: translateY(0);
}

/* Mantenemos tu efecto de hover premium */
.addon-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #0052ff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 82, 255, 0.1);
    transform: translateY(-5px);
}

.addon-icon {
    font-size: 2.5rem;
    color: #0052ff;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(0, 82, 255, 0.3));
}

.addon-card h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.addon-explain {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.addon-badge {
    display: inline-block;
    background: rgba(0, 82, 255, 0.1);
    color: #0052ff;
    padding: 6px 15px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid rgba(0, 82, 255, 0.1);
    align-self: flex-start;
}

/* Responsive: Mantenemos tus configuraciones de rejilla */
@media (max-width: 992px) {
    .adicionales-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .adicionales-grid {
        grid-template-columns: 1fr !important;
    }
}




/* --- ESTILO PROFESIONAL ADICIONALES --- */

.adicionales-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* FORZAMOS 3 COLUMNAS */
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.addon-card {
    background: linear-gradient(145deg, #0a0a0a, #111);
    border: 1px solid #222;
    border-radius: 20px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.addon-card:hover {
    border-color: #0052ff;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 82, 255, 0.1);
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.addon-icon {
    font-size: 2rem;
    color: #0052ff;
    filter: drop-shadow(0 0 8px rgba(0, 82, 255, 0.4));
}

.addon-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: #0052ff;
    background: rgba(0, 82, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.addon-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.addon-explain {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* BOTÓN SABER MÁS */
.btn-saber-mas {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.btn-saber-mas i {
    font-size: 0.7rem;
    color: #0052ff;
}

.btn-saber-mas:hover {
    color: #0052ff;
    gap: 12px;
}

/* RESPONSIVE PARA MÓVIL (1 columna) Y TABLET (2 columnas) */
@media (max-width: 1024px) {
    .adicionales-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .adicionales-grid { grid-template-columns: 1fr; }
    .motivation-title { font-size: 2.2rem; }
}