/* Estilos generales */

body {
    padding-top: 76px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* Carrusel */

.carousel-item {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}


/* Productos */

.producto-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}


/* Badges para productos */

.badge-nuevo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff4081, #e91e63);
}

.badge-oferta {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff9800, #f57c00);
}


/* Botón WhatsApp flotante */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.4);
}


/* Carrito lateral */

.carrito-lateral {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1050;
    padding: 20px;
    overflow-y: auto;
}

.carrito-lateral.abierto {
    right: 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.overlay.mostrar {
    display: block;
}


/* Responsive */

@media (max-width: 768px) {
    .carrito-lateral {
        width: 100%;
        right: -100%;
    }
    .col-producto {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .col-producto {
        flex: 0 0 100%;
        max-width: 100%;
    }
    body {
        padding-top: 70px;
    }
}


/* Mejoras visuales */

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
}


/* Animaciones suaves */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}