/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
  
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    overflow-x: hidden;
    background: #ffffff;
    max-width: 100vw;
}

.main-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    color: #e4022b;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: #2d3748;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: calc(100vh - 70px);
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    margin-top: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    background-color: #f8fafc;
    width: 100%;
    max-width: 100vw;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
}

.slide picture {
    width: 100%;
    height: auto;
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 8s ease-out;
    background: #f7fafc;
}

.slide:hover img {
    transform: scale(1.01);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.prev-btn, .next-btn {
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.slider-dots {
    position: absolute;
    bottom: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 16px;
    border-radius: 0px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.dot.active {
    background: white;
    transform: scale(1.3);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Brands Section */
.brands-section {
    padding: 1rem 0;
    background: #f7fafc;
}

.brands-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #2d3748;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Scroll Container Styles */
.scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
    background: #f7fafc;
    border-radius: 12px;
    margin: 0rem 0;
    width: 100%;
    max-width: 100%;
    /* Optimizaciones para scroll suave */
    scroll-behavior: smooth;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}

.scroll-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    /* Optimizaciones para scroll suave */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.tags li {
    display: inline-block;
    margin-right: 1px;
}

.tag {
    font-size: 15px;
    background: #fff;
    border-radius: 8px;
    color: #6a6a6a;
    display: inline-flex;
    align-items: center;
    height: 90px;
    width: max-content;
    white-space: nowrap;
    line-height: 90px;
    padding: 0 5px 0 5px;
    position: relative;
    margin: 0 15px 10px 0;
    text-decoration: none;
    -webkit-transition: color 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.11);
    transition: all 0.3s ease;
}

.tag img {
    height: 90px;
    margin-right: 10px;
    object-fit: contain;
    border-radius: 4px;
}

.tag::before {
    display: none;
}

.tag::after {
    display: none;
}

.tag:hover {
    background-color: #fff;
    color: #212529;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    text-decoration: none;
    border-color: #dee2e6;
}

/* Info Blocks */
.info-blocks {
    padding: 2rem 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Tablet: Layout intermedio para beneficios y consejos */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-slider {
        height: calc(37vh - 70px);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .purchase-tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile: Cuadrícula 2x2 para tamaños de colchones y beneficios */
@media (max-width: 768px) {
    /* Prevenir desbordamiento horizontal en móvil */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .main-container {
        max-width: 100% !important;
        padding: 0 15px !important;
        overflow-x: hidden !important;
    }
    
    /* Mostrar imagen móvil en tablets y móviles */
    .desktop-banner {
    display: none;
}

    .mobile-banner {
        display: block;
    }
    .info-blocks .info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
    
    .info-blocks .info-card {
        padding: 1.5rem 1rem !important;
        border-radius: 8px !important;
    }
    
    .info-blocks .info-card h3 {
        font-size: 1.1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .info-blocks .info-card p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin: 0.5rem 0 0 0 !important;
    }
    
    .info-blocks .info-icon {
        margin-bottom: 0.5rem !important;
    }
    
    .info-blocks .info-icon i {
        font-size: 1.8rem !important;
    }
    
    .info-blocks .size-dimensions {
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
        margin: 8px 0 10px 0 !important;
    }
    
    /* Estilos para elementos de beneficios en móvil */
    .benefit-item {
        padding: 1.5rem 1rem !important;
        border-radius: 8px !important;
    }
    
    .benefit-item h4 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .benefit-item p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    
    /* Estilos para consejos de compra en móvil */
    .purchase-tips-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
    
    .tip-item {
        padding: 1.5rem 1rem !important;
        border-radius: 8px !important;
    }
    
    .tip-item h4 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .tip-item p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    
    .tip-icon i {
        font-size: 2rem !important;
    }
}

.info-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: white;
}

.info-icon {
    font-size: 2.5rem;
    color: #e4022b;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #2d3748;
    font-weight: 600;
}

.info-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* SEO Content */
.seo-content {
    padding: 5rem 0;
    background: #f7fafc;
}

.seo-content:nth-child(even) {
    background: white;
}

.content-block {
    max-width:99%;
    margin: 0 auto;
    text-align: center;
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.3;
}

.content-block p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #4a5568;
    text-align: left;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.benefit-item h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.care-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Purchase Tips Grid */
.purchase-tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.tip-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tip-icon {
    margin-bottom: 1rem;
}

.tip-icon i {
    font-size: 2.5rem;
    color: #e4022b;
}

.tip-item h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.tip-item p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Products Grid Section */
.products-grid-section {
    padding: 3rem 0;
    background: white;
}

.products-grid-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.products-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #4a5568;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.products-grid-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2d3748;
    font-weight: 600;
}

/* Sears Products Container - Full Width */
.contenedor-productos-google-sheet {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 20px !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
}

/* Carrusel específico para contenedor1 (Matrimoniales) */
#contenedor1_productos.contenedor-productos-google-sheet {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    padding-right: 0 !important;
    position: relative !important;
}

/* Indicador visual de carrusel */
#contenedor1_productos.contenedor-productos-google-sheet::after {
    content: '← Desliza para ver más →' !important;
    position: absolute !important;
    top: -35px !important;
    right: 20px !important;
    background: rgba(228, 2, 43, 0.9) !important;
    color: white !important;
    padding: 5px 12px !important;
    border-radius: 15px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    z-index: 10 !important;
    pointer-events: none !important;
    opacity: 0.8 !important;
    animation: fadeInOut 3s ease-in-out infinite !important;
    box-shadow: 0 2px 8px rgba(228, 2, 43, 0.3) !important;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* Configurar el tamaño para el carrusel y asegurar que Sears funcione */
#contenedor1_productos .producto-item,
#contenedor1_productos .product-card,
#contenedor1_productos [class*="product"] {
    flex: 0 0 calc(22% - 10px) !important; /* Mostrar 4.5 productos para indicar carrusel */
    min-width: 0 !important;
   
}

/* Asegurar que las tarjetas de Sears se muestren correctamente */
#contenedor1_productos .producto-item,
#contenedor1_productos .product-card,
#contenedor1_productos [class*="product"] {
    display: block !important;
    position: relative !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}

/* Asegurar que las imágenes se muestren */
#contenedor1_productos .producto-item img,
#contenedor1_productos .product-card img,
#contenedor1_productos [class*="product"] img {
    width: 100% !important;
    height: auto !important;
    max-height: 200px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Asegurar que los textos se muestren */
#contenedor1_productos .producto-item *,
#contenedor1_productos .product-card *,
#contenedor1_productos [class*="product"] * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Asegurar que los títulos se muestren */
#contenedor1_productos .producto-item h1,
#contenedor1_productos .producto-item h2,
#contenedor1_productos .producto-item h3,
#contenedor1_productos .producto-item h4,
#contenedor1_productos .producto-item h5,
#contenedor1_productos .producto-item h6,
#contenedor1_productos .product-card h1,
#contenedor1_productos .product-card h2,
#contenedor1_productos .product-card h3,
#contenedor1_productos .product-card h4,
#contenedor1_productos .product-card h5,
#contenedor1_productos .product-card h6,
#contenedor1_productos [class*="product"] h1,
#contenedor1_productos [class*="product"] h2,
#contenedor1_productos [class*="product"] h3,
#contenedor1_productos [class*="product"] h4,
#contenedor1_productos [class*="product"] h5,
#contenedor1_productos [class*="product"] h6,
#contenedor1_productos .product-description p {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 8px 0 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    max-height: 2.6em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Asegurar que los precios se muestren */
#contenedor1_productos .producto-item .precio,
#contenedor1_productos .product-card .precio,
#contenedor1_productos [class*="product"] .precio,
#contenedor1_productos .producto-item .price,
#contenedor1_productos .product-card .price,
#contenedor1_productos [class*="product"] .price {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #e4022b !important;
    margin: 4px 0 !important;
}

/* Asegurar que los badges se muestren */
#contenedor1_productos .producto-item .badge,
#contenedor1_productos .product-card .badge,
#contenedor1_productos [class*="product"] .badge,
#contenedor1_productos .producto-item .descuento,
#contenedor1_productos .product-card .descuento,
#contenedor1_productos [class*="product"] .descuento {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: #28a745 !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 10 !important;
}

/* Asegurar que las tarjetas de Sears se vean correctamente en el carrusel */
#contenedor1_productos .producto-item,
#contenedor1_productos .product-card,
#contenedor1_productos [class*="product"] {
    /* Asegurar que las tarjetas tengan el estilo correcto */
    background: white !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 5px !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Asegurar que las imágenes se vean bien */
#contenedor1_productos .producto-item img,
#contenedor1_productos .product-card img,
#contenedor1_productos [class*="product"] img {
    width: 100% !important;
    height: auto !important;
    max-height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px 8px 0 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Asegurar que los títulos se muestren */
#contenedor1_productos .producto-item h1,
#contenedor1_productos .producto-item h2,
#contenedor1_productos .producto-item h3,
#contenedor1_productos .producto-item h4,
#contenedor1_productos .producto-item h5,
#contenedor1_productos .producto-item h6,
#contenedor1_productos .product-card h1,
#contenedor1_productos .product-card h2,
#contenedor1_productos .product-card h3,
#contenedor1_productos .product-card h4,
#contenedor1_productos .product-card h5,
#contenedor1_productos .product-card h6,
#contenedor1_productos [class*="product"] h1,
#contenedor1_productos [class*="product"] h2,
#contenedor1_productos [class*="product"] h3,
#contenedor1_productos [class*="product"] h4,
#contenedor1_productos [class*="product"] h5,
#contenedor1_productos [class*="product"] h6 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 12px 12px 4px 12px !important;
    line-height: 1.3 !important;
    display: block !important;
    text-align: left !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
}

/* Asegurar que los precios se vean bien */
#contenedor1_productos .producto-item .precio,
#contenedor1_productos .product-card .precio,
#contenedor1_productos [class*="product"] .precio,
#contenedor1_productos .producto-item .price,
#contenedor1_productos .product-card .price,
#contenedor1_productos [class*="product"] .price {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #e4022b !important;
    margin: 0 !important;
    padding: 0px !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
}

/* Asegurar que los precios anteriores se vean */
#contenedor1_productos .producto-item .precio-anterior,
#contenedor1_productos .product-card .precio-anterior,
#contenedor1_productos [class*="product"] .precio-anterior,
#contenedor1_productos .producto-item .old-price,
#contenedor1_productos .product-card .old-price,
#contenedor1_productos [class*="product"] .old-price {
    font-size: 12px !important;
    color: #999 !important;
    text-decoration: line-through !important;
    margin: 0 !important;
    padding: 0px !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
}

/* Badge de descuento - posicionar en la esquina superior derecha de la imagen */
#contenedor1_productos .card_verde,
#contenedor1_productos .producto-item .card_verde,
#contenedor1_productos .product-card .card_verde,
#contenedor1_productos [class*="product"] .card_verde,
#contenedor1_productos .contenedor-precio .card_verde {
    outline: 1px solid #fff !important;
    border-radius: 50% !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    box-sizing: border-box !important;
    border-style: solid !important;
    border-width: 28px 30px 28px 25px !important;
    border-color: #096 !important;
    text-align: center !important;
    box-shadow: 1px 2px 7px 1px rgba(0, 0, 0, 0.4) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#contenedor1_productos .descuento-porcentaje,
#contenedor1_productos .producto-item .descuento-porcentaje,
#contenedor1_productos .product-card .descuento-porcentaje,
#contenedor1_productos [class*="product"] .descuento-porcentaje,
#contenedor1_productos .contenedor-precio .descuento-porcentaje {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-align: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Asegurar que el envío gratis se vea */
#contenedor1_productos .producto-item .envio,
#contenedor1_productos .product-card .envio,
#contenedor1_productos [class*="product"] .envio,
#contenedor1_productos .producto-item .shipping,
#contenedor1_productos .product-card .shipping,
#contenedor1_productos [class*="product"] .shipping {
    color: #28a745 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 12px 8px 12px !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
}

/* Asegurar que los botones se vean */
#contenedor1_productos .producto-item button,
#contenedor1_productos .product-card button,
#contenedor1_productos [class*="product"] button,
#contenedor1_productos .producto-item .btn,
#contenedor1_productos .product-card .btn,
#contenedor1_productos [class*="product"] .btn {
    width: calc(100% - 24px) !important;
    background: #e4022b !important;
    color: white !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 0 0 8px 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin: 0 12px 12px 12px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
}

#contenedor1_productos .producto-item button:hover,
#contenedor1_productos .product-card button:hover,
#contenedor1_productos [class*="product"] button:hover,
#contenedor1_productos .producto-item .btn:hover,
#contenedor1_productos .product-card .btn:hover,
#contenedor1_productos [class*="product"] .btn:hover {
    background: #c40226 !important;
}

/* Contenedor para precios alineados */
#contenedor1_productos .producto-item .precio-container,
#contenedor1_productos .product-card .precio-container,
#contenedor1_productos [class*="product"] .precio-container {
    padding: 0 12px 8px 12px !important;
    margin: 0 !important;
}

/* Eliminar todas las sombras y bordes de los elementos del carrusel */
#contenedor1_productos * {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
}

/* Excepción para badges de descuento - mantener estilos originales del grid */
#contenedor1_productos .card_verde,
#contenedor1_productos .descuento-porcentaje,
#contenedor1_productos .producto-item .card_verde,
#contenedor1_productos .producto-item .descuento-porcentaje,
#contenedor1_productos .product-card .card_verde,
#contenedor1_productos .product-card .descuento-porcentaje,
#contenedor1_productos [class*="product"] .card_verde,
#contenedor1_productos [class*="product"] .descuento-porcentaje,
#contenedor1_productos .contenedor-precio .card_verde,
#contenedor1_productos .contenedor-precio .descuento-porcentaje {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Asegurar que el contenedor de precio tenga posición relativa */
#contenedor1_productos .contenedor-precio {
    position: relative !important;
}

/* Posicionar el badge en la esquina superior derecha de la tarjeta completa */
#contenedor1_productos .producto-card,
#contenedor1_productos .producto-item,
#contenedor1_productos [class*="product"] {
    position: relative !important;
}

/* Posicionar el badge en la esquina superior derecha de la imagen */
#contenedor1_productos .producto-img {
    position: relative !important;
}

/* Badge posicionado sobre la imagen del carrusel */
#contenedor1_productos .contenedor-precio .card_verde {
    position: absolute !important;
    right: 10px !important;
    top: -160px !important; /* Mover hacia arriba para estar sobre la imagen */
    z-index: 9999 !important;
    pointer-events: none !important; /* Evitar que interfiera con clics */
}

/* Asegurar que el badge esté sobre la imagen, no sobre el texto */
#contenedor1_productos .producto-card {
    position: relative !important;
    overflow: visible !important;
}

#contenedor1_productos .producto-img {
    position: relative !important;
    z-index: 1 !important;
}


#contenedor1_productos.contenedor-productos-google-sheet::-webkit-scrollbar {
    height: 6px !important;
}

#contenedor1_productos.contenedor-productos-google-sheet::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
}

#contenedor1_productos.contenedor-productos-google-sheet::-webkit-scrollbar-thumb {
    background: #e4022b !important;
    border-radius: 3px !important;
}

#contenedor1_productos.contenedor-productos-google-sheet::-webkit-scrollbar-thumb:hover {
    background: #c40226 !important;
}

/* Override Sears CSS for full width */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-placeholder {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    color: #4a5568;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-placeholder:hover {
    border-color: #e4022b;
    background: #ebf8ff;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #e4022b;
}

.placeholder-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
}

/* Product Carousel Sections */
.product-carousel-section {
    padding: 5rem 0;
    background: #f7fafc !important;
}

/* SEO Content Sections */
/* Banner Promocional */
.banner-section {
    padding: 2rem 0;
    background: #ffffff !important;
}

.banner-container {
    text-align: center;
    max-width: 100%;
}

.promotion-banner {
    width: 100%;
    max-width: 1292px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.promotion-banner:hover {
    transform: scale(1.02);
}

/* Mostrar solo desktop por defecto */
.desktop-banner {
    display: block;
}

.mobile-banner {
    display: none;
}

.seo-content {
    padding: 3rem 0;
    background: #ffffff !important;
}

/* Tamaños de Colchones Section */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 3rem;
    font-weight: 500;
}

.section-footer {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    margin-top: 2rem;
    font-style: italic;
    font-weight: 500;
}

.size-dimensions {
    background: #e4022b;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    margin: 10px 0 15px 0;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

/* Categorías Completas de Colchones */
.all-categories {
    padding: 4rem 0;
    background: #ffffff;
}

.categories-title {
    text-align: center;
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.categories-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 3rem;
    font-style: italic;
}

.category-group {
    margin-bottom: 3rem;
}

.group-title {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-left: 1rem;
    border-left: 4px solid #e4022b;
}

.category-scroll {
    margin-bottom: 1rem;
}

.category-tags {
    margin-bottom: 0;
}

.category-tag {
    position: relative;
    min-width: 160px !important;
    height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 15px 10px !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.category-tag:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(228, 2, 43, 0.15) !important;
    border-color: #e4022b !important;
}

.category-tag img {
    width: 60px !important;
    height: 45px !important;
    object-fit: contain !important;
    margin-bottom: 8px !important;
}

.tag-text {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.category-tag:hover .tag-text {
    color: #e4022b !important;
}

/* Badges especiales */
.offer-badge,
.budget-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.2rem;
    z-index: 2;
}

.special-offer {
    background: #ffffff !important;
    color: #2d3748 !important;
    border-color: #e2e8f0 !important;
}

.special-offer .tag-text {
    color: #2d3748 !important;
}

.special-offer:hover {
    border-color: #e4022b !important;
}

.special-offer:hover .tag-text {
    color: #e4022b !important;
}

.budget-option {
    background: #ffffff !important;
    color: #2d3748 !important;
    border-color: #e2e8f0 !important;
}

.budget-option .tag-text {
    color: #2d3748 !important;
}

.budget-option:hover {
    border-color: #e4022b !important;
}

.budget-option:hover .tag-text {
    color: #e4022b !important;
}

/* Nuevos badges especiales */
.popular-badge,
.premium-badge,
.tech-badge,
.health-badge,
.baby-badge,
.medical-badge,
.combo-badge,
.outlet-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.2rem;
    z-index: 2;
}

/* Variantes especiales de tarjetas - Solo badges, sin fondos de color */
.popular-size .tag-text {
    font-weight: 700 !important;
}

/* Todas las tarjetas especiales mantienen el fondo blanco estándar */
.popular-size,
.premium-size,
.tech-advanced,
.health-focused,
.baby-focused,
.medical-grade,
.combo-deal,
.outlet-option {
    background: #ffffff !important;
    color: #2d3748 !important;
    border-color: #e2e8f0 !important;
}

.popular-size .tag-text,
.premium-size .tag-text,
.tech-advanced .tag-text,
.health-focused .tag-text,
.baby-focused .tag-text,
.medical-grade .tag-text,
.combo-deal .tag-text,
.outlet-option .tag-text {
    color: #2d3748 !important;
}

/* Hover effect uniforme para todas las tarjetas especiales */
.popular-size:hover,
.premium-size:hover,
.tech-advanced:hover,
.health-focused:hover,
.baby-focused:hover,
.medical-grade:hover,
.combo-deal:hover,
.outlet-option:hover {
    border-color: #e4022b !important;
}

.popular-size:hover .tag-text,
.premium-size:hover .tag-text,
.tech-advanced:hover .tag-text,
.health-focused:hover .tag-text,
.baby-focused:hover .tag-text,
.medical-grade:hover .tag-text,
.combo-deal:hover .tag-text,
.outlet-option:hover .tag-text {
    color: #e4022b !important;
}

.product-carousel-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.product-carousel-placeholder {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    color: #4a5568;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 auto;
    max-width: 800px;
}

.product-carousel-placeholder:hover {
    border-color: #e4022b;
    background: #ebf8ff;
}

.product-carousel-placeholder .placeholder-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #e4022b;
}

.product-carousel-placeholder .placeholder-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
}

.product-carousel-placeholder .placeholder-content p {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: #a0aec0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: #e4022b;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Estilos para carruseles con Algolia - Con scroll horizontal nativo */
.productos-carousel {
    padding: 1rem 0;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
    width: 100%;
    position: relative;
}

/* Personalizar scrollbar para carruseles de Algolia */
.productos-carousel::-webkit-scrollbar {
    height: 6px;
}

.productos-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.productos-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.productos-carousel::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Tarjetas de producto */
.productos-carousel .producto-card {
    width: 280px; /* Ancho fijo para scroll horizontal */
    height: auto;
    min-height: 400px; /* Altura mínima para uniformidad */
    margin: 0;
    position: relative;
    border: 1px solid #ededed;
    border-radius: 12px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.productos-carousel .producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #e4022b;
}

.productos-carousel .producto-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Limitar títulos de productos en carruseles */
.productos-carousel .producto-card h1,
.productos-carousel .producto-card h2,
.productos-carousel .producto-card h3,
.productos-carousel .producto-card .producto-titulo,
.productos-carousel .producto-card [class*="titulo"],
.productos-carousel .producto-card [class*="nombre"],
.productos-carousel .producto-card [class*="title"],
.productos-carousel .producto-card .card-title,
.productos-carousel .producto-card .product-title,
.productos-carousel .producto-card .nombre-producto {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* Máximo 2 líneas */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important; /* Mejor legibilidad */
    max-height: 2.8em !important; /* Altura ajustada (1.4em * 2) */
    margin-bottom: 8px !important;
    font-size: 13px !important; /* Tamaño reducido para mejor ajuste */
    font-weight: 500 !important;
    word-break: break-word !important;
    min-height: 2.8em !important; /* Altura mínima para consistencia */
}

/* Regla adicional para capturar cualquier texto de título */
.productos-carousel .producto-card .producto-info > *:first-child,
.productos-carousel .producto-card .info > *:first-child,
.productos-carousel .producto-card > div:not(.contenedor-precio) > *:first-child {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important;
    max-height: 2.8em !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    word-break: break-word !important;
    min-height: 2.8em !important;
}

/* Contenedor de precios al final */
.productos-carousel .producto-info .precio-container,
.productos-carousel .producto-info [class*="precio"],
.productos-carousel .producto-info [class*="price"] {
    margin-top: auto;
}

/* Responsive para carruseles */
@media (max-width: 768px) {
    .productos-carousel .producto-card {
        width: 220px;
        min-height: 320px; /* Altura reducida para tablet */
    }
    
    .productos-carousel .producto-info {
        padding: 12px;
    }
    
    /* Ajustar imágenes en tablet */
    .productos-carousel .producto-card img {
        max-height: 140px;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .productos-carousel {
        padding: 0.5rem 0 !important;
        margin: 1rem 0 !important;
    }
    
    /* Reducir espacio lateral en móvil */
    .carousel-wrapper {
        width: 98% !important;
        margin: 10px auto !important;
    }
    
    .productos-carousel .producto-card {
        width: 150px !important; /* Ancho más pequeño y forzado */
        min-width: 150px !important;
        max-width: 150px !important;
        min-height: 250px !important; /* Altura reducida */
        height: auto !important;
        border-radius: 8px !important;
        flex: none !important; /* Evitar flex que pueda expandir */
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
    
    .productos-carousel .producto-info {
        padding: 8px !important; /* Padding reducido */
    }
    
    /* Forzar que los slides no se expandan */
    .productos-carousel > div {
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        flex: none !important;
    }
    
    /* Ajustar imágenes en móvil */
    .productos-carousel .producto-card img {
        max-height: 100px !important;
        height: 100px !important;
        object-fit: contain !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Títulos en móvil - mantener 2 líneas visibles */
    .productos-carousel .producto-card h1,
    .productos-carousel .producto-card h2,
    .productos-carousel .producto-card h3,
    .productos-carousel .producto-card .producto-titulo,
    .productos-carousel .producto-card [class*="titulo"],
    .productos-carousel .producto-card [class*="nombre"],
    .productos-carousel .producto-card [class*="title"],
    .productos-carousel .producto-card .card-title,
    .productos-carousel .producto-card .product-title,
    .productos-carousel .producto-card .nombre-producto,
    .productos-carousel .producto-card .producto-info > *:first-child,
    .productos-carousel .producto-card .info > *:first-child,
    .productos-carousel .producto-card > div:not(.contenedor-precio) > *:first-child {
        font-size: 12px !important;
        line-height: 1.3 !important; /* Mejor legibilidad en móvil */
        max-height: 2.6em !important; /* Ajustado para 2 líneas */
        min-height: 2.6em !important; /* Consistencia en altura */
        margin-bottom: 6px !important;
    }
    
    /* Precios más compactos en móvil */
    .productos-carousel .producto-card [class*="precio"] {
        font-size: 14px !important;
        margin: 2px 0 !important;
    }
    
    .productos-carousel .producto-card .precio-anterior,
    .productos-carousel .producto-card [class*="anterior"] {
        font-size: 11px !important;
    }
    
    /* Envío gratis más pequeño */
    .productos-carousel .producto-card [class*="envio"],
    .productos-carousel .producto-card [class*="gratis"] {
        font-size: 10px !important;
        padding: 2px 4px !important;
    }
    
    /* Descuentos más pequeños */
    .productos-carousel .producto-card [class*="descuento"],
    .productos-carousel .producto-card .card_verde {
        transform: scale(0.8);
    }
}

/* Efectos de hover para las tarjetas */
.productos-carousel .producto-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.productos-carousel .producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #e4022b;
}

.carousel-wrapper a {
    text-decoration: none;
    color: inherit;
}

/* Estilos para las secciones de carruseles de Algolia */
.product-carousel-section {
    margin: 20px 0;
    padding: 30px 0;
}

.product-carousel-section h2 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.product-carousel-section .section-subtitle {
    color: #718096;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

/* Ajustar en móvil */
@media (max-width: 768px) {
    .product-carousel-section h2 {
        font-size: 1.5rem;
    }
    
    .product-carousel-section {
        margin: 5px 0;
        padding: 20px 0;
    }
}

/* ========================================
   PROTECCIÓN SELECTIVA CONTRA CSS DE SEARS
   ======================================== */

/* Solo proteger elementos específicos que puedan verse afectados por Sears */
.hero-slider h1,
.hero-slider h2,
.hero-slider h3,
.product-grid h1,
.product-grid h2,
.product-grid h3,
.seo-content h1,
.seo-content h2,
.seo-content h3,
.product-carousel-section h2 {
    font-family: 'Inter', sans-serif;
}

/* Proteger solo el body principal, no los elementos de Sears */
body:not(.sears-page) {
    font-family: 'Inter', sans-serif;
}

/* Asegurar que los contenedores principales mantengan su fuente */
.main-container:not(.sears-container) {
    font-family: 'Inter', sans-serif;
}

@media (max-width: 767.98px) {
    .productos-carousel .producto-card a {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .productos-carousel .producto-card {
        margin-left: 5px;
    }
    
    .productos-carousel .producto-img {
        flex-grow: 1;
        position: relative; 
        display: flex;
        align-items: center;
        padding: 10px;
    }
    
    .productos-carousel .card_verde {
        width: 34px;
        height: 34px;
        top: 8px;
        right: 8px;
        left: auto;
        box-shadow: 0 1px 4px rgba(0,0,0,0.2);
        position: absolute;
        z-index: 2;
        border-radius: 50%;
        background-color: #EB0028;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .productos-carousel .descuento-porcentaje {
        color: #fff;
        font-weight: 700;
        font-size: 10px;
        position: static;
        padding: 10px;
    }
    
    .productos-carousel .producto-info {
        width: auto !important;
        border-left: none !important;
        margin: 0 !important;
        padding: 5px 10px 10px 10px;
        flex-shrink: 0;
        border-top: 1px solid #f0f0f0;
    }
    
    .productos-carousel .product-description {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 8px;
        min-height: 0;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .logo-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }

    /* Hero Slider Mobile Optimizations */
    .hero-slider {
        height: 50vh;
        min-height: 250px;
        max-height: 350px;
        margin-top: 60px;
        padding: 0 0.5rem;
    }

    .slider-container {
        max-width: 100%;
        border-radius: 8px;
    }
    
    .slide img {
        object-fit: cover !important;
        object-position: center !important;
    }

    .slider-controls {
        padding: 0 1rem;
    }

    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
    }

    .slider-dots {
        bottom: 1.5rem;
        background: rgba(0, 0, 0, 0.3);
        padding: 8px 12px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .scroll-container {
        padding: 0.5rem 0;
    }

    .tag {
        height: 65px;
        line-height: 65px;
        font-size: 14px;
        margin: 0 10px 8px 0;
    }

    .tag img {
        height: 64px;
        margin-right: 8px;
    }

    /* .info-grid layout handled by specific mobile rules above */

    /* .benefits-grid layout handled by specific mobile rules above */

    .care-tips {
        grid-template-columns: 1fr;
    }

    .content-block h2 {
        font-size: 1.8rem;
    }

    /* Products responsive */
    .contenedor-productos-google-sheet {
        padding: 0 15px !important;
        gap: 15px !important;
    }

    #contenedor1_productos.contenedor-productos-google-sheet {
        gap: 15px !important;
    }

    /* Tablet: mostrar 3.5 productos + fragmento */
    #contenedor1_productos .producto-item,
    #contenedor1_productos .product-card,
    #contenedor1_productos [class*="product"] {
        flex: 0 0 calc(28% - 8px) !important; /* Mostrar 3.5 productos para indicar carrusel */
        min-width: 0 !important;
    }

    /* Ajustar textos en tablet */
    #contenedor1_productos .producto-item h1,
    #contenedor1_productos .producto-item h2,
    #contenedor1_productos .producto-item h3,
    #contenedor1_productos .product-card h1,
    #contenedor1_productos .product-card h2,
    #contenedor1_productos .product-card h3,
    #contenedor1_productos [class*="product"] h1,
    #contenedor1_productos [class*="product"] h2,
    #contenedor1_productos [class*="product"] h3 {
        font-size: 13px !important;
    }

    #contenedor1_productos .producto-item .precio,
    #contenedor1_productos .product-card .precio,
    #contenedor1_productos [class*="product"] .precio {
        font-size: 15px !important;
    }

    /* Badge de descuento en tablet */
    #contenedor1_productos .card_verde {
        right: 8px !important;
        top: 8px !important;
        border-width: 24px 26px 24px 22px !important;
    }
    
    #contenedor1_productos .descuento-porcentaje {
        font-size: 13px !important;
    }

    /* Ajustar imágenes en tablet */
    #contenedor1_productos .producto-item img,
    #contenedor1_productos .product-card img,
    #contenedor1_productos [class*="product"] img {
        max-height: 180px !important;
    }

    /* Ajustar títulos en tablet */
    #contenedor1_productos .producto-item h1,
    #contenedor1_productos .producto-item h2,
    #contenedor1_productos .producto-item h3,
    #contenedor1_productos .producto-item h4,
    #contenedor1_productos .producto-item h5,
    #contenedor1_productos .producto-item h6,
    #contenedor1_productos .product-card h1,
    #contenedor1_productos .product-card h2,
    #contenedor1_productos .product-card h3,
    #contenedor1_productos .product-card h4,
    #contenedor1_productos .product-card h5,
    #contenedor1_productos .product-card h6,
    #contenedor1_productos [class*="product"] h1,
    #contenedor1_productos [class*="product"] h2,
    #contenedor1_productos [class*="product"] h3,
    #contenedor1_productos [class*="product"] h4,
    #contenedor1_productos [class*="product"] h5,
    #contenedor1_productos [class*="product"] h6 {
        font-size: 13px !important;
    }

    /* Ajustar precios en tablet */
    #contenedor1_productos .producto-item .precio,
    #contenedor1_productos .product-card .precio,
    #contenedor1_productos [class*="product"] .precio,
    #contenedor1_productos .producto-item .price,
    #contenedor1_productos .product-card .price,
    #contenedor1_productos [class*="product"] .price {
        font-size: 15px !important;
    }



    /* Indicador responsive para tablet */
    #contenedor1_productos.contenedor-productos-google-sheet::after {
        font-size: 11px !important;
        padding: 4px 10px !important;
        top: -30px !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0 15px;
    }
    
    /* Mostrar imagen móvil en pantallas pequeñas */
    .desktop-banner {
        display: none;
    }
    
    .mobile-banner {
        display: block;
    }
    
    /* Tamaños de Colchones - Mobile */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-footer {
        font-size: 1rem;
    }
    
    .size-dimensions {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    /* Categorías Completas - Mobile */
    .all-categories {
        padding: 2rem 0;
    }
    
    .categories-title {
        font-size: 1.6rem;
    }
    
    .categories-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .group-title {
        font-size: 1.2rem;
        padding-left: 0.8rem;
    }
    
    .category-tag {
        min-width: 140px !important;
        height: 100px !important;
        padding: 10px 8px !important;
    }
    
    .category-tag img {
        width: 45px !important;
        height: 35px !important;
        margin-bottom: 6px !important;
    }
    
    .tag-text {
        font-size: 0.75rem !important;
    }
    
    /* Banner Promocional - Mobile */
    .banner-section {
        padding: 1rem 0;
    }
    
    .promotion-banner {
        border-radius: 4px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
    
    .promotion-banner:hover {
        transform: none;
    }

    .nav-container {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
        letter-spacing: 0.2px;
    }

    /* Hero Slider Extra Small Screens */
    .hero-slider {
        height: 32vh;
        min-height: 200px;
        max-height: 300px;
        margin-top: 0px;
        padding: 0px;
    }

    .slider-container {
        border-radius: 6px;
    }
    
    .slide img {
        object-fit: cover !important;
        object-position: center !important;
    }

    .slider-controls {
        padding: 0 0.5rem;
    }

    .prev-btn, .next-btn {
        width: 35px;
        height: 35px;
    }

    .slider-dots {
        bottom: 0rem;
        background: rgba(0, 0, 0, 0.4);
        padding: 6px 0px;
        border-radius: 0px;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .dot {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .dot.active {
        background: white;
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }

    .brands-section h2,
    .products-grid-section h2,
    .product-carousel-section h2 {
        font-size: 1.8rem;
    }

    .products-grid-section h1 {
        font-size: 2rem;
    }

    .products-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .scroll-container {
        padding: 0.3rem 0;
    }

    .tag {
        height: 99px;
        line-height: 99px;
        font-size: 13px;
        margin: 0 8px 6px 0;
        padding: 0 3px 0 3px;
    }

    .tag img {
        height: 99px;
        margin-right: 6px;
    }

    .content-block h2 {
        font-size: 1.6rem;
    }

    /* Products responsive - mobile */
    .contenedor-productos-google-sheet {
        padding: 0 10px !important;
        gap: 10px !important;
    }

    #contenedor1_productos.contenedor-productos-google-sheet {
        gap: 10px !important;
    }

    /* Móvil: mostrar 2.5 productos + fragmento */
    #contenedor1_productos .producto-item,
    #contenedor1_productos .product-card,
    #contenedor1_productos [class*="product"] {
        flex: 0 0 calc(40% - 4px) !important; /* Mostrar 2.5 productos para indicar carrusel */
        min-width: 0 !important;
    }

    /* Ajustar textos en móvil */
    #contenedor1_productos .producto-item h1,
    #contenedor1_productos .producto-item h2,
    #contenedor1_productos .producto-item h3,
    #contenedor1_productos .product-card h1,
    #contenedor1_productos .product-card h2,
    #contenedor1_productos .product-card h3,
    #contenedor1_productos [class*="product"] h1,
    #contenedor1_productos [class*="product"] h2,
    #contenedor1_productos [class*="product"] h3 {
        font-size: 12px !important;
    }

    #contenedor1_productos .producto-item .precio,
    #contenedor1_productos .product-card .precio,
    #contenedor1_productos [class*="product"] .precio {
        font-size: 14px !important;
    }

    #contenedor1_productos .producto-item .precio-anterior,
    #contenedor1_productos .product-card .precio-anterior,
    #contenedor1_productos [class*="product"] .precio-anterior {
        font-size: 11px !important;
    }

    #contenedor1_productos .card_verde {
        right: 6px !important;
        top: 6px !important;
        border-width: 20px 22px 20px 18px !important;
    }
    
    #contenedor1_productos .descuento-porcentaje {
        font-size: 11px !important;
    }

    #contenedor1_productos .producto-item .envio,
    #contenedor1_productos .product-card .envio,
    #contenedor1_productos [class*="product"] .envio {
        font-size: 11px !important;
    }

    /* Ajustar imágenes en móvil */
    #contenedor1_productos .producto-item img,
    #contenedor1_productos .product-card img,
    #contenedor1_productos [class*="product"] img {
        max-height: 160px !important;
    }

    /* Ajustar títulos en móvil */
    #contenedor1_productos .producto-item h1,
    #contenedor1_productos .producto-item h2,
    #contenedor1_productos .producto-item h3,
    #contenedor1_productos .producto-item h4,
    #contenedor1_productos .producto-item h5,
    #contenedor1_productos .producto-item h6,
    #contenedor1_productos .product-card h1,
    #contenedor1_productos .product-card h2,
    #contenedor1_productos .product-card h3,
    #contenedor1_productos .product-card h4,
    #contenedor1_productos .product-card h5,
    #contenedor1_productos .product-card h6,
    #contenedor1_productos [class*="product"] h1,
    #contenedor1_productos [class*="product"] h2,
    #contenedor1_productos [class*="product"] h3,
    #contenedor1_productos [class*="product"] h4,
    #contenedor1_productos [class*="product"] h5,
    #contenedor1_productos [class*="product"] h6 {
        font-size: 12px !important;
    }

    /* Ajustar precios en móvil */
    #contenedor1_productos .producto-item .precio,
    #contenedor1_productos .product-card .precio,
    #contenedor1_productos [class*="product"] .precio,
    #contenedor1_productos .producto-item .price,
    #contenedor1_productos .product-card .price,
    #contenedor1_productos [class*="product"] .price {
        font-size: 14px !important;
    }

    /* Ajustar badges en móvil */
    #contenedor1_productos .producto-item .badge,
    #contenedor1_productos .product-card .badge,
    #contenedor1_productos [class*="product"] .badge,
    #contenedor1_productos .producto-item .descuento,
    #contenedor1_productos .product-card .descuento,
    #contenedor1_productos [class*="product"] .descuento {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }



    /* Indicador responsive para móvil */
    #contenedor1_productos.contenedor-productos-google-sheet::after {
        font-size: 10px !important;
        padding: 3px 8px !important;
        top: -25px !important;
        right: 10px !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

