/* HEADER FIJO - mantiene diseño limpio */
.fixed-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 2200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== CONTENIDO PRINCIPAL ===== */
/* Eliminado el margin-top que generaba el espacio */
.main-content{
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Header left (menu + logo) */
.header-left{
    display: flex;
    align-items: center;
    gap: 14px;
}

/* header logo */
.header-logo{
    display: flex;
    align-items: center;
    gap: 10px;
}



.header-logo .logo-text{
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

/* main navigation */
.main-nav .nav-links{
    display: flex;
    gap: 20px;
    list-style: none;
}

.main-nav .nav-links a{
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.main-nav .nav-links a.active,
.main-nav .nav-links a:hover{
    background: rgba(41,73,211,0.08);
    color: var(--primary-blue);
}

/* header actions */
.header-actions .btn{
    padding: 10px 16px;
}

/* mobile menu button */
.mobile-menu-btn{
    display: none;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===== FIX GLOBAL DEL ESPACIO BLANCO ===== */
html, body{
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* RESPONSIVE */
@media(max-width:900px){
    .main-nav{ display: none; }
    .mobile-menu-btn{ display: inline-flex; }
    .header-actions{ display: none; }
}

/* ===== MODO OSCURO PARA EL MENÚ DE NAVEGACIÓN ===== */
body.dark-mode .nav-links a {
    color: white !important;
}

body.dark-mode .nav-links a:hover {
    color: #60a5fa !important;
}

body.dark-mode .nav-links a.active {
    color: #60a5fa !important;
}

/* Específicamente para los textos en español e inglés */
body.dark-mode .es-lang,
body.dark-mode .en-lang {
    color: white !important;
}

body.dark-mode .es-lang:hover,
body.dark-mode .en-lang:hover {
    color: #60a5fa !important;
}

body.dark-mode .es-lang.active,
body.dark-mode .en-lang.active {
    color: #60a5fa !important;
}

/* ===== LOGO PARA MODO OSCURO ===== */
.logo-dark {
    display: none;
}

.logo-light {
    display: block;
}

body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block;
}







/* SELECTOR DE IDIOMA FIJO A LA DERECHA */
.language-switcher {
    position: fixed;
    right: 20px; /* Margen normal */
    z-index: 1000;
}

/* DESPUÉS DE 900px - MARGEN ESPECIAL DE 180px */
@media (min-width: 900px) {
    .language-switcher {
        right: 190px; /* Margen aumentado solo después de 900px */
    }
}

/* MEDIA QUERIES PARA RESPONSIVE (mayores a 900px ya tienen el margen especial) */

/* Tablet (menos de 900px pero más de 768px) */
@media (max-width: 899px) {
    .language-switcher {
        right: 15px; /* Margen normal para tablet */
        top: 15px;
    }
}

/* Mobile grande (menos de 768px) */
@media (max-width: 768px) {
    .language-switcher {
        right: 12px;
        top: 12px;
    }
}

/* Mobile pequeño (menos de 480px) */
@media (max-width: 480px) {
    .language-switcher {
        right: 8px;
        top: 8px;
    }
}

/* Mobile muy pequeño (menos de 360px) */
@media (max-width: 360px) {
    .language-switcher {
        right: 5px;
        top: 5px;
    }
}

/* Estilos del botón (sin cambios) */
.single-language-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    border: 1px solid #114baf;
    border-radius: 20px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-language-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    margin-top: -3px;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(10, 43, 153, 0.281);
}