/* =========================================
   DJS DE CHILE - CORE & RANKING STYLES (VERSIÓN FINAL)
   ========================================= */

:root {
    --bg-base: #040d13;
    --bg-surface: rgba(14, 44, 64, 0.4);
    --accent-teal: #148D8D;  
    --accent-light: #C1E1A7; 
    --accent-sand: #EFBC75;  
    --text-white: #ffffff;
    --text-muted: #9CA3AF;
    --border-glass: rgba(255, 255, 255, 0.08);
}

/* --- RESET & BASE --- */
html, body { 
    margin: 0; padding: 0; width: 100%; 
    overflow-x: hidden; box-sizing: border-box; 
}

body { 
    font-family: 'Inter', 'Montserrat', sans-serif;
    background-color: var(--bg-base); 
    background-image: radial-gradient(circle at 50% 0%, rgba(20, 141, 141, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 50% 100%, rgba(239, 188, 117, 0.05) 0%, transparent 50%);
    color: var(--text-white); 
    min-height: 100vh; display: flex; flex-direction: column; 
}

.container { 
    width: 100%; max-width: 1200px; margin: 0 auto; 
    padding: 70px 15px 20px 15px; text-align: center; 
    flex: 1; box-sizing: border-box; position: relative;
}

/* --- TIPOGRAFÍA --- */
h1 { 
    font-weight: 900; font-size: clamp(2.5rem, 9.5vw, 4rem); margin-bottom: 5px; 
    line-height: 1.1; background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.subtitle-fade { 
    color: var(--accent-light); font-size: clamp(0.85rem, 3vw, 1rem); 
    transition: opacity 0.5s ease-in-out; margin: 0; 
}

/* --- NUBE DE DJS --- */
.cloud-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center; 
    gap: 30px; 
    width: 100%; 
    padding: 0; /* Quitamos el padding interno para que el cálculo matemático del centro sea exacto */
}

.dj-tag { 
    cursor: pointer; text-transform: uppercase; font-weight: 900; 
    color: var(--text-muted); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    display: flex; flex-direction: column; line-height: 1.1; 
}

.dj-tag:hover { 
    transform: scale(1.1) translateY(-5px); z-index: 50; color: #FFFFFF; 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px var(--accent-teal); 
}

.size-1 { font-size: clamp(0.9rem, 3vw, 1.2rem); color: rgba(255, 255, 255, 0.65); }
.size-2 { font-size: clamp(1.2rem, 4vw, 1.8rem); color: rgba(255, 255, 255, 0.85); }
.size-3 { font-size: clamp(1.5rem, 5vw, 2.5rem); color: #ffffff; }
.size-4 { font-size: clamp(1.8rem, 6vw, 3.5rem); color: var(--accent-teal); }
.size-5 { 
    font-size: clamp(2.2rem, 10vw, 5rem); color: var(--accent-sand); 
    flex-basis: 100%; margin: 15px 0; text-shadow: 0 0 20px rgba(239, 188, 117, 0.3); 
}

.dj-votes-count { font-size: 0.35em; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.verified-glow { color: var(--accent-sand) !important; text-shadow: 0 0 15px rgba(239, 188, 117, 0.4) !important; }

/* --- MODAL SYSTEM --- */
.modal-overlay { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(4, 13, 19, 0.9); backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); justify-content: center; 
    align-items: center; z-index: 9999; 
}

.modal-bubble { 
    background: rgba(8, 8, 8, 0.75); border: 1px solid rgba(255, 255, 255, 0.06); 
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9); backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); padding: 45px 35px; border-radius: 24px; 
    text-align: center; position: relative; width: 90%; max-width: 420px; 
}

.close-x { 
    position: absolute; top: 20px; right: 25px; font-size: 1.8rem; 
    color: rgba(255, 255, 255, 0.3); cursor: pointer; transition: 0.3s;
}

.modal-bubble h2 { 
    font-size: 2.2rem; font-weight: 900; margin-bottom: 5px; text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, #8a939b 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}



.modal-actions-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 15px;
}

.modal-actions-row a, 
.modal-actions-row button {
    flex: 1;
    margin-bottom: 0 !important;
}

@media (max-width: 400px) {
    .modal-actions-row { flex-direction: column; }
    .modal-actions-row a { margin-bottom: 15px !important; }
}

/* --- BARRA DE EVENTOS --- */
.events-bar-container { 
    width: 100%; background: rgba(4, 13, 19, 0.98); border-bottom: 1px solid var(--border-glass); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); position: fixed; 
    top: 0; left: 0; height: 45px; display: block; z-index: 10000; overflow: hidden; line-height: 45px; 
}

.events-bar-container:hover .events-track { animation-play-state: paused !important; }

.events-track { 
    display: inline-block; white-space: nowrap; padding-left: 50%; 
    animation: scroll-left 25s linear infinite; will-change: transform;
}

.event-link { 
    margin-left: 8px; font-size: 0.75rem; font-weight: 900; text-transform: uppercase; 
    letter-spacing: 1px; text-decoration: none;
    background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 50%, #94A3B8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    transition: all 0.3s ease; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
}

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- FOOTER --- */
footer { 
    width: 100%; padding: 40px 15px; background-color: #040d13; 
    border-top: 1px solid var(--border-glass); box-sizing: border-box; 
    position: relative; z-index: 1001; 
}

.footer-content { 
    max-width: 1200px; margin: 0 auto; display: flex; 
    flex-direction: column; align-items: center; text-align: center; 
}

footer a { color: var(--text-white) !important; text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--accent-teal) !important; text-decoration: underline; }

/* --- BOTÓN FLOTANTE (FAB) --- */
.fab-add { 
    position: fixed; bottom: 75px; right: 20px; height: 50px; padding: 0 20px; 
    background: var(--bg-surface); color: var(--text-white); border-radius: 25px; 
    border: 1px solid var(--border-glass); backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); z-index: 998 !important; 
    display: flex; align-items: center; gap: 10px; cursor: pointer; transition: 0.3s;
}

@media (min-width: 768px) {
    .fab-add { bottom: 40px; right: 40px; z-index: 1000 !important; }
}

@media (max-width: 768px) {
    .events-bar-container { top: auto; bottom: 0; border-bottom: none; border-top: 1px solid var(--border-glass); height: 50px; line-height: 50px; }
    .container { padding-top: 30px; padding-bottom: 60px; }
    .dj-votes-count { font-size: 0.48em !important; }
}
/* --- ESTILO DISCRETO PARA RECLAMACIÓN DE PERFIL --- */
.modal-bubble .claim-btn {
    display: inline-block !important;
    width: auto !important;
    padding: 0 !important;
    margin: 20px auto 0 auto !important;
    background: transparent !important;
    border: none !important;
    color: #6B7280 !important; /* Gris suave (Semi-gris) */
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.modal-bubble .claim-btn:hover {
    color: var(--text-white) !important;
    background: transparent !important;
    transform: none !important;
}

/* --- ETIQUETA NUEVO (BRILLANTE) --- */
.badge-nuevo {
    background: #ccff00; /* Amarillo/Verde Flúor muy brillante */
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 900;
    margin-left: 8px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.6);
    vertical-align: middle;
    display: inline-block;
}
/* --- NUEVA ESTRUCTURA DE FOOTER INTEGRADO --- */
.main-footer {
    width: 100%;
    padding: 50px 15px 30px 15px;
    background-color: var(--bg-base);
    border-top: 1px solid var(--border-glass);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Fila de Botones (Acciones) */
.footer-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    justify-content: center;
}

.btn-footer-add, .btn-footer-access {
    flex: 1;
    padding: 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

/* Estilo Destacado para Agregar DJ */
.btn-footer-add {
    background: transparent;
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
    box-shadow: 0 0 15px rgba(20, 141, 141, 0.2);
}

.btn-footer-add:hover {
    background: var(--accent-teal) !important;
    color: white !important;
    box-shadow: 0 0 25px rgba(20, 141, 141, 0.5);
}

/* Estilo Discreto para Acceso */
.btn-footer-access {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

/* --- AJUSTE PARA ICONOS EN LA FIRMA --- */
.footer-signature a {
    display: inline-flex; /* Permite alinear el icono con el texto */
    align-items: center;
    gap: 6px; /* Espacio exacto entre el icono y el nombre */
    color: inherit !important;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-signature a i {
    font-size: 0.9rem; /* Tamaño del icono un poco más grande que el texto para visibilidad */
    color: var(--accent-teal); /* Color turquesa para que resalte sutilmente */
}

.footer-signature a:hover i {
    color: white; /* El icono se ilumina en blanco al pasar el mouse */
    filter: drop-shadow(0 0 5px var(--accent-teal));
}

.footer-signature a {
    color: inherit !important;
    text-decoration: none;
}

.footer-signature .sep { opacity: 0.3; }

/* Ajuste Móvil: Botones uno sobre otro si la pantalla es muy pequeña */
@media (max-width: 480px) {
    .footer-actions { flex-direction: column; }
    .footer-signature { flex-direction: column; gap: 5px; }
    .footer-signature .sep { display: none; }
}

/* ELIMINAR EL ANTIGUO FAB PARA EVITAR DUPLICIDAD */
.fab-add { display: none !important; }
/* --- NUEVA MINI NAV SUPERIOR (CENTRAMIENTO PERFECTO) --- */
.mini-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 40px; 
    background: rgba(4, 13, 19, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    /* Usamos Grid para que la columna central esté 100% al medio siempre */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 20px;
    z-index: 10001;
    box-sizing: border-box;
}

.nav-left {
    justify-self: start;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-white);
}

.nav-center {
    justify-self: center;
    text-align: center;
}

.nav-center .subtitle-fade {
    font-size: 0.75rem; 
    color: var(--accent-light);
    margin: 0;
}

.nav-right {
    justify-self: end;
    display: flex;
    gap: 10px;
}

/* --- BOTONES DEL HEADER (EFECTO PLATINO BRILLANTE) --- */
.btn-nav {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600; /* Un poco más de peso para que el brillo destaque */
    text-transform: none !important; /* Elimina las mayúsculas forzadas */
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    
    /* EFECTO PLATINO: Color plata brillante + resplandor blanco */
    color: #F8FAFC !important; 
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Botón Agregar DJ (Más brillante y destacado) */
.btn-nav-add {
    background: rgba(20, 141, 141, 0.3) !important; /* Fondo más encendido */
    border: 1px solid rgba(20, 141, 141, 0.8) !important; /* Borde más nítido */
    box-shadow: 0 0 15px rgba(20, 141, 141, 0.4), inset 0 0 5px rgba(20, 141, 141, 0.2);
}

.btn-nav-add:hover {
    background: rgba(20, 141, 141, 0.7) !important;
    box-shadow: 0 0 20px rgba(20, 141, 141, 0.6), inset 0 0 10px rgba(20, 141, 141, 0.4);
    transform: scale(1.02);
}

/* Botón Acceso (Discreto con borde delgado) */
.btn-nav-access {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.btn-nav-access:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Comportamiento en Móviles */
@media (max-width: 768px) {
    .mini-nav {
        display: flex;
        justify-content: space-between;
    }
    .nav-center { display: none; } /* Oculta el subtítulo para dar espacio a los botones */
}

/* --- AJUSTES DE POSICIÓN --- */
.events-bar-container {
    top: 40px !important; /* Baja para dar espacio al header */
}

/* --- CONTENEDOR PRINCIPAL (CENTRAMIENTO ABSOLUTO) --- */
.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    /* El padding top compensa los 85px fijos del header + marquesina */
    padding: 100px 15px 40px 15px; 
    text-align: center; 
    
    /* Magia del centrado vertical */
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; /* Centra verticalmente */
    align-items: center;     /* Centra horizontalmente */
    
    box-sizing: border-box; 
    position: relative;
}

/* --- FOOTER SIMPLIFICADO --- */
.main-footer {
    padding: 30px 15px;
    background: var(--bg-base);
    border-top: 1px solid var(--border-glass);
}

.footer-signature {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.footer-signature a {
    color: inherit !important;
    text-decoration: none;
}

.footer-signature .sep { opacity: 0.2; }

/* Ocultar elementos innecesarios en móvil si se amontonan */
@media (max-width: 600px) {
    .nav-center { display: none; } /* Ocultamos el subtítulo en el header solo en móviles pequeños */
}
/* =========================================
   ESTILOS DE FORMULARIO DARK TECH (MODALES)
   ========================================= */
.modal-bubble input[type="text"],
.modal-bubble input[type="url"],
.modal-bubble input[type="email"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05); /* Fondo oscuro traslúcido */
    border: 1px solid var(--border-glass); /* Borde de cristal */
    padding: 15px;
    color: var(--text-white);
    border-radius: 12px; /* Curvatura elegante */
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.modal-bubble input:focus {
    border-color: var(--accent-teal); /* Brillo turquesa al escribir */
    background: rgba(20, 141, 141, 0.05);
    box-shadow: 0 0 15px rgba(20, 141, 141, 0.2);
}

.modal-bubble input[type="checkbox"] {
    accent-color: var(--accent-teal); /* Casilla turquesa nativa */
    width: 18px;
    height: 18px;
    cursor: pointer;
}
/* =========================================================
   Botón Dedicado: Press Kit en Modal de Inicio
   ========================================================= */
.epk-modal-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    padding: 12px 20px;
    font-weight: bold;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease; /* Transición suave para la animación */
}

/* Animación Hover Independiente */
.epk-modal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-sand, #EFBC75);
    transform: translateY(-2px);
}

.epk-modal-btn i {
    margin-right: 8px; /* Separación del ícono */
}
/* =========================================
   MODIFICACIÓN HEADER MÓVIL (APP EXPERIENCE)
   ========================================= */
/* =========================================
   MODIFICACIÓN HEADER MÓVIL (APP EXPERIENCE) - CORREGIDO
   ========================================= */
@media (max-width: 768px) {
    /* 1. Header: Apagamos el blur para liberar los botones flotantes */
    .mini-nav {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(4, 13, 19, 0.98) !important; /* Color oscuro sólido */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .nav-left { 
        display: none !important; /* Oculta el título estático */
    }
    
    .nav-center { 
        display: block !important; 
        width: 100%; 
        text-align: center; 
    }
    
    .nav-center .subtitle-fade {
        font-size: 0.85rem !important;
        font-weight: 800 !important;
        letter-spacing: 1px;
    }
    
    /* 2. Botones flotantes: Ahora sí son libres de ir al fondo de la pantalla */
    .nav-right {
        position: fixed !important;
        bottom: 65px !important; /* Flotando justo arriba de la marquesina */
        left: 0 !important;
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: space-between !important;
        pointer-events: none !important; /* Permite clickear la nube de DJs que está detrás */
        z-index: 99999 !important; /* Nivel máximo de prioridad */
    }
    
    .nav-right .btn-nav {
        pointer-events: auto !important; /* Reactiva los clics solo para los botones */
        padding: 12px 18px !important; 
        border-radius: 50px !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.9), 0 0 15px rgba(20,141,141,0.4) !important;
        font-size: 0.8rem !important;
        background: rgba(4, 13, 19, 0.95) !important; /* Fondo oscuro propio */
        border: 1px solid var(--accent-teal) !important;
    }

    /* Brillo extra para el botón de "Agregar DJ" en móvil */
    .nav-right .btn-nav-add {
        background: rgba(20, 141, 141, 0.2) !important;
    }

    /* Cuando el footer es visible, los botones suben para no taparlo */
    .nav-right.above-footer {
        position: absolute !important;
        bottom: 65px !important;
        /* position:absolute relativo al body, se calcula dinámicamente con JS */
    }
}
/* =========================================
   ANIMACIONES DE ENTRADA
   ========================================= */

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* Tags de DJs en la nube — entrada escalonada */
.dj-tag {
    animation: fadeInScale 0.4s ease both;
}

/* El retraso se asigna desde JS con style="animation-delay: Xs" */