/* ============================================================
   STYLE.V2.CSS - EDICIÓN MAESTRA "AUDI Q9" (GLOBAL)
   ============================================================ */

/* --- 1. CONFIGURACIÓN BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    /* Fondo Degradado Oscuro Global */
    background-color: #0f172a;
    background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
                      radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
                      radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* Scrollbar Neón */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #38bdf8; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #0ea5e9; }

/* --- 2. LAYOUT Y CONTENEDORES --- */
.container { width: 100%; margin: 0 auto; background: transparent; min-height: 100vh; display: flex; flex-direction: column; }
.body-wrapper { display: block; width: 100%; max-width: 1800px; margin: 0 auto; padding: 0 20px; flex-grow: 1; }
.main-content { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.sidebar { display: none; } /* Sidebar desactivada por defecto */

/* --- 3. HEADER Y NAVEGACIÓN (EL CHASIS) --- */
.top-bar-wrapper { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 25px; padding: 0 20px; position: relative; z-index: 1000; }

.header-logo-img { 
    width: 170px; height: auto; 
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.6)); 
    transition: all 0.4s ease; 
}
.header-logo-img:hover { transform: scale(1.05) rotate(5deg); filter: drop-shadow(0 0 40px rgba(56, 189, 248, 1)); }

.header-container { 
    flex: 1; display: flex; align-items: center; justify-content: space-between; 
    padding: 15px 30px; 
    background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(12px); 
    border-radius: 60px; max-width: 1400px; 
    border: 2px solid rgba(34, 211, 238, 0.8); 
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.3), inset 0 0 20px rgba(34, 211, 238, 0.1); 
}

/* Botones del Menú */
.nav-btn { 
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; 
    border-radius: 50px; font-size: 0.9rem; font-weight: 700; color: #94a3b8; 
    transition: all 0.3s; cursor: pointer; text-transform: uppercase; white-space: nowrap; 
}
.nav-btn:hover, .nav-btn.active { 
    color: white; background: rgba(255, 255, 255, 0.05); 
    border-color: rgba(255, 255, 255, 0.2); 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); transform: translateY(-2px); 
}

/* Botón Chat Corazón */
.chat-heart-btn { 
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); 
    color: white !important; font-weight: 900; font-size: 1rem; padding: 10px 40px; 
    border-radius: 50px; box-shadow: 0 0 25px rgba(37, 99, 235, 0.6); 
    border: 2px solid #60a5fa; transform: scale(1.05); transition: all 0.3s ease; 
    display: flex; align-items: center; gap: 8px; letter-spacing: 1px;
}
.chat-heart-btn:hover { 
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); 
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.9); transform: scale(1.15) translateY(-3px); 
}

/* Desplegables (Dropdowns) */
.dropdown-wrapper { position: relative; }
.dropdown-content { 
    position: absolute; top: 160%; left: 50%; transform: translateX(-50%) translateY(10px); 
    background: #1e293b; border: 1px solid #334155; border-radius: 16px; padding: 8px; 
    min-width: 240px; opacity: 0; visibility: hidden; 
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.6); z-index: 1001; 
}
.dropdown-content::before { 
    content: ''; position: absolute; top: -6px; left: 50%; 
    transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; 
    background: #1e293b; border-left: 1px solid #334155; border-top: 1px solid #334155; 
}
.dropdown-wrapper:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.drop-item { 
    display: flex; align-items: center; gap: 12px; padding: 12px 15px; 
    color: #cbd5e1; text-decoration: none !important; border-radius: 10px; 
    transition: background 0.2s; font-size: 0.9rem; cursor: pointer; 
}
.drop-item:hover { background: rgba(255,255,255,0.08); color: white; }
.divider { height: 1px; background: #334155; margin: 4px 8px; }
.icon-box { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.9rem; flex-shrink: 0; }

/* Barra de Controles (Radio/Usuarios) */
.controls-bar { 
    display: flex; align-items: center; justify-content: center; gap: 30px; 
    padding: 10px 40px; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); 
    border-radius: 40px; max-width: 600px; margin: 20px auto 50px auto; 
    position: relative; z-index: 999; border: 2px solid rgba(232, 121, 249, 0.6); 
    box-shadow: 0 0 25px rgba(232, 121, 249, 0.3); 
}
.control-item { display: flex; align-items: center; gap: 8px; color: #e879f9; font-weight: 700; font-size: 0.9rem; cursor: default; }
.control-btn-reset { background:none; border:none; cursor:pointer; padding:0; display:flex; font-family: inherit; color:inherit;}
.control-btn-reset:hover, .control-item:hover { color: white; text-shadow: 0 0 15px rgba(232, 121, 249, 1); transform: scale(1.1); }

/* --- 4. TIPOGRAFÍA Y TEXTOS --- */
.neon-title {
    font-family: 'Roboto', sans-serif; font-size: 2.8rem; font-weight: 900; 
    color: #ffffff; text-transform: uppercase; margin-bottom: 20px; 
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #22d3ee, 0 0 40px #22d3ee; 
    letter-spacing: 2px; 
}
.intro-text {
    font-size: 1.6rem; color: #ffffff; background: transparent; 
    max-width: 1300px; width: 95%; margin: 0 auto 40px auto; 
    line-height: 1.6; font-weight: 400; text-align: center; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.8); 
}

/* --- 5. COMPONENTES COMUNES (PESTAÑAS Y CAJAS) --- */

/* Pestañas (Tabs) */
.tab-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 40px; width: 100%; max-width: 1200px; }
.tab-button { 
    padding: 12px 25px; background: rgba(15, 23, 42, 0.6); 
    border: 1px solid rgba(255,255,255,0.1); color: #cbd5e1; border-radius: 50px; 
    cursor: pointer; transition: all 0.3s; font-weight: 700; text-transform: uppercase; 
    font-size: 0.9rem; 
}
.tab-button:hover, .tab-button.active { 
    background: #2563eb; color: white; 
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5); border-color: #60a5fa; transform: translateY(-2px); 
}
.tab-content { width: 100%; max-width: 1200px; margin: 0 auto; }
.tab-panel { display: none; animation: fadeIn 0.5s ease; width: 100%; }
.tab-panel.active { display: block; }
.tab-panel h3 { color: #38bdf8; font-size: 2rem; margin-bottom: 30px; text-transform: uppercase; }

/* Cajas de Cristal (Para texto largo) */
.content-box-glass {
    background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 20px; padding: 40px; text-align: left; margin-bottom: 40px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); color: #cbd5e1; line-height: 1.8; font-size: 1.1rem; 
}
.content-box-glass p { margin-bottom: 15px; }
.content-box-glass strong { color: #facc15; }
.content-box-glass h4 { color: #e879f9; font-size: 1.4rem; margin-top: 30px; border-bottom: 1px dashed rgba(232, 121, 249, 0.3); }

/* --- 6. ESPECÍFICOS FORO (BREADCRUMBS Y LISTAS) --- */
.breadcrumb {
    width: 100%; max-width: 1000px; text-align: left; margin: 20px auto; 
    color: #94a3b8; font-size: 0.9rem; background: rgba(15, 23, 42, 0.4); 
    padding: 10px 20px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.05); 
}
.breadcrumb a { color: #38bdf8; font-weight: bold; }
.topic-card {
    background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 15px; padding: 20px; display: flex; justify-content: space-between; 
    align-items: center; margin-bottom: 15px; transition: all 0.3s ease; text-align: left;
}
.topic-card:hover { transform: translateX(5px); background: rgba(15, 23, 42, 0.9); border-color: #facc15; }
.topic-title { font-size: 1.2rem; font-weight: 700; color: #fff; text-decoration: none; }

/* --- 7. FOOTER Y RESPONSIVE --- */
footer { text-align: center; padding: 30px; color: #94a3b8; font-size: 0.9rem; margin-top: 50px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
    .header-logo-img { display: none; }
    .header-container { flex-wrap: wrap; justify-content: center; }
    .nav-text { display: none; }
    .chat-heart-btn { padding: 8px 15px; font-size: 0.8rem; }
    .neon-title { font-size: 1.8rem; }
    .intro-text { font-size: 1.2rem !important; }
    .content-box-glass { padding: 20px; }
}
/* ============================================================
   8. MODAL DE LOGIN (FLOTANTE Y CENTRADO)
   ============================================================ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(8px); /* Efecto cristal desenfocado de fondo */
    z-index: 9999; /* Por encima de toda la web */
    /* Centrado a prueba de balas */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0f172a;
    border: 2px solid #38bdf8;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.4), inset 0 0 20px rgba(56, 189, 248, 0.1);
    position: relative;
    text-align: center;
    color: #fff;
    /* Si el JS lo pone en 'block' en vez de 'flex', esto lo mantiene centrado: */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close-btn:hover {
    color: #ef4444; /* Rojo al pasar el ratón */
    transform: scale(1.2);
}

.modal-content h2 {
    color: #e2e8f0;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: rgba(30, 41, 59, 0.8);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    background: rgba(15, 23, 42, 0.9);
}

.form-actions {
    margin-top: 35px;
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    font-weight: 900;
    padding: 15px;
    border-radius: 50px;
    border: 2px solid #60a5fa;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.4);
}

.login-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.8);
    transform: translateY(-3px);
}

.error-message-login {
    color: #f87171;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.modal-register-prompt {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.modal-register-prompt a {
    color: #38bdf8;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-register-prompt a:hover {
    color: #e0f2fe;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}