/* =========================================
   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 */

