/* Home Page Styles - isstore.shop */

/* Body con padding-top para headers fijos */
body {
    padding-top: 90px; /* Header reducido + Navbar */
}

.topbar { background: #f8f9fa; font-size: 0.9rem; padding: 5px 0 !important; }
.header { 
    background: white; 
    padding: 8px 0; 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: none;
    border-bottom: none;
}
.navbar-red { 
    background: linear-gradient(90deg, #2449bf 0%, #8f2490 100%) !important; 
    position: fixed;
    top: 56px; /* Altura más ajustada del header */
    left: 0;
    right: 0;
    z-index: 999;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

/* Navbar específico sin espacios */
.navbar-red .navbar {
    padding: 0 !important;
    margin: 0 !important;
}

.navbar-red .container-wide {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Eliminar cualquier margen de Bootstrap que cause espacios */
.navbar {
    margin-bottom: 0 !important;
}

nav.navbar-red {
    margin: 0 !important;
    padding: 0 !important;
}
.navbar-red .navbar-nav .nav-link { 
    color: white !important; 
    padding: 8px 16px; 
    border-radius: 6px; 
    transition: all 0.3s ease; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
}
.navbar-red .navbar-nav .nav-link:hover { color: white !important; background: rgba(255, 255, 255, 0.15); }
.promo-banner { background: linear-gradient(45deg, #ff6b6b, #ee5a24); color: white; padding: 10px 20px; border-radius: 8px; position: relative; }
.big-sale { position: absolute; top: -10px; right: -10px; background: #dc3545; color: white; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; }
/* Contenedores personalizados con ancho aumentado */
.hero-section { margin: 20px auto; max-width: 1600px; padding: 0 20px; }

.container-wide {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Límite para pantallas extra grandes */
@media (min-width: 1921px) {
    .hero-section,
    .container-wide {
        max-width: 1800px;
    }
}

/* Responsive breakpoints para contenedor ancho */
@media (min-width: 1200px) {
    .container-wide {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Corrección para evitar que los rows se extiendan fuera del container-wide */
.container-wide .row {
    margin-left: 0;
    margin-right: 0;
}

/* Asegurar padding adecuado en header, navbar y footer */
.header .container-wide,
.navbar .container-wide,
.footer .container-wide,
.sticky-header .container-wide {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1200px) {
    .header .container-wide,
    .navbar .container-wide,
    .footer .container-wide,
    .sticky-header .container-wide {
        padding-left: 30px;
        padding-right: 30px;
    }
}
.hero-banner { 
    text-align: center; 
    padding: 0; 
    margin: 0; 
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.category-card { text-align: center; padding: 20px 4px; background: white; border-radius: 8px; box-shadow: 0 0 8px rgba(0,0,0,0.15); margin: 0 2px; height: 160px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; transition: all 0.3s ease; overflow: hidden; }
.category-name { font-size: 0.8rem; line-height: 1.2; margin-top: 5px; word-wrap: break-word; }

/* Banner de sección con enlace */
.section-banner-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.section-banner-link:hover {
    opacity: 0.95;
}

.section-banner-link img {
    transition: transform 0.3s ease;
}

.section-banner-link:hover img {
    transform: scale(1.01);
}

/* Responsive para categorías principales */
/* Estilos base para categorías - Desktop por defecto */
.categories-row {
    display: flex;
    flex-wrap: nowrap;  /* Desktop: sin wrap para navegación */
    margin: 0;
}

/* Desktop: 7 categorías por fila */
@media (min-width: 1200px) {
    .categories-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .category-item {
        flex: 0 0 calc(100% / 7 - 10px);
        max-width: calc(100% / 7 - 10px);
    }
    
    .category-card {
        height: 160px !important;
        padding: 15px 4px;
    }
}

/* Pantallas extra grandes: 8 categorías por fila */
@media (min-width: 1600px) {
    .category-item {
        flex: 0 0 calc(100% / 8);
        max-width: calc(100% / 8);
    }
    
    .category-card {
        height: 160px !important;
        padding: 15px 6px;
    }
}

/* Desktop pequeño: 6 categorías por fila */
@media (min-width: 992px) and (max-width: 1199px) {
    .category-item {
        flex: 0 0 calc(100% / 6);
        max-width: calc(100% / 6);
    }
    
    .category-card {
        height: 160px !important;
        padding: 15px 4px;
    }
}

/* Tablet - Hide horizontal categories as we use desktop navbar design */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Hide the horizontal categories section for tablets */
    .categories-container {
        display: none !important;
    }
}

/* iPad Mini y tablets en vertical - usar diseño de escritorio con navegación */
@media (min-width: 768px) and (max-width: 849px) {
    /* Categories are hidden for tablets - using desktop navbar design instead */
    .categories-container {
        display: none !important;
    }
    
    .categories-nav-btn {
        display: none !important;
    }
}

/* Mobile: Scroll horizontal para todas las categorías */
@media (max-width: 767px) {
    .tablet-hide-categories .categories-container {
        padding: 0 !important;
        margin: 0;
        position: relative;
        width: 100%;
        overflow: visible !important;
    }
    
    .tablet-hide-categories .categories-overflow-hidden {
        padding: 0 15px !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,0.2) transparent;
        position: relative;
        width: 100%;
        display: block !important;
    }
    
    .categories-overflow-hidden::-webkit-scrollbar {
        height: 3px;
    }
    
    .categories-overflow-hidden::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.05);
        border-radius: 3px;
    }
    
    .categories-overflow-hidden::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 3px;
    }
    
    .categories-overflow-hidden::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,0.3);
    }
    
    .tablet-hide-categories .categories-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin: 0;
        gap: 8px;
        padding: 0;
        width: max-content !important;
        min-width: max-content !important;
    }
    
    .tablet-hide-categories .category-item {
        flex: 0 0 auto !important;
        max-width: none !important;
        padding: 0 !important;
        width: 90px !important;
        display: inline-block !important;
        min-width: 90px !important;
    }
    
    .category-item:nth-child(n+7) {
        display: block !important;
    }
    
    .category-card {
        background: white;
        border-radius: 8px;
        width: 90px;
        height: 90px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px;
        text-align: center;
        font-size: 0.75rem;
        line-height: 1.1;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
    }
    
    .category-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
    
    .category-image {
        width: 24px;
        height: 24px;
        object-fit: cover;
        border-radius: 4px;
        padding: 15px 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        text-align: center;
        min-height: 95px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        border: 1px solid #f0f0f0;
    }
    
    .category-icon {
        font-size: 2rem;
        color: #8F2490;
        margin-bottom: 8px;
    }
    
    .category-image {
        width: 48px;
        height: 48px;
        margin: 0 auto 8px;
        object-fit: contain;
    }
    
    .category-card div:last-child {
        font-size: 10px !important;
        line-height: 1.2 !important;
        font-weight: 500;
        color: #333;
    }
    
    .categories-nav-btn {
        display: none !important;
    }
    
}

/* Mobile pequeño: 3 columnas */
@media (max-width: 480px) {
    .category-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    
    .category-card {
        padding: 12px 6px;
        min-height: 75px;
    }
    
    .category-icon {
        font-size: 2.2rem;
    }
    
    .category-image {
        width: 50px;
        height: 50px;
    }
    
    .category-card div:last-child {
        font-size: 10px !important;
    }
}
.category-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); background: white; }
.category-card:hover .category-icon { transform: scale(1.1); transition: transform 0.3s ease; }
.category-card:hover .category-image { transform: scale(1.03); background: transparent; }
.category-card:active { transform: translateY(-2px); }
.category-card div:last-child { font-size: 0.85rem; line-height: 1.3; font-weight: 500; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; padding: 0 2px 12px 2px; margin-top: 2px; width: 100%; flex: 1; text-align: center; }
.category-icon { font-size: 2.2rem; margin-bottom: 4px; display: flex; justify-content: center; align-items: center; }

.category-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    padding: 8px;
    background: transparent;
    transition: all 0.3s ease;
    margin-bottom: 6px;
}

.category-image-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    padding: 2px;
    background: #f8f9fa;
}
.product-card { background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); overflow: hidden; cursor: pointer; transition: all 0.3s ease; text-decoration: none; color: inherit; display: block; }
.product-card:hover { text-decoration: none; color: inherit; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }
.product-card:hover .product-img { transform: scale(1.05); }
.product-card:active { transform: translateY(-4px); }
.product-img { width: 100%; height: 180px; object-fit: contain; transition: transform 0.3s ease; background: white; }
.product-title { 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 4.2em;
    font-size: 0.95rem;
    font-weight: 500;
}
.categories-container { position: relative; padding: 20px 0; }
/* Desktop default - overflow hidden for navigation arrows */
@media (min-width: 768px) {
    .categories-overflow-hidden { overflow: hidden; padding: 15px 45px; }
}
.categories-row { display: flex; flex-wrap: nowrap; gap: 10px; }

/* Enlace de categoría para hacer toda la tarjeta clickeable */
.category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card-link:hover,
.category-card-link:focus {
    text-decoration: none;
    color: inherit;
}

/* Estilos para navegación de categorías */
.categories-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); border: none; border-radius: 6px; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 1; transition: all 0.3s ease; z-index: 20; }
.categories-nav-btn.prev { left: 5px; background: white; color: black; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.categories-nav-btn.next { right: 5px; background: #8f2490; color: white; box-shadow: 0 4px 12px rgba(86,26,237,0.3); }
.categories-nav-btn.prev:hover { background: #f8f9fa; box-shadow: 0 6px 16px rgba(0,0,0,0.2); transform: translateY(-50%) scale(1.1); }
.categories-nav-btn.next:hover { background: #7a1e7a; box-shadow: 0 6px 16px rgba(86,26,237,0.4); transform: translateY(-50%) scale(1.1); }

/* Estilos para botones deshabilitados */
.categories-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.categories-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Estilos para el carrusel de banners */
.banner-carousel { 
    position: relative; 
    overflow: hidden; 
    height: 400px;
    width: 100%;
    z-index: 1;
}
.banner-item { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
}
.banner-item.active { opacity: 1; }
.banner-item img { 
    width: 100%; 
    height: 400px; 
    object-fit: cover; 
    display: block; 
}
.banner-item picture { 
    width: 100%; 
    height: 100%; 
    display: block; 
}

/* Indicadores (dots) del banner */
.banner-indicators { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 15; }
.banner-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.banner-dot.active { background: white; transform: scale(1.2); }
.banner-dot:hover { background: rgba(255,255,255,0.8); }

/* Flechas de navegación del banner */
.banner-nav-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(255,255,255,0.8); 
    border: none; 
    border-radius: 50%; 
    width: 50px; 
    height: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    opacity: 0; 
    transition: all 0.3s ease; 
    z-index: 20; 
    color: #333; 
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.banner-nav-btn:hover { 
    background: rgba(255,255,255,0.95); 
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.banner-nav-btn.prev { left: 20px; }
.banner-nav-btn.next { right: 20px; }
.banner-carousel:hover .banner-nav-btn { opacity: 1; }

/* En mobile y tablet, ocultar botones de navegación */
@media (max-width: 1024px) {
    .banner-carousel .banner-nav-btn { 
        display: none !important;
    }
    .products-carousel-container .products-nav-btn {
        display: none !important;
    }
}

/* Estilos para el carrusel de productos */
.products-carousel-container { position: relative; }
.products-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: 1px solid #ddd; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity 0.3s ease; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.products-nav-btn:hover { background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.products-nav-btn.prev { left: 15px; }
.products-nav-btn.next { right: 15px; }
.products-carousel-container:hover .products-nav-btn { opacity: 1; }

/* Separadores mejorados */
.section-separator {
    margin: 60px 0;
    padding: 0;
    position: relative;
}

.section-separator.style-1 {
    background: linear-gradient(135deg, #8f2490 0%, #7a1e7a 50%, #b53eb5 100%);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 20px 20px;
    box-shadow: 0 8px 32px rgba(86, 26, 237, 0.3);
}

.section-separator.style-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,10 Q25,0 50,10 T100,10 V20 H0 Z" fill="white" opacity="0.1"/></svg>');
    background-size: 200px 100%;
}

.section-separator.style-2 {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(to right, transparent, #f8f9fa, transparent);
    margin: 25px 0;
}

.section-separator.style-2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(to right, transparent, #8f2490, #b53eb5, #8f2490, transparent);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(86, 26, 237, 0.4);
}

.section-separator.style-3 {
    display: flex;
    align-items: center;
    margin: 25px 0;
    padding: 0 20px;
}

.section-separator.style-3::before,
.section-separator.style-3::after {
    content: '';
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, transparent, #8f2490, #b53eb5, #8f2490, transparent);
    border-radius: 2px;
}

.section-separator.style-4 {
    position: relative;
    margin: 60px 0;
    padding: 30px 0;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
}

.section-separator.style-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8f2490, #b53eb5, #7a1e7a, #b53eb5, #8f2490);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 2px 8px rgba(86, 26, 237, 0.3);
}

.separator-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.separator-content.dark {
    color: #333;
}

.separator-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.separator-title.dark {
    text-shadow: none;
    color: #333;
}

.separator-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.separator-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.separator-icon.gradient {
    background: linear-gradient(135deg, #9333EA, #7c2d98);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.separator-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.separator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9333EA;
    margin: 0 5px;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.separator-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.separator-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Estilos para sección de tecnología */
.tech-container { position: relative; padding: 25px 50px 15px 50px; margin: 0 -50px; }
.tech-overflow-hidden { overflow: hidden; margin: 0 50px; padding: 15px 0; }
.tech-row { display: flex; flex-wrap: nowrap; }
.tech-row .col-md-2 { flex: 0 0 calc(100% / 5); max-width: calc(100% / 5); }

/* Estilos para navegación de tecnología */
.tech-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); border: none; border-radius: 6px; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 1; transition: all 0.3s ease; z-index: 20; }
.tech-nav-btn.prev { left: 15px; background: white; color: black; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.tech-nav-btn.next { right: 15px; background: #dc3545; color: white; box-shadow: 0 4px 12px rgba(220,53,69,0.3); }
.tech-nav-btn.prev:hover { background: #f8f9fa; box-shadow: 0 6px 16px rgba(0,0,0,0.2); transform: translateY(-50%) scale(1.1); }
.tech-nav-btn.next:hover { background: #b02a37; box-shadow: 0 6px 16px rgba(220,53,69,0.4); transform: translateY(-50%) scale(1.1); }

/* Estilos para el footer */
.footer { 
    background: linear-gradient(90deg, #2449bf 0%, #8f2490 100%);
    color: white; 
    padding: 20px 0 10px 0; 
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.1) 0%, transparent 50%, rgba(143, 36, 144, 0.1) 100%);
    pointer-events: none;
}
.footer h5 { color: white; margin-bottom: 10px; font-weight: 600; }
.footer a { color: white; text-decoration: none; transition: color 0.3s ease; }
.footer a:hover { color: #f8f9fa; }
.footer .social-links a { color: white; font-size: 1.5rem; margin-right: 15px; transition: all 0.3s ease; }
.footer .social-links a:hover { color: #f8f9fa; transform: translateY(-2px); }
.footer-bottom { padding-top: 10px; margin-top: 10px; text-align: center; color: white; }
.footer-logo { max-height: 40px; margin-bottom: 10px; }
.footer .navbar-brand {
    transition: all 0.3s ease;
    display: inline-block;
}
.footer .navbar-brand:hover {
    transform: scale(1.1);
    text-decoration: none;
}
.footer .navbar-brand:hover span {
    color: inherit;
}

/* Botón de suscripción personalizado */
.btn-subscribe {
    background: #ff6b35;
    border: 2px solid #ff6b35;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-subscribe:hover {
    background: #e55a2b;
    border-color: #e55a2b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

/* Estilos para el logo navbar-brand */
.navbar-brand {
    font-size: 23px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.logo-isstore {
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
}

.logo-shop {
    color: #8F2490;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
}

.navbar-brand:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.navbar-brand:hover .logo-isstore {
    color: #000000;
}

.navbar-brand:hover .logo-shop {
    color: #8F2490;
}

/* Estilos para el buscador */
.search-container {
    width: 100%;
    max-width: 400px;
}

.search-input {
    border-radius: 8px 0 0 8px;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    font-size: 16px;
    border-right: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 400 !important;
}

.search-input:focus {
    border-color: #8f2490;
    box-shadow: none;
    outline: none;
}

.btn-search {
    border-radius: 0 8px 8px 0;
    border: 2px solid #e9ecef;
    border-left: none;
    background: #8f2490;
    color: white;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #7a1e7a;
    border-color: #7a1e7a;
    color: white;
}

.search-input:focus + .btn-search {
    border-color: #8f2490;
}

/* Estilos para el selector de idiomas */
.language-selector {
    color: #333 !important;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    margin-top: 1px;
}

.language-selector:hover {
    background: #f8f9fa;
    color: #8f2490 !important;
    border-color: #8f2490;
}

.language-selector:focus {
    box-shadow: 0 0 0 0.2rem rgba(147, 51, 234, 0.25);
}

/* Estilos para botones Ver en Amazon */
.btn-amazon {
    background: #8f2490 !important;
    border: 1px solid #8f2490 !important;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-amazon:hover {
    background: #7a1e7a !important;
    border-color: #7a1e7a !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(86, 26, 237, 0.3);
}

/* Estilos para el menú hamburguesa */
.hamburger-menu {
    display: none;
}

.hamburger-menu .btn {
    color: white !important;
    font-size: 1.2rem;
    padding: 8px 12px;
    border: none;
    background: none;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
}

.hamburger-menu .btn:hover {
    color: #f8f9fa !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.hamburger-menu .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Estilos para la navegación */
.navbar-nav .nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Desktop: menú siempre visible */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
    }
    
    .navbar-nav {
        flex-direction: row !important;
    }
}

/* Responsividad del menú */
@media (max-width: 991px) {
    .hamburger-menu {
        display: block;
    }
    
    .navbar-collapse {
        background: rgba(86, 26, 237, 0.95);
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
    }
    
    .navbar-nav {
        flex-direction: column !important;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 16px;
        margin: 2px 0;
        border-radius: 4px;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Tablet specific hamburger menu styles */
@media (min-width: 768px) and (max-width: 991px) {
    /* Hamburger button in tablet header */
    .d-md-block.d-lg-none button[data-bs-target="#mobileNav"] {
        color: #8f2490 !important;
        font-size: 1.2rem;
        padding: 8px;
        background: none;
        border: none;
        transition: all 0.3s ease;
    }
    
    .d-md-block.d-lg-none button[data-bs-target="#mobileNav"]:hover {
        color: #7a1e7a !important;
        background: rgba(86, 26, 237, 0.1);
        border-radius: 4px;
    }
    
    /* Ensure mobile nav is accessible on tablets */
    #mobileNav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
}
    
    /* Header de categorías en mobile */
    .nav-link-header {
        color: white !important;
        font-weight: 600;
        font-size: 16px;
        padding: 8px 16px;
        margin: 2px 0;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Categorías indentadas */
    .navbar-nav .nav-link.ps-3 {
        padding-left: 2rem !important;
        font-size: 14px;
        opacity: 0.9;
    }
    
    .navbar-nav .nav-link.ps-3:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* Menú hamburguesa mobile con color blanco */
    .d-lg-none button[data-bs-target="#mobileNav"] {
        color: white !important;
    }
    
    .d-lg-none button[data-bs-target="#mobileNav"]:hover {
        color: #f8f9fa !important;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
}

/* Estilos para el Mega Menu */
.mega-menu-container {
    position: relative;
}

.mega-menu-trigger {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
}

.mega-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8f9fa !important;
}

.mega-menu-overlay {
    position: fixed;
    top: 56px; /* Comenzar debajo del header */
    left: 0;
    width: 100vw;
    height: calc(100vh - 56px); /* Altura menos el header */
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mega-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-menu {
    position: fixed;
    top: 56px; /* Comenzar debajo del header */
    left: -100%;
    width: 90%;
    max-width: 900px;
    height: calc(100vh - 56px); /* Altura menos el header */
    background: white;
    z-index: 1003;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    visibility: hidden;
}

.mega-menu.active {
    left: 0;
    visibility: visible;
}

.mega-menu-header {
    padding: 20px;
    background: #8f2490;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-header h5 {
    margin: 0;
    font-weight: 600;
}

.mega-menu-close {
    color: white !important;
    font-size: 1.2rem;
    padding: 4px 8px;
}

.mega-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mega-menu-content {
    display: flex;
    height: calc(100vh - 80px);
}

.mega-menu-categories {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
}

.mega-menu-category {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mega-menu-category:hover {
    background: #e9ecef;
}

.mega-menu-category.active {
    background: #8f2490;
    color: white;
}

.mega-menu-category .category-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.mega-menu-category.active .category-icon {
    color: white;
}

.mega-menu-category .category-name {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
}

.mega-menu-category .fa-chevron-right {
    font-size: 12px;
    color: #6c757d;
}

.mega-menu-category.active .fa-chevron-right {
    color: white;
}

.mega-menu-products {
    flex: 1;
    overflow-y: auto;
}

.products-grid {
    display: none;
    padding: 20px;
}

.mega-menu .products-grid {
    display: none;
}

.mega-menu .products-grid.active {
    display: block;
}

.products-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-header h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.view-all-btn {
    color: #8f2490 !important;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    color: #7a1e7a !important;
    text-decoration: none !important;
}

.view-all-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(3px);
}

.products-list {
    display: grid;
    gap: 12px;
}

.mega-menu-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.mega-menu-product:hover {
    background: #f8f9fa;
    border-color: #8f2490;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 26, 237, 0.1);
}

.product-image {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.product-image .no-image {
    color: #6c757d;
    font-size: 16px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 2px 0;
    color: #333;
    line-height: 1.3;
}

.product-description {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.3;
}

.product-action {
    display: flex;
    align-items: center;
}

.product-action .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    padding: 4px 8px;
    white-space: nowrap;
    min-width: auto;
}

.no-products {
    text-align: center;
    padding: 20px 20px;
    color: #6c757d;
}

.no-products i {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-products p {
    margin: 0;
    font-size: 14px;
}

/* Estilos para el footer de productos */
.products-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.view-all-bottom {
    color: #8f2490 !important;
    border-color: #8f2490 !important;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.view-all-bottom:hover {
    background: #8f2490 !important;
    border-color: #8f2490 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(86, 26, 237, 0.2);
}

.view-all-bottom i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.view-all-bottom:hover i {
    transform: translateX(3px);
}

/* Estilos para las marcas en el mega menú */
.brands-list {
    display: grid;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.mega-menu-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    background: white;
    margin-bottom: 6px;
    min-height: 50px;
    overflow: hidden;
}

.mega-menu-brand:hover {
    background: #f8f9fa;
    border-color: #8f2490;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(86, 26, 237, 0.1);
}

.brand-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.brand-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-count {
    font-size: 11px;
    color: #6c757d;
    margin: 0;
}

.brand-action .btn {
    font-size: 10px;
    padding: 4px 6px;
    white-space: nowrap;
    min-width: 60px;
    flex-shrink: 0;
}

/* Estilos para navegación móvil - solo móvil (≤767px) */
@media (max-width: 767px) {
    .navbar-title {
        color: white !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        margin-left: 10px !important;
        display: inline-block !important;
    }
    
    .navbar-toggler {
        padding: 4px 6px !important;
        font-size: 16px !important;
    }
    
    .navbar-toggler i {
        font-size: 16px !important;
    }
    .navbar-collapse {
        background: white !important;
        border-radius: 15px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
        margin-top: 10px !important;
        padding: 20px 15px !important;
        border: none !important;
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    
    .navbar-nav .nav-item .nav-link {
        padding: 8px 15px !important;
        margin-bottom: 2px !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        color: #333 !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-nav .nav-item .nav-link:hover {
        background: #f8f9fa !important;
        color: #8f2490 !important;
        border-bottom-color: #8f2490 !important;
    }
    
    .category-image-small {
        width: 20px !important;
        height: 20px !important;
        object-fit: cover !important;
        border-radius: 4px !important;
    }
    
    /* Reducir títulos de secciones en móvil */
    h2, .section-title, .categories-title {
        font-size: 1.3rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    h4 {
        font-size: 1rem !important;
    }
    
    /* Eliminar espacio entre navbar y slider en móvil */
    .hero-banner {
        margin-top: -10px !important;
        padding-top: 0 !important;
    }
    
    .banner-carousel {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
    
    /* Hacer la barra de menú más alta en móvil */
    .navbar-red {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}

/* Clases específicas para el mega menu - evitar conflictos */
.megamenu-brand-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    background: white;
    margin-bottom: 8px;
    min-height: 60px;
}

.megamenu-brand-item:hover {
    background: #f8f9fa;
    border-color: #8f2490;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(86, 26, 237, 0.1);
}

.megamenu-brand-info {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.megamenu-brand-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.megamenu-brand-count {
    font-size: 11px;
    color: #6c757d;
    margin: 0;
}

.megamenu-brand-action {
    flex-shrink: 0;
}

.megamenu-brand-action .btn {
    font-size: 11px;
    padding: 6px 10px;
    white-space: nowrap;
    min-width: 80px;
}


/* ==============================================
   TABLET: 768px - 1023px
   ============================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    body {
        padding-top: 110px; /* Same as desktop: Header + Navbar */
    }
    
    .header {
        padding: 8px 0; /* Same as desktop */
        border-bottom: none !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
    }
    
    .navbar-red {
        top: 56px; /* Same as desktop */
    }
    
    /* Hero banner tablet pegado a navbar */
    .hero-banner {
        margin-top: -4px !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
    
    .header .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .header .search-container {
        max-width: 100%;
        width: 100%;
    }
    
    .header .navbar-brand {
        font-size: 19px;
    }
    
    /* Selector de idioma en tablet - same style as desktop */
    .header .language-selector {
        color: #333 !important;
        text-decoration: none;
        font-weight: 500;
        padding: 8px 12px;
        border-radius: 6px;
        background: white;
        border: 1px solid #e9ecef;
        font-size: 14px;
    }
    
    .header .language-selector:hover {
        background: #f8f9fa;
        color: #8f2490 !important;
        border-color: #8f2490;
    }
    
    /* Navigation menu same as desktop */
    .navbar-red .navbar-nav .nav-link {
        font-size: 16px !important; /* Same as desktop */
        padding: 8px 16px !important;
        color: white !important;
        font-weight: 500;
    }
    
    .mega-menu-trigger {
        font-size: 16px !important;
        font-weight: 500 !important;
        padding: 8px 16px !important;
        color: white !important;
    }
    
    /* Navbar same height as desktop */
    .navbar-red {
        min-height: auto !important;
        padding: 0 !important;
        height: auto !important;
    }
    
    .navbar-red .container-wide {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        min-height: auto !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .navbar-nav {
        margin-bottom: 0 !important;
        height: auto !important;
        align-items: center !important;
    }
    
    /* Ensure navbar shows properly on tablet */
    .navbar-collapse {
        display: flex !important;
    }
    
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
    }
}

/* ==============================================
   DESKTOP: 1024px+
   ============================================== */
@media (min-width: 1024px) {
    body {
        padding-top: 110px; /* Header (56px) + Navbar (~54px) para pegar slider */
    }
    
    .header {
        padding: 8px 0;
    }
    
    .navbar-red {
        top: 56px; /* Altura más ajustada del header */
    }
    
    .header .navbar-brand {
        font-size: 20px;
    }
    
    /* Selector de idioma en desktop - estilo estándar */
    .header .language-selector {
        color: #333 !important;
        text-decoration: none;
        font-weight: 500;
        padding: 8px 12px;
        border-radius: 6px;
        background: white;
        border: 1px solid #e9ecef;
        font-size: 14px;
    }
    
    .header .language-selector:hover {
        background: #f8f9fa;
        color: #8f2490 !important;
        border-color: #8f2490;
    }
    
    /* Hero banner desktop pegado a navbar */
    .hero-banner {
        margin-top: -4px !important;
        padding-top: 0 !important;
    }
    
    /* Banner carousel altura completa en desktop */
    .banner-carousel {
        height: 400px !important;
    }
    
    .banner-item {
        height: 400px !important;
    }
    
    .banner-item img {
        height: 400px !important;
        width: 100%;
        object-fit: cover;
    }
    
    /* Menú de navegación en desktop - tamaño estándar */
    .navbar-red .navbar-nav .nav-link {
        font-size: 16px !important; /* Tamaño base desktop */
        padding: 8px 16px !important;
    }
    
    .mega-menu-trigger {
        font-size: 16px !important;
    }
}

/* Responsive para tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .banner-carousel {
        height: 300px !important;
    }
    
    .banner-item {
        height: 300px !important;
    }
    
    .banner-item img {
        height: 300px !important;
        width: 100%;
        object-fit: cover;
    }
    
    /* Botones ocultos en tablet */
    
    .banner-indicators {
        bottom: 15px;
    }
    
    .banner-dot {
        width: 10px;
        height: 10px;
    }
}

/* Responsive para mobile (hasta 768px) */
@media (max-width: 768px) {
    .banner-carousel {
        height: 250px;
    }
    
    .banner-item {
        height: 250px;
    }
    
    .banner-item img {
        height: 250px;
        object-fit: cover;
        width: 100%;
    }
    
    /* Botones ocultos en mobile */
    
    .banner-indicators {
        bottom: 12px;
    }
    
    .banner-dot {
        width: 8px;
        height: 8px;
    }
}

/* ==============================================
   MÓVIL: 0px - 767px
   ============================================== */
@media (max-width: 767px) {
    body {
        padding-top: 96px; /* Header (56px) + Navbar (~40px) - 4px extra */
    }
    
    /* Header responsive */
    .header {
        padding: 10px 0;
        border-bottom: none !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
    }
    
    .navbar-red {
        top: 56px; /* Eliminar los 2px de separación */
        margin: 0 !important;
        border: none !important;
        padding: 0 !important;
    }
    
    /* Navbar container móvil sin espacios */
    .navbar-red .container-wide {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        margin: 0 !important;
    }
    
    /* Hero banner móvil pegado a navbar */
    .hero-banner {
        margin-top: -8px !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
    
    .header .navbar-brand {
        font-size: 17px;
    }
    
    /* Selector de idioma en móvil - sin borde, transparente */
    .header .language-selector {
        border: none !important;
        padding: 4px 0 !important;
        background: transparent !important;
        font-size: 18px;
        color: #333 !important;
    }
    
    .header .language-selector:hover,
    .header .language-selector:focus {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}
    
    .header .language-selector {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    /* En móvil, quitar borde y padding del selector de idioma */
    @media (max-width: 767px) {
        .header .language-selector {
            border: none !important;
            padding: 4px 0 !important;
            background: transparent !important;
            font-size: 18px;
        }
        
        .header .language-selector:hover,
        .header .language-selector:focus {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }
        
        /* Selector de idioma en menú móvil */
        .language-selector-mobile {
            color: #333 !important;
            text-decoration: none;
            font-weight: 500;
            padding: 4px 8px;
            border-radius: 6px;
            border: 1px solid #e9ecef;
            background: white;
            font-size: 14px;
        }
        
        .language-selector-mobile:hover {
            background: #f8f9fa !important;
            color: #8f2490 !important;
            border-color: #8f2490;
            text-decoration: none;
        }
        
        /* Selector de idioma en navbar móvil */
        .language-selector-navbar {
            color: white !important;
            text-decoration: none;
            font-size: 14px;
            padding: 6px 10px;
            border-radius: 4px;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .language-selector-navbar:hover {
            background: rgba(255, 255, 255, 0.1) !important;
            color: white !important;
            text-decoration: none;
        }
    }
    
    .header .search-input {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* Estilos específicos para móvil */
    @media (max-width: 767px) {
        .search-container-mobile {
            margin-right: 0;
            padding-right: 0;
        }
        
        .search-input-mobile {
            height: 36px !important;
            font-size: 14px !important;
            padding: 6px 12px !important;
        }
        
        .search-input-mobile::placeholder {
            font-size: 12px !important;
            color: #999 !important;
        }
        
        .btn-search {
            height: 36px !important;
            padding: 6px 12px !important;
        }
        
        .btn-search i {
            font-size: 14px !important;
        }
        
        /* Pegado al borde derecho */
        .d-md-none .col {
            padding-right: 0 !important;
            margin-right: 0 !important;
        }
        
        .d-md-none .search-container-mobile {
            margin-right: 0 !important;
        }
        
        .d-md-none .input-group {
            margin-right: 0 !important;
        }
    }
    
    .header .btn-search {
        padding: 8px 12px;
    }
    
    .header .col-md-3 {
        flex: 0 0 auto;
        width: auto;
    }
    
    .header .col-md-6 {
        flex: 1;
        min-width: 0;
        width: 100%;
        order: 3;
        margin-top: 10px;
    }
    
    .header .col-md-3:last-child {
        flex: 0 0 auto;
        width: auto;
    }
    
    /* Buscador más pequeño en mobile */
    .search-container {
        max-width: 100%;
    }
    
    .search-input {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .btn-search {
        padding: 8px 16px;
    }
    
    /* Logo más pequeño */
    .navbar-brand {
        font-size: 17px;
    }
    
    /* Selector de idiomas más compacto */
    .language-selector {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    /* Navegación en mobile */
    .navbar-nav .nav-link {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    /* Productos más compactos */
    .product-card {
        margin: 0 5px;
    }
    
    .product-img {
        height: 140px;
    }
    
    .product-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    /* Categorías más compactas */
    .category-card {
        min-height: 160px;
        padding: 20px 12px;
    }
    
    .category-card div:last-child {
        font-size: 0.9rem;
        line-height: 1.3;
        padding: 0;
        margin-top: 6px;
    }
    
    .category-icon {
        font-size: 1.8rem;
        margin-bottom: 4px;
    }
    
    .category-image {
        width: 100px;
        height: 100px;
        padding: 8px;
    }
    
    /* Separadores más pequeños en mobile */
    .section-separator {
        margin: 30px 0;
    }
    
    .section-separator.style-1 {
        margin: 20px 10px;
        padding: 30px 0;
        border-radius: 15px;
    }
    
    .section-separator.style-2 {
        padding: 30px 0;
        margin: 30px 0;
    }
    
    .section-separator.style-3 {
        margin: 30px 0;
        padding: 0 10px;
    }
    
    .section-separator.style-4 {
        margin: 30px 0;
        padding: 20px 0;
        border-radius: 10px;
    }
    
    .separator-title {
        font-size: 1.8rem;
    }
    
    .separator-subtitle {
        font-size: 0.9rem;
    }
    
    .separator-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .separator-dots {
        margin: 20px 0;
    }
    
    .separator-dot {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }
    
    /* Footer responsive */
    .footer {
        padding: 30px 0 15px 0;
    }
    
    .footer .col-lg-3 {
        margin-bottom: 20px;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }
    
    /* Botones de navegación más grandes en mobile */
    .products-nav-btn,
    .categories-nav-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }
    
    .categories-nav-btn.prev {
        left: 2px !important;
    }
    
    .categories-nav-btn.next {
        right: 2px !important;
    }
    
    .banner-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        opacity: 0.9;
    }
    
    .products-nav-btn.prev {
        left: 15px;
    }
    
    .products-nav-btn.next {
        right: 15px;
    }
    
    .categories-overflow-hidden {
        padding: 15px 35px !important;
    }
    
    /* Carrusel de banners para móvil pequeño */
    .banner-carousel {
        height: 200px;
    }
    
    .banner-item {
        height: 200px;
    }
    
    .banner-item img {
        height: 200px;
        object-fit: cover;
        width: 100%;
    }
    
    .banner-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        opacity: 1;
        background: rgba(255,255,255,0.95);
    }
    
    .banner-nav-btn.prev { left: 8px; }
    .banner-nav-btn.next { right: 8px; }
    
    .banner-indicators {
        bottom: 10px;
    }
    
    .banner-dot {
        width: 6px;
        height: 6px;
    }
    
    /* Ajustar contenedores en mobile */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Mejorar espaciado entre secciones */
    .section-separator {
        margin: 20px 0;
        padding: 20px 0;
    }
    
    /* Texto más legible en mobile */
    h4 {
        font-size: 1.3rem;
    }
    
    /* Dropdown del header más accesible */
    .dropdown-menu {
        font-size: 14px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    }
    
    .dropdown-item {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
        font-weight: 600 !important;
    }
    
    /* Mega menu más accesible */
    .mega-menu-category {
        padding: 20px;
        font-size: 16px;
    }
    
    .mega-menu-product {
        padding: 16px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-description {
        font-size: 12px;
    }
}

/* Responsive para tablets */
@media (min-width: 577px) and (max-width: 849px) {
    body {
        padding-top: 110px; /* Same as desktop since we use same navbar design */
    }
    
    .navbar-red {
        top: 56px; /* Same as desktop */
    }
    
    /* Hide categories for tablets - using desktop navbar instead */
    .categories-container {
        display: none !important;
    }
    
    /* Hero banner tablets medianos pegado a navbar */
    .hero-banner {
        margin-top: -4px !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
    
    .header .col-md-6 {
        order: 0;
    }
    
    .search-container {
        max-width: 400px;
    }
}

/* Específico para tablets en el header */
@media (min-width: 768px) and (max-width: 991px) {
    /* Hide categories for tablets - using desktop navbar instead */
    .categories-container {
        display: none !important;
    }
    
    .header .search-container {
        max-width: 60% !important;
        margin: 0 auto !important;
    }
    
    .product-img {
        height: 160px;
    }
    
    .separator-title {
        font-size: 2.2rem;
    }
}

/* TABLET FIX: Show desktop navbar, hide categories and mobile nav */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    /* Hide unwanted elements */
    .tablet-hide-categories,
    #mobileNav {
        display: none !important;
    }
    
    /* Force show the main navbar that has the menu items */
    .navbar-red .d-none.d-md-flex {
        display: flex !important;
    }
    
    /* Allow the navbar-collapse inside the main navbar to show */
    .navbar-red .d-none.d-md-flex .navbar-collapse {
        display: flex !important;
    }
    
    /* Force navbar height to exactly 56px like desktop */
    .navbar-red {
        height: 56px !important;
    }
    
    .navbar-red .container-wide {
        height: 56px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Remove rounded corners and ensure full width */
    .navbar-red .d-none.d-md-flex .navbar-collapse {
        border-radius: 0 !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Reduce font size and weight for menu items */
    .navbar-red .navbar-nav .nav-link {
        font-size: 14px !important;
        font-weight: 400 !important;
    }
    
    /* Fix search placeholder visibility in tablets */
    .search-input::placeholder {
        color: #6c757d !important;
        opacity: 1 !important;
        font-size: 14px !important;
    }
    
    #searchInputTablet::placeholder {
        color: #6c757d !important;
        opacity: 1 !important;
        font-size: 14px !important;
    }
    
    /* Make search container wider in tablet */
    .d-none.d-md-block.d-lg-none .col-6 {
        flex: 0 0 auto;
        width: 70% !important;
    }
    
    .d-none.d-md-block.d-lg-none .col-3:first-child {
        flex: 0 0 auto;
        width: 15% !important;
    }
    
    .d-none.d-md-block.d-lg-none .col-3:last-child {
        flex: 0 0 auto;
        width: 15% !important;
    }
}

/* Fix para eliminar espacio entre barras en móvil - GLOBAL */
@media (max-width: 767px) {
    /* Aumentar el alto de la barra donde está el logo y centrar contenido */
    .header {
        padding: 8px 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        min-height: 60px !important;
    }
    
    .header .container-wide {
        width: 100% !important;
    }
    
    .header .d-md-none .row {
        align-items: center !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .navbar-red {
        margin-top: 0 !important;
        padding: 12px 0 !important;
    }
}

/* Estilos específicos para la página Tienda */

/* Breadcrumb */
.breadcrumb { background: #f8f9fa; padding: 15px 0; margin-bottom: 30px; }
.breadcrumb-item a { color: #8f2490; text-decoration: none; }
.breadcrumb-item a:hover { color: #7a1e7a; }
.breadcrumb-item.active { color: #6c757d; }

/* Sidebar de categorías */
.categories-sidebar { background: #f8f9fa; border-radius: 10px; padding: 15px 10px; width: 100%; box-sizing: border-box; display: block; }
.categories-sidebar h5 { color: #333; margin-bottom: 20px; font-weight: 600; }
.categories-sidebar .category-item { 
    padding: 8px 12px !important; 
    margin-bottom: 3px !important; 
    border-radius: 8px; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    color: #333; 
    display: flex !important; 
    align-items: flex-start !important; 
    width: 100% !important; 
    box-sizing: border-box; 
    flex-direction: row !important; 
}
.categories-sidebar .category-item:hover { background: #e9ecef; color: #8f2490; text-decoration: none; }
.categories-sidebar .category-item.active { background: #8f2490; color: white; }
.categories-sidebar .category-item.active:hover { background: #7a1e7a; color: white; }
.categories-sidebar .category-item i, .categories-sidebar .category-item img { 
    flex-shrink: 0 !important; 
    margin-right: 8px !important; 
    margin-top: 2px !important; 
    width: 16px !important; 
    text-align: center; 
    font-size: 14px !important; 
}
.categories-sidebar .category-item .category-text { 
    flex: 1; 
    line-height: 1.3; 
    word-wrap: break-word; 
    hyphens: auto; 
    min-width: 0; 
    font-size: 13px; 
    font-weight: 500; 
    writing-mode: horizontal-tb !important; 
    text-orientation: mixed !important; 
    direction: ltr !important;
    display: block !important; 
    white-space: normal !important; 
    overflow-wrap: break-word !important;
    max-width: 100% !important;
}

/* Productos grid */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { 
    background: white; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    overflow: hidden; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    color: inherit; 
    display: block; 
}
.product-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
    text-decoration: none; 
    color: inherit; 
}
.product-img { width: 100%; height: 200px; object-fit: contain; background: white; }
.product-info { padding: 15px; }
.product-title { 
    font-size: 14px; 
    font-weight: 600; 
    margin-bottom: 8px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    line-height: 1.3em; 
    max-height: 2.6em; 
}
.product-description { 
    font-size: 12px; 
    color: #6c757d; 
    margin-bottom: 10px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.product-category { font-size: 11px; color: #8f2490; margin-bottom: 10px; }
.product-brand { font-size: 12px; color: #888; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.btn-view-amazon { 
    background: #8f2490; 
    color: white; 
    border: 1px solid #8f2490; 
    padding: 6px 12px; 
    border-radius: 6px; 
    font-size: 12px; 
    font-weight: 500; 
    transition: all 0.3s ease; 
}
.btn-view-amazon:hover { 
    background: #7a1e7a; 
    border-color: #7a1e7a;
    color: white; 
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(86, 26, 237, 0.3);
}

/* Estilos para filtros móviles */
.filters-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999 !important;
    background: #28a745 !important;
    color: white !important;
    border: 2px solid white !important;
    border-radius: 50px !important;
    width: 60px !important;
    height: 60px !important;
    box-shadow: 0 4px 15px rgba(86, 26, 237, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 18px !important;
}

.filters-toggle:hover {
    background: #218838 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6) !important;
}

.filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7) !important;
    z-index: 10000 !important;
    backdrop-filter: blur(5px);
}

.filters-content {
    background: white !important;
    margin: 20px 20px !important;
    border-radius: 15px !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.filters-header {
    padding: 20px !important;
    border-bottom: 1px solid #e9ecef !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: linear-gradient(135deg, #8f2490 0%, #a83fa8 100%) !important;
    color: white !important;
    border-radius: 15px 15px 0 0 !important;
}

.filters-header h5 {
    margin: 0 !important;
    color: white !important;
    font-weight: 600 !important;
}

.filters-close {
    background: rgba(255,255,255,0.2) !important;
    border: none !important;
    font-size: 18px !important;
    color: white !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.filters-close:hover {
    background: rgba(255,255,255,0.3) !important;
}

.filters-body {
    padding: 20px !important;
}

.filter-section {
    margin-bottom: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.filter-section:last-child {
    border-bottom: none !important;
}

.filter-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid transparent !important;
}

.filter-header:hover {
    color: #8f2490 !important;
}

.filter-header.active {
    color: #8f2490 !important;
    border-bottom-color: #8f2490 !important;
}

.filter-title {
    display: flex !important;
    align-items: center !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #333 !important;
    margin: 0 !important;
}

.filter-count {
    background: #f8f9fa !important;
    color: #6c757d !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-left: 8px !important;
}

.filter-toggle {
    font-size: 14px !important;
    color: #6c757d !important;
    transition: transform 0.3s ease !important;
}

.filter-toggle.expanded {
    transform: rotate(180deg) !important;
}

.filter-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
    padding: 0 !important;
}

.filter-content.expanded {
    max-height: 300px !important;
    padding: 10px 0 20px 0 !important;
    overflow-y: auto !important;
}

.filter-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.filter-item {
    display: flex !important;
    align-items: center !important;
    padding: 8px 0 !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
    padding-left: 12px !important;
}

.filter-item:hover {
    color: #8f2490 !important;
    text-decoration: none !important;
    border-left-color: #8f2490 !important;
    background: rgba(86, 26, 237, 0.05) !important;
    padding-left: 16px !important;
}

.filter-item.active {
    color: #8f2490 !important;
    border-left-color: #8f2490 !important;
    background: rgba(86, 26, 237, 0.1) !important;
    font-weight: 600 !important;
    padding-left: 16px !important;
}

.filter-item i {
    margin-right: 10px !important;
    width: 16px !important;
    text-align: center !important;
    font-size: 14px !important;
    opacity: 0.7 !important;
}

.filter-item img {
    margin-right: 10px !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 3px !important;
    opacity: 0.8 !important;
}

.filter-item span {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Scrollbar personalizado para filter-content */
.filter-content::-webkit-scrollbar {
    width: 4px !important;
}

.filter-content::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 2px !important;
}

.filter-content::-webkit-scrollbar-thumb {
    background: #8f2490 !important;
    border-radius: 2px !important;
}

.filter-content::-webkit-scrollbar-thumb:hover {
    background: #7a1e7a !important;
}

/* Desktop específico para categorías */
@media (min-width: 1201px) {
    .categories-sidebar { display: block !important; }
    .col-lg-3.col-md-4 { 
        flex: 0 0 30% !important; 
        max-width: 30% !important; 
        display: block !important; 
        padding-left: 0 !important;
        padding-right: 15px !important;
        width: 30% !important;
    }
    .col-lg-9.col-md-8 { flex: 0 0 70% !important; max-width: 70% !important; }
    
    /* Optimizar sidebar para desktop */
    .categories-sidebar {
        padding: 15px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
        margin: 0 !important;
        min-height: calc(100vh - 200px) !important;
        max-width: none !important;
    }
    
    /* Forzar comportamiento horizontal en desktop */
    .categories-sidebar .category-item {
        flex-direction: row !important;
        align-items: center !important;
        writing-mode: horizontal-tb !important;
        text-orientation: unset !important;
        padding: 10px 15px !important;
        width: 100% !important;
    }
    
    .categories-sidebar .category-item .category-text {
        writing-mode: horizontal-tb !important;
        text-orientation: unset !important;
        direction: ltr !important;
        display: block !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
        width: 200px !important;
        flex: none !important;
        min-width: 200px !important;
        flex-grow: 1 !important;
        flex-shrink: 0 !important;
    }
    
    /* Mejorar el estilo de la categoría activa en desktop */
    .categories-sidebar .category-item.active,
    .categories-sidebar a.category-item.active {
        background: #8f2490 !important;
        color: white !important;
        border-radius: 8px !important;
        width: calc(100% - 0px) !important;
        min-width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        box-sizing: border-box !important;
        padding: 10px 15px !important;
        margin: 0 !important;
        flex: 1 !important;
        flex-basis: 100% !important;
    }
    
    .categories-sidebar .category-item.active .category-text {
        color: white !important;
    }
}

/* Responsive para tienda */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet específico */
@media (min-width: 768px) and (max-width: 1200px) {
    .col-lg-3.col-md-4 { display: none !important; }
    .col-lg-9.col-md-8 { flex: 0 0 100% !important; max-width: 100% !important; padding: 0 15px !important; }
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; }
    
    /* Mostrar botón de filtros en tablet */
    .filters-toggle { 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important;
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 99999 !important;
        background: #28a745 !important;
        color: white !important;
        border: none !important;
        border-radius: 50px !important;
        width: 60px !important;
        height: 60px !important;
        box-shadow: 0 4px 15px rgba(86, 26, 237, 0.4) !important;
        cursor: pointer !important;
        font-size: 18px !important;
    }
    
    /* Reducir tamaño de breadcrumb y título en tablet */
    .breadcrumb { padding: 8px 0; margin-bottom: 15px; }
    .breadcrumb-item { font-size: 13px; }
    .breadcrumb-item a { font-size: 13px; }
    .d-flex.justify-content-between.align-items-center.mb-4 h3 { font-size: 1.3rem; }
    .d-flex.justify-content-between.align-items-center.mb-4 span { font-size: 12px; }
    
    /* Reducir tamaño de letra del footer en tablet */
    .footer h5 { font-size: 16px !important; margin-bottom: 18px !important; }
    .footer a { font-size: 13px !important; }
    .footer .social-links a { font-size: 1.3rem !important; }
    .footer-bottom { font-size: 12px !important; }
}

@media (max-width: 767px) {
    .col-lg-3.col-md-4 { display: none !important; }
    .col-lg-9.col-md-8 { flex: 0 0 100% !important; max-width: 100% !important; padding: 0 5px !important; }
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; margin: 0 !important; }
    
    /* Forzar comportamiento especial solo en móvil */
    .categories-sidebar .category-item .category-text {
        writing-mode: horizontal-tb !important; 
        text-orientation: mixed !important; 
        direction: ltr !important;
        display: block !important; 
        white-space: normal !important; 
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
    .product-img { height: 140px; }
    .product-info { padding: 10px; }
    .product-title { font-size: 14px; -webkit-line-clamp: 3; max-height: 3.9em; }
    .btn-view-amazon { font-size: 11px; width: 100%; }
    
    /* Mostrar botón de filtros en móvil */
    .filters-toggle { display: flex !important; align-items: center !important; justify-content: center !important; }
    
    /* Reducir tamaño de breadcrumb en móvil */
    .breadcrumb { padding: 10px 0; margin-bottom: 20px; }
    .breadcrumb-item { font-size: 12px; }
    .breadcrumb-item a { font-size: 12px; }
    
    /* Reducir tamaño del título de categoría en móvil */
    .d-flex.justify-content-between.align-items-center.mb-4 h3 { font-size: 0.975rem; }
    .d-flex.justify-content-between.align-items-center.mb-4 span { font-size: 11px; }
    
    /* Reducir tamaño de letra del footer en móvil */
    .footer h5 { font-size: 14px !important; margin-bottom: 15px !important; }
    .footer a { font-size: 12px !important; }
    .footer .social-links a { font-size: 1.2rem !important; }
    .footer-bottom { font-size: 11px !important; }
}

@media (max-width: 576px) {
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; margin: 0 !important; }
    .product-img { height: 140px; }
    .product-info { padding: 10px; }
    .product-title { font-size: 13px; -webkit-line-clamp: 2; max-height: 2.6em; }
    .btn-view-amazon { font-size: 11px; padding: 6px 8px; }
    
    /* Fix específico para línea blanca en móvil */
    .hero-banner {
        margin-top: -12px !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Reducir títulos de secciones en móvil */
    .d-flex.justify-content-between.align-items-center h5 {
        font-size: 0.975rem !important;
    }
    
    /* Reducir "Ver Todo" en móvil */
    .d-flex.justify-content-between.align-items-center a {
        font-size: 0.8rem !important;
    }
    
    /* Estilos para marca del producto */
    .product-brand {
        font-size: 11px !important;
        color: #666 !important;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* =====================================
   ESTILOS DE PAGINACIÓN - TIENDA
   ===================================== */

/* Estilos generales para paginación */
.pagination {
    margin: 0;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
    margin: 0;
    color: #8F2490;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #8f2490 0%, #a83fa8 100%);
    border-color: #8f2490;
    color: white;
    box-shadow: 0 4px 12px rgba(86, 26, 237, 0.25);
    transform: translateY(-1px);
}

.pagination .page-link:hover:not(.disabled) {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    border-color: #8f2490;
    color: #8F2490;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(86, 26, 237, 0.15);
}

.pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* FORZAR ICONOS PEQUEÑOS EN PAGINACIÓN */
.pagination svg,
.pagination .page-link svg,
svg.w-5,
svg.h-5 {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

.pagination .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Estilos específicos para Tailwind CSS usado por Laravel */
.relative.z-0.inline-flex.rounded-md.shadow-sm.-space-x-px {
    display: inline-flex !important;
    gap: 4px !important;
}

.relative.z-0.inline-flex.rounded-md.shadow-sm.-space-x-px > * {
    margin: 0 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}

/* Ocultar texto de navegación si es muy largo */
.pagination .page-link {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 120px !important;
}

/* Contenedor de información de paginación */
.pagination-info {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-info .results-count {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination-info .results-count strong {
    color: #8F2490;
    font-weight: 600;
}

/* Estilo para botones de navegación (Anterior/Siguiente) */
.pagination .page-link[rel="prev"],
.pagination .page-link[rel="next"] {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    font-weight: 600;
    padding: 0.5rem 1rem;
    min-width: auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination .page-link[rel="prev"]:hover,
.pagination .page-link[rel="next"]:hover {
    background: linear-gradient(135deg, #8f2490 0%, #a83fa8 100%);
    color: white;
    border-color: #8f2490;
}

/* Ocultar botones duplicados de Laravel por defecto */
.pagination .page-link:contains("‹"),
.pagination .page-link:contains("›"),
.pagination .page-link:contains("Previous"),
.pagination .page-link:contains("Next") {
    display: none !important;
}

/* Mostrar solo nuestros botones personalizados */
.pagination .page-link[rel="prev"],
.pagination .page-link[rel="next"] {
    display: flex !important;
}

/* Separador visual para puntos suspensivos */
.pagination .page-item.disabled .page-link:contains("...") {
    background: transparent;
    border: none;
    color: #9ca3af;
    box-shadow: none;
    cursor: default;
}

/* Paginación responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 2px;
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        min-width: 36px;
        height: 36px;
        border-radius: 6px;
    }
    
    .pagination .page-link[rel="prev"],
    .pagination .page-link[rel="next"] {
        padding: 0.375rem 0.75rem;
        border-radius: 8px;
        font-size: 0.75rem;
    }
    
    .pagination-info {
        padding: 0.75rem 1rem;
        margin: 1.5rem 0;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    /* Iconos más pequeños en móvil */
    .pagination svg,
    .pagination .page-link svg {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
        min-width: 32px;
        height: 32px;
        border-radius: 4px;
    }
    
    .pagination .page-link[rel="prev"],
    .pagination .page-link[rel="next"] {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Ocultar texto "Previous" y "Next" en móvil muy pequeño, solo mostrar iconos */
    .pagination .page-link span:not(.sr-only) {
        display: none;
    }
    
    .pagination .page-link svg {
        width: 10px !important;
        height: 10px !important;
    }
    
    .pagination-info {
        font-size: 0.75rem;
    }
}

/* Animaciones suaves para los botones de paginación */
@keyframes pulse-page {
    0% { box-shadow: 0 4px 12px rgba(86, 26, 237, 0.25); }
    50% { box-shadow: 0 6px 16px rgba(86, 26, 237, 0.35); }
    100% { box-shadow: 0 4px 12px rgba(86, 26, 237, 0.25); }
}

.pagination .page-item.active .page-link {
    animation: pulse-page 2s infinite;
}

/* Efecto de foco mejorado para accesibilidad */
.pagination .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(86, 26, 237, 0.2);
    border-color: #8f2490;
}

/* Estilos para cuando hay muchas páginas */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-weight: 600;
}

/* Indicador visual para página actual */
.pagination .page-item.active .page-link {
    position: relative;
}

.pagination .page-item.active .page-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}

/* Mejoras de accesibilidad */
.pagination .page-link:focus-visible {
    outline: 2px solid #8f2490;
    outline-offset: 2px;
}

/* Transición suave para todos los elementos de paginación */
.pagination-info,
.pagination-container {
    transition: all 0.3s ease;
}

/* Estado de carga para paginación (opcional) */
.pagination.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pagination.loading .page-link {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Legal Pages Styles */
.legal-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.legal-content h1 {
    color: #8F2490;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8f2490;
}

.legal-content h2 {
    color: #444;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.legal-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: #8F2490;
    font-weight: 600;
}

/* Amazon Affiliate Disclosure Styles */
.amazon-affiliate-disclosure {
    background: rgba(86, 26, 237, 0.1);
    padding: 8px 12px;
    margin: 10px 0 0 0;
    border-radius: 8px;
}

.amazon-affiliate-disclosure p {
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
}

/* Responsive adjustments for legal content */
@media (max-width: 768px) {
    .legal-content {
        padding: 0 15px;
    }
    
    .legal-content h1 {
        font-size: 1.75rem;
    }
    
    .legal-content h2 {
        font-size: 1.1rem;
    }
    
    .amazon-affiliate-disclosure {
        margin: 15px 0;
        padding: 12px;
    }
}

/* Contact Form Styles */
.contact-intro {
    background: rgba(86, 26, 237, 0.05);
    border-left: 4px solid #8f2490;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

.info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}

.info-box h4 {
    color: #8F2490;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #8f2490;
    box-shadow: 0 0 0 0.2rem rgba(86, 26, 237, 0.25);
}

.btn-primary {
    background-color: #8f2490;
    border-color: #8f2490;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #7a1e7a;
    border-color: #7a1e7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(86, 26, 237, 0.3);
}

.form-check-input:checked {
    background-color: #8f2490;
    border-color: #8f2490;
}

.form-check-input:focus {
    border-color: #8f2490;
    box-shadow: 0 0 0 0.25rem rgba(86, 26, 237, 0.25);
}

.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Mobile responsive improvements for contact form */
@media (max-width: 767px) {
    .info-box {
        margin-bottom: 20px;
    }
    
    .contact-intro {
        padding: 12px 15px;
        margin-bottom: 1.5rem;
    }
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, rgba(86, 26, 237, 0.1), rgba(86, 26, 237, 0.05));
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.about-hero .display-4 {
    color: #8F2490;
    font-weight: 700;
}

.about-hero .lead {
    font-size: 1.4rem;
    color: #666;
}

.mission-section .icon-box {
    background: rgba(86, 26, 237, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(86, 26, 237, 0.1);
}

.mission-section .icon-box i {
    color: #8F2490;
}

.process-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(86, 26, 237, 0.15);
}

.process-icon {
    background: linear-gradient(135deg, #8f2490, #7a1e7a);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.process-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

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

.feature-list i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.stats-card {
    background: linear-gradient(135deg, #8f2490, #7a1e7a);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.criteria-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.criteria-item:hover {
    transform: translateY(-3px);
}

.criteria-item i {
    font-size: 2.5rem;
    color: #8F2490;
    margin-bottom: 1rem;
}

.criteria-item h5 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.criteria-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.cta-section {
    padding: 3rem 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(86, 26, 237, 0.1), rgba(86, 26, 237, 0.05));
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 2px solid rgba(86, 26, 237, 0.1);
}

.cta-card h3 {
    color: #8F2490;
    font-weight: 600;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(86, 26, 237, 0.3);
}

/* Mobile responsive improvements for about page */
@media (max-width: 767px) {
    .about-hero {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .about-hero .display-4 {
        font-size: 2.5rem;
    }
    
    .about-hero .lead {
        font-size: 1.1rem;
    }
    
    .mission-section .icon-box {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .process-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stats-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .criteria-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .cta-card {
        padding: 2rem 1rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Footer layout improvements */
.footer .row > div {
    display: flex;
    flex-direction: column;
}

.footer .list-unstyled {
    margin-top: 0.5rem;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .list-unstyled a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .list-unstyled a:hover {
    color: white;
}

/* Newsletter section alignment */
.footer .text-lg-end h5,
.footer .text-lg-end p {
    text-align: left;
}

@media (min-width: 992px) {
    .footer .text-lg-end h5,
    .footer .text-lg-end p {
        text-align: right;
    }
    
    .footer .text-lg-end .input-group {
        max-width: 400px;
        margin-left: auto;
    }
}

/* Mobile responsive improvements */
@media (max-width: 767px) {
    .footer .text-center {
        text-align: left !important;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    .footer .row > div:last-child {
        margin-bottom: 0;
    }
}

/* Adratech Systems link */
.footer-bottom a {
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.adratech-link {
    color: white !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.adratech-link:hover {
    color: #8f2490 !important;
    text-decoration: none !important;
}

