@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');
/* CABECERA FIJA Y TRANSLÚCIDA */
.header-cielos-wrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 24px 40px;
box-sizing: border-box;
font-family: 'Plus Jakarta Sans', sans-serif;
z-index: 9999;
background-color: transparent;
transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
/* ESTADO SCROLL (FONDO NEGRO) */
.header-cielos-wrapper.scrolled {
background-color: rgba(8, 13, 20, 0.95) !important;
backdrop-filter: blur(8px);
padding: 16px 40px;
border-bottom: 1px solid rgba(0, 229, 255, 0.2);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.header-cielos-inner {
max-width: 1400px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
/* LOGO */
.header-logo {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
color: #ffffff;
}
.header-logo-icon {
width: 32px;
height: 32px;
color: #00e5ff;
}
.header-logo-text {
font-size: 1.25rem;
font-weight: 800;
letter-spacing: -0.5px;
text-transform: uppercase;
line-height: 1;
}
.header-logo-text span {
color: #00e5ff;
display: block;
font-size: 0.75rem;
letter-spacing: 1.5px;
font-weight: 600;
}
/* NAVEGACIÓN Y SUBMENÚS */
.header-nav {
display: flex;
align-items: center;
gap: 36px;
list-style: none;
margin: 0;
padding: 0;
}
.header-nav-item {
position: relative;
}
.header-nav-link {
color: #cbd5e1;
text-decoration: none;
font-size: 0.95rem;
font-weight: 600;
transition: color 0.2s ease;
padding: 10px 0;
display: flex;
align-items: center;
gap: 6px;
}
.header-nav-link:hover,
.header-nav-item:hover > .header-nav-link,
.header-nav-link.active {
color: #00e5ff;
text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}
/* FLECHA DEL SUBMENÚ */
.dropdown-arrow {
font-size: 0.7rem;
transition: transform 0.2s ease;
}
.header-nav-item:hover .dropdown-arrow {
transform: rotate(180deg);
}
/* SUBMENÚ DESPLEGABLE (DROPDOWN) */
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
background-color: #0f172a;
border: 1px solid #1e293b;
border-radius: 12px;
padding: 10px 0;
min-width: 220px;
list-style: none;
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: all 0.25s ease;
z-index: 10000;
}
.dropdown-menu::before {
content: '';
position: absolute;
top: -10px;
left: 0;
width: 100%;
height: 10px;
}
/* DESPLEGAR AL PASAR EL CURSOR (HOVER) */
.header-nav-item:hover .dropdown-menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.dropdown-link {
display: block;
padding: 10px 20px;
color: #94a3b8;
text-decoration: none;
font-size: 0.88rem;
font-weight: 600;
transition: background-color 0.2s, color 0.2s;
}
.dropdown-link:hover {
background-color: #1e293b;
color: #00e5ff;
}
document.addEventListener('DOMContentLoaded', function () {
const header = document.getElementById('main-header');
window.addEventListener('scroll', function () {
if (window.scrollY > 40) {
header.classList.add('scrolled');
} else {
header.classList.remove('scrolled');
}
});
});