/* 1. VARIABLES Y CONFIGURACIÓN BASE */
:root {
    --primary: #020617; /* Slate 950 */
    --accent: #175289;  /* Azul ID Corporativo */
    --accent-light: #3b82f6;
    --accent-glow: rgba(23, 82, 137, 0.3);
    
    /* Configuración de Cristal Híbrido (Punto medio) */
    --glass: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(23, 82, 137, 0.2);
    --glass-blur: blur(20px);
    
    --text-main: #0f172a; /* Slate 900 para lectura en cristal claro */
    --text-muted: #64748b;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--primary);
    color: #f8fafc;
    margin: 0;
    overflow-x: hidden;
    /* Efecto Galaxia / Éxodo Digital sutil */
    background-image: 
        radial-gradient(1px 1px at 10% 20%, #ffffff22, transparent),
        radial-gradient(1px 1px at 50% 50%, #ffffff33, transparent),
        radial-gradient(2px 2px at 80% 80%, rgba(23, 82, 137, 0.2), transparent);
    background-size: 300px 300px;
    background-attachment: fixed;
}

/* 2. ANIMACIONES */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. CARRUSEL ELITE (Nitidez y Fluidez) */
.eliteSwiper {
    width: 100%;
    overflow: visible !important;
}

.elite-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #0f172a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.elite-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.swiper-slide {
    opacity: 0.4;
    transition: all 0.6s ease;
    transform: scale(0.9);
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.swiper-slide-active img {
    transform: scale(1.05);
}

/* 4. PANEL LATERAL DE SERVICIOS (Corregido y Unificado) */
#services-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Totalmente fuera */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(25px);
    z-index: 2000;
    padding: 60px 40px;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

#services-panel.active {
    right: 0;
}

#services-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 1900;
    display: none;
    opacity: 0;
    transition: 0.4s;
}

#services-overlay.show {
    display: block;
    opacity: 1;
}

.servicio-link {
    display: block;
    padding: 18px 25px;
    border-radius: 16px;
    color: #cbd5e1;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.servicio-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-light);
    border-color: rgba(59, 130, 246, 0.2);
    padding-left: 35px;
}

/* 5. BOTONES Y COMPONENTES GLASS */
.btn-gradient {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #175289 0%, #1e69b1 100%);
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(23, 82, 137, 0.3);
}

.btn-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.7s;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(23, 82, 137, 0.5);
}

.btn-gradient:hover::after {
    left: 125%;
}

/* 6. GRID DE SERVICIOS (Bento Grid responsivo) */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); 
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) { .servicios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .servicios-grid { grid-template-columns: repeat(4, 1fr); } }

.servicio-card {
    display: block;
    padding: 40px;
    border-radius: 35px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.servicio-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--accent);
    box-shadow: 0 30px 60px -12px rgba(23, 82, 137, 0.2);
}

/* 7. UTILIDADES DE TEXTO */
.hero-title {
    background: linear-gradient(180deg, #fff 30%, #175289 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.text-glass-dark {
    color: var(--text-main);
}