.carrusel {
    position: relative;
    width: 90%;            /* Ocupa el 90% del ancho del contenedor/pantalla */
    max-width: 1000px;      /* Nunca será más grande que 1000px */
    aspect-ratio: 10 / 4;   /* Mantiene proporción de 1000x400 en cualquier tamaño */
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carrusel-imagenes {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carrusel-imagenes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    z-index: 9;
    border-radius: 50%; /* Hace el botón redondo */
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carrusel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}


.carrusel-btn.prev {
    left: 10px;
}

.carrusel-btn.next {
    right: 10px;
}
