/* ========== IMPORTAR FUENTES ========== */
@import url('https://fonts.googleapis.com/css2?family=Forte&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ========== VARIABLES CSS ========== */
:root {
    --color-primary: #e21013;
    --color-secondary: #ffed00;
    --color-light: #ffffff;
    --color-dark: #212529;
    --color-gray: #6c757d;
    --color-light-gray: #f8f9fa;
    --color-gradient-1: #FF416C;
    --color-gradient-2: #FF4B2B;
    --color-accent: #00C9FF;
    --color-success: #28a745;
    --color-info: #17a2b8;
    --color-warning: #ffc107;
    
    /* Variables de tipografía */
    --font-heading: 'Forte', cursive;
    --font-body: 'Montserrat';
}

/* ========== ESTILOS BASE Y TIPOGRAFÍA ========== */
body {
    font-family: var(--font-body);
    color: var(--color-dark);
    font-weight: 400;
    line-height: 1.6;
}

/* Títulos con Forte */
h1, h2, h3, h4, h5, h6,
.section-title,
.promo-title,
.checkout-title,
.checkout-section-title,
.footer-title,
.navbar-brand,
.product-details .product-title,
.combo-title,
.promo-title,
.modal-title {
    font-family: var(--font-heading);
    font-weight: normal;
    letter-spacing: 0.5px;
}

/* Jerarquía de tipografías */
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.00rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

/* Tamaños para Montserrat */
p, li, span, a:not(.navbar-brand):not(.btn-primary):not(.btn-add-cart):not(.section-title) {
    font-family: var(--font-body);
    font-size: 1rem;
}

small, .text-muted {
    font-family: var(--font-body);
    font-size: 0.875rem;
}

/* Pesos de fuente para Montserrat */
.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Precios destacados */
.product-price .h5,
.product-price .price,
.current-price .price,
.combo-price {
    font-family: var(--font-heading);
    font-weight: normal;
}

/* Botones importantes */
.btn-primary,
.btn-add-cart,
#checkout-btn,
#review-order-btn {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Badges y etiquetas destacadas */
.badge.bg-primary,
.badge.bg-success,
.discount-badge {
    font-family: var(--font-heading);
    font-weight: normal;
}

/* Títulos en tarjetas */
.card-title,
.combo-title,
.product-card .product-title {
    font-family: var(--font-body);
    font-weight: 600;
}

/* Elementos específicos con Forte */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 2rem !important;
    letter-spacing: 1px;
}

/* Ajustes específicos de tipografía */
.form-label,
.form-section h5,
.checkout-section-title {
    font-family: var(--font-body);
    font-weight: 600;
}

.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary {
    font-family: var(--font-body);
    font-weight: 500;
}

.nav-link,
.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
}

footer,
.footer-links,
.copyright {
    font-family: var(--font-body);
}

/* Contenido específico */
.product-description,
.combo-description,
.accordion-body,
.faq-answer,
.contact-info p {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
}

ul, ol, table {
    font-family: var(--font-body);
}

.form-control,
.form-select,
.form-check-label {
    font-family: var(--font-body);
}

/* ========== COMPONENTES DE NAVEGACIÓN ========== */

/* Primera barra de navegación */
.navbar.navbar-light.bg-light {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Barra de búsqueda */
.search-form {
    flex-grow: 1;
    max-width: 600px;
}

.search-form .input-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
}

.search-form .btn {
    background: linear-gradient(135deg, var(--color-secondary), #ffd700);
    border: none;
    color: var(--color-dark);
    padding: 0 25px;
    font-weight: 600;
}

.search-form .btn:hover {
    background: linear-gradient(135deg, #ffd700, var(--color-secondary));
}

/* Iconos de navegación */
.nav-icon {
    font-size: 1.2rem;
    color: white !important;
    margin-left: 15px;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.form-check-label.nav-icon {
    background: none;
    width: auto;
    height: auto;
    margin-left: 5px !important;
}

/* Segunda barra de navegación */
.navbar.navbar-dark.bg-dark {
    background: linear-gradient(90deg, #1a1a1a, #333333) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 56px;
}

/* Botones de categorías */
.categories-desktop-btn,
.categories-mobile-btn {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    color: white !important;
    border-radius: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.categories-desktop-btn {
    padding: 8px 20px !important;
    margin-right: 10px;
}

.categories-mobile-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 10px;
}

.categories-desktop-btn:hover,
.categories-mobile-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, var(--color-primary));
    transform: translateY(-2px);
    color: white !important;
}

.categories-desktop-btn i,
.categories-mobile-btn i {
    font-size: 1rem;
    margin-right: 8px;
}


/* Botones de carrito */
.cart-desktop-btn,
.cart-mobile-btn {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-desktop-btn {
    width: 45px;
    height: 45px;
    margin-left: 10px;
}

.cart-mobile-btn {
    width: 40px;
    height: 40px;
    margin-left: 10px;
}

.cart-desktop-btn:hover,
.cart-mobile-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cart-desktop-btn i,
.cart-mobile-btn i {
    color: white !important;
    font-size: 1.2rem;
}

/* Badge del carrito */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--color-secondary), #ffd700);
    color: var(--color-dark);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Menú de navegación */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background: var(--color-primary);
    color: white !important;
    transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-item:not(:first-child) .nav-link {
    background: transparent;
    padding: 8px 15px;
}

.navbar-dark .navbar-nav .nav-item:not(:first-child) .nav-link:hover {
    background: var(--color-primary);
}

/* Menú desplegable de categorías */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: var(--color-gray);
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
    border-left-color: var(--color-primary);
}

.dropdown-menu.multi-level {
    min-width: 250px;
}

.dropdown-menu.multi-level .dropdown-menu {
    min-width: 200px;
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--color-primary);
    color: white;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========== COMPONENTES DE CABECERA ========== */

/* Tira de noticias */
.news-ticker-container {
    background: linear-gradient(90deg, var(--color-primary), #ff6b6b);
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.news-ticker-header {
    display: flex;
    align-items: center;
    padding: 0 15px 0 0;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-ticker-header i {
    font-size: 1.2rem;
    color: var(--color-secondary);
}

.news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 25px;
}

.news-ticker-content {
    position: absolute;
    white-space: nowrap;
    display: flex;
    animation: ticker 40s linear infinite;
    padding-left: 100%;
}

.news-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    font-size: 0.95rem;
}

.news-item i {
    margin-right: 8px;
    color: var(--color-secondary);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Banner principal */
.main-banner {
    width: 100%;
    overflow: hidden;
}

.main-banner .bannerSwiper,
.main-banner-swiper {
    width: 100%;
    height: auto;
}

.main-banner .swiper-slide,
.main-banner-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    flex-shrink: 0;
}

.main-banner .swiper-slide > .banner-link,
.main-banner-swiper .swiper-slide > .banner-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.banner-link:hover .banner-image {
    opacity: 0.95;
}

.banner-slide {
    position: relative;
    width: 100%;
    height: auto;
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* Correcciones específicas para banner en móvil */
@media (max-width: 991.98px) {
    .main-banner {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }
    
    .main-banner .bannerSwiper,
    .main-banner-swiper {
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
    
    .main-banner .swiper-slide,
    .main-banner-swiper .swiper-slide {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0;
    }
    
    .banner-slide {
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .banner-image {
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        padding: 0 !important;
    }
    
    .banner-overlay {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .banner-overlay .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
}

/* ========== COMPONENTES DE PRODUCTOS ========== */

/* Tarjetas de productos */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.product-card .product-img-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.product-card .product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card .product-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6em;
    height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
    color: #333;
    text-decoration: none !important;
    position: relative;
    cursor: pointer;
}

/* Tooltip para título completo */
.product-card .product-title:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .product-title:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    margin-bottom: -4px;
    z-index: 1001;
}

.product-card .product-title.multiline-tooltip:hover::after {
    white-space: normal;
    width: 200px;
    max-width: 90vw;
    word-wrap: break-word;
}

.product-card .product-title:hover {
    color: var(--color-primary);
}

.product-card .product-price {
    margin-bottom: 1rem;
}

.product-card .quantity-control {
    width: 110px;
}

.product-card .quantity-control .form-control {
    border-radius: 0;
    border-color: #ddd;
}

.product-card .quantity-control .btn {
    padding: 0.25rem 0.5rem;
    border-color: #ddd;
}

.product-card .btn-add-cart {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .btn-add-cart:hover {
    background: linear-gradient(135deg, #ff6b6b, var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Compatibilidad para navegadores sin soporte de line-clamp */
@supports not (-webkit-line-clamp: 2) {
    .product-card .product-title {
        max-height: 3.2em;
        overflow: hidden;
        position: relative;
    }
    
    .product-card .product-title::after {
        content: '...';
        position: absolute;
        bottom: 0;
        right: 0;
        padding-left: 5px;
        background: linear-gradient(to right, transparent, white 30%);
    }
}

/* Sección de combos */
.combo-section {
    background-color: var(--color-light-gray);
    padding: 40px 0;
}

.combo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.combo-card:hover {
    transform: scale(1.03);
}

.combo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-secondary);
    color: var(--color-dark);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 10;
}

.combo-image {
    height: 250px;
    object-fit: cover;
}

.combo-content {
    padding: 20px;
    background-color: white;
    height: calc(100% - 250px);
    display: flex;
    flex-direction: column;
}

.combo-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.combo-description {
    color: var(--color-gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.combo-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.combo-old-price {
    text-decoration: line-through;
    color: var(--color-gray);
    margin-left: 10px;
}

/* ========== PÁGINA DE PRODUCTOS ========== */

/* Layout de productos */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--color-gray);
}

.filters-sidebar {
    background: var(--color-light-gray);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.filter-section {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options .form-check {
    margin-bottom: 8px;
}

.filter-options .form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
}

.products-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sort-options .form-select {
    border-color: var(--color-primary);
}

.products-grid .product-card {
    background: #fff;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.products-grid .product-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.pagination .page-link {
    color: var(--color-primary);
    border: 1px solid #dee2e6;
    margin: 0 2px;
    border-radius: 6px;
}

.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination .page-link:hover {
    background-color: var(--color-light-gray);
    border-color: var(--color-primary);
}

/* Vista de detalle de productos */
.product-details {
    padding: 0 20px;
}

.product-details .product-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.price-section {
    background: var(--color-light-gray);
    padding: 20px;
    border-radius: 12px;
}

.current-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.price-section .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
}

.discount-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 4px 0;
}

.product-tabs .nav-tabs {
    border-bottom: 2px solid var(--color-primary);
}

.product-tabs .nav-link {
    color: var(--color-gray);
    font-weight: 500;
    border: none;
    padding: 12px 24px;
}

.product-tabs .nav-link.active {
    color: var(--color-primary);
    background: white;
    border-bottom: 3px solid var(--color-primary);
}

.social-share {
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f8f9fa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    background: var(--color-light-gray);
}

/* Galería de producto - Versión corregida */
.product-gallery {
    width: 100%;
    position: relative;
}

/* Imagen Principal Grande */
.main-image-container {
    width: 100%;
    height: 400px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.galleryMainSwiper {
    width: 100%;
    height: 100%;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* Paginación imagen principal */
.main-pagination {
    position: absolute !important;
    bottom: 15px !important;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.main-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0.7;
    display: inline-block;
    border-radius: 50%;
    margin: 0 3px !important;
    cursor: pointer;
}

.main-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
}

/* Contenedor de Miniaturas */
.thumbnails-carousel {
    width: 100%;
    position: relative;
    padding: 0 40px;
}

.thumbnailsSwiper {
    width: 100%;
    height: 100px;
    padding: 5px 0;
}

/* Miniaturas individuales */
.thumbnail-item {
    width: 80px !important;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    background: #f8f9fa;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thumbnail-item:hover {
    opacity: 0.8;
    border-color: #dee2e6;
}

.thumbnail-item.active {
    border-color: var(--color-primary);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(226, 16, 19, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

/* Flechas de navegación */
.thumb-next,
.thumb-prev {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    margin-top: 0 !important;
    color: var(--color-primary) !important;
    background: white !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    z-index: 10 !important;
}

.thumb-next:after,
.thumb-prev:after {
    font-size: 14px !important;
    font-weight: bold !important;
}

.thumb-next {
    right: 5px !important;
}

.thumb-prev {
    left: 5px !important;
}

/* Botones de acción */
.image-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Modal de imagen */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    z-index: 2001;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* ========== CARRITO DE COMPRAS ========== */

/* Header del carrito */
.cart-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Tabla de carrito (Desktop) */
.cart-table-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cart-table {
    margin-bottom: 0;
}

.cart-table thead th {
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 15px 10px;
}

.cart-table tbody td {
    vertical-align: middle;
    padding: 20px 10px;
    border-bottom: 1px solid #e9ecef;
}

/* Columnas de la tabla */
.product-col {
    width: 40%;
}

.price-col {
    width: 15%;
    text-align: center;
}

.quantity-col {
    width: 20%;
    text-align: center;
}

.total-col {
    width: 15%;
    text-align: center;
}

.action-col {
    width: 10%;
    text-align: center;
}

/* Información del producto */
.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-table .product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
    border: 1px solid #e9ecef;
}

.product-details h6 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.product-details .text-muted {
    font-size: 0.85rem;
}

/* Precio */
.cart-table .product-price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Control de cantidad */
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--color-dark);
}

.quantity-btn:hover {
    background: var(--color-light-gray);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Total */
.cart-table .product-total {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 1.2rem;
}

/* Botón eliminar */
.remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}

/* Lista de productos para móvil */
.cart-mobile-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cart-item-mobile {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.cart-item-mobile:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 5px;
    border: 1px solid #e9ecef;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-content {
    flex: 1;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.cart-item-price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Acciones del carrito */
.cart-actions {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Resumen del pedido */
.order-summary-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.order-summary-header {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    color: white;
    padding: 20px;
    text-align: center;
}

.summary-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.3rem;
}

.order-summary-body {
    padding: 20px;
}

.summary-item {
    font-size: 0.95rem;
}

.summary-label {
    color: var(--color-gray);
}

.summary-value {
    font-weight: 600;
    color: var(--color-dark);
}

.summary-total {
    font-size: 1.1rem;
}

.total-label {
    color: var(--color-dark);
}

.total-value {
    color: var(--color-primary);
    font-size: 1.3rem;
}

.discount-code .input-group {
    margin-bottom: 5px;
}

/* Botón de pago */
#checkout-btn {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    border: none;
    padding: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#checkout-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 16, 19, 0.3);
}

/* Métodos de pago */
.payment-methods i {
    font-size: 1.8rem;
}

/* Tarjetas de información */
.info-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

/* ========== CHECKOUT ========== */

/* Progreso del checkout */
.checkout-steps {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--color-gray);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(226, 16, 19, 0.3);
}

.step.completed .step-circle {
    background: var(--color-success);
    color: white;
}

.step.completed .step-circle::after {
    content: '✓';
    font-size: 1.5rem;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray);
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: var(--color-primary);
    font-weight: 700;
}

/* Tarjeta de checkout */
.checkout-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.checkout-header {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    color: white;
    padding: 25px 30px;
}

.checkout-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
}

.checkout-subtitle {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.checkout-body {
    padding: 30px;
}

/* Secciones del formulario */
.form-section {
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
}

.checkout-section-title {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.checkout-section-title i {
    margin-right: 10px;
}

/* Etiquetas requeridas */
.form-label.required::after {
    content: ' *';
    color: var(--color-primary);
}

/* Opciones de envío */
.shipping-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.shipping-option:hover {
    border-color: var(--color-primary);
    background: rgba(226, 16, 19, 0.02);
}

.shipping-option .form-check-input {
    margin-top: 0.5rem;
}

.shipping-option .form-check-label {
    width: 100%;
    cursor: pointer;
}

.checkout-shipping-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* Resumen del pedido sticky */
.order-summary-card.sticky-top {
    top: 20px;
    z-index: 1020;
}

.edit-cart-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.edit-cart-link:hover {
    color: white;
    text-decoration: underline;
}

/* Vista previa de productos en el carrito */
.summary-subtitle {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.checkout-items-preview {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.checkout-item-preview {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.checkout-item-preview:last-child {
    border-bottom: none;
}

.checkout-item-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8f9fa;
    padding: 3px;
    border: 1px solid #e9ecef;
    margin-right: 10px;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1.3;
}

.checkout-item-details {
    font-size: 0.8rem;
    color: var(--color-gray);
    display: flex;
    justify-content: space-between;
}

.checkout-item-price {
    font-weight: 600;
    color: var(--color-dark);
}

/* Información de seguridad */
.checkout-security-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--color-success);
}

/* ========== PERFIL DE USUARIO ========== */

.profile-sidebar {
    background: var(--color-light-gray);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-sidebar:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.profile-content-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.btn-avatar-edit {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-avatar-edit:hover {
    background: linear-gradient(135deg, #ff6b6b, var(--color-primary));
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(226, 16, 19, 0.3);
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.profile-menu-item {
    padding: 12px 15px;
    text-decoration: none;
    color: var(--color-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.profile-menu-item:hover {
    background-color: rgba(226, 16, 19, 0.1);
    color: var(--color-primary);
    transform: translateX(5px);
    border-color: rgba(226, 16, 19, 0.2);
}

.profile-menu-item.active {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    color: white;
    border-color: transparent;
}

/* Tarjetas de estadísticas */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(226, 16, 19, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(226, 16, 19, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.stat-card:nth-child(2) .stat-icon {
    background: rgba(40, 167, 69, 0.1);
}

.stat-card:nth-child(3) .stat-icon {
    background: rgba(255, 193, 7, 0.1);
}

.stat-card:nth-child(4) .stat-icon {
    background: rgba(23, 162, 184, 0.1);
}

/* Tabla de compras */
.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-delivered {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.2));
    color: var(--color-success);
}

.status-pending {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.2));
    color: var(--color-warning);
}

.status-processing {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.2));
    color: var(--color-info);
}

.status-cancelled {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.2));
    color: #dc3545;
}

/* Tarjetas de compras móvil */
.purchase-card-mobile {
    background: var(--color-light-gray);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.purchase-card-mobile:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-item-mobile {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.product-item-mobile:hover {
    background: rgba(226, 16, 19, 0.05);
    transform: translateX(5px);
}

.product-img-mobile {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: white;
    padding: 5px;
    border: 1px solid #dee2e6;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Tarjetas de direcciones */
.address-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
}

.address-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(226, 16, 19, 0.1);
}

.address-card.default {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(226, 16, 19, 0.05), rgba(255, 107, 107, 0.05));
    position: relative;
}

.address-card.default::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.2;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.address-actions {
    display: flex;
    gap: 8px;
}

.address-actions .btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tarjetas de seguridad */
.security-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.security-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(226, 16, 19, 0.1);
    transform: translateY(-2px);
}

/* Seguimiento de pedidos */
.tracking-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0;
}

.tracking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #e9ecef, #dee2e6, #e9ecef);
    z-index: 1;
}

.tracking-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.tracking-step .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tracking-step.completed .step-circle {
    background: linear-gradient(135deg, var(--color-success), #20c997);
    color: white;
    transform: scale(1.1);
}

.tracking-step.active .step-circle {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    color: white;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 5px rgba(226, 16, 19, 0.2);
}

.tracking-step .step-label {
    font-size: 0.8rem;
    color: var(--color-gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tracking-step.completed .step-label {
    color: var(--color-success);
    font-weight: 600;
}

.tracking-step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(226, 16, 19, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(226, 16, 19, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(226, 16, 19, 0);
    }
}

/* ========== CONTACTO ========== */

/* Canales de contacto */
.contact-channels {
    position: relative;
}

.channel-card {
    background: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.channel-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.channel-card:hover::before {
    transform: scaleX(1);
}

.channel-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(226, 16, 19, 0.1), rgba(255, 237, 0, 0.1));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.channel-card:hover .channel-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    transform: scale(1.1);
}

.channel-card:hover .channel-icon i {
    color: white !important;
}

.channel-info .phone-number a,
.channel-info .email-address a {
    transition: all 0.3s ease;
}

.channel-info .phone-number a:hover,
.channel-info .email-address a:hover {
    color: var(--color-primary) !important;
}

.chat-status .badge {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Formulario de contacto */
.contact-form-section {
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.form-control-lg,
.form-select-lg {
    border: 2px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control-lg:focus,
.form-select-lg:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(226, 16, 19, 0.25);
    transform: translateY(-1px);
}

.file-upload-area {
    background: rgba(248, 249, 250, 0.5);
    border-style: dashed !important;
    border-color: #adb5bd !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    background: rgba(226, 16, 19, 0.05);
    border-color: var(--color-primary) !important;
}

.file-upload-area.drag-over {
    background: rgba(226, 16, 19, 0.1);
    border-color: var(--color-primary) !important;
    transform: scale(1.02);
}

.file-list {
    display: none;
}

.file-list.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: #f8f9fa;
    border-color: var(--color-primary);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    color: var(--color-primary);
}

.file-name {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 0.8rem;
    color: var(--color-gray);
}

.file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.file-remove:hover {
    background: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}

/* FAQs */
.faq-section {
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.faq-categories .nav-link {
    padding: 10px 20px;
    border: 2px solid #dee2e6;
    background: white;
    color: var(--color-dark);
    font-weight: 500;
    border-radius: 25px !important;
    transition: all 0.3s ease;
}

.faq-categories .nav-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.faq-categories .nav-link.active {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(226, 16, 19, 0.3);
}

.accordion-button {
    background: white;
    font-weight: 500;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(226, 16, 19, 0.1), rgba(255, 237, 0, 0.05));
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(226, 16, 19, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e21013'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e21013'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.25rem;
    background: white;
    border-left: 3px solid var(--color-primary);
}

.accordion-body ul,
.accordion-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}

.accordion-body table {
    font-size: 0.9rem;
}

.accordion-body table th {
    font-weight: 600;
    background: rgba(248, 249, 250, 0.8);
}

/* Mapa y ubicación */
.map-section {
    background: white;
    position: relative;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.location-info p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.location-info i {
    width: 20px;
    text-align: center;
}

.location-info a {
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.location-info a:hover {
    color: var(--color-primary);
}

.transport-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.transport-info p {
    margin-bottom: 0.5rem;
}

.map-placeholder {
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, #dee2e6 50%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: mapGrid 20s linear infinite;
}

@keyframes mapGrid {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

#viewMapBtn {
    transition: all 0.3s ease;
}

#viewMapBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========== COMPONENTES GENERALES ========== */

/* Servicios */
.service-item {
    text-align: center;
    padding: 20px 10px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* Banner promocional */
.promo-banner {
    padding: 50px 30px;
    border-radius: 10px;
    margin: 40px 0;
    color: white;
    background-size: cover;
    background-position: center;
    position: relative;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.promo-banner>* {
    position: relative;
    z-index: 1;
}

.promo-banner-1 {
    background-image: url('https://images.unsplash.com/photo-1607082350899-7e105aa886ae?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
}

.promo-banner-2 {
    background-image: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
}

.promo-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Botón flotante */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-menu {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1000;
    display: none;
}

.floating-menu.show {
    display: block;
}

.floating-menu-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--color-dark);
}

.floating-menu-item:hover {
    background-color: var(--color-light-gray);
    color: var(--color-dark);
}

.floating-menu-item i {
    margin-right: 10px;
    color: var(--color-primary);
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: white;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--color-primary);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #adb5bd;
}

/* ========== UTILIDADES Y ESTADOS ========== */

/* Estados de validación */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(226, 16, 19, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: var(--color-success);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--color-success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}

/* Estados de botones */
#review-order-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#review-order-btn.loading {
    position: relative;
    pointer-events: none;
}

#review-order-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    right: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estados de carga */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Estados vacíos */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-cart h4 {
    color: var(--color-gray);
    margin-bottom: 15px;
}

/* Estados de interacción */
.quantity-btn:active {
    transform: scale(0.95);
}

.remove-btn:active,
.cart-item-remove:active {
    transform: scale(0.9);
}

/* Validaciones */
.invalid-quantity {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

/* Notificaciones */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mensaje de envío gratuito */
.free-shipping-message {
    background: linear-gradient(135deg, var(--color-success), #20c997);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.free-shipping-message i {
    font-size: 0.8rem;
}

/* Badges y etiquetas */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--color-success), #20c997) !important;
}

/* Utilidades específicas */
.account-status .badge {
    background: linear-gradient(135deg, var(--color-success), #20c997);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.edit-cart-link {
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.edit-cart-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Animaciones generales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-card {
    animation: fadeInUp 0.5s ease;
}

.cart-item-mobile {
    animation: fadeIn 0.3s ease;
}

/* Transiciones generales */
.form-control,
.form-select {
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    transform: translateY(-1px);
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Scrollbar personalizado */
.table-responsive::-webkit-scrollbar,
.checkout-items-preview::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track,
.checkout-items-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb,
.checkout-items-preview::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover,
.checkout-items-preview::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6b6b, var(--color-primary));
}

/* Estilos para modales específicos */
#orderDetailsModal .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

#orderDetailsModal .modal-header {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    border-bottom: none;
    padding: 25px 30px;
}

#orderDetailsModal .modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
}

#orderDetailsModal .btn-close {
    filter: invert(1) brightness(2);
}

#addAddressModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========== RESPONSIVE ========== */

/* Desktop (lg y superior) */
@media (min-width: 992px) {
    .navbar-toggler.d-lg-none,
    .categories-mobile-btn,
    .cart-mobile-btn {
        display: none !important;
    }

    .categories-desktop-btn,
    .cart-desktop-btn {
        display: flex !important;
    }

    .navbar.navbar-dark.bg-dark>.container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar.navbar-dark.bg-dark .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
    }

    .navbar.navbar-dark.bg-dark .navbar-nav {
        display: flex;
        align-items: center;
    }

    .navbar.navbar-dark.bg-dark .nav-item {
        margin: 0 3px;
    }

    /* Tira de noticias desktop */
    .news-ticker-container {
        flex-direction: row;
        padding: 10px 15px;
    }
    
    .news-ticker-header {
        border-right: 2px solid rgba(255, 255, 255, 0.3);
        border-bottom: none;
    }
}

/* Móvil (menor a 992px) */
@media (max-width: 991.98px) {
    .categories-desktop-btn,
    .cart-desktop-btn {
        display: none !important;
    }

    .navbar-toggler.d-lg-none,
    .categories-mobile-btn,
    .cart-mobile-btn {
        display: flex !important;
    }

    .navbar.navbar-dark.bg-dark>.container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
        width: 100%;
    }

    .navbar.navbar-dark.bg-dark .navbar-toggler {
        margin-right: 0;
        padding: 4px 8px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .categories-mobile-btn {
        font-size: 0.85rem;
        padding: 5px 12px;
        margin-left: 10px;
    }

    .categories-mobile-btn i {
        font-size: 0.9rem;
        margin-right: 5px;
    }

    .cart-mobile-btn {
        width: 38px;
        height: 38px;
    }

    .cart-mobile-btn i {
        font-size: 1.2rem;
    }

    .cart-mobile-btn .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -5px;
        right: -5px;
    }

    .navbar.navbar-dark.bg-dark .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(90deg, #1a1a1a, #333333);
        z-index: 1000;
        padding: 10px 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .navbar.navbar-dark.bg-dark .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .navbar.navbar-dark.bg-dark .nav-item {
        width: 100%;
        margin: 2px 0;
    }

    .categories-mobile-btn+.dropdown-menu {
        width: 90vw;
        max-width: 300px;
        position: fixed !important;
        top: 56px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 0 !important;
        z-index: 1050;
    }

    /* Tira de noticias en móvil */
    .news-ticker-container {
        padding: 6px 10px !important;
        min-height: 32px;
        flex-direction: row !important;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
    }
    
    .news-ticker-header {
        border-right: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-bottom: none !important;
        padding: 0 10px 0 0 !important;
        margin: 0 10px 0 0 !important;
        width: auto !important;
        flex-shrink: 0;
    }
    
    .news-ticker-header i {
        font-size: 0.9rem;
        margin-right: 5px;
    }
    
    .news-ticker-header span {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .news-ticker {
        height: 20px !important;
        flex: 1;
    }
    
    .news-ticker-content {
        animation: tickerMobile 25s linear infinite !important;
        padding-left: 100%;
        line-height: 20px;
    }
    
    .news-item {
        padding: 0 15px !important;
        font-size: 0.8rem !important;
    }
    
    .news-item i {
        font-size: 0.7rem;
        margin-right: 5px;
    }
    
    /* Animación específica para móvil */
    @keyframes tickerMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100%);
        }
    }
}

/* Responsive para móvil general */
@media (max-width: 767.98px) {
    /* Tipografía móvil */
    h1, h2, h3 {
        font-family: var(--font-heading);
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.6rem !important;
    }
    
    .product-card .product-title {
        font-family: var(--font-body);
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    /* Tira de noticias */
    .news-ticker-container {
        flex-direction: column;
        padding: 8px;
        text-align: center;
    }

    .news-ticker-header {
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.3);
        padding-bottom: 5px;
        margin-bottom: 5px;
        margin-right: 0;
        width: 100%;
        justify-content: center;
        padding-right: 0;
    }

    .news-ticker {
        height: 40px;
    }

    .news-ticker-content {
        animation: ticker 30s linear infinite;
    }

    .news-item {
        padding: 0 15px;
        font-size: 0.85rem;
    }
    
    /* Barra de búsqueda */
    .search-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 !important;
    }

    .search-form.d-lg-none {
        display: flex !important;
        margin: 10px 0 !important;
    }

    .search-form .form-control {
        padding: 12px 15px;
        font-size: 1rem;
        height: 45px;
    }

    .search-form .btn {
        padding: 0 20px;
        height: 45px;
    }

    /* Header */
    .navbar>.container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .navbar-brand {
        order: 1;
        margin-right: auto;
        font-size: 1.3rem;
    }

    .navbar-toggler.d-lg-none {
        order: 2;
        margin-left: 10px;
    }

    .search-form.d-lg-none {
        order: 3;
        width: 100%;
        margin-top: 10px !important;
    }

    .collapse.navbar-collapse {
        order: 4;
    }

    /* Iconos */
    .nav-icon {
        width: 40px;
        height: 40px;
        margin-left: 10px;
        font-size: 1.2rem;
    }

    /* Productos */
    .swiper-slide {
        width: 50% !important;
        padding: 5px;
    }

    .product-card {
        margin-bottom: 10px;
        height: auto;
        min-height: 320px;
    }

    .product-image {
        height: 150px;
    }

    .product-title {
        height: 40px;
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .product-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    .quantity-control {
        width: 100px;
    }

    .quantity-control .form-control {
        padding: 4px 6px;
        font-size: 0.9rem;
    }

    .btn-add-cart {
        padding: 6px 12px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Swiper */
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 1rem;
    }

    /* Banner */
    .carousel-item {
        height: 200px;
    }

    .promo-banner {
        padding: 30px 20px;
    }

    .promo-title {
        font-size: 1.5rem;
    }

    /* Botón flotante */
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }

    .floating-menu {
        bottom: 80px;
        right: 20px;
        padding: 10px;
    }
    
    /* Carrito */
    .cart-table-container {
        display: none !important;
    }
    
    .cart-mobile-list {
        display: block !important;
    }
    
    /* Checkout */
    .checkout-steps {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step {
        display: flex;
        align-items: center;
        width: 100%;
        text-align: left;
    }
    
    .step-circle {
        margin: 0 15px 0 0;
        flex-shrink: 0;
    }
    
    .checkout-header {
        padding: 20px 15px;
    }
    
    .checkout-body {
        padding: 15px;
    }
    
    .form-section {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .checkout-section-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .shipping-option {
        padding: 12px;
    }
    
    .checkout-shipping-price {
        font-size: 1rem;
    }
    
    .checkout-items-preview {
        max-height: 150px;
    }
    
    .checkout-security-info {
        padding: 12px;
    }
    
    /* Galería de productos */
    .main-image-container {
        height: 300px;
    }
    
    .thumbnails-carousel {
        padding: 0 35px;
    }
    
    .thumbnailsSwiper {
        height: 80px;
    }
    
    .thumbnail-item {
        width: 65px !important;
        height: 65px;
    }
    
    .thumb-next,
    .thumb-prev {
        width: 25px !important;
        height: 25px !important;
    }
    
    /* Perfil de usuario */
    .profile-sidebar {
        margin-bottom: 30px;
    }
    
    .profile-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .profile-menu-item {
        padding: 10px 15px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 150px;
        text-align: center;
    }
    
    .profile-menu-item:hover {
        transform: translateY(-3px);
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .order-status {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    
    .product-item-mobile {
        flex-direction: column;
        text-align: center;
    }
    
    .product-img-mobile {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .address-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .address-actions .btn {
        width: 100%;
        border-radius: 6px;
    }
    
    .tracking-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .tracking-steps::before {
        display: none;
    }
    
    .tracking-step {
        flex: 0 0 calc(50% - 10px);
    }
    
    /* Página de productos específica */
    .products-grid .row {
        margin-left: -6px;
        margin-right: -6px;
    }
    
    .products-grid .col-md-6 {
        width: 50% !important;
        padding-left: 6px;
        padding-right: 6px;
        float: left;
    }
    
    .products-header {
        padding: 15px;
    }
    
    .product-card {
        margin-bottom: 12px;
        min-height: 320px;
    }
    
    .product-img-container {
        height: 140px;
        padding: 10px;
        min-height: 140px;
    }
    
    .product-title {
        font-size: 0.85rem;
        height: 3.2em;
        margin-bottom: 0.5rem;
        line-height: 1.5em;
    }
    
    .product-price .text-danger {
        font-size: 1rem;
    }
    
    .product-rating {
        font-size: 0.8rem;
    }
    
    .quantity-control {
        width: 90px;
    }
    
    .quantity-control .form-control {
        font-size: 0.8rem;
        padding: 0.2rem;
    }
    
    .quantity-control .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .btn-add-cart {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-width: 35px;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .swiper-slide {
        width: 33.333% !important;
    }

    .search-form {
        max-width: 400px;
    }

    .navbar-dark .navbar-nav {
        flex-wrap: wrap;
    }
    
    .news-ticker-container {
        padding: 8px 12px;
    }
    
    .news-ticker-header {
        padding-right: 15px;
        margin-right: 15px;
    }
    
    .news-item {
        font-size: 0.9rem;
        padding: 0 25px;
    }
    
    /* Productos página específica */
    .product-img-container {
        height: 160px;
        padding: 12px;
    }
    
    .product-title {
        font-size: 0.9rem;
        height: 3.2em;
    }
    
    .quantity-control {
        width: 100px;
    }
    
    .products-grid .col-md-6 {
        width: 33.333333%;
    }
    
    /* Galería de productos */
    .main-image-container {
        height: 350px;
    }
    
    .thumbnailsSwiper {
        height: 90px;
    }
    
    .thumbnail-item {
        width: 70px !important;
        height: 70px;
    }
    
    /* Carrito */
    .cart-table thead th {
        font-size: 0.85rem;
        padding: 12px 8px;
    }
    
    .cart-table tbody td {
        padding: 15px 8px;
    }
    
    .product-image {
        width: 70px;
        height: 70px;
    }
    
    .product-details h6 {
        font-size: 0.9rem;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
    }
    
    .quantity-input {
        width: 45px;
        height: 35px;
    }
    
    /* Checkout */
    .steps-container::before {
        left: 10%;
        right: 10%;
    }
    
    .step-circle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .checkout-header {
        padding: 20px;
    }
    
    .checkout-title {
        font-size: 1.3rem;
    }
    
    .checkout-body {
        padding: 20px;
    }
    
    .order-summary-card.sticky-top {
        position: static !important;
    }
    
    /* Perfil de usuario */
    .stat-card {
        padding: 15px;
    }
    
    .address-card {
        padding: 15px;
    }
    
    .tracking-steps::before {
        left: 5%;
        right: 5%;
    }
    
    /* Páginas específicas */
    .filters-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .products-header {
        text-align: center;
    }

    .sort-options {
        margin-top: 15px;
        text-align: center !important;
    }

    .product-details {
        padding: 0;
        margin-top: 20px;
    }

    .main-product-image {
        height: 300px;
    }
}

/* Responsive adicional para móvil pequeño */
@media (max-width: 576px) {
    .section-title { font-size: 1.5rem; }
    
    .news-item {
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .search-form .form-control {
        font-size: 0.95rem;
        padding: 10px;
    }

    .swiper-slide {
        width: 50% !important;
    }

    .product-card {
        min-height: 300px;
    }

    .product-title {
        font-size: 0.85rem;
        height: 36px;
    }
    
    /* Checkout */
    .form-section .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .form-section .col-md-6,
    .form-section .col-12 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .form-control,
    .form-select,
    .form-check-label {
        font-size: 0.9rem;
    }
    
    .checkout-item-preview {
        padding: 8px 0;
    }
    
    .checkout-item-img {
        width: 40px;
        height: 40px;
    }
    
    .checkout-item-title {
        font-size: 0.8rem;
    }
    
    .checkout-item-details {
        font-size: 0.75rem;
        flex-direction: column;
    }
    
    .summary-total {
        padding-top: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .btn-lg {
        padding: 12px;
        font-size: 1rem;
    }
    
    /* Página de productos específica */
    .products-grid .col-md-6 {
        width: 50% !important;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .product-card {
        min-height: 300px;
    }
    
    .product-img-container {
        height: 130px;
        padding: 8px;
        min-height: 130px;
    }
    
    .product-title {
        font-size: 0.8rem;
        height: 3.2em;
        line-height: 1.4em;
    }
    
    .quantity-control {
        width: 85px;
    }
    
    .quantity-control .btn {
        padding: 0.15rem 0.3rem;
    }
    
    /* Perfil de usuario */
    .profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .btn-avatar-edit {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .stat-icon i {
        font-size: 1.2rem;
    }
    
    .purchase-card-mobile {
        padding: 15px;
    }
    
    .security-card {
        padding: 20px;
    }
    
    .tracking-step {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 399.98px) {
    .news-ticker-header span:not(i) {
        display: none;
    }
    
    .swiper-slide {
        width: 100% !important;
    }

    .product-card {
        min-height: auto;
        height: auto;
    }

    .container,
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .section-title::after {
        width: 60px;
    }

    body {
        font-size: 0.85rem;
    }
    
    .categories-mobile-btn span {
        display: none;
    }

    .categories-mobile-btn i {
        margin-right: 0;
        font-size: 1rem;
    }

    .categories-mobile-btn {
        padding: 5px 8px;
        min-width: 40px;
        justify-content: center;
    }
    
    /* Checkout */
    .checkout-title {
        font-size: 1.2rem;
    }
    
    .step {
        align-items: flex-start;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-top: 2px;
    }
    
    .shipping-option .d-flex {
        flex-direction: column;
        gap: 5px;
    }
    
    .checkout-shipping-price {
        align-self: flex-start;
    }
    
    .checkout-item-info {
        min-width: 0;
    }
    
    .summary-item,
    .summary-total {
        font-size: 0.9rem;
    }
    
    .total-value {
        font-size: 1.2rem;
    }
    
    .payment-methods i {
        font-size: 1.5rem;
    }
    
    /* Página de productos específica */
    .products-grid .row {
        margin-left: -4px;
        margin-right: -4px;
    }
    
    .products-grid .col-md-6 {
        width: 50% !important;
        padding-left: 4px;
        padding-right: 4px;
    }
    
    .product-card {
        min-height: 280px;
    }
    
    .product-img-container {
        height: 120px;
        min-height: 120px;
    }
    
    .product-title {
        font-size: 0.75rem;
        height: 3.4em;
    }
    
    .quantity-control {
        width: 80px;
    }
    
    .btn-add-cart {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Carrito */
    .cart-item-mobile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cart-item-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .cart-item-header {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .cart-item-content {
        width: 100%;
    }
    
    .cart-item-actions {
        flex-direction: row;
        align-items: center;
    }
    
    .cart-item-quantity {
        flex: 1;
    }
    
    .cart-item-remove {
        align-self: center;
    }
    
    .cart-actions .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-actions .btn {
        width: 100%;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .quantity-control {
        transform: scale(0.9);
    }
    
    .summary-item {
        font-size: 0.9rem;
    }
    
    .total-value {
        font-size: 1.2rem;
    }
    
    .payment-methods i {
        font-size: 1.5rem;
    }
    
    /* Perfil de usuario */
    .profile-menu-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .stat-card h4 {
        font-size: 1.2rem;
    }
    
    .stat-card p {
        font-size: 0.85rem;
    }
    
    .purchase-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .purchase-footer .btn {
        width: 100%;
    }
}

/* Para pantallas muy pequeñas (menos de 300px) */
@media (max-width: 300px) {
    .swiper-slide {
        width: 100% !important;
    }

    .product-card {
        min-height: auto;
        height: auto;
    }
}

/* Responsive específico para banner en dispositivos muy pequeños */
@media (max-width: 575.98px) {
    .main-banner {
        max-height: 200px;
    }
    
    .bannerSwiper {
        max-height: 200px;
    }
    
    .banner-image {
        max-height: 200px;
    }
}

/* Asegurar que la paginación esté correctamente posicionada */
@media (max-width: 991.98px) {
    .main-banner .swiper-pagination {
        width: 100% !important;
        left: 0 !important;
        bottom: 10px !important;
    }
}

/* Eliminar cualquier padding global que pueda afectar */
@media (max-width: 991.98px) {
    body {
        overflow-x: hidden;
    }
    
    .main-banner > .container,
    .main-banner > .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
}




/* ========== GALERÍA DE PRODUCTOS - MOBILE FIRST ========== */

/* Contenedor principal */
.product-gallery {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* IMAGEN PRINCIPAL - PRIORIDAD MÓVIL */
.main-image-container {
    width: 100%;
    height: 280px; /* Altura fija para móvil */
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    position: relative;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor de imagen */
#mainProductImage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* Imagen principal */
.main-product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* BOTONES DE NAVEGACIÓN PRINCIPAL */
.main-next-btn,
.main-prev-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.main-next-btn:hover,
.main-prev-btn:hover {
    background: white !important;
    transform: translateY(-50%) scale(1.1);
}

.main-next-btn {
    right: 10px;
}

.main-prev-btn {
    left: 10px;
}

.main-next-btn i,
.main-prev-btn i {
    font-size: 14px;
    color: #333;
}

/* CONTADOR DE IMÁGENES (solo móvil) */
.image-counter {
    font-size: 0.9rem;
    color: var(--color-gray);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

#currentImage {
    color: var(--color-primary);
    font-weight: 700;
}

/* CARRUSEL DE MINIATURAS */
.thumbnails-carousel {
    width: 100%;
    padding: 0 40px; /* Espacio para flechas móviles */
    margin: 10px 0;
}

.thumbnailsSwiper {
    width: 100%;
    padding: 5px 0;
}

/* ITEMS DE MINIATURA */
.thumbnail-item {
    height: 70px; /* Altura fija para móvil */
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f8f9fa;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

/* Efecto táctil para móvil */
.thumbnail-item:active {
    transform: scale(0.95);
}

.thumbnail-item:hover {
    border-color: #dee2e6;
}

.thumbnail-item.active {
    border-color: var(--color-primary);
    background: rgba(226, 16, 19, 0.05);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.thumbnail-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    pointer-events: none;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* FLECHAS DE MINIATURAS (solo móvil) */
.thumb-next,
.thumb-prev {
    width: 28px !important;
    height: 28px !important;
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    margin-top: 0 !important;
    transform: translateY(-50%) !important;
}

.thumb-next:after,
.thumb-prev:after {
    font-size: 12px !important;
    font-weight: bold !important;
    color: #333 !important;
}

.thumb-next {
    right: 5px !important;
}

.thumb-prev {
    left: 5px !important;
}

/* ACCIONES DE IMAGEN */
.image-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    padding: 0 10px;
}

.image-actions .btn {
    flex: 1;
    min-width: 120px;
    max-width: 160px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* ========== RESPONSIVE - TABLET ========== */
@media (min-width: 576px) {
    .main-image-container {
        height: 320px;
    }
    
    .thumbnail-item {
        height: 75px;
    }
    
    .thumbnails-carousel {
        padding: 0 45px;
    }
    
    .thumb-next,
    .thumb-prev {
        width: 32px !important;
        height: 32px !important;
    }
    
    .image-actions .btn {
        min-width: 140px;
    }
}

@media (min-width: 768px) {
    /* Ocultar contador en tablet/desktop */
    .image-counter {
        display: none;
    }
    
    /* Ocultar flechas de miniaturas en tablet+ */
    .thumb-next,
    .thumb-prev {
        display: none !important;
    }
    
    /* Ajustar contenedor */
    .thumbnails-carousel {
        padding: 0 15px;
    }
    
    .main-image-container {
        height: 380px;
    }
    
    .thumbnail-item {
        height: 80px;
    }
    
    /* Botones de navegación más grandes */
    .main-next-btn,
    .main-prev-btn {
        width: 44px !important;
        height: 44px !important;
    }
    
    .main-next-btn i,
    .main-prev-btn i {
        font-size: 16px;
    }
    
    .image-actions {
        justify-content: flex-start;
        padding: 0;
    }
    
    .image-actions .btn {
        flex: 0 0 auto;
        min-width: auto;
    }
}

/* ========== RESPONSIVE - DESKTOP ========== */
@media (min-width: 992px) {
    .main-image-container {
        height: 450px;
    }
    
    .thumbnail-item {
        height: 90px;
    }
    
    #mainProductImage {
        padding: 25px;
    }
    
    .main-next-btn,
    .main-prev-btn {
        width: 50px !important;
        height: 50px !important;
    }
    
    .main-next-btn {
        right: 20px;
    }
    
    .main-prev-btn {
        left: 20px;
    }
    
    .main-next-btn i,
    .main-prev-btn i {
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .main-image-container {
        height: 500px;
    }
    
    .thumbnail-item {
        height: 100px;
    }
}

/* ========== DISPOSITIVOS MUY PEQUEÑOS ========== */
@media (max-width: 374px) {
    .main-image-container {
        height: 240px;
    }
    
    .thumbnail-item {
        height: 60px;
    }
    
    .main-next-btn,
    .main-prev-btn {
        width: 32px !important;
        height: 32px !important;
    }
    
    .main-next-btn i,
    .main-prev-btn i {
        font-size: 12px;
    }
    
    .thumbnails-carousel {
        padding: 0 35px;
    }
    
    .image-actions .btn {
        min-width: 100px;
        font-size: 0.85rem;
    }
}

/* ========== MODO HORIZONTAL EN MÓVIL ========== */
@media (max-height: 600px) and (orientation: landscape) {
    .product-gallery {
        display: flex;
        flex-direction: row;
        gap: 15px;
    }
    
    .main-image-container {
        flex: 2;
        height: 250px;
        margin-bottom: 0;
    }
    
    .thumbnails-carousel {
        flex: 1;
        padding: 0;
        margin: 0;
    }
    
    .thumbnailsSwiper {
        height: 250px;
    }
    
    .thumbnail-item {
        height: 70px;
        margin-bottom: 8px;
    }
    
    .image-actions {
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
        margin-top: 0;
    }
}

/* ========== MEJORAS DE ACCESIBILIDAD ========== */
@media (prefers-reduced-motion: reduce) {
    .main-product-image,
    .thumbnail-item {
        transition: none;
    }
}

/* Alto contraste para mejor visibilidad */
@media (prefers-contrast: high) {
    .thumbnail-item.active {
        border-width: 3px;
    }
    
    .main-next-btn,
    .main-prev-btn {
        border-width: 2px;
    }
}

/* Modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    .main-image-container {
        background: #2c2c2c;
        border-color: #444;
    }
    
    .thumbnail-item {
        background: #3a3a3a;
    }
    
    .thumbnail-item.active {
        background: rgba(226, 16, 19, 0.15);
    }
}




/* ========== MENÚ DE CATEGORÍAS - ESTILOS COPIADOS DEL ANTERIOR ========== */

/* Menú de categorías de tres niveles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
    display: none; /* Oculto por defecto */
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: var(--color-gray);
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
    border-left-color: var(--color-primary);
}

.dropdown-menu.multi-level {
    min-width: 250px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-menu.multi-level .dropdown-menu {
    min-width: 200px;
}

/* Mejoras visuales para el menú */
.dropdown-item {
    transition: all 0.2s ease;
    padding: 8px 16px;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateX(5px);
}

.dropdown-submenu .dropdown-toggle::after {
    margin-left: auto;
    transform: rotate(-90deg);
}

/* Encabezado del menú de categorías */
.dropdown-header {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Separador en menú */
.dropdown-divider {
    margin: 4px 0;
    border-top-color: rgba(0,0,0,0.1);
}

/* ========== ESTILOS ESPECÍFICOS PARA MÓVIL ========== */
@media (max-width: 991.98px) {
    /* Botón de categorías en móvil */
    .categories-mobile-btn {
        background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
        color: white !important;
        border-radius: 25px;
        padding: 6px 15px;
        font-weight: 500;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        white-space: nowrap;
        margin-left: 10px;
        border: none;
    }
    
    .categories-mobile-btn:hover {
        background: linear-gradient(135deg, #ff6b6b, var(--color-primary));
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(226, 16, 19, 0.3);
    }
    
    .categories-mobile-btn i {
        font-size: 1rem;
        margin-right: 6px;
    }
    
    /* Menú desplegable en móvil */
    .categories-mobile-btn + .dropdown-menu {
        width: 90vw;
        max-width: 300px;
        position: fixed !important;
        top: 56px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 5px !important;
        z-index: 1050;
        background: white;
        border: none;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    /* Submenús en móvil */
    .dropdown-submenu > .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
        border-radius: 6px;
        box-shadow: none;
        border-left: 2px solid var(--color-primary);
        background: #f8f9fa;
    }
    
    .dropdown-submenu > a:after {
        display: none;
    }
    
    /* Flecha personalizada para móvil */
    .dropdown-submenu .dropdown-toggle::after {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }
    
    .dropdown-submenu.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    /* Items del menú en móvil */
    .dropdown-item {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    /* Para pantallas muy pequeñas */
    @media (max-width: 400px) {
        .categories-mobile-btn {
            font-size: 0.85rem;
            padding: 5px 12px;
        }
        
        .categories-mobile-btn i {
            font-size: 0.9rem;
            margin-right: 4px;
        }
        
        .categories-mobile-btn span {
            display: inline-block !important;
        }
        
        .dropdown-item {
            font-size: 0.9rem;
            padding: 8px 14px;
        }
    }
    
    /* Para pantallas extremadamente pequeñas */
    @media (max-width: 320px) {
        .categories-mobile-btn span {
            display: none;
        }
        
        .categories-mobile-btn i {
            margin-right: 0;
            font-size: 1rem;
        }
        
        .categories-mobile-btn {
            padding: 5px 8px;
            min-width: 40px;
            justify-content: center;
        }
    }
}

/* ========== ESTILOS ESPECÍFICOS PARA DESKTOP ========== */
@media (min-width: 992px) {
    /* Botón de categorías desktop */
    .categories-desktop-btn {
        background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
        color: white !important;
        border-radius: 25px;
        padding: 8px 20px !important;
        font-weight: 500;
        display: flex !important;
        align-items: center;
        transition: all 0.3s ease;
        margin-right: 10px;
        border: none;
    }
    
    .categories-desktop-btn:hover {
        background: linear-gradient(135deg, #ff6b6b, var(--color-primary));
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(226, 16, 19, 0.3);
    }
    
    .categories-desktop-btn i {
        font-size: 1rem;
        margin-right: 8px;
    }
    
    /* Ocultar botón móvil en desktop */
    .categories-mobile-btn {
        display: none !important;
    }
    
    /* Menú desplegable en desktop */
    .dropdown-menu.multi-level {
        animation: fadeInUp 0.3s ease;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Ajustar posición de submenús en desktop */
    .dropdown-submenu > .dropdown-menu {
        margin-left: 0;
    }
    
    /* Flecha en desktop */
    .dropdown-submenu > a:after {
        display: block !important;
    }
    
    .dropdown-submenu .dropdown-toggle::after {
        transform: rotate(-90deg);
        margin-left: 0.5rem;
    }
}

/* ========== ESTILOS COMUNES PARA AMBOS ========== */

/* Estructura del menú de categorías */
.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    position: relative;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.category-link:hover {
    background: rgba(226, 16, 19, 0.1);
    color: var(--color-primary);
    transform: translateX(5px);
}

.category-link i {
    margin-right: 8px;
    color: var(--color-primary);
}

.category-link .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-item:hover > .category-link .arrow {
    transform: rotate(90deg);
}

/* Subcategorías */
.subcategory-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.category-item:hover > .subcategory-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Responsive para submenús */
@media (max-width: 991.98px) {
    .subcategory-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        padding-left: 20px;
        margin-top: 5px;
        border-left: 2px solid var(--color-primary);
    }
    
    .category-link .arrow {
        transform: rotate(0deg);
    }
    
    .category-item.active > .category-link .arrow {
        transform: rotate(90deg);
    }
}

/* Mejoras de accesibilidad */
.dropdown-item:focus,
.category-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

/* Animación suave para abrir/cerrar */
.dropdown-menu,
.subcategory-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para elementos activos */
.dropdown-item.active,
.category-link.active {
    background: rgba(226, 16, 19, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    border-left: 3px solid var(--color-primary);
}

/* Ajustes para el carrito */
.cart-desktop-btn,
.cart-mobile-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--color-secondary), #ffd700);
    color: var(--color-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ========== CORRECCIONES PARA LA BARRA DE NAVEGACIÓN ========== */

/* Segunda barra de navegación */
.navbar.navbar-dark.bg-dark {
    background: linear-gradient(90deg, #1a1a1a, #333333) !important;
    min-height: 56px;
    position: relative;
    z-index: 1030;
}

/* Ajustar contenedor */
.navbar.navbar-dark.bg-dark > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

/* Grupo de elementos izquierdos (hamburguesa + categorías) */
.navbar-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grupo de elementos derechos (carrito) */
.navbar-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Menú de navegación principal */
.navbar-dark .navbar-nav {
    gap: 5px;
}

.navbar-dark .navbar-nav .nav-link {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background: var(--color-primary);
}

/* Menú colapsable en móvil */
@media (max-width: 991.98px) {
    .navbar.navbar-dark.bg-dark .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(90deg, #1a1a1a, #333333);
        z-index: 1040;
        padding: 10px 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar.navbar-dark.bg-dark .navbar-nav {
        width: 100%;
    }
    
    .navbar.navbar-dark.bg-dark .nav-item {
        width: 100%;
        margin: 2px 0;
    }
    
    .navbar.navbar-dark.bg-dark .nav-link {
        width: 100%;
        text-align: left;
    }
}

/* ========== MEJORAS VISUALES ========== */

/* Sombra sutil en botones */
.categories-desktop-btn,
.categories-mobile-btn,
.cart-desktop-btn,
.cart-mobile-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Efecto al hacer clic */
.categories-desktop-btn:active,
.categories-mobile-btn:active,
.cart-desktop-btn:active,
.cart-mobile-btn:active {
    transform: scale(0.98);
}

/* Transiciones suaves */
.dropdown-menu,
.category-link,
.nav-link,
.categories-desktop-btn,
.categories-mobile-btn,
.cart-desktop-btn,
.cart-mobile-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilo para el separador de menú */
.dropdown-divider {
    border-top-color: rgba(0, 0, 0, 0.08);
    margin: 6px 0;
}

/* Estilo para elementos deshabilitados */
.dropdown-item.disabled {
    color: #adb5bd;
    pointer-events: none;
    background: transparent;
}

/* Mejorar scroll en móvil */
@media (max-width: 991.98px) {
    .categories-mobile-btn + .dropdown-menu {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--color-primary) #f8f9fa;
    }
    
    .categories-mobile-btn + .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }
    
    .categories-mobile-btn + .dropdown-menu::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 3px;
    }
    
    .categories-mobile-btn + .dropdown-menu::-webkit-scrollbar-thumb {
        background: var(--color-primary);
        border-radius: 3px;
    }
}



