/* Contenedor del carrusel, responsivo 16:9 */
.carrusel-contenedor {
    width: 100%;
    padding-top: 56.25%; /* Relación de aspecto 16:9 */
    position: relative;
    overflow: hidden;
}

/* Oculta los ítems por defecto y los posiciona de forma absoluta */
.carrusel-item {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Muestra el ítem activo */
.carrusel-item.active {
    display: block;
}

/* Estilo para las imágenes, para que se adapten al contenedor */
.carrusel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin distorsionarla */
    object-position: center;
}

/* Estilo para los botones de flecha */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.carrusel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carrusel-btn.prev {
    left: 10px;
}

.carrusel-btn.next {
    right: 10px;
}

/* Estilo para los puntos de navegación */
.carrusel-dots-container {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carrusel-dot {
    height: 10px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carrusel-dot.active {
    background-color: white;
}