/* ============================================= */
/* --- ESTILOS SECCIÓN ENTRADAS --- */
/* ============================================= */

.entradas-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #050505;
    background-image: url('../media/images/backgrounds/background_entradas.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    overflow: hidden;
}

/* --- TÍTULO DE LA SECCIÓN EN EL TOP --- */
.entradas-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    width: 100%;
}

.entradas-title-img {
    height: 70px; /* Ajusta según el tamaño de tu header */
    width: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

/* --- CONTENIDO PRINCIPAL --- */
.entradas-content {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 120px 20px 40px 20px; /* Padding superior para no pisar el título */
}

/* --- GRID DE 4 COLUMNAS --- */
.entradas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.entrada-card {
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0; /* Totalmente invisibles al inicio para crear intriga */
}

.entrada-card img {
    width: 100%;
    max-width: 320px; 
    height: auto;
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}

.entrada-card:hover img {
    transform: translateY(-10px) scale(1.02);
    filter: drop-shadow(0 15px 25px rgba(255, 69, 0, 0.4)) brightness(1.1);
}

/* --- FOOTER (IMAGEN + BOTÓN) --- */
.entradas-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0; 
}

.entradas-cta-img {
    height: 45px; /* Altura de tu imagen de texto */
    width: auto;
    object-fit: contain;
}

.entradas-btn img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.entradas-btn:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* ============================================= */
/* --- 3. ANIMACIÓN ELÉCTRICA (CORTO CIRCUITO) --- */
/* ============================================= */

/* Redujimos el tiempo a 0.7s para que sea un chispazo rápido y violento */
.section-active .glitch-item {
    animation: falloElectrico 0.1s linear forwards;
}

/* Cascada mucho más rápida (reacción en cadena) */
.section-active .glitch-item[data-step="1"] { animation-delay: 0.1s; }
.section-active .glitch-item[data-step="2"] { animation-delay: 0.2s; }
.section-active .glitch-item[data-step="3"] { animation-delay: 0.3s; }
.section-active .glitch-item[data-step="4"] { animation-delay: 0.4s; }
.section-active .glitch-item[data-step="5"] { animation-delay: 0.5s; } /* El footer espera a que termine el caos */

/* Algoritmo de Corto Circuito: Apagones abruptos (0%) y picos de luz (300%) en milisegundos */
@keyframes falloElectrico {
    0%   { opacity: 0; filter: brightness(0); transform: scale(0.98); }
    
    /* Chispazo inicial violento */
    5%   { opacity: 1; filter: brightness(3) contrast(200%); } 
    10%  { opacity: 0; filter: brightness(0); } /* Apagón total */
    

    
    /* Estabilización absoluta */
    100% { opacity: 1; filter: brightness(1) contrast(100%); transform: scale(1); } 
}

/* ============================================= */
/* --- RESPONSIVO --- */
/* ============================================= */
@media (max-width: 992px) {
    .entradas-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    .entradas-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .entradas-footer {
        flex-direction: column;
        gap: 25px;
    }
    
    .entradas-cta-img {
        height: auto;
        width: 80%; /* Ajuste para que la imagen de texto no se salga del móvil */
    }
}