/* Estilos generales - Mejorados para UI moderna */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #F4A460;
    --light-color: #FFF8DC;
    --dark-color: #2C1810;
    --text-color: #3E2723;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FF9800;
    --info-color: #2196F3;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 32px rgba(0,0,0,0.2);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 76px;
    background-color: #FAFAFA;
    scroll-behavior: smooth;
}

.container-fluid {
    max-width: 1400px;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 12px 24px;
    transition: var(--transition);
    border: none;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Secciones */
.section-padding {
    padding: 80px 0;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 20px auto;
}

/* Navbar - Mejorado */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(139, 69, 19, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Promociones y Tarjetas - Mejoradas */
.promo-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 30px;
    margin-bottom: 24px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(139, 69, 19, 0.1);
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.promo-card h4 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.promo-card .badge {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.promo-card .badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #E53935) !important;
}

.promo-card .badge.bg-success {
    background: linear-gradient(135deg, var(--success-color), #43A047) !important;
}

/* Tarjetas de Producto */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 20px;
}

.card-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.card-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Producto detalle - Mejorado */
.product-detail-image {
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.pricing {
    margin: 20px 0;
}

.pricing .text-decoration-line-through {
    color: #999;
    font-size: 1.1rem;
    margin-right: 12px;
}

.pricing .current-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.pricing .discount-badge {
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Formularios mejorados */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* Alertas mejoradas */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #E8F5E8, #C8E6C9);
    color: #2E7D32;
}

.alert-danger {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    color: #C62828;
}

.alert-info {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: #1565C0;
}

.stock-info {
    font-size: 0.9rem;
}

.product-features ul {
    padding-left: 20px;
}

.product-features li {
    margin-bottom: 8px;
}

/* Hero Section */
.hero-section {
    background-color: var(--light-color);
    padding: 120px 0 80px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.product-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.product-image:hover {
    transform: scale(1.03);
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 10px 25px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 10px 25px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Info Card */
.info-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.nutrition-list {
    list-style: none;
    padding-left: 0;
}

.nutrition-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.nutrition-list li:last-child {
    border-bottom: none;
}

/* Promo Card */
.promo-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.promo-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer a {
    transition: var(--transition);
    text-decoration: none;
.footer a:hover {
    color: var(--accent-color) !important;
}

/* Carrito de compras mejorado */
.cart-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-medium);
}

.cart-summary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Animaciones y efectos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design - Mobile First */
@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .promo-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .product-detail-image {
        max-height: 300px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cart-item {
        padding: 16px;
    }
    
    .cart-summary {
        padding: 20px;
    }
    
    .pricing .current-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 10px;
    }
    
    .nav-link {
        margin: 4px 0;
    }
    
    .card-columns {
        column-count: 1;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .card-columns {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .card-columns {
        column-count: 3;
    }
}

/* Utilidades */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-light) !important;
}

.shadow {
    box-shadow: var(--shadow-medium) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-heavy) !important;
}

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

/* Mejoras de accesibilidad */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}    text-decoration: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 100px 0 60px;
    }
    
    .hero-section .btn {
        margin-bottom: 30px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 66px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    .section-padding {
        padding: 30px 0;
    }
}

/* Formularios */
.form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    margin-bottom: 20px;
}

.form-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.form-control {
    border-radius: var(--border-radius);
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(106, 76, 147, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

/* Perfil de usuario */
.profile-header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
}

.profile-header h1 {
    margin-bottom: 10px;
}

.profile-stats {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.profile-stats h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stats-label {
    font-size: 0.9rem;
    color: #6c757d;
}

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

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* Autenticidad */
.qr-container {
    text-align: center;
    margin: 30px 0;
}

.qr-code {
    max-width: 200px;
    margin: 0 auto;
}

.certificate-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.certificate-container h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.certificate-list {
    list-style: none;
    padding-left: 0;
}

.certificate-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.certificate-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.certificate-list li:last-child {
    border-bottom: none;
}