/*
  Archivo de estilos para Mente-Sigma.
  v19.9: - FIX: Se ajusta el CSS de la sección 'hero' para eliminar
           los paddings verticales que impedían un centrado perfecto,
           asegurando la alineación vertical en la pantalla de inicio.
*/

:root {
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
    --neon-yellow: #fffb00;
    --neon-green: #64ff64;
    --neon-red: #ff3b3b;
    /* INICIO: POWER ROAD - Nueva paleta de 4 colores CIAN */
    --pr-color-1: #80ffff; /* Cian Suave */
    --pr-color-2: #40ffff;
    --pr-color-3: #00ffff; /* Cian Principal */
    --pr-color-4: #00cccc; /* Cian Intenso */
    /* FIN: POWER ROAD - Nuevos colores */
    --dark-bg: #0a0a14;
    --dark-bg-transparent: rgba(10, 10, 20, 0.75);
    --header-height: 64px;
    --footer-height: 80px;
    --vh: 1vh;
}

html, body {
    height: 100%;
    overflow: hidden;
    background-color: var(--dark-bg);
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

#app-container, #preloader, #splash-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.font-tech {
    font-family: 'Share Tech Mono', monospace;
}

.frosted-glass {
    background-color: var(--dark-bg-transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#app-wrapper {
    height: 100%;
    width: 100%;
    padding-top: 0;
    padding-bottom: var(--footer-height);
}

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: auto;
    z-index: 100;
}

/* ESTILOS FOOTER */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--footer-height) + 20px);
    z-index: 100;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

footer.footer-hidden {
    transform: translateY(100%);
}

#footer-background {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    clip-path: url(#footer-wave-clip);
}

#footer-nav-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    pointer-events: all;
}

.footer-group {
    display: flex;
    justify-content: space-around;
    flex-basis: calc(50% - 50px);
}

.footer-icon {
    position: relative;
    color: #9ca3af;
    transition: color 0.2s ease-in-out;
}

.footer-icon.active {
    color: var(--neon-cyan);
}

#footer-console-wrapper {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: all;
}

#footer-console {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid #9ca3af;
    color: #9ca3af;
    box-shadow: none;
}
#footer-console:hover {
    background: rgba(156, 163, 175, 0.1);
    color: #e0e0e0;
    border-color: #e0e0e0;
}

#footer-console.view-active-state {
    background: linear-gradient(45deg, #1e293b, #0f172a);
    color: var(--neon-cyan);
    border: 3px solid #0f172a;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
    animation: soft-pulse 2.5s infinite ease-in-out;
}
#footer-console.view-active-state:hover {
    box-shadow: 0 0 15px var(--neon-cyan);
}

#footer-console i {
    font-size: 2.25rem;
    transition: transform 0.3s ease;
}

@keyframes soft-pulse {
    0% { transform: scale(1); box-shadow: 0 0 8px rgba(0, 255, 255, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 12px rgba(0, 255, 255, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 8px rgba(0, 255, 255, 0.3); }
}

/* ESTILOS GENERALES Y DE FEED */
#mission-feed {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
#mission-feed.view-active {
    transform: translateX(-100%);
}

.mission-card {
    height: 100%;
    width: 100%;
    flex-shrink: 0;
    position: absolute;
    top: 0; left: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.3s ease-in-out;
    will-change: transform, box-shadow;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-card.welcome-card {
    justify-content: center; /* Anula el space-between para centrar el contenido */
}

.mission-card.previous { transform: translateY(-100%) scale(0.9); opacity: 0.7; }
.mission-card.current { transform: translateY(0%); }
.mission-card.next { transform: translateY(100%); }

.mission-card.completed {
    filter: grayscale(80%) brightness(0.6);
}

@keyframes power-up-glow {
    0% { box-shadow: 0 0 5px var(--neon-magenta), inset 0 0 5px rgba(255, 0, 255, 0.3); }
    50% { box-shadow: 0 0 15px var(--neon-magenta), inset 0 0 10px rgba(255, 0, 255, 0.5); }
    100% { box-shadow: 0 0 5px var(--neon-magenta), inset 0 0 5px rgba(255, 0, 255, 0.3); }
}
.mission-card.power-up-active {
    animation: power-up-glow 2s infinite ease-in-out;
}
.power-up-text {
    filter: brightness(1.5);
    text-shadow: 0 0 8px currentColor;
    transition: filter 0.3s ease, text-shadow 0.3s ease;
}

.animated-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.scanlines::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 4px;
    animation: scanline-animation 8s linear infinite;
    pointer-events: none;
    z-index: 500;
}

@keyframes scanline-animation {
    from { background-position: 0 0; }
    to { background-position: 0 -100px; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 4px var(--color), 0 0 8px var(--color), 0 0 12px var(--color); }
    50% { box-shadow: 0 0 8px var(--color), 0 0 16px var(--color), 0 0 24px var(--color); }
}

.neon-glow-button {
    background-color: var(--color);
    color: var(--dark-bg);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    animation: pulse-glow 2.5s infinite ease-in-out;
}
.neon-glow-button:hover:not(:disabled) {
    animation: none;
    box-shadow: 0 0 10px var(--color), 0 0 30px var(--color), 0 0 60px var(--color);
}
.neon-glow-button:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
}

.fade-out { animation: fadeOut 0.5s ease-out forwards; }
.fade-in { animation: fadeIn 0.5s ease-in forwards; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: pulse-bounce 2s infinite;
    transition: opacity 0.5s;
}
@keyframes pulse-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* =================================================================== */
/* INICIO: AJUSTE ESTÉTICO - Contraste de Notificaciones             */
/* =================================================================== */
.notification-badge {
    position: absolute;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background-color: var(--neon-magenta);
    color: #fff; /* MODIFICADO: de var(--dark-bg) a #fff */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid var(--dark-bg);
    box-shadow: 0 0 6px var(--neon-magenta);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
/* =================================================================== */
/* FIN: AJUSTE ESTÉTICO                                                */
/* =================================================================== */

.footer-icon .notification-badge {
    top: 2px;
    right: 12px;
}

@keyframes reward-pulse-animation {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--neon-yellow)); }
    50% { transform: scale(1.3); filter: drop-shadow(0 0 10px var(--neon-yellow)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--neon-yellow)); }
}
.reward-pulse {
    animation: reward-pulse-animation 0.7s ease-in-out;
}

@keyframes deduction-pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.deduction-pulse {
    animation: deduction-pulse-animation 0.7s ease-in-out;
}

.overlay-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 50;
    background-color: var(--dark-bg);
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    box-sizing: border-box;
}
.overlay-view.active {
    transform: translateX(0);
}

.view-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

#mission-progress-bar { display: flex; width: 100%; gap: 4px; margin-bottom: 1rem; }
.progress-segment { flex-grow: 1; height: 6px; background-color: rgba(255, 255, 255, 0.2); border-radius: 3px; transition: background-color 0.3s ease; }
.progress-segment.correct { background-color: var(--neon-green); }
.progress-segment.incorrect { background-color: var(--neon-red); }

#question-container { flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 1rem; width: 100%; margin: 1rem 0; outline: none; min-height: 120px; }
#question-text { font-size: 1.125rem; line-height: 1.75rem; }
@media (min-width: 768px) { #question-text { font-size: 1.25rem; line-height: 1.75rem; } }

#answers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; width: 100%; margin-top: auto; }
.answer-option { border: 1px solid var(--neon-cyan); color: var(--neon-cyan); padding: 1rem; text-align: center; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; background-color: transparent; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.answer-option.correct-answer { border-color: var(--neon-green); background-color: rgba(100, 255, 100, 0.1); color: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
.answer-option.selected-answer {
    border-color: var(--neon-yellow);
    background-color: rgba(255, 251, 0, 0.1);
    color: var(--neon-yellow);
    box-shadow: 0 0 8px rgba(255, 251, 0, 0.5);
}
.answer-option.incorrect-answer { border-color: var(--neon-red); background-color: rgba(255, 59, 59, 0.1); color: var(--neon-red); }
.answer-option.disabled { pointer-events: none; opacity: 0.6; }
.answer-option.disabled:not(.correct-answer):not(.incorrect-answer) { opacity: 0.4; }

#mission-results-overlay, #auth-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 10, 20, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s ease-in-out; }
#mission-results-overlay.visible, #auth-modal-overlay.visible { opacity: 1; pointer-events: all; }
#mission-results-box, #auth-modal-box { background-color: var(--dark-bg); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 1.5rem; width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; box-shadow: 0 0 20px rgba(0,0,0,0.5); }

#confirmation-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 10, 20, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; z-index: 950; opacity: 0; pointer-events: none; transition: opacity 0.3s ease-in-out; }
#confirmation-modal-overlay.visible { opacity: 1; pointer-events: all; }
#confirmation-modal-box { background-color: var(--dark-bg); border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 8px; padding: 1.5rem; width: 100%; max-width: 400px; box-shadow: 0 0 30px rgba(0, 255, 255, 0.2); position: relative; transform: scale(0.95); opacity: 0; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease; }
#confirmation-modal-overlay.visible #confirmation-modal-box { transform: scale(1); opacity: 1; }

#preloader-spinner-container { position: relative; width: 100px; height: 100px; }
#preloader-spinner { width: 100%; height: 100%; border: 4px solid rgba(0, 255, 255, 0.2); border-top-color: var(--neon-cyan); border-radius: 50%; animation: spin 1s linear infinite; }
#preloader-logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60%; height: 60%; object-fit: contain; }
@keyframes spin { to { transform: rotate(360deg); } }

.achievement-card { background-color: rgba(10, 10, 20, 0.9); border: 1px solid var(--neon-yellow); transition: all 0.3s ease; }
.achievement-card.locked { filter: grayscale(1) brightness(0.7); }
.progress-bar-bg { background-color: rgba(255, 255, 255, 0.1); }
.progress-bar-fill { background-color: var(--neon-yellow); }
.achievement-tabs button, .hub-tab, .auth-tab { position: relative; border-bottom: 2px solid transparent; transition: all 0.2s ease-in-out; }
.achievement-tabs button.active, .hub-tab.active, .auth-tab.active { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); }
.achievement-tabs .notification-badge { position: absolute; top: -5px; right: -15px; min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; border-width: 1px; }

/* ESTILOS PARA NEXO-SOCIAL Y SUB-VISTAS */
.social-widget, .sub-view-widget { background: rgba(0,0,0,0.2); border: 1px solid rgba(0, 255, 255, 0.2); border-radius: 8px; width: 100%; }
.challenge-card { background: rgba(0,0,0,0.3); border-left: 3px solid var(--neon-magenta); transition: all 0.3s ease; }
.challenge-card.completed { border-left-color: var(--neon-green); }
.challenge-card.expired { border-left-color: var(--neon-red); }
.challenge-card-actions button { font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 4px; }
.btn-accept { background-color: var(--neon-green); color: var(--dark-bg); border: 1px solid var(--neon-green); }
.btn-decline { background-color: var(--neon-red); color: var(--dark-bg); border: 1px solid var(--neon-red); }
.btn-whatsapp { background-color: #25D366; color: white; }
.referral-code-box { background-color: rgba(0,0,0,0.4); border: 1px dashed var(--neon-cyan); color: var(--neon-yellow); }
.form-input { background-color: rgba(0,0,0,0.5); border: 1px solid var(--neon-cyan); border-radius: 4px; padding: 0.75rem; color: #e0e0e0; width: 100%; }
.form-input::placeholder { color: #666; }
.btn-back { position: absolute; top: 1.5rem; left: 1.5rem; color: var(--neon-cyan); }
.ranking-item { display: grid; grid-template-columns: 30px 1fr 80px 100px; gap: 0.5rem; align-items: center; padding: 0.5rem; border-radius: 4px; }
.ranking-item.player { background-color: rgba(0, 255, 255, 0.1); border: 1px solid var(--neon-cyan); }
.top-1 { color: #FFD700; } .top-2 { color: #C0C0C0; } .top-3 { color: #CD7F32; }

/* ESTILOS PARA HUB DE AGENTE */
#profile-view-content { padding: 0; }
.agent-hub-container { display: flex; flex-direction: column; height: 100%; width: 100%; }
.agent-id-card { background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(0, 255, 255, 0.2); padding: 0.75rem; flex-shrink: 0; }
.agent-avatar { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--neon-cyan); background-color: rgba(0, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; }
.agent-avatar.guest-cta { cursor: pointer; border-color: var(--neon-yellow); }
.xp-progress-bar-bg { background-color: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; height: 8px; }
.xp-progress-bar-fill { background: linear-gradient(90deg, var(--neon-yellow), var(--neon-green)); height: 100%; transition: width 0.5s ease-out; }
.profile-hub-tabs { flex-shrink: 0; border-bottom: 1px solid rgba(0, 255, 255, 0.2); }
.profile-hub-tab { color: #888; padding: 0.75rem 1rem; border-bottom: 3px solid transparent; transition: all 0.3s ease; }
.profile-hub-tab.active { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); }
.profile-tab-content { flex-grow: 1; overflow-y: auto; padding: 1rem; }
.stat-widget { background: rgba(0,0,0,0.2); border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.75rem; border-radius: 8px; }
.arsenal-widget { background: rgba(0,0,0,0.3); border: 1px solid rgba(0, 255, 255, 0.2); border-radius: 8px; padding: 1rem; transition: all 0.3s ease; }
.arsenal-widget:hover { background: rgba(0, 255, 255, 0.1); border-color: var(--neon-cyan); }
.vitrine-item { width: 70px; height: 70px; background: rgba(0,0,0,0.4); border: 1px dashed rgba(255,255,255,0.3); border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* Estilos para el Modal de Autenticación */
#auth-modal-box { background-color: var(--dark-bg); border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 8px; padding: 1.5rem; width: 100%; max-width: 400px; box-shadow: 0 0 30px rgba(0, 255, 255, 0.2); position: relative; }
#close-auth-modal-btn { position: absolute; top: 0.5rem; right: 0.5rem; color: #888; cursor: pointer; }
#close-auth-modal-btn:hover { color: var(--neon-cyan); }
.auth-link { background: none; border: none; padding: 0; font: inherit; color: #9ca3af; text-decoration: none; cursor: pointer; transition: color 0.2s ease-in-out; }
.auth-link:hover { color: var(--neon-cyan); }

/* ESTILOS PARA ANIMACIÓN DE RECOMPENSA */
#reward-animation-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }
.reward-particle { position: absolute; border-radius: 50%; opacity: 1; transition: transform 0.8s cubic-bezier(0.5, 0, 1, 0.5), opacity 0.8s ease-out; }
.reward-particle.nc { background-color: var(--neon-cyan); box-shadow: 0 0 6px var(--neon-cyan); width: 5px; height: 5px; }
.reward-particle.xp { background-color: var(--neon-yellow); box-shadow: 0 0 6px var(--neon-yellow); width: 6px; height: 6px; }

/* ESTILOS PARA SPINNER DE RECAUDACIÓN */
.reward-collecting-spinner { width: 80px; height: 80px; border: 3px solid rgba(255, 251, 0, 0.2); border-top-color: var(--neon-yellow); border-radius: 50%; animation: spin 1s linear infinite; }
.reward-collecting-logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 55%; height: 55%; object-fit: contain; opacity: 0.8; }

/* ESTILOS PARA TARJETAS DE MISIÓN */
.mission-card-graphic { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 18rem; color: rgba(255, 255, 255, 0.03); z-index: 0; transition: all 0.5s ease; }
.mission-card.current .mission-card-graphic { transform: translate(-50%, -50%) scale(1.1); color: rgba(255, 255, 255, 0.05); }
.mission-card-header { position: relative; z-index: 1; border-left: 3px solid var(--difficulty-color, var(--neon-cyan)); padding-left: 1rem; }

/* ESTILOS PARA BOTONES DE ACCESO */
.access-button { border: 2px solid; transition: all 0.3s ease; width: 100%; max-width: 320px; }
.access-button.primary { background: rgba(0, 255, 255, 0.1); border-color: var(--neon-cyan); color: var(--neon-cyan); text-shadow: 0 0 5px var(--neon-cyan); }
.access-button.primary:hover { background: rgba(0, 255, 255, 0.2); box-shadow: 0 0 15px var(--neon-cyan); }
.access-button.secondary { background: transparent; border-color: #6b7280; color: #d1d5db; }
.access-button.secondary:hover { background: rgba(107, 114, 128, 0.1); border-color: #d1d5db; color: #fff; }

/* ESTILOS PARA POTENCIADORES FLOTANTES */
.power-up-icon { position: relative; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background-color: rgba(10, 10, 20, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 2px solid var(--power-up-color, #888); box-shadow: 0 0 12px rgba(0,0,0,0.5), inset 0 0 8px rgba(0,0,0,0.4); transition: all 0.3s ease; cursor: pointer; opacity: 0; }
.power-up-icon i { color: var(--power-up-color, #888); text-shadow: 0 0 8px var(--power-up-color, #888); transition: all 0.3s ease; }
.power-up-icon:hover { transform: scale(1.1); box-shadow: 0 0 15px var(--power-up-color, #888), inset 0 0 8px rgba(0,0,0,0.4); }

/* =================================================================== */
/* INICIO: AJUSTE ESTÉTICO - Contraste de Notificaciones             */
/* =================================================================== */
.power-up-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background-color: var(--neon-magenta);
    color: #fff; /* MODIFICADO: de var(--dark-bg) a #fff */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid var(--dark-bg);
    box-shadow: 0 0 6px var(--neon-magenta);
    transition: all 0.3s ease;
}
/* =================================================================== */
/* FIN: AJUSTE ESTÉTICO                                                */
/* =================================================================== */

.power-up-icon.inactive { filter: grayscale(1); opacity: 0.6; border-color: #555; cursor: not-allowed; }
.power-up-icon.inactive i { color: #777; text-shadow: none; }
.power-up-icon.inactive .power-up-badge { background-color: #666; box-shadow: none; color: #ccc; }
.power-up-icon.inactive:hover { transform: none; box-shadow: 0 0 12px rgba(0,0,0,0.5), inset 0 0 8px rgba(0,0,0,0.4); }

@keyframes fade-in-slide-down { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }

/* ESTILOS PARA PANEL DE POTENCIADORES */
#power-up-panel-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 400; opacity: 0; pointer-events: none; transition: opacity 0.3s ease-in-out; background-color: rgba(10, 10, 20, 0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
#power-up-panel-overlay.visible { opacity: 1; pointer-events: all; }
#power-up-panel { position: fixed; top: 0; right: 0; width: 80vw; max-width: 320px; height: 100%; background-color: rgba(10, 10, 20, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-left: 1px solid rgba(0, 255, 255, 0.2); box-shadow: -5px 0 25px rgba(0,0,0,0.5); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex; flex-direction: column; }
#power-up-panel-overlay.visible #power-up-panel { transform: translateX(0); }
#power-up-panel-header { padding: 1rem; padding-top: calc(var(--header-height) / 2); border-bottom: 1px solid rgba(0, 255, 255, 0.2); flex-shrink: 0; }
#power-up-list { flex-grow: 1; overflow-y: auto; padding: 1rem; }
.power-up-item { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-left: 3px solid var(--power-up-color, var(--neon-cyan)); }
.power-up-item.active { border: 1px solid var(--power-up-color, var(--neon-cyan)); box-shadow: 0 0 10px var(--power-up-color, var(--neon-cyan)); }
#power-up-panel-footer { padding: 1rem; border-top: 1px solid rgba(0, 255, 255, 0.2); flex-shrink: 0; }

/* =================================================================== */
/* INICIO: POWER ROAD (VISUALES MEJORADOS)                             */
/* =================================================================== */
.power-road-container {
    position: relative;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0; /* Se hace visible con animación JS */
}
.power-road-container:hover {
    transform: scale(1.1);
}
.power-road-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}
.power-road-segment {
    fill: rgba(10, 10, 20, 0.5);
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
    transition: fill 0.4s ease, filter 0.4s ease;
}
.power-road-segment.filled {
    fill: var(--fill-color);
    filter: drop-shadow(0 0 8px var(--fill-color)) brightness(1.5);
}
.power-road-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 10, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.power-road-center-icon i {
    font-size: 16px;
    color: #9ca3af;
    transition: all 0.3s ease;
}
.power-road-container.glowing .power-road-center-icon {
    background-color: rgba(0, 255, 255, 0.1);
    border-color: var(--neon-cyan);
}
.power-road-container.glowing .power-road-center-icon i {
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}
.power-road-container.reclamable {
    animation: reclamable-pulse-intense 1.2s infinite ease-in-out;
}

/* MODIFICACIÓN: Animación de pulso y brillo mucho más intensa */
@keyframes reclamable-pulse-intense {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px var(--pr-color-3)) brightness(1.2);
    }
    50% {
        transform: scale(1.25);
        filter: drop-shadow(0 0 35px var(--pr-color-3)) drop-shadow(0 0 10px #ffffff) brightness(1.8);
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px var(--pr-color-3)) brightness(1.2);
    }
}

#power-road-info-overlay, #power-road-reward-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    z-index: 960;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
#power-road-info-overlay.visible, #power-road-reward-overlay.visible {
    opacity: 1; pointer-events: all;
}
#power-road-info-box, #power-road-reward-box {
    background-color: var(--dark-bg);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    position: relative;
    transform: scale(0.95); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
#power-road-info-overlay.visible #power-road-info-box,
#power-road-reward-overlay.visible #power-road-reward-box {
    transform: scale(1); opacity: 1;
}

.power-road-progress-display {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}
.power-road-progress-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.power-road-progress-dot.filled {
    background-color: var(--fill-color);
    border-color: var(--fill-color);
    box-shadow: 0 0 8px var(--fill-color);
}
/* =================================================================== */
/* FIN: POWER ROAD                                                     */
/* =================================================================== */

/* ESTILOS PARA LA TIENDA */
.store-tabs { border-bottom: 1px solid rgba(0, 255, 255, 0.2); }
.store-tab { color: #888; border-bottom: 3px solid transparent; transition: all 0.3s ease; flex-grow: 1; flex-basis: 0; }
.store-tab.active { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); }
.store-tab-content { display: none; }
.store-tab-content.active { display: block; animation: fadeIn 0.5s ease; }
.store-bundle-card { background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(10, 10, 20, 0.6)); border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 8px; overflow: hidden; position: relative; transition: all 0.3s ease; }
.store-bundle-card:hover { transform: translateY(-5px); box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
.store-bundle-banner { background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan)); clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); }
.store-item-row { background: rgba(0,0,0,0.2); border: 1px solid transparent; border-left: 3px solid var(--neon-cyan); transition: all 0.3s ease; }
.store-item-row:hover { background: rgba(0, 255, 255, 0.05); border-color: var(--neon-cyan); }
.nc-card { background: linear-gradient(145deg, #1a2a2a, #0a1414); border: 1px solid var(--neon-green); box-shadow: 0 0 15px rgba(100, 255, 100, 0.1); }

/* ESTILOS PARA MODAL DE NOTIFICACIÓN */
#notification-toast-container { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.notification-toast { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 8px; background-color: rgba(30, 30, 50, 0.9); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); width: 90vw; max-width: 400px; animation: toast-in 0.5s ease forwards; }
.notification-toast.success { border-left: 4px solid var(--neon-green); color: var(--neon-green); }
.notification-toast.error { border-left: 4px solid var(--neon-red); color: var(--neon-red); }
.notification-toast.info { border-left: 4px solid var(--neon-cyan); color: var(--neon-cyan); }
.notification-toast.exiting { animation: toast-out 0.5s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-20px); } }

/* ESTILOS PARA TARJETA REDISEÑADA */
.mission-card-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; flex-grow: 1; }
.mission-phrase { font-family: 'Inter', sans-serif; font-style: italic; font-size: 1rem; line-height: 1.5; text-align: center; color: rgba(255, 255, 255, 0.85); max-width: 450px; background: rgba(0,0,0,0.2); padding: 0.75rem 1.25rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.mission-key-info { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; width: 100%; max-width: 350px; font-family: 'Share Tech Mono', monospace; font-size: 1.125rem; }
.mission-params-row { display: flex; gap: 0.75rem; }
.info-block { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.75rem; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; flex-grow: 1; }
.info-block i { font-size: 1.5rem; color: var(--neon-yellow); }
.reward-block { flex-direction: column; gap: 0.5rem; background: rgba(0,0,0,0.4); border-color: var(--neon-cyan); color: var(--neon-cyan); padding: 0.75rem; }
.reward-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.1em; }
.reward-title i { font-size: 1rem; color: #9ca3af; }
.reward-values { display: flex; justify-content: space-around; align-items: center; width: 100%; font-size: 1.125rem; }
.reward-values i { font-size: 1.25rem; }

/* ESTILOS PARA VISTA DE PAGO */
.payment-overlay-view { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; background-color: rgba(10, 10, 20, 0.85); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; align-items: flex-start; justify-content: center; padding-top: 5vh; opacity: 0; pointer-events: none; transition: opacity 0.4s ease-in-out; }
.payment-overlay-view.visible { opacity: 1; pointer-events: all; }
#payment-view-content { padding: 0; max-width: 500px; width: 90%; height: auto; max-height: 90vh; overflow-y: auto; }
#payment-wrapper { background-color: #13131d; border: 1px solid rgba(0, 255, 255, 0.2); border-radius: 8px; box-shadow: 0 0 30px rgba(0, 255, 255, 0.1); width: 100%; overflow: hidden; display: flex; flex-direction: column; }
#payment-brick-container { padding: 1rem; }
#payment-view-content::-webkit-scrollbar { width: 8px; }
#payment-view-content::-webkit-scrollbar-track { background: transparent; }
#payment-view-content::-webkit-scrollbar-thumb { background-color: var(--neon-cyan); border-radius: 4px; border: 2px solid #13131d; }

/* ESTILOS PARA MODAL DE RESULTADOS */
#mission-results-box { background: linear-gradient(160deg, #1a233a, #0a0a14); border: 1px solid rgba(0, 255, 255, 0.3); box-shadow: 0 0 40px rgba(0, 255, 255, 0.15); padding: 0; gap: 0; overflow: hidden; position: relative; }
.result-header { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem; padding: 1.25rem; width: 100%; border-bottom: 1px solid rgba(0, 255, 255, 0.2); }
.result-header i { font-size: 2.25rem; filter: drop-shadow(0 0 10px currentColor); }
.result-header h2 { font-family: 'Share Tech Mono', monospace; font-size: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; flex-shrink: 1; }
.perfect-bonus { font-family: 'Share Tech Mono', monospace; color: var(--neon-yellow); background-color: rgba(255, 251, 0, 0.1); padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 0.875rem; margin-top: 0.5rem; animation: pulse-glow 2s infinite ease-in-out; --color: var(--neon-yellow); flex-basis: 100%; text-align: center; }
.result-rewards { padding: 1.5rem; width: 100%; text-align: center; }
.result-rewards h3 { font-family: 'Share Tech Mono', monospace; font-size: 0.875rem; color: #9ca3af; letter-spacing: 0.1em; margin-bottom: 1rem; }
.result-rewards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.reward-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.75rem; border-radius: 8px; }
.reward-item.nc { background-color: rgba(0, 255, 255, 0.1); border: 1px solid var(--neon-cyan); }
.reward-item.xp { background-color: rgba(255, 251, 0, 0.1); border: 1px solid var(--neon-yellow); }
.reward-item i { font-size: 1.75rem; }
.reward-item.nc i { color: var(--neon-cyan); }
.reward-item.xp i { color: var(--neon-yellow); }
.reward-item p { font-family: 'Share Tech Mono', monospace; font-size: 2rem; line-height: 1.2; color: white; }
.reward-item span { font-family: 'Share Tech Mono', monospace; font-size: 0.875rem; color: #9ca3af; }
.result-stats { padding: 0 1.5rem 1.25rem; width: 100%; font-family: 'Share Tech Mono', monospace; font-size: 1rem; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 0.375rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.stat-row:last-child { border-bottom: none; }
.stat-row .label { display: flex; align-items: center; gap: 0.5rem; color: #d1d5db; }
.stat-row .value { color: white; font-weight: bold; }
#collect-reward-btn { padding-top: 0.875rem; padding-bottom: 0.875rem; font-size: 1.125rem; }

/* ESTILOS PARA INDICADOR "LIVE" */
@keyframes live-pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }
.live-indicator { width: 10px; height: 10px; background-color: var(--neon-red); border-radius: 50%; box-shadow: 0 0 8px var(--neon-red); animation: live-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1); }

/* ESTILOS PARA LOBBY DE CONNECT LIVE */
@keyframes blob { 0% { transform: translate(0px, 0px) scale(1); } 33% { transform: translate(30px, -50px) scale(1.1); } 66% { transform: translate(-20px, 20px) scale(0.9); } 100% { transform: translate(0px, 0px) scale(1); } }
.animate-blob { animation: blob 7s infinite; }
.animation-delay-2000 { animation-delay: 2s; }

.waiting-room-bg {
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.waiting-room-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.15) 0%, transparent 40%);
    transform: translateX(-50%);
    animation: spotlight-scan 10s linear infinite;
}
@keyframes spotlight-scan {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.player-row-waiting {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.player-row-waiting.current-player {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.player-icon-waiting {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    filter: hue-rotate(var(--hue-rotate, 0deg));
}
.player-icon-waiting svg {
    width: 24px;
    height: 24px;
    color: var(--neon-cyan);
}

.player-name-waiting {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.125rem;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-status-waiting {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
}
.status-ready { background-color: var(--neon-green); color: var(--dark-bg); }
.status-waiting { background-color: var(--neon-yellow); color: var(--dark-bg); }

.reaction-bar {
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 9999px;
    display: flex;
    gap: 0.5rem;
}
.reaction-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}
.reaction-btn:hover {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

#icon-selection-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    z-index: 960;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
#icon-selection-modal-overlay.visible {
    opacity: 1; pointer-events: all;
}
#icon-selection-modal-box {
    background-color: var(--dark-bg);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}
#icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 1rem;
}
.icon-selection-btn {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.icon-selection-btn:hover {
    background-color: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--neon-cyan);
}
.icon-selection-btn svg {
    width: 60%;
    height: 60%;
    color: var(--neon-cyan);
}

@keyframes roulette-spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.game-mode-reveal-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
    position: relative;
}
.game-mode-reveal-container::before {
    content: 'MODO DE JUEGO';
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.25rem;
    color: var(--neon-cyan);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px var(--neon-cyan);
}
.game-mode-roulette {
    height: 80px;
    overflow: hidden;
    border-top: 2px solid var(--neon-yellow);
    border-bottom: 2px solid var(--neon-yellow);
}
.game-mode-roulette .roulette-item {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    height: 80px;
    line-height: 80px;
    padding: 0 2rem;
    text-align: center;
}
.game-mode-roulette.stop-roulette {
    animation: none !important;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}
.game-mode-roulette:not(.stop-roulette) .roulette-item {
    animation: roulette-spin 0.2s linear infinite;
}

/* ESTILOS PARA LA SALA DE JUEGO EN VIVO */
.game-room-header {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.player-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 8px;
    background-color: rgba(0,0,0,0.2);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 65px; /* Ancho fijo para cada tarjeta */
}
.player-game-card .avatar {
    font-size: 2rem;
    color: var(--neon-cyan);
}
.player-game-card .name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}
.player-game-card .points {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    font-weight: bold;
}

/* =================================================================== */
/* INICIO: AJUSTE UX - Estilo para tarjeta de jugador que ha respondido */
/* =================================================================== */
.player-game-card.answered {
    background-color: rgba(255, 251, 0, 0.1);
    border-color: var(--neon-yellow);
}
/* =================================================================== */
/* FIN: AJUSTE UX */
/* =================================================================== */

.player-game-card.answered-correct {
    background-color: rgba(100, 255, 100, 0.15);
    border-color: var(--neon-green);
    transform: scale(1.05);
}
.player-game-card.answered-correct .points {
    color: var(--neon-green);
}

.player-game-card.answered-incorrect {
    background-color: rgba(255, 59, 59, 0.15);
    border-color: var(--neon-red);
    opacity: 0.8;
}
.player-game-card.answered-incorrect .points {
    color: var(--neon-red);
}

#live-question-container {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

#live-answers-grid {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Vistas de juego a pantalla completa */
.overlay-view.no-bottom-padding {
    padding-bottom: 0;
}

/* Botón de salida para la Sala de Espera */
.btn-exit-live {
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 59, 59, 0.15);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    border-radius: 9999px;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.2s ease;
}
.btn-exit-live:hover {
    background-color: rgba(255, 59, 59, 0.3);
    box-shadow: 0 0 10px var(--neon-red);
}
.btn-exit-live i {
    font-size: 1.25rem;
}

/* =================================================================== */
/* INICIO: FASE 2 - Estilos para el modal y escáner de QR */
/* =================================================================== */
#qr-modal-overlay, #qr-scanner-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    z-index: 900;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
#qr-modal-overlay.visible, #qr-scanner-overlay.visible {
    opacity: 1; pointer-events: all;
}
#qr-modal-box, #qr-scanner-box {
    background-color: var(--dark-bg);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
#qr-modal-overlay.visible #qr-modal-box, #qr-scanner-overlay.visible #qr-scanner-box {
    transform: scale(1); opacity: 1;
}
#qr-code-display {
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
}
#qr-code-display img {
    width: 100% !important;
    height: auto !important;
}
#qr-reader {
    width: 100%;
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    overflow: hidden;
}
#html5-qrcode-anchor-scan-type-change {
    display: none !important;
}
/* =================================================================== */
/* FIN: FASE 2 */
/* =================================================================== */

.player-row-waiting.rank-1 {
    border-color: #FFD700;
    box-shadow: 0 0 10px #FFD700;
}
.player-row-waiting.rank-2 {
    border-color: #C0C0C0;
}
.player-row-waiting.rank-3 {
    border-color: #CD7F32;
}

/* =================================================================== */
/* INICIO: ESTILOS LANDING PAGE SEO */
/* =================================================================== */
#splash-screen {
    justify-content: flex-start;
    overflow-y: auto;
    /* =================================================================== */
    /* INICIO: CORRECCIÓN DE CENTRADO VERTICAL */
    /* Se elimina el padding del contenedor principal para evitar conflictos. */
    /* =================================================================== */
    padding: 0;
    /* =================================================================== */
    /* FIN: CORRECCIÓN DE CENTRADO VERTICAL */
    /* =================================================================== */
}

.landing-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(-45deg, #0a0a14, #1a0d2f, #2f132c, #0a0a14);
    background-size: 400% 400%;
    animation: gradient-animation 20s ease infinite;
    z-index: -1;
}

.landing-section {
    width: 100%;
    max-width: 1024px;
    padding: 3rem 1rem;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}
.landing-section:last-child {
    border-bottom: none;
}
.hero-section {
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* =================================================================== */
    /* INICIO: CORRECCIÓN DE CENTRADO VERTICAL */
    /* Se elimina el padding vertical para que justify-content funcione bien. */
    /* =================================================================== */
    padding-top: 0;
    padding-bottom: 0;
    /* =================================================================== */
    /* FIN: CORRECCIÓN DE CENTRADO VERTICAL */
    /* =================================================================== */
}

.landing-h2 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.landing-p {
    color: #b0b8c4;
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.training-area {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}
.training-area:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}
.training-area i {
    font-size: 3rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    display: block;
}
.training-area h3 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.training-area p {
    font-size: 0.9rem;
    color: #b0b8c4;
}
/* =================================================================== */
/* FIN: ESTILOS LANDING PAGE SEO */
/* =================================================================== */

/* =================================================================== */
/* INICIO: ESTILOS RED DE CONTACTOS (AMIGOS) */
/* =================================================================== */

.friends-tabs {
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}
.friends-tab {
    position: relative;
    color: #888;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex-grow: 1;
    flex-basis: 0;
    padding: 0.75rem 0.5rem;
    font-family: 'Share Tech Mono', monospace;
}
.friends-tab.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}
.friends-tab .notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    border-width: 1px;
}

.friends-tab-content {
    display: none;
}
.friends-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.friend-item {
    background: rgba(0,0,0,0.2);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.friend-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.friend-item-avatar i {
    font-size: 1.75rem;
    color: var(--neon-cyan);
}

.friend-item-info {
    flex-grow: 1;
    min-width: 0; /* Prevents text overflow issues in flexbox */
}

.friend-item-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.125rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-item-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6b7280; /* Offline by default */
}
.status-dot.online {
    background-color: var(--neon-green);
    box-shadow: 0 0 5px var(--neon-green);
}

.friend-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.friend-item-actions .action-btn {
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--dark-bg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-btn.message { background-color: var(--neon-cyan); }
.action-btn.message:hover { box-shadow: 0 0 10px var(--neon-cyan); }
.action-btn.challenge { background-color: var(--neon-magenta); }
.action-btn.challenge:hover { box-shadow: 0 0 10px var(--neon-magenta); }
.action-btn.accept { background-color: var(--neon-green); }
.action-btn.accept:hover { box-shadow: 0 0 10px var(--neon-green); }
.action-btn.decline { background-color: var(--neon-red); }
.action-btn.decline:hover { box-shadow: 0 0 10px var(--neon-red); }
.action-btn i { font-size: 1.25rem; }

/* =================================================================== */
/* FIN: ESTILOS RED DE CONTACTOS (AMIGOS) */
/* =================================================================== */

/* =================================================================== */
/* INICIO: ESTILOS CANAL DE COMUNICACIONES */
/* =================================================================== */
.message-view-header {
    flex-shrink: 0;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
}
.message-log-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.message-item {
    background-color: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    max-width: 75%;
    display: flex;
    flex-direction: column;
}
.message-item.sent {
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    align-self: flex-start;
}
.message-item.received {
    background-color: rgba(255, 255, 255, 0.05);
    align-self: flex-end;
}
.message-item .timestamp {
    font-size: 0.65rem;
    color: #888;
    margin-top: 0.25rem;
}
.message-item.sent .timestamp { text-align: left; }
.message-item.received .timestamp { text-align: right; }

.message-input-area {
    flex-shrink: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}
.tactical-messages-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.tactical-message {
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.tactical-message:hover {
    background-color: rgba(0, 255, 255, 0.2);
}
/* =================================================================== */
/* FIN: ESTILOS CANAL DE COMUNICACIONES */
/* =================================================================== */

/* =================================================================== */
/* INICIO: ESTILOS NEXO-SOCIAL 2.0 (REDESIGN) */
/* =================================================================== */
.social-hub-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #080810;
}
.social-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: bg-scroll 30s linear infinite;
    opacity: 0.5;
}
@keyframes bg-scroll {
    from { background-position: 0 0; }
    to { background-position: -50px -50px; }
}
.social-particles-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.15), transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(255, 0, 255, 0.15), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(0, 255, 255, 0.2), transparent 30%);
    animation: particles-float 25s ease-in-out infinite;
}
@keyframes particles-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.social-title-glow {
    text-shadow: 0 0 8px var(--neon-cyan), 0 0 16px rgba(0, 255, 255, 0.5);
    animation: title-flicker 5s infinite alternate;
}
@keyframes title-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 8px var(--neon-cyan), 0 0 16px rgba(0, 255, 255, 0.5), 0 0 24px rgba(0, 255, 255, 0.3);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.agent-summary-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}
.summary-item {
    background-color: rgba(10, 10, 20, 0.8);
    padding: 1rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.social-hub-primary-action {
    position: relative;
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.1), rgba(255, 0, 255, 0.2));
    border: 2px solid var(--neon-magenta);
    border-radius: 8px;
    padding: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    animation: primary-action-pulse 3s infinite ease-in-out;
}
.social-hub-primary-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--neon-magenta);
    background: rgba(255, 0, 255, 0.25);
}
@keyframes primary-action-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 0, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 255, 0.7); }
}
.primary-action-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.primary-action-content i {
    font-size: 2.5rem;
    text-shadow: 0 0 8px var(--neon-magenta);
}
.live-indicator-wrapper {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0,0,0,0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--neon-red);
}

.social-hub-secondary-action {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1.25rem;
    color: var(--neon-cyan);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}
.social-hub-secondary-action:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}
.social-hub-secondary-action i {
    font-size: 2.5rem;
    text-shadow: 0 0 8px var(--neon-cyan);
}
/* =================================================================== */
/* FIN: ESTILOS NEXO-SOCIAL 2.0 (REDESIGN) */
/* =================================================================== */

/* =================================================================== */
/* INICIO: ESTILOS PARA LA VISTA DE RANKINGS */
/* =================================================================== */
.ranking-tabs {
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}
.ranking-tab {
    color: #888;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}
.ranking-tab.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}
.ranking-list {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}
.ranking-list::-webkit-scrollbar { width: 4px; }
.ranking-list::-webkit-scrollbar-track { background: transparent; }
.ranking-list::-webkit-scrollbar-thumb { background-color: var(--neon-cyan); border-radius: 2px; }

.ranking-item {
    display: grid;
    grid-template-columns: 50px 50px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(10, 10, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.ranking-item:hover {
    background: rgba(0, 255, 255, 0.05);
    border-color: var(--neon-cyan);
}

.ranking-position {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    color: #9ca3af;
}
.ranking-position i {
    font-size: 2rem;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px currentColor);
}

.ranking-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ranking-icon svg {
    width: 24px;
    height: 24px;
    color: var(--neon-cyan);
}

.ranking-name p {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.125rem;
    color: #fff;
}
.ranking-name .agent-id {
    font-size: 0.75rem;
    color: #6b7280;
}

.ranking-xp {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.25rem;
    color: var(--neon-yellow);
    text-shadow: 0 0 5px var(--neon-yellow);
}

/* Estilos de élite para el Top 3 */
.ranking-item.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(10, 10, 20, 0.5));
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}
.ranking-item.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), rgba(10, 10, 20, 0.5));
    border-color: #C0C0C0;
}
.ranking-item.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), rgba(10, 10, 20, 0.5));
    border-color: #CD7F32;
}

.ranking-player-footer {
    padding: 0.5rem;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}
.ranking-item.current-player-rank {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}
/* =================================================================== */
/* FIN: ESTILOS PARA LA VISTA DE RANKINGS */
/* =================================================================== */
