@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Poppins', sans-serif;
}

/* ✅ 🔥 SOLUCIÓN FOOTER (CLAVE) */
html, body {
    height: 100%;
}

body {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d9 100%);
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

/* ✅ esto empuja el footer abajo */
main {
    flex: 1;
}

/* Navbar mejorado */
.navbar {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #e63946, #c1121f) !important;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 8px 16px !important;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Botón primario */
.btn-primario {
    background: linear-gradient(135deg, #e63946, #c1121f);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 57, 70, 0.3);
}

.btn-primario:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 70, 0.4);
    background: linear-gradient(135deg, #c1121f, #a4161a);
}

/* Cards de productos */
.product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: white;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: all 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e63946;
}

/* Botones + y - */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn.minus {
    background: #ffebee;
    color: #e63946;
}

.quantity-btn.plus {
    background: #e63946;
    color: white;
}

.quantity-btn:hover {
    transform: scale(1.1);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px;
    font-weight: 600;
}

/* Cards generales */
.card-modern {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    background: white;
}

.card-header-modern {
    background: linear-gradient(135deg, #e63946, #f4a261);
    color: white;
    padding: 15px 20px;
    font-weight: 700;
    border-bottom: none;
}

/* Tablas mejoradas */
.table-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.table-modern thead {
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: white;
}

.table-modern th {
    font-weight: 600;
    padding: 15px;
}

.table-modern td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Botón flotante */
.btn-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(229, 57, 70, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.btn-flotante:hover {
    transform: scale(1.1) rotate(90deg);
    background: linear-gradient(135deg, #c1121f, #a4161a);
    color: white;
}

/* Badges de estado */
.badge-estado {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .product-img {
        height: 150px;
    }

    .btn-flotante {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}
/* Solución para footer pegajoso */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.container.py-4 {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
}