/* ========================================
   INDICADORES DE INTERACCIÓN
   ======================================== */

/* Indicador de zoom en las imágenes de productos */
.product-image-container {
    position: relative;
    cursor: pointer;
}

.product-image-container::after {
    content: '🔍';
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

.product-image-container:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Hover effect para el nombre del producto */
.product-name {
    cursor: pointer;
    transition: color 0.2s ease;
}

.product-name:hover {
    color: var(--primary);
}

/* En móviles, mostrar siempre el indicador de zoom */
@media (hover: none) and (pointer: coarse) {
    .product-image-container::after {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

/* Animación de pulso para el indicador en móvil */
@media (max-width: 768px) {
    .product-image-container::after {
        animation: pulse 2s infinite;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* Tooltip para desktop */
@media (min-width: 1025px) {
    .product-image-container {
        position: relative;
    }
    
    .product-image-container::before {
        content: 'Click para ver detalles';
        position: absolute;
        top: -35px;
        left: 50%;
        transform: translateX(-50%) scale(0.9);
        background: rgba(0, 0, 0, 0.85);
        color: white;
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
        font-size: 0.75rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 10;
    }
    
    .product-image-container:hover::before {
        opacity: 1;
        transform: translateX(-50%) scale(1) translateY(-5px);
    }
}

/* Efecto de hover mejorado para las tarjetas */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover .product-image-container .product-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.product-card:hover .product-emoji {
    animation: bounceHover 0.5s ease;
}

@keyframes bounceHover {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Asegurar que las imágenes mantengan su aspect ratio */
.product-image-container .product-image {
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Feedback visual al hacer tap en móvil */
@media (max-width: 768px) {
    .product-image-container:active {
        transform: scale(0.98);
    }
    
    .product-name:active {
        transform: scale(0.98);
    }
}

/* Mejorar la accesibilidad */
.product-image-container:focus-visible,
.product-name:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 8px;
}