.bodegas-carrusel {
    position: relative;
    width: 100%;
    aspect-ratio: 1366 / 640;
    overflow: hidden;
    background: #111;
}

.bodegas-carrusel__imagenes,
.bodegas-carrusel__imagen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bodegas-carrusel__imagen {
    display: block;
    margin: 0;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 800ms ease;
}

.bodegas-carrusel__imagen.es-actual {
    opacity: 1;
}

.bodegas-carrusel__controles[hidden] {
    display: none;
}

.bodegas-carrusel__puntos {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: flex;
    gap: 6px;
    padding: 3px 0;
    transform: translateX(-50%);
}

.bodegas-carrusel__punto {
    display: grid;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    padding: 0;
    place-items: center;
    border: 0;
    background: none;
    cursor: pointer;
}

.bodegas-carrusel__punto::before {
    box-sizing: border-box;
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 2px;
    content: "";
    filter: drop-shadow(0 1px 2px #111);
}

.bodegas-carrusel__punto[aria-current]::before {
    background: #fff;
}

.bodegas-carrusel__flecha {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    box-sizing: border-box;
    width: 44px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 180ms ease;
    cursor: pointer;
}

.bodegas-carrusel__flecha--anterior {
    right: auto;
    left: 12px;
}

.bodegas-carrusel__flecha::before {
    width: 13px;
    height: 13px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    content: "";
    transform: rotate(45deg);
    filter: drop-shadow(0 1px 2px #111);
}

.bodegas-carrusel__flecha--anterior::before {
    transform: rotate(-135deg);
}

.bodegas-carrusel:hover .bodegas-carrusel__flecha,
.bodegas-carrusel:focus-within .bodegas-carrusel__flecha {
    opacity: 1;
}

.bodegas-carrusel button:focus-visible {
    outline: 2px solid white;
    outline-offset: -2px;
}

@media (hover: none) {
    .bodegas-carrusel .bodegas-carrusel__flecha {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bodegas-carrusel__imagen,
    .bodegas-carrusel__flecha {
        transition: none;
    }
}
