/* Carrusel "Diseño de Sabores"
   Las fotos son verticales (4:5), así que el marco tiene esa misma proporción
   y la imagen se ve completa, sin recortes. */

#sabores {
    background: #fafaf9;
}

.carrusel-container {
    position: relative;
    width: min(100%, 480px);
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    background: #1c1917;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    touch-action: pan-y; /* permite scroll vertical y deja el swipe horizontal al carrusel */
}

.carrusel {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carrusel-item {
    flex: 0 0 100%;
    height: 100%;
}

.carrusel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* nunca recorta: si no coincide la proporción, se ve entera */
    user-select: none;
    -webkit-user-drag: none;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background 0.3s;
}

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

.carrusel-btn-prev { left: 12px; }
.carrusel-btn-next { right: 12px; }

.carrusel-indicators {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
}

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

.indicator.active {
    background-color: white;
}

@media (prefers-reduced-motion: reduce) {
    .carrusel { transition: none; }
}
