.carousel {
    width: 100%;
    max-width: 760px; 
    overflow: hidden;
    margin: auto;
    position: relative;
}

.track {
    display: flex;
    transition: transform 0.5s ease;
}


.track > img, .track img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}


/*PONER EL BOTON EN MITAD DEL CONTENEDOR*/
.prev, .next {

    position: static;
    background: rgba(0, 123, 255, 0.95);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: background 0.15s ease, transform 0.12s ease;
}

.prev:hover, .next:hover {
    background: rgba(0, 123, 255, 1);
    transform: scale(1.03);
}

.prev:focus, .next:focus {
    outline: 3px solid rgba(0,123,255,0.18);
    outline-offset: 2px;
}


@media (max-width: 480px) {
    .carousel { max-width: 410px; }
    .prev, .next { min-width: 36px; height: 36px; padding: 6px 10px; }
}

@media (min-width: 768px) {
    .carousel { max-width: 560px; }
}

@media (min-width: 1200px) {
    .carousel { max-width: 900px; }
}