/* --- VARIABLES GLOBALES --- */
:root {
    --color-acento: #E60000;      
    --color-cian: #00C2E0;        
    --bg-oscuro: #121212;          
    --texto-blanco: #f4f4f4;
    --texto-gris: #b0b0b0;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader img {
    height: 80px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.3; transform: scale(0.95); }
}

.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

/* --- HEADER --- */
header {
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    padding: 25px 60px; 
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    transition: all 0.4s ease;
}

header.compacto { padding: 10px 60px; border-bottom-color: var(--color-acento); }

.logo-container img { height: 70px; width: auto; transition: 0.4s ease; }
header.compacto .logo-container img { height: 55px; }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 40px; }
nav a { text-decoration: none; color: var(--texto-blanco); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }

.btn-soluciones {
    display: inline-flex; align-items: center; 
    padding: 10px 18px; 
    border: 2.5px solid var(--color-cian); color: var(--color-cian) !important;
    text-decoration: none; font-size: 0.95rem; font-weight: 800;
    position: relative; z-index: 1; transition: 0.4s ease; overflow: hidden;
}

.btn-soluciones::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background-color: var(--color-acento); z-index: -1; transition: 0.5s;
}
.btn-soluciones:hover { color: white !important; border-color: var(--color-acento); }
.btn-soluciones:hover::before { left: 0; }

/* --- RESPONSIVE HEADER --- */
@media (max-width: 900px) {
    header { padding: 12px 20px !important; }
    .logo-container img { height: 42px !important; }
    nav ul li:not(:last-child) { display: none; }
    .btn-soluciones { padding: 8px 12px !important; font-size: 0.7rem !important; }
}