/* * { box-sizing: border-box; margin: 0; padding: 0; } */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.slider-container {
    display: none;
    position: fixed;
    opacity: 0;
    /* top: inherit; */
    top: 0;
    left: 0;
    z-index: 9999;
    /* Asegura que el slider esté por encima de otros elementos */
    width: 100vw;
    height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    /* border-radius: 15px; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-image: url(../img/film-background.webp);
    background-size: cover;
    background-position: center;
}

.slider {
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fade 0.8s ease-in-out;
}

.slide.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Mantiene la proporción sin deformar */
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

/* Leyendas (Captions) */
.info {
    position: absolute;
    bottom: 40px;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(1px);
    max-width: 80vw;
}

.info p,
.close-slider,
.btn-nav {
    color: white !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 2px black;
}

/* Botones de navegación */
.btn-nav {
    position: absolute;
    top: 50%;
    height: 100vh;
    transform: translateY(-50%);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    /* border-radius: 50%; */
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.3);
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    color: black;
}

.prev {
    left: 0px;
}

.next {
    right: 0px;
}

/* Puntos indicadores */
.dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    padding: 0 6vw;
    /* max-width: 80vw; */
}

.dot {
    height: 3px;
    width: 18px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: white;
    transform: scale(1.3);
}

/* Estilo para el botón de cerrar */
.close-slider {
    position: absolute;
    top: 15px;
    right: 7px;
    font-size: 35px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 100;
    /* Asegura que esté por encima de todo */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Sombra para que se vea en fotos claras */
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
}

.close-slider:hover {
    color: #ff4d4d;
    /* Cambia a rojo suave al pasar el mouse */
    transform: scale(1.2);
}

/* Animación de entrada */
@keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slider-container {
        height: 350px;
    }

    .info {
        bottom: 20px;
        left: 20px;
        padding: 10px;
        font-size: 14px;
    }

    .btn-nav {
        padding: 10px;
        font-size: 18px;
    }
}