/* Estilos de la Barra Principal */
.fablab-header {
    position: fixed;
    top: 15px; left: 15px; right: 15px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 9999;
    border-radius: 8px;
}

/* Logo adaptable */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}
.logo img { 
    max-height: 45px;
    width: auto; 
    object-fit: contain;
}

.header-actions { display: flex; align-items: center; gap: 15px; }

.search-toggle, .menu-toggle {
    background: none; border: none; color: #fff;
    cursor: pointer; text-transform: uppercase;
    padding: 8px 16px; transition: 0.3s;
    font-weight: bold;
}
.search-toggle:hover, .menu-toggle:hover {
    background-color: #C52128; border-radius: 8px;
}

/* --- ESTILO ESPECÍFICO BOTÓN CLOSE --- */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: bold;
    padding: 8px 16px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10002;
}

.close-menu:hover {
    background-color: #C52128;
    border-radius: 8px;
}

/* Menú Lateral */
.side-menu {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 10001; transition: 0.5s;
    padding: 80px 25px 40px;
    display: flex;
    flex-direction: column;
}

.menu-active .side-menu { right: 0; }
.menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.3);
    visibility: hidden; opacity: 0; z-index: 10000; transition: 0.5s;
}
.menu-active .menu-overlay { visibility: visible; opacity: 1; }

/* --- NAVEGACIÓN (FORZAR BLANCO TOTAL) --- */
.menu-nav ul { list-style: none; padding: 0; }

/* Forzamos blanco en todo tipo de enlaces (Páginas y Enlaces Personalizados) */
.menu-nav ul li a,
.menu-nav ul li a:visited {
    color: #ffffff !important; 
    opacity: 1 !important; /* Elimina el tono grisáceo */
    text-decoration: none;
    display: block;
    padding: 12px 10px;
    text-transform: uppercase;
    transition: 0.3s;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.menu-nav a:hover { 
    background: #C52128; 
    padding-left: 20px; 
    border-radius: 4px;
    color: #ffffff !important;
}

/* AJUSTES ESPECÍFICOS DEL SUBMENÚ */
.menu-nav ul.sub-menu {
    padding-left: 15px; 
    margin-top: 5px;
    margin-bottom: 5px;
}

.menu-nav ul.sub-menu li a {
    font-size: 12px; 
    color: #ffffff !important;
    opacity: 0.9 !important; /* Un poco de jerarquía, pero blanco */
    text-transform: none; 
}

/* --- ESTILO REDES SOCIALES: LÍNEA DIVISORIA Y ESPACIO DE 30PX --- */
.social-icons {
    position: relative;
    display: flex;
    gap: 12px;
    justify-content: center;
    
    /* 1. Margen de 50px entre el texto del menú y la línea */
    margin-top: 50px; 
    
    /* 2. La línea divisoria */
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    
    /* 3. ESPACIO FORZADO: 30px desde la línea hacia los iconos */
    padding-top: 30px !important; 
    
    /* Espacio inferior para evitar que toque el borde del panel */
    margin-bottom: 20px; 
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Caja cuadrada de 10px de radio y 5px de padding */
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 10px;
    background-color: transparent; 
    
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Color Blanco Forzado en Iconos */
.social-icon i, 
.social-icon svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    font-size: 20px;
    display: block;
}

/* Estado HOVER: Caja Roja #C52128 */
.social-icon:hover {
    background-color: #C52128;
}

.social-icon:hover i, 
.social-icon:hover svg {
    color: #ffffff !important;
}

/* Barra de Búsqueda */
.search-bar {
    position: absolute; top: 100%; right: 0;
    width: 0; background: rgba(0, 0, 0, 0.95);
    border-radius: 8px; overflow: hidden; transition: 0.3s;
}
.search-bar.active { width: 300px; padding: 15px; margin-top: 10px; }
.search-input {
    width: 100%; background: transparent; border: 1px solid rgba(255,255,255,0.3);
    color: #fff; padding: 10px; border-radius: 4px;
}