/* Estilos para funcionalidades de contacto y compartir en tiendas */

/* Botones de contacto en página de tienda */
.contact-btn {
    transition: all 0.2s ease;
    font-family: inherit;
    border: none;
    cursor: pointer;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-btn:active {
    transform: translateY(0);
}

.whatsapp-btn:hover {
    background: #128c7e !important;
}

.email-btn:hover {
    background: #2563eb !important;
}

.phone-btn:hover {
    background: #059669 !important;
}

.share-btn:hover {
    background: #7c3aed !important;
}

.widget-btn:hover {
    background: #d97706 !important;
}

/* Botones de acción en directorio */
.btn-action {
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-action.share:hover {
    background: #7c3aed !important;
}

.btn-action.whatsapp:hover {
    background: #128c7e !important;
}

/* Botón flotante de contacto */
#floating-contact a {
    transition: all 0.3s ease;
}

#floating-contact a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Modal de compartir */
.share-modal {
    backdrop-filter: blur(4px);
}

.share-modal a {
    transition: all 0.2s ease;
}

.share-modal a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Toast notifications */
.toast {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive design */
@media (max-width: 640px) {
    .contact-btn {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
    
    .btn-action {
        padding: 0.375rem;
        font-size: 0.75rem;
    }
    
    #floating-contact {
        bottom: 15px;
        right: 15px;
    }
    
    #floating-contact a {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-btn {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .contact-btn i {
        font-size: 1rem;
    }
}

/* Mejoras para accesibilidad */
.contact-btn:focus,
.btn-action:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Animaciones suaves */
.tienda-actions {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de carga */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Efectos hover mejorados */
.tienda-card:hover .btn-action {
    transform: translateY(-1px);
}

.tienda-card:hover .btn-ver-tienda {
    background: #4f46e5 !important;
}

/* Indicadores de estado */
.contact-available {
    position: relative;
}

.contact-available::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
}

/* Estilos para diferentes tipos de contacto */
.contact-whatsapp { background: #25d366; }
.contact-telegram { background: #0088cc; }
.contact-email { background: #3b82f6; }
.contact-phone { background: #10b981; }
.contact-share { background: #8b5cf6; }