/* =========================================
   CABECERA Y NAVEGACIÓN (ASTRAL THEME)
   ========================================= */
.main-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid #334155;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
}

/* =========================================
   BUSCADOR (Resplandor Morado)
   ========================================= */
.header-search {
    flex: 1; 
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.inline-search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0f121b;
    border: 1px solid #334155;
    border-radius: 30px; 
    padding: 4px 15px;
    width: 100%;
    max-width: 350px; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inline-search-form:focus-within {
    border-color: var(--accent); 
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); 
}

.header-search-input {
    flex-grow: 1;
    width: 100%;
    background: transparent !important;
    border: none !important; 
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 8px 10px 8px 5px;
    outline: none !important; 
    box-shadow: none !important;
    text-align: left;
}

.header-search-input::placeholder {
    color: #64748b;
}

.header-search-btn {
    background: transparent !important;
    width: auto !important;
    border: none !important;
    cursor: pointer;
    font-size: 1.1rem !important;
    padding: 0 10px !important;
    margin: 0 !important;
    color: var(--text-muted) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    border-radius: 0 !important;
}

.header-search-btn:hover {
    transform: scale(1.1); 
    background: transparent !important;
    color: var(--accent) !important;
}

/* =========================================
   BOTONES DE USUARIO Y DISCORD
   ========================================= */
.header-auth { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.btn-vip-header {
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.auth-buttons-group { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.btn-text { 
    color: var(--text-main); 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 600; 
}

.btn-text:hover { 
    color: var(--accent); 
}

.auth-separator { 
    color: #334155; 
}

/* =========================================
   BARRA DE MENÚ SECUNDARIO
   ========================================= */
.main-nav {
    background-color: #0f131f;
    border-bottom: 2px solid var(--accent);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 12px 20px;
    overflow-x: auto;
}

.main-nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

@media (max-width: 768px) {
    .header-container { 
        flex-direction: column; 
        gap: 10px; 
    }
    .header-search { width: 100%; padding: 0; }
    .inline-search-form { max-width: 100%; }
    .main-nav ul { justify-content: flex-start; }
}