/* ===== HEADER GENSHAIN IMPACT - EDICIÓN PREMIUM ===== */
.genshin-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100vw !important;
    height: 60px; /* Más alto para mejor presencia */
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a52 100%) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(100, 200, 255, 0.3) inset !important; /* Efecto neón interior */
    z-index: 1050 !important;
    margin: 0 !important;
    padding: 0 25px !important;
    border-bottom: 1px solid rgba(100, 200, 255, 0.4) !important; /* Azul neón */
    backdrop-filter: blur(5px); /* Efecto vidrio esmerilado */
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
}

/* Efecto de partículas celestiales (pseudo-elemento) */
.genshin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 200, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 40%);
    pointer-events: none;
    animation: twinkle 8s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ===== LOGO Y MARCA ===== */
.genshin-brand {
    font-family: 'GenshinFont', 'Segoe UI', Tahoma, sans-serif;
    display: flex;
    align-items: center;
    color: #ffd700 !important;
    text-shadow: 
        0 0 8px rgba(255, 215, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.3); /* Doble sombra para efecto glow */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    padding: 5px 0;
}

.genshin-brand:hover {
    transform: scale(1.05);
    text-shadow: 
        0 0 12px rgba(255, 215, 0, 0.7),
        0 0 20px rgba(255, 215, 0, 0.4);
}

.genshin-brand img {
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

.genshin-brand:hover img {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9));
    animation: none; /* Pausa la animación al hacer hover */
}

.genshin-title {
    font-weight: 700;
    margin-right: 0.3rem;
    font-size: 1.4rem;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffd700, #ffecb3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.genshin-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #ffd700, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.genshin-brand:hover .genshin-title::after {
    transform: scaleX(1);
}

.genshin-subtitle {
    font-weight: 400;
    font-size: 0.95em;
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

/* ===== NAVEGACIÓN ESTILO "VISIÓN" ===== */
.genshin-nav-container {
    position: relative;
}

.genshin-nav-link {
    color: #e0e0e0 !important;
    font-weight: 500;
    margin: 0 0.3rem;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.genshin-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.2), transparent);
    transition: 0.5s;
}

.genshin-nav-link:hover,
.genshin-nav-link:focus {
    color: #ffffff !important;
    background: rgba(30, 60, 90, 0.3) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 200, 255, 0.2);
    border: 1px solid rgba(100, 200, 255, 0.4);
}

.genshin-nav-link:hover::before {
    left: 100%;
}

.genshin-nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(to right, transparent, #64b5f6, transparent);
    border-radius: 2px;
    animation: linkGlow 1.5s infinite;
}

@keyframes linkGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===== BOTÓN TOGGLER ESTILIZADO ===== */
.genshin-toggler {
    border-color: rgba(100, 200, 255, 0.6) !important;
    transition: all 0.3s ease;
    padding: 0.4rem !important;
}

.genshin-toggler:hover {
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.4);
}

.genshin-toggler:focus {
    box-shadow: 0 0 0 0.3rem rgba(100, 200, 255, 0.25) !important;
}

.genshin-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(100, 200, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* ===== BADGE ESTILO "ARTEFACTO" ===== */
.genshin-badge {
    font-size: 0.7em;
    background: rgba(30, 136, 229, 0.2);
    color: #8bc8ff;
    padding: 0.2em 0.7em;
    border-radius: 12px;
    margin-left: 0.3em;
    border: 1px solid rgba(100, 200, 255, 0.3);
    transition: all 0.3s ease;
}

.genshin-badge:hover {
    background: rgba(30, 136, 229, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(100, 200, 255, 0.3);
}


/* ===== MEDIA QUERIES MEJORADAS ===== */
@media (max-width: 1200px) {
    .genshin-header {
        height: 75px;
        padding: 0 20px !important;
    }
    
    .genshin-nav-link {
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 992px) {
    .genshin-header {
        height: 70px;
    }
    
    .genshin-brand {
        font-size: 1rem;
    }
    
    .genshin-nav-link {
        margin: 0.2rem 0;
        padding: 0.8rem !important;
        background: rgba(20, 40, 70, 0.3) !important;
    }
}

@media (max-width: 768px) {
    .genshin-header {
        height: 65px;
        padding: 0 15px !important;
    }
    
    .genshin-title {
        font-size: 1.2rem;
    }
    
    .genshin-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .genshin-header {
        height: 60px;
    }
    
    .genshin-brand {
        font-size: 0.9rem;
    }
    
    .genshin-subtitle {
        display: none;
    }
    
    .genshin-toggler {
        padding: 0.3rem !important;
    }
}