/* Carrusel separado — guárdalo como carousel.css */
:root{
    --parallax-gradient: linear-gradient(120deg, #4384E2, #ad39d4, #4384E2);
    --carousel-item-width: 360px;
    --carousel-item-height: 220px;
    --carousel-gap: 16px;
}

.product-section{
    max-width: 1100px;
    margin: 28px auto;
    padding: 6px 14px;
}

.product-section h2{
    margin: 6px 0 14px 6px;
    font-size: 20px;
    color: inherit;
}

.carousel-wrapper{
    position: relative;
    overflow: visible; /* importante para que las flechas queden fuera */
}

.carousel{
    display: flex;
    gap: var(--carousel-gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar{ height: 10px; }
.carousel::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.06); border-radius: 8px; }

.carousel-item{
    flex: 0 0 auto;
    width: var(--carousel-item-width);
    height: var(--carousel-item-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b1b1b;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.carousel-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Botones flecha grandes, altura igual a la imagen */
.carousel-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 72px; /* anchura tipo "joycon" */
    height: var(--carousel-item-height);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    color: white;
    transition: transform 0.12s ease, opacity 0.12s ease;
    background: var(--parallax-gradient);
    background-size: 300% 300%;
}

.carousel-btn.left{ left: -86px; }
.carousel-btn.right{ right: -86px; }

.carousel-btn:hover{ transform: translateY(-50%) scale(1.03); }
.carousel-btn:active{ transform: translateY(-50%) scale(0.98); }

/* Hacer que el contenido no se tape por si el usuario tiene pantalla chica */
@media (max-width: 900px){
    :root{ --carousel-item-width: 300px; --carousel-item-height: 180px; }
    .carousel-btn{ width: 56px; }
    .carousel-btn.left{ left: -64px; }
    .carousel-btn.right{ right: -64px; }
}

@media (max-width: 600px){
    :root{ --carousel-item-width: 260px; --carousel-item-height: 160px; }
    .carousel-btn{ display: none; } /* en pantallas pequeñas dejamos swipe/touch */
}
