:root {
    --color-primary: #007bff;
    --color-secondary: #6c757d;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
    --color-light: #f8f9fa;
    --color-dark: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Header Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}
.navbar-brand img {
    height: 80px !important;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    border-radius: 4px;
}

.cart-count {
    background-color: var(--color-danger);
    color: white;
    border-radius: 50%;
    padding: 0.25em 0.4em;
    font-size: 0.75rem;
    position: absolute;
    top: 5px;
    right: -5px;
    min-width: 18px;
    text-align: center;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.image-container {
    height: 250px;
    overflow: hidden;
}

.product-card .card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .price {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 15px;
}

/* Carrito */
.cart-item {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.cart-item img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* Botones circulares para cantidad */
.input-group .btn-outline-secondary {
    border-radius: 50% !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #dee2e6;
    background: white;
    transition: all 0.3s ease;
}

.input-group .btn-outline-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.quantity-input {
    width: 70px;
    text-align: center;
    border-left: none;
    border-right: none;
    border-radius: 0;
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-left: none;
    border-right: none;
}

/* Product Detail Page */
.product-detail-img {
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .image-container {
        height: 200px;
    }
    
    .product-detail-img {
        height: 300px;
    }
    
    .input-group .btn-outline-secondary {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
}

/* Botones personalizados */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #0056b3);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

/* Formularios */
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Toast notifications */
.toast {
    font-size: 0.875rem;
    border-radius: 10px;
}

/* Badges */
.badge {
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Cards generales */
.card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px 12px 0 0 !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--color-primary);
}

.breadcrumb-item.active {
    color: var(--color-secondary);
}

/* Modal improvements */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Price section in product detail */
.price-section {
    background: linear-gradient(135deg, #f8f9ff, #e8f0ff) !important;
    border-left: 4px solid var(--color-primary);
}

/* Share buttons */
.share-buttons .btn {
    border-radius: 8px;
}

/* Footer */
.footer-delivery-img {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-delivery-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #ff0404, #000307) !important;
    border-top: 4px solid var(--color-primary);
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a.text-light:hover {
    color: var(--color-primary) !important;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Botón compartir tienda */
.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Enlaces rápidos del footer */
footer .d-flex a {
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

footer .d-flex a:hover {
    color: var(--color-primary) !important;
    padding-left: 5px;
}

/* Modal QR tienda */
#tiendaQRModal .modal-content {
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

#tiendaQRModal .modal-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 15px 15px 0 0;
}

/* Responsive para footer */
@media (max-width: 768px) {
    footer .col-md-4 {
        text-align: center !important;
        margin-bottom: 2rem;
    }
    
    footer .text-md-end {
        text-align: center !important;
    }
    
    .footer-delivery-img {
        height: 50px;
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
}
/* Productos Destacados */
.product-card.border-warning {
    border: 2px solid #ffc107 !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.product-card.border-warning:hover {
    border-color: #fd7e14 !important;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.badge.bg-warning {
    color: #000;
    font-weight: 600;
}

/* Efecto especial para productos destacados */
.destacado-badge {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: #000;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* Estilos para el modal QR mejorado */
.modal-sm {
    max-width: 350px;
}

.modal-content {
    border-radius: 15px;
}

.modal-body .btn {
    border-radius: 8px;
    font-weight: 500;
}

/* Mejora visual para los botones de compartir */
.share-buttons .btn {
    transition: all 0.3s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Animación para el QR */
#qrImage {
    transition: transform 0.3s ease;
}

#qrImage:hover {
    transform: scale(1.05);
}

/* Responsive para móviles */
@media (max-width: 576px) {
    .modal-sm {
        margin: 1rem;
    }
    
    .share-buttons .d-flex {
        flex-direction: column;
    }
    
    .share-buttons .btn {
        margin-bottom: 0.5rem;
    }
}
/* Estilos para las redes sociales en el footer */
.social-links .social-btn {
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links .social-btn:hover {
    transform: translateY(-2px);
}

/* Facebook específico */
.social-links .btn-outline-light:hover[title="Facebook"] {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

/* Instagram específico */
.social-links .btn-outline-light:hover[title="Instagram"] {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: white;
}

/* Número de teléfono */
footer a[href^="tel:"] {
    transition: all 0.3s ease;
    display: inline-block;
}

footer a[href^="tel:"]:hover {
    color: var(--color-primary) !important;
    transform: translateX(5px);
}

/* WhatsApp button improvements */
footer .btn-success {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

footer .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Alineación responsiva mejorada */
footer .col-md-4 {
    margin-bottom: 2rem;
}

/* Responsive para redes sociales */
@media (max-width: 768px) {
    .social-links .d-flex {
        justify-content: center !important;
    }
    
    .social-links .social-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        min-width: 100px;
    }
    
    footer h5,
    footer h6 {
        text-align: center !important;
    }
    
    footer .text-md-start,
    footer .text-md-end {
        text-align: center !important;
    }
    
    /* Asegurar que todo esté centrado en móviles */
    footer .col-md-4 > * {
        text-align: center;
    }
    
    /* Enlaces rápidos centrados en móviles */
    footer .d-flex.flex-column {
        align-items: center !important;
    }
}

@media (max-width: 576px) {
    .social-links .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
        width: 100%;
    }
    
    .social-links .social-btn {
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
    }
    
    /* Mejor espaciado en móviles pequeños */
    footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Asegurar que los textos estén centrados en móviles */
@media (max-width: 768px) {
    footer .text-center.text-md-start,
    footer .text-center.text-md-end {
        text-align: center !important;
    }
}