/* ============================================================
   ANIM-CINEMA.CSS - MOTOR Y REACTIVIDAD (VERSIÓN BLINDADA)
   ============================================================ */

.sprockets {
    height: 12px;
    width: 100%;
    margin: 8px 0;
    background-color: rgba(78, 78, 78, 0.3);
    mask-image: repeating-linear-gradient(90deg, #000 0px, #000 14px, transparent 14px, transparent 28px);
    mask-size: 28px 100%;
    border-radius: 5px; 
    transition: all 0.5s ease;
}

.film-strip:hover .sprockets {
    background-color: rgba(78, 78, 78, 0.95);
    opacity: 1;
}

/* --- Resto del motor --- */

.frames-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    width: max-content;
    will-change: transform;
}

.frames-row img {
    height: 350px !important; 
    width: auto !important;
    filter: grayscale(100%) contrast(1.1) brightness(0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #050505;
    flex-shrink: 0;
}

.frames-row img:hover {
    filter: grayscale(0%) contrast(1.2) brightness(1.1);
    transform: scale(1.05) translateY(-5px);
    border-color: #050505;
}

.film-strip.tilt-left { transform: rotate(-1.5deg) translateY(0); }
.film-strip.tilt-right { transform: rotate(1.2deg) translateY(0); }

.note {
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    color: #333;
    letter-spacing: 4px;
    font-size: 1rem;
    margin-top: 20px;
    text-transform: uppercase;
    transition: all 0.6s ease;
    opacity: 1;
}

/* Interacción: Cambia a amarillo dorado y ajusta opacidad */
.film-strip:hover + .note,
.film-strip:hover .note {
    color: rgb(17, 219, 219); 
    opacity: 0.4; 
}

/* ============================================================
   SECCIÓN DE MOVIMIENTO (MODULAR)
   ============================================================ */

/* Aplicamos las animaciones solo si las clases están presentes */
.slide-left {
    animation: move-left 40s linear infinite;
}

.slide-right {
    animation: move-right 40s linear infinite;
}

@keyframes move-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes move-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* Pausa global al hacer hover en la tira */
.film-strip:hover .frames-row {
    animation-play-state: paused;
}