/* ---- ESTILO GENERAL ---- */
body {
    font-family: Arial, sans-serif;
    
    text-align: center;
    color: black;
    margin: 0;
    padding: 0;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 20px auto;
    background: transparent; /* Sin fondo */
    padding: 20px; /* Mantiene espacio interno */
    border-radius: 0; /* Sin bordes */
    box-shadow: none; /* Sin sombra */
    backdrop-filter: none; /* Sin efecto de desenfoque */

}

/* ---- ESTILO DEL CARRUSEL ---- */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
     overflow: visible;
    width: 100%;
}

/* Contenedor de los flyers que se mueve */
.flyers-wrapper {
    width: 85%; /* Hacemos que los flyers ocupen más espacio */
    overflow: visible; /* Permitimos que sobresalgan */
    margin-left: -17%; /* Movemos los flyers a la izquierda */
}

/* Contenedor interno que se desplaza */
.flyers-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    max-width: calc(5 * 220px); /* 5 imágenes de 220px cada una */
}


/* ---- ESTILO DE CADA FLYER ---- */
.flyer-card {
    flex: 0 0 calc(20% - 20px); /* 5 flyers por fila */
    max-width: calc(30% - 20px); /* Reducción del tamaño */
    cursor: pointer;
   position: relative; /* Para manejar el z-index */
    z-index: 1; /* Normalmente está detrás */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: none;
    margin-right: 75px; /* Aumentamos el espacio entre los flyers */
}

/* Evita margen extra en el último flyer de la fila */
.flyer-card:last-child {
    margin-right: 0;
}

.flyer-card:hover {
    transform: scale(1.8); /* Aumentado para mejor visualización */
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
     z-index: 10; 
}


/* ---- IMÁGENES SIN RECORTE ---- */
.flyer-img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Para que no recorte la imagen */
    background: white;
}

.flyer-card:hover .flyer-info {
    opacity: 1;
    transform: translateY(0);
}

/* ---- EFECTO DE BRILLO EN EL TEXTO ---- */
.flyer-info span {
    display: inline-block;
    background: linear-gradient(90deg, #FFA200, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 14px;
    font-weight: bold;
}



/* Efecto de clic */
.carousel-btn:active {
    transform: translateY(-50%) scale(0.9);
}

#prevBtn, #nextBtn {
    display: none;
}


/* Posiciones */
#prevBtn {
    left: 15px;
}

#nextBtn {
    right: 15px;
}
.carousel-btn:hover {
    background: #E04A1A;
}

/* Fondo de la ventana modal */
.modal {
    display: none; /* Asegura que esté oculto al cargar */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Oscurece el fondo */
    justify-content: center;
    align-items: center;
}


/* Contenedor del formulario */
.modal-content {
    background: white;
    padding: 20px;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

/* Campos de entrada */
.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Botones */
.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* Botón principal */
.btn-celeste {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    margin-right: 5px;
}

/* Botón cancelar */
.btn-cancelar {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    margin-left: 5px;
}

/* Efectos al pasar el cursor */
.btn-celeste:hover {
    background: #0056b3;
}

.btn-cancelar:hover {
    background: #c82333;
}
/* Ajuste para input de fecha en responsive */
input[type="date"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
@media (max-width: 768px) {
    .flyers-wrapper {
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex;
        padding: 0 0; /* Sin padding lateral */
    }

    .flyers-wrapper::-webkit-scrollbar {
        display: none;
    }

    .flyers-container {
        display: flex;
        gap: 20px;
        position: relative;
    }

    .flyers-container::before {
        content: "";
        flex: 0 0 12.5%; /* Centrado dinámico */
    }

    .flyer-card {
        flex: 0 0 75%;
        max-width: 75%;
        scroll-snap-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s;
    }

    .flyer-card img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
    }

    .flyer-card:hover {
        transform: none;
    }
}
