
/* --- 4. HEADER Y COMPORTAMIENTO DEL MENÚ --- */
.site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    padding: 24px 6%;
    border-bottom: 1px solid var(--border-light);
    background: rgba(3, 4, 8, 0.8);
    backdrop-filter: blur(12px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Branding Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo img {
    height: 38px;
    width: auto;
}

.logo-info h1 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo-info h1 span {
    color: var(--accent);
}

.logo-info small {
    font-family: var(--font-title);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* Navegación de Escritorio */
.site-header nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.site-header nav ul li a {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header nav ul li a:hover {
    color: var(--accent);
}

/* Botón Hamburguesa */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Transformación a Cruz (X) */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menú Lateral Desplegable */
.floating-nav {
    position: fixed;
    top: 0;
    right: -340px;
    width: 300px;
    height: 100vh;
    background: rgba(3, 4, 8, 0.98);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border-light);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    pointer-events: none;
}

.floating-nav.open {
    right: 0 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.floating-nav a {
    font-family: var(--font-title);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
}

.floating-nav a:hover {
    color: var(--accent);
}
