/* =============================================================================
   ESTILOS GENERALES Y EFECTOS VISUALES - NACCA DJ
   ============================================================================= */
/* Importamos Fredoka (pesos 300, 400, 600, 700) */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;600;700&display=swap');

/* Configuraciones Globales de Caja */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Base Oscura Estilo Boliche Minimalista */
body {
    background-color: #050505;
    color: #ffffff;
    /* Aplicamos Fredoka normal al cuerpo de la página */
    font-family: 'Fredoka', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Capa de Textura Analógica (Ruido) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* Tipografías Profesionales: Títulos */
h1, h2 {
    /* Fredoka gruesa para títulos llamativos pero suaves */
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
}

h3, h4, h5, h6, .navbar-brand {
    /* Fredoka semi-gruesa para subtítulos */
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

/* Hero Section con Video */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: 50% 35%;
    pointer-events: none;
    z-index: -1;
    filter: brightness(0.9) contrast(1.1); /* Aumentado para que el video sea más visible */
}

.hero-content {
    z-index: 1;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Capa Fija de Iluminación Ambiental (Gradientes Suaves) */
.ambient-light {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    /* Gradiente inicial: Azul boliche profundo atenuado */
    background: radial-gradient(circle, rgba(15, 23, 42, 0.5) 0%, rgba(5, 5, 5, 1) 75%);
    filter: blur(60px);
    z-index: -1;
    transition: background 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none; /* No interfiere con clics de la interfaz */
}

.tracking-widest {
    letter-spacing: 5px !important;
}

/* --- SISTEMA DE NAVEGACIÓN DINÁMICA --- */
.navbar {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Efecto cuando el usuario hace scroll: Glassmorphism Premium */
.navbar-scrolled {
    background: rgba(5, 5, 5, 0.137) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

/* Mejora de legibilidad del menú en móviles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(20, 20, 20, 0.247) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        padding: 1rem;
        margin-top: 15px;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease;
    position: relative;
}

/* Efecto Glow Neón / Rojo Fuego para links activos y hover */
.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(255, 51, 0, 0.7);
    transform: translateY(-2px);
}

/* Overrides para el Accordion Minimalista */
.accordion-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: background 0.3s ease;
}

.accordion-item:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

.accordion-button {
    box-shadow: none !important;
    font-family: inherit;
}

.accordion-button:not(.collapsed) {
    color: #fff !important;
    background-color: transparent !important;
}

/* Icono del accordion en blanco */
.accordion-button::after {
    filter: invert(1) brightness(2);
    opacity: 0.5;
}

.event-card.laser-red { /* Mantenemos soporte para variaciones láser si se usan */
    border-top: 1px solid rgba(204, 0, 51, 0.6);
    box-shadow: 0 -8px 25px rgba(204, 0, 51, 0.08);
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(20, 20, 20, 0.8);
}

/* Customización de Botones de Voto */
.btn-vote {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    color: #cccccc;
    transition: all 0.2s ease;
}

.btn-vote:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-vote:disabled {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    color: #555555;
    cursor: not-allowed;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #222222;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

/* =============================================================================
   ASIMETRÍA Y GRID REVOLUTION
   ============================================================================= */
.grid-asymmetric {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.grid-item-main { grid-column: span 12; }
@media (min-width: 992px) {
    .grid-item-7 { grid-column: span 7; }
    .grid-item-5 { grid-column: span 5; }
    .grid-item-4 { grid-column: span 4; }
    .grid-item-8 { grid-column: span 8; }
}

/* =============================================================================
   REVEAL ON SCROLL
   ============================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   REFINAMIENTO ACORDEÓN PREMIUM (GLASSMORPHISM)
   ============================================================================= */

.accordion-item {
    background: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    background: rgba(30, 30, 30, 0.7) !important;
    border-color: rgba(255, 51, 0, 0.4) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.accordion-button {
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    outline: none !important;
}

.accordion-button::after {
    filter: invert(1) brightness(2);
}

.accordion-body {
    background: transparent !important;
}

/* Scroll Down Indicator - Bootstrap Icons Version */
.scroll-indicator {
    position: absolute;
    bottom: 240px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 60px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* --- INDICADOR VOLVER ARRIBA (SCROLL TOP) --- */
.scroll-top-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040;
    font-size: 3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.scroll-top-indicator.visible {
    opacity: 0.6;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-indicator:hover {
    opacity: 1;
    transform: translateY(-5px);
}

section[id] {
    scroll-margin-top: 100px;
}

.glass-card {
    background: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 51, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0, 255, 204, 0.1);
}
.glass-card .card-body {
    color: #fff;
}
.glass-card .card-title {
    letter-spacing: 2px;
    font-weight: 300;
}


/* =============================================================================
   SOCIAL CARDS PREMIUM (ILUMINACIÓN REACTIVA)
   ============================================================================= */
.social-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(10, 10, 10, 0.5) !important;
    position: relative;
    overflow: hidden;
}

.social-card i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, text-shadow 0.3s ease;
    color: #ffffff;
    z-index: 2;
    position: relative;
}

/* --- Instagram Glow --- */
.instagram-hover:hover {
    border-color: #E1306C !important;
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.25), inset 0 0 20px rgba(225, 48, 108, 0.1) !important;
    transform: translateY(-8px) scale(1.02);
}
.instagram-hover:hover i {
    color: #E1306C;
    transform: scale(1.2);
}


/* --- threads Glow --- */
.threads-hover:hover {
    border-color: #f7f0f2 !important;
    box-shadow: 0 10px 30px rgba(248, 248, 248, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-8px) scale(1.02);
}
.threads-hover:hover i {
    color: #f7f0f2;
    transform: scale(1.2);
}

/* --- TikTok Glow (Efecto Glitch 3D) --- */
.tiktok-hover:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: -6px 10px 30px rgba(0, 242, 254, 0.25), 6px 10px 30px rgba(254, 44, 85, 0.25) !important;
    transform: translateY(-8px) scale(1.02);
}
.tiktok-hover:hover i {
    color: #ffffff;
    text-shadow: 3px 3px 0px #fe2c55, -3px -3px 0px #00f2fe;
    transform: scale(1.2);
}

/* --- WhatsApp Glow --- */
.whatsapp-hover:hover {
    border-color: #25D366 !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.25), inset 0 0 20px rgba(37, 211, 102, 0.1) !important;
    transform: translateY(-8px) scale(1.02);
}
.whatsapp-hover:hover i {
    color: #25D366;
    transform: scale(1.2);
}



/* =============================================================================
   CONTADOR DE VOTOS (EFECTO FUEGO / TENDENCIA)
   ============================================================================= */
.vote-number {
    font-size: 1.1rem;
    color: #ff3300; /* Fuego rojo/naranja para el número también */
    text-shadow: 0 0 10px rgba(255, 51, 0, 0.4);
    transition: all 0.3s ease;
}

.vote-icon {
    color: #ff3300; /* Fuego rojo/naranja */
    filter: drop-shadow(0 0 8px rgba(255, 51, 0, 0.6));
    animation: pulseFire 1.5s infinite alternate;
    margin-left: 4px;
}

@keyframes pulseFire {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 51, 0, 0.4)); }
    100% { transform: scale(1.15); filter: drop-shadow(0 0 12px rgba(255, 102, 0, 0.8)); }
}

/* Al pasar el mouse sobre la canción entera, el número también reacciona */
.btn-vote:hover .vote-number {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 51, 0, 0.8);
    transform: scale(1.05);
}


/* =============================================================================
   ESTILOS TOP 1 (CANCIÓN MÁS VOTADA)
   ============================================================================= */
.top-1-track {
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.01) 100%) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
    position: relative;
}

.top-1-track:hover:not(:disabled) {
    border-color: rgba(255, 215, 0, 0.8) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
    transform: translateY(-2px);
}

.badge-top-1 {
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    color: #000;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* =============================================================================
   AJUSTES DE RESPONSIVIDAD (MÓVIL)
   ============================================================================= */
@media (max-width: 576px) {
    .btn-vote {
        padding: 0.5rem 0.65rem !important;
    }
    .badge-top-1 {
        font-size: 0.45rem;
        padding: 1px 4px;
        letter-spacing: 0.5px;
    }
    .vote-number {
        font-size: 0.9rem;
    }
    .vote-icon {
        font-size: 0.8rem;
    }
}

/* =============================================================================
   PRELOADER SYSTEM (OVERLAY INMERSIVO)
   ============================================================================= */
.nacca-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.nacca-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    width: 300px;
}

.preloader-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.preloader-bar {
    height: 2px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.preloader-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    animation: progress 2s infinite linear;
}

@keyframes progress {
    0% { left: -100%; }
    100% { left: 100%; }
}


/* =============================================================================
   ICONOS GIGANTES (SPOTIFY Y YOUTUBE)
   ============================================================================= */
.glass-card .card-header i.bi-spotify,
.glass-card .card-header i.bi-youtube {
    font-size: 40px !important; /* Cambia este número por los px que necesites (ej: 100px, 120px) */
    line-height: 1;             /* Evita que el contenedor se deforme hacia abajo */
    display: inline-block;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* =============================================================================
   TABLAS Y MODALES MEJORADOS (ACCESIBILIDAD & GLASSMORPHISM)
   ============================================================================= */

/* Tabla con estética de cristal para integrarse al Dashboard */
.glass-table {
    background: transparent !important;
    border-spacing: 0 8px; /* Espaciado entre filas para resaltar el efecto card */
}

.glass-table thead tr {
    background: rgba(255, 255, 255, 0.03);
    border: none;
}

.glass-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.glass-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    transform: scale(1.005);
}

/* Accesibilidad: Normalización de tamaños de fuente (Min 0.75rem) */
.glass-table td, .glass-table th {
    padding: 1.2rem 1rem !important;
    font-size: 0.85rem;
    border: none !important;
}

.badge-status {
    font-size: 0.75rem !important; /* Aumentado de 0.6rem para legibilidad */
    letter-spacing: 1.5px;
    padding: 0.5em 0.8em;
    font-weight: 600;
}
