
/* =============================================
   MICRO-INTERACTIONS - Confecciones Yaiza
   ============================================= */

/* Botones - efecto ripple */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Product cards - hover lift */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212,165,116,0.2);
}

/* Imagenes - zoom suave */
.product-card .card-img-top {
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Navbar - sombra al scroll */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Links - underline animado */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--luxury-gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Favoritos - corazon animado */
.fav-btn {
    transition: transform 0.2s ease;
}

.fav-btn:hover {
    transform: scale(1.2);
}

.fav-btn.active {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Loading spinner elegante */
.spinner-luxury {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--luxury-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast-luxury {
    background: linear-gradient(135deg, #fff, #faf8f5);
    border-left: 4px solid var(--luxury-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scroll to top - fade in */
.back-to-top-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.back-to-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Search input - expand animation */
.navbar-search-input {
    width: 0;
    padding: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.navbar-search-wrap.open .navbar-search-input {
    width: 200px;
    padding: 0.5rem 1rem;
    opacity: 1;
}

/* Badge - pulse animation */
.badge-elegant {
    animation: pulse 2s infinite;
}

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

/* WhatsApp float - bounce */
.whatsapp-float {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Image lightbox - fade */
#img-lightbox {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive touch improvements */
@media (hover: none) {
    .product-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
