/**
 * Estilos para el carrusel de imágenes en tarjetas de producto
 */

.product-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
}

/* Flechas de navegación */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow .material-symbols-outlined {
    font-size: 20px;
    color: #000;
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

/* Mostrar flechas al hacer hover */
.product-card:hover .carousel-arrow {
    opacity: 1;
}

/* Dots indicadores */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .carousel-dots {
    opacity: 1;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 8px;
    height: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 28px;
        height: 28px;
        opacity: 1; /* Mostrar siempre en móviles */
    }
    
    .carousel-arrow .material-symbols-outlined {
        font-size: 18px;
    }
    
    .carousel-dots {
        opacity: 1; /* Mostrar siempre en móviles */
        bottom: 8px;
    }
}

/* Vista compacta */
.compact-view .carousel-arrow {
    width: 28px;
    height: 28px;
}

.compact-view .carousel-arrow .material-symbols-outlined {
    font-size: 18px;
}

.compact-view .carousel-dots {
    bottom: 8px;
}

.compact-view .carousel-dot {
    width: 5px;
    height: 5px;
}

.compact-view .carousel-dot.active {
    width: 7px;
    height: 7px;
}
