:root {
    --dark-color: #333;
    --light-color: #fff;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-ofertas {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.modal-ofertas.active {
    transform: scale(1);
    opacity: 1;
}

/* Tamaño uniforme para todas las imágenes */
.modal-image {
    width: 100%;
    height: 600px;
    /* Altura fija para evitar diferencias */
    object-fit: contain;
    /* Asegurar que todas las imágenes encajen sin deformarse */
    display: block;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 10;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* Asegurar que el contenedor del carrusel ocupe todo el espacio */
.carousel {
    position: relative;
}

/* Flechas de navegación */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* Iconos dentro de las flechas */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent;
    width: 30px;
    height: 30px;
}

/* Efecto hover */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .modal-ofertas {
        width: 95%;
        max-width: 95%;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .modal-ofertas {
        width: 100%;
        border-radius: 0;
    }

    .modal-image {
        max-height: 300px;
    }
}