/* Variables de color */
:root {
    /* Modo claro */
    --bg-primary: #fefefe;
    --bg-secondary: #f9f5f0;
    --bg-tertiary: #f2ede6;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-tertiary: #95a5a6;
    --border-color: #e8e2d9;
    --accent-primary: #e67e22;
    --accent-secondary: #d35400;
    --accent-orange: #e67e22;
    --accent-blue: #3498db;
    --accent-green: #27ae60;
    --accent-red: #e74c3c;
    --accent-purple: #9b59b6;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Radios */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Transiciones */
    --transition: 0.25s ease;
}

/* Modo oscuro */
.dark-mode {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --border-color: #444444;
    --accent-primary: #ff8c00;
    --accent-secondary: #ffa500;
    --accent-orange: #ff8c00;
    --accent-blue: #5dade2;
    --accent-green: #58d68d;
    --accent-red: #ec7063;
    --accent-purple: #bb8fce;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow: hidden;
    transition: background-color var(--transition), color var(--transition);
}

/* Fondo */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(230, 126, 34, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.dark-mode .background {
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 112, 99, 0.1) 0%, transparent 50%),
        #0a0a0a;
}

/* Contenedor principal - SIN SCROLL */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Cabecera central */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

.title-container {
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 5px;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1px;
}

/* ===== BOTÓN DE TEMA SIMPLE - SIN TOOLTIPS ===== */
.theme-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    margin-top: 5px;
}

.theme-btn:hover {
    transform: rotate(30deg) scale(1.1);
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-md);
}

/* REMOVER CUALQUIER TOOLTIP */
.theme-btn[title]:hover::after,
.theme-btn[title]:hover::before {
    display: none !important;
    content: none !important;
}

/* REMOVER INDICADOR DE TEMA AUTOMÁTICO */
.theme-btn.auto-theme::after {
    display: none !important;
    content: none !important;
}

/* Barra de búsqueda */
.search-container {
    width: 100%;
    max-width: 500px;
    margin: 10px 0;
}

#searchInput {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

#searchInput::placeholder {
    color: var(--text-tertiary);
    font-style: italic;
}

.search-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 8px;
    font-style: italic;
}

/* Círculo Ponteus - Más compacto */
.ponteus-circle {
    position: relative;
    width: 350px;
    height: 350px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
}

#canvasMapa {
    width: 100%;
    height: 100%;
    display: block;
}

#mira {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    transform: translate(-12px, -12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

#mira::before,
#mira::after {
    content: '';
    position: absolute;
    background: var(--accent-red);
    transition: all var(--transition);
}

#mira::before {
    width: 24px;
    height: 3px;
    top: 10.5px;
    left: 0;
}

#mira::after {
    width: 3px;
    height: 24px;
    top: 0;
    left: 10.5px;
}

/* Footer informativo - Siempre visible */
.info-footer {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.info-item i {
    color: var(--accent-orange);
}

/* Animación para la mirilla */
@keyframes gentlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#mira {
    animation: gentlePulse 2s infinite ease-in-out;
}

/* Modo oscuro específico */
.dark-mode .theme-btn:hover {
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.3);
}

/* Accesibilidad */
.theme-btn:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

#searchInput:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Transiciones */
.theme-btn i,
#searchInput,
.info-item,
.ponteus-circle {
    transition: all var(--transition);
}

/* Carga inicial */
@keyframes initialLoad {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.title-container,
.search-container,
.ponteus-circle,
.info-footer {
    animation: initialLoad 0.6s ease-out forwards;
}

.title-container { animation-delay: 0.1s; }
.search-container { animation-delay: 0.2s; }
.ponteus-circle { animation-delay: 0.3s; }
.info-footer { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .ponteus-circle {
        width: 280px;
        height: 280px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .info-footer {
        gap: 10px;
    }
    
    .info-item {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .header-center {
        gap: 15px;
    }
}

@media (max-height: 700px) {
    .ponteus-circle {
        width: 250px;
        height: 250px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .search-container {
        max-width: 400px;
    }
    
    .main-container {
        padding: 15px 20px;
    }
    
    .header-center {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .ponteus-circle {
        width: 250px;
        height: 250px;
    }
    
    h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .info-footer {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .info-item {
        width: 100%;
        justify-content: center;
    }
    
    #searchInput {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ===== ESTILOS PARA AVISO DE CONSENTIMIENTO ===== */

/* Overlay del consentimiento */
.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 1;
}

/* Contenido principal */
.consent-content {
    background: var(--bg-primary);
    border-radius: 15px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

/* Encabezado */
.consent-header {
    padding: 20px;
    background: var(--accent-orange);
    color: white;
    text-align: center;
    position: relative;
}

.consent-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    opacity: 0.9;
}

.consent-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.consent-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Cuerpo con scroll */
.consent-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 55vh;
}

/* Secciones */
.consent-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.consent-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.consent-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-orange);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.consent-section p {
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Listas */
.consent-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.consent-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--bg-secondary);
}

.consent-list.negative-list li {
    background: rgba(231, 76, 60, 0.1);
    border-left: 2px solid var(--accent-red);
}

.consent-list li i {
    margin-top: 2px;
    flex-shrink: 0;
}

.consent-list li.positive i {
    color: var(--accent-green);
}

.consent-list li.negative i {
    color: var(--accent-red);
}

/* Notas */
.consent-note {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--accent-blue);
    font-size: 0.85rem;
}

/* Pie de página */
.consent-footer {
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.consent-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-orange);
}

.option-toggle label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Botones */
.consent-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
}

.cancel-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cancel-btn:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.accept-btn {
    background: var(--accent-green);
    color: white;
    border: none;
}

.accept-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Scrollbar */
.consent-body::-webkit-scrollbar {
    width: 6px;
}

.consent-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.consent-body::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .consent-content {
        max-height: 90vh;
    }
    
    .consent-header h2 {
        font-size: 1.3rem;
        padding-left: 35px;
    }
    
    .consent-body {
        padding: 15px;
        max-height: 60vh;
    }
    
    .consent-buttons {
        flex-direction: column;
    }
    
    .consent-btn {
        width: 100%;
        min-width: auto;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .consent-overlay {
        padding: 10px;
    }
    
    .consent-content {
        border-radius: 12px;
    }
    
    .consent-header h2 {
        font-size: 1.2rem;
        padding-left: 40px;
    }
    
    .consent-section h3 {
        font-size: 1rem;
    }
    
    .consent-list li {
        font-size: 0.8rem;
    }
}

/* Modo oscuro específico para consentimiento */
.dark-mode .consent-content {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.dark-mode .consent-list li {
    background: var(--bg-tertiary);
}

.dark-mode .cancel-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dark-mode .consent-note {
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

/* Animación de entrada */
@keyframes consentAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.consent-content {
    animation: consentAppear 0.3s ease-out;
}

/* ===== BOTÓN DE CHAT ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.chat-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.chat-btn:hover {
    transform: scale(1.1);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
}

/* ===== OVERLAY CHAT ===== */
.chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 8990;
}

.chat-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ===== VENTANA DE CHAT GRANDE ===== */
.chat-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 520px;
    max-width: 96vw;
    max-height: 82vh;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 9000;
}

.chat-panel.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* HEADER */
.chat-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-title i {
    color: var(--accent-orange);
}

#chatNickname {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

/* CUERPO */
.chat-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.chat-rules {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* MENSAJES */
.chat-message {
    max-width: 90%;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.chat-message.me {
    align-self: flex-end;
    background: var(--accent-orange);
    color: white;
}

.chat-message.system {
    align-self: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* INPUT */
.chat-input-area {
    padding: 8px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    gap: 8px;
}

#chatInput {
    flex: 1;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* ===== MODAL NOMBRE ===== */
.nickname-modal {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9100;
}

.nickname-modal.open {
    display: flex;
}

.nickname-card {
    width: 90%;
    max-width: 340px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 16px;
}

.nickname-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

/* ===== BLOQUEO ===== */
.ban-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #050816;
    color: white;
}

/* ===== BOTÓN DE CHAT ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.chat-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.chat-btn:hover {
    transform: scale(1.1);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
}

/* ===== OVERLAY CHAT ===== */
.chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 8990;
}

.chat-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ===== VENTANA DE CHAT (MÁS GRANDE) ===== */
.chat-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 640px;          /* MÁS ANCHO */
    max-width: 98vw;
    max-height: 90vh;      /* MÁS ALTO */
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 9000;
}

.chat-panel.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* HEADER CHAT */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-title i {
    color: var(--accent-orange);
}

.chat-title-text span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

#chatNickname {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
}

/* CUERPO CHAT */
.chat-body {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 220px;
}

.chat-rules {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 8px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

/* MENSAJES */
.chat-message {
    max-width: 90%;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.chat-message.me {
    align-self: flex-end;
    background: var(--accent-orange);
    color: #fff;
}

.chat-message.system {
    align-self: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* INPUT CHAT */
.chat-input-area {
    padding: 8px 10px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

#chatInput {
    flex: 1;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    font-size: 0.9rem;
}

.chat-send-btn {
    border-radius: var(--radius-full);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-orange);
    color: #fff;
    cursor: pointer;
}

/* ===== MODAL NOMBRE ===== */
.nickname-modal {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9100;
}

.nickname-modal.open {
    display: flex;
}

.nickname-card {
    width: 90%;
    max-width: 360px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 16px 18px;
}

.nickname-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.nickname-card p {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

#nicknameInput {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.nickname-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.nickname-btn {
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.nickname-cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.nickname-save {
    background: var(--accent-orange);
    color: #fff;
}

/* ===== PANTALLA DE BLOQUEO (BAN) ===== */
.ban-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050816;
    color: #f5f5f5;
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    text-align: center;
    padding: 20px;
}

.ban-card {
    max-width: 450px;
    padding: 24px 20px;
    border-radius: 16px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.3);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .chat-panel {
        width: 96vw;
        max-height: 90vh;
    }
}

/* ===== BOTÓN DE IDIOMA ===== */
.language-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 60px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    gap: 5px;
    padding: 0 10px;
}

.language-btn:hover {
    transform: scale(1.05);
    color: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-md);
}

.language-btn i {
    font-size: 1rem;
}

#currentLanguage {
    font-weight: 600;
    font-size: 0.8rem;
}

/* Responsive para botón de idioma */
@media (max-width: 480px) {
    .language-btn {
        width: 50px;
        height: 45px;
        font-size: 0.8rem;
    }
    
    .language-btn i {
        font-size: 0.9rem;
    }
    
    #currentLanguage {
        font-size: 0.7rem;
    }
}

/* ===== ESTILOS DEL CHAT ===== */

/* Botón del chat en header */
.chat-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    position: relative;
}

.chat-btn:hover {
    transform: scale(1.1);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
}

/* Overlay del chat */
.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9990;
}

.chat-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Panel del chat */
.chat-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.chat-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Header del chat */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-title i {
    color: var(--accent-orange);
}

.chat-title-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-title-text span {
    font-size: 1rem;
    font-weight: 600;
}

#chatNickname {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: normal;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.chat-close-btn:hover {
    background: var(--accent-red);
    color: white;
}

/* Cuerpo del chat */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-rules {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chat-rules p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.chat-rules p:last-child {
    margin-bottom: 0;
}

/* Mensajes del chat */
.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 5px;
}

.chat-message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out;
}

.chat-message.me {
    align-self: flex-end;
    background: var(--accent-orange);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-message.system {
    align-self: center;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: 10px;
    max-width: 90%;
    text-align: center;
    padding: 10px 15px;
}

.chat-message-author {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.9;
}

.chat-message-text {
    font-size: 0.95rem;
}

.chat-message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: right;
    margin-top: 4px;
}

/* Input del chat */
.chat-input-area {
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

#chatInput {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition);
}

#chatInput:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.chat-send-btn {
    padding: 12px 20px;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.chat-send-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Modal de nickname */
.nickname-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10010;
}

.nickname-modal.open {
    display: flex;
}

.nickname-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.nickname-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nickname-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

#nicknameInput {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: all var(--transition);
}

#nicknameInput:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.nickname-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.nickname-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.nickname-cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.nickname-cancel:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.nickname-save {
    background: var(--accent-orange);
    color: white;
}

.nickname-save:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Scrollbar para el chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Pantalla de baneo */
.ban-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    color: white;
    text-align: center;
    padding: 20px;
}

.ban-card {
    max-width: 500px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.ban-card h1 {
    color: var(--accent-red);
    margin-bottom: 20px;
    font-size: 2rem;
}

.ban-card p {
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.ban-card small {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive para chat */
@media (max-width: 768px) {
    .chat-panel {
        width: 95%;
        max-height: 90vh;
        top: 50%;
        left: 50%;
    }
    
    .chat-body {
        padding: 15px;
    }
    
    .chat-messages {
        max-height: 300px;
    }
    
    .chat-message {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .chat-header {
        padding: 12px 15px;
    }
    
    .chat-body {
        padding: 12px;
    }
    
    .chat-input-area {
        padding: 12px 15px;
    }
    
    #chatInput {
        padding: 10px 12px;
    }
    
    .chat-send-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .chat-send-btn i {
        font-size: 1rem;
    }
    
    .nickname-card {
        padding: 20px;
    }
    
    .nickname-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e74c3c;
  color: white;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: 0.3s;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ✅ PEGA ESTO en style.css (y DEJA tu modal-selector.css como está) */

/* Overlay propio del Info (no depende de .modal-overlay) */
.info-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
}

.info-overlay.open{
  display: flex;
}

.info-modal-content{
  width: min(720px, 92vw);
  max-height: 86vh;
  overflow: auto;
  border-radius: 16px;
}

/* Botón de info */
.info-btn{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-stack{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  padding: 14px;
  border-radius: 14px;
}

.donate-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.donate-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.06);
}
.donate-btn:hover{ transform: translateY(-1px); }

.privacy-text{ margin-top: 8px; line-height: 1.4; opacity: 0.92; }
.rules-list{ margin: 10px 0 0; padding-left: 18px; line-height: 1.45; }

/* ✅ AGREGA ESTO en style.css (NO borres nada) */
.info-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
}
.info-overlay.open{ display: flex; }

.info-modal-content{
  width: min(760px, 92vw);
  max-height: 86vh;
  overflow: auto;
}

.info-stack{ display: flex; flex-direction: column; gap: 14px; }

.info-card{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  padding: 14px;
  border-radius: 14px;
}

.donate-row{ display: flex; gap: 10px; flex-wrap: wrap; }

.donate-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.06);
}
.donate-btn:hover{ transform: translateY(-1px); }

.privacy-text{ margin-top: 8px; line-height: 1.4; opacity: 0.92; }
.rules-list{ margin: 10px 0 0; padding-left: 18px; line-height: 1.45; }