/* assets/css/style.css */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Cards de productos */
.producto-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.producto-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producto-card:hover img {
    transform: scale(1.05);
}

/* Categorías */
.categoria-card {
    border: none;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
}

.categoria-card:hover {
    background: var(--primary-color);
    color: white;
}

.categoria-card:hover i {
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .producto-card img {
        height: 150px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        line-height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-section .btn {
        display: block;
        margin: 10px auto !important;
        width: 80%;
    }
}

@media (max-width: 576px) {
    .producto-card img {
        height: 120px;
    }
    
    .categoria-card {
        font-size: 0.9rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.producto-card, .categoria-card {
    animation: fadeIn 0.6s ease-out;
}

/* Botones personalizados */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #34495e;
    border-color: #34495e;
}

/* Badges */
.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* Carrito */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}