        * { box-sizing: border-box; }
        html { height: 100%; font-family: Arial, sans-serif; margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            background-color: #f8f9fa;
            
            /* EFECTO GRANULADO SVG INLINE */
            /* background-image removed for CPU performance */
            background-repeat: repeat;
            
            margin: 0;
            padding: 0;
            letter-spacing: 0.01em;
        }       
        main { flex: 1 0 auto; }
        a { text-decoration: none; color: inherit; }
        button, a { -webkit-tap-highlight-color: transparent; outline: none; }
        .container { margin: 0 auto; padding: 0 0; max-width: 100vw; }

        /* WYSIWYG content links */
        .category-description a, .accordion-content a {
            color: #f19a31; text-decoration: underline; font-weight: 500; transition: color 0.2s ease;
        }
        .category-description a:hover, .accordion-content a:hover {
            color: #d4800a;
        }

        /* HEADER */
        .header { background: linear-gradient(90deg, rgba(250, 248, 246, 0.8) 0%, rgba(255, 255, 255, 0.8) 90%); padding: 8px 0; color: #fff; position: sticky; top: 0; z-index: 9990; display: flex; align-items: center; border-top: 3px solid #f19a31; box-shadow: 0px 2px 8px -2px rgba(0, 0, 0, 0.2); }
        .logo { max-width: 100%; width: clamp(320px, 75vw, 340px); height: clamp(40px, 30vw, 42px);  aspect-ratio: 16/9;  }
        .header nav { display: flex; align-items: center; justify-content: space-between; width: 90%; gap: 10px; margin: 0 auto; }

        .nav-left { display: flex; align-items: center; margin-top: 8px; }
        .nav-right { display: flex; align-items: center; gap: 0; }
        #nav-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; opacity: 1; }
        #nav-menu li { position: relative; padding: 0 5px; border: 0; }
        #nav-menu>li>a,
        #nav-menu li div {
            color: black;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            /* div uses 500 */
            display: block;
            padding: 0.75rem 0;
            /* div uses block only, override logic handled by specific rules */
            transition: all 0.2s ease;
            cursor: pointer;
            position: relative;
            border-radius: 0px;
            /* div 4px */
            background-color: transparent;
            text-align: center;
        }
  
        
        .search-icon-mobile {
            display: block;
            /* Visible por defecto en escritorio */
            background: 0 0;
            border: none;
            color: #000;
            font-size: 18px;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            transition: background-color 0.3s;
        }
        .class_floating-search-container {
            display: none; 
            position: fixed; 
            top: 75px; /* Un poco más abajo para respirar respecto al header */
            right: 5%; /* Alineado con el margen de la web */
            z-index: 9999; 
            padding: 10px; 
            width: 25%; /* Un poco más ancho para que los resultados se lean bien */
            min-width: 320px; /* Evita que se rompa en pantallas medianas */
            transform: translateY(-15px); 
            opacity: 0; 
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease; 
        }
        .class_floating-search-container.active { 
            transform: translateY(0); 
            opacity: 1; 
        }

        /* La caja donde el usuario escribe */
        .floating-search-box {
            position: relative; 
            width: 100%; 
            background-color: #ffffff; 
            border-radius: 12px; 
            border: 1px solid #e2e8f0; 
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Sombra elegante */
            transition: all 0.3s ease;
        }

        /* Efecto Glow cuando el usuario hace clic para escribir */
        .floating-search-box:focus-within {
            border-color: #f19a31;
            box-shadow: 0 10px 30px rgba(241, 154, 49, 0.15);
        }

        .floating-search-box input {
            width: 100%; 
            height: 48px; /* Más alto y cómodo */
            padding: 0 45px 0 20px; 
            font-size: 1.05rem; 
            border: none; /* Quitamos el borde interno */
            border-radius: 12px; 
            outline: none; 
            background-color: transparent; 
            color: #1e293b; 
            font-weight: 500;
        }
        .floating-search-box input::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }

        /* Botón de Cerrar (X) */
        .floating-search-close {
            position: absolute; 
            top: 50%; 
            right: 5px; 
            transform: translateY(-50%);
            background: none; 
            border: none; 
            color: #94a3b8; 
            font-size: 20px; 
            cursor: pointer; 
            width: 40px; 
            height: 40px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            transition: all 0.3s ease;
        }
        .floating-search-close:hover { 
            color: #f19a31; 
            transform: translateY(-50%) rotate(90deg) scale(1.1); /* Gira sutilmente */
        }

        /* Contenedor de los resultados */
        .floating-search-results {
            width: 100%; 
            margin-top: 12px; 
            background-color: #ffffff; 
            border-radius: 12px; 
            border: 1px solid #e2e8f0;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); 
            max-height: 60vh; 
            overflow-y: auto; 
            overflow-x: hidden; 
            position: absolute; 
            display: none; 
            z-index: 1002;
            padding: 10px; /* Padding interno para que los ítems no toquen el borde */
            /* Estilo del scrollbar */
            scrollbar-width: thin; 
            scrollbar-color: #cbd5e1 transparent;
        }
        .floating-search-results::-webkit-scrollbar { width: 6px; }
        .floating-search-results::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }
        .floating-search-results.active { 
            display: block; 
            animation: fadeInUp 0.3s ease forwards; 
        }

        /* Cada ítem de resultado (Producto) */
        .floating-search-result-item {
            display: flex; 
            align-items: center; 
            padding: 12px 15px; 
            border-radius: 8px; 
            cursor: pointer; 
            transition: all 0.25s ease; 
            text-decoration: none; 
            background-color: transparent;
            border: 1px solid transparent;
            margin-bottom: 4px;
        }
        .floating-search-result-item:last-child { margin-bottom: 0; }
        .floating-search-result-item:hover { 
            background-color: #f8fafc; 
            border-color: #e2e8f0;
        }

        /* La imagen en miniatura */
        .floating-product-img {
            width: 45px; height: 45px;
            border-radius: 6px;
            object-fit: contain;
            background-color: #ffffff;
            border: 1px solid #f1f5f9;
            padding: 2px;
            margin-right: 15px;
            flex-shrink: 0; 
        }

        
        .hamburger { display: none; background: none; border: none; padding: 0.5rem; width: 30px; height: 40px; z-index: 1001; }
        .hamburger span { display: block; width: 20px; height: 2px; background-color: black; margin: 4px auto; }
        .dropdown-menu { display: none; }

        /* BREADCRUMBS */
        .breadcrumb-wrapper-ext { box-sizing: border-box; max-width: 100%; width: 100%; margin: 20px auto; }
        .breadcrumb-content-int { background-color: #fff; padding: 1rem 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.15); justify-content: space-between; align-items: center; padding-left: 8rem; padding-right: 2rem; }
        .breadcrumb-actual-links { color: #555; align-items: center; flex-wrap: wrap; justify-content: flex-start; gap: 5px; }
        .breadcrumb-actual-links a { color: #f19a31; font-size: 1em; }
        .breadcrumb-separator { margin: 0; padding: 0 0.2em; color: #777; }
        .breadcrumb-current { color: #333; font-weight: 700; font-size: 1.1em; }
        #breadcrumb-back-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; background-color: #ffffff; color: #475569; font-size: 0.9rem; font-weight: 600; border: 1px solid #e2e8f0; border-radius: 8px; }
        #breadcrumb-back-button i { color: #f19a31; font-size: 0.85rem; }
        .mobile-back-btn, .mobile-filter-toggle-btn { display: none; }

        /* FAB Filtro: floating action button centrado en la parte inferior.
           Aparece tras scrollear y perder de vista el botón #mobile-filter-toggle.
           Cumple touch ≥44px. */
        .filter-fab {
            position: fixed;
            left: 50%;
            bottom: 24px;
            z-index: 9996;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 48px;
            padding: 0 22px 0 18px;
            background: linear-gradient(135deg, #f19a31 0%, #e67a00 100%);
            color: #fff;
            border: none;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.92rem;
            letter-spacing: 0.02em;
            cursor: pointer;
            box-shadow: 0 10px 28px rgba(241, 154, 49, 0.45),
                        0 2px 6px rgba(0, 0, 0, 0.15);
            opacity: 0;
            transform: translate(-50%, 20px) scale(0.92);
            pointer-events: none;
            transition: opacity 220ms ease, transform 220ms ease, bottom 220ms ease;
        }
        .filter-fab[hidden] { display: none; }
        .filter-fab.is-visible {
            opacity: 1;
            transform: translate(-50%, 0) scale(1);
            pointer-events: auto;
        }
        .filter-fab:hover { box-shadow: 0 14px 32px rgba(241, 154, 49, 0.55); }
        .filter-fab.is-visible:active { transform: translate(-50%, 0) scale(0.96); }
        .filter-fab i { font-size: 1rem; }
        .filter-fab-label { white-space: nowrap; }

        /* Si el quote-cart toggle está activo, subir el FAB para no taparlo. */
        body:has(#quoteCartToggle) .filter-fab { bottom: 90px; }

        @media (prefers-reduced-motion: reduce) {
            .filter-fab {
                transition: opacity 1ms;
                transform: translate(-50%, 0) !important;
            }
        }

        /* SIDEBAR & PRODUCTS GRID */
        .products-page-container { display: grid; grid-template-columns: 280px 1fr; gap: 30px; max-width: 90%; margin: 0 auto 30px auto; padding: 0 1rem; }
        .product-filters-sidebar { background-color: #ffffff; padding: 1.8rem; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08); max-height: calc(100dvh - 100px); overflow-y: auto; position: sticky; top: 90px; z-index: 90; display: flex; flex-direction: column; align-self: flex-start; scrollbar-width: thin; scrollbar-color: #f19a31 transparent; }
        .product-filters-sidebar::-webkit-scrollbar { width: 6px; }
        .product-filters-sidebar::-webkit-scrollbar-button { display: none !important; height: 0 !important; width: 0 !important; }
        .product-filters-sidebar::-webkit-scrollbar-track { background: transparent; }
        .product-filters-sidebar::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #fbd38d 0%, #f19a31 100%); border-radius: 10px; min-height: 40px; }
        .product-filters-sidebar::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #f19a31 0%, #d47a18 100%); }
        .filters-header, .close-filters-btn { display: none; }
        .filter-group { margin-bottom: 0; display: flex; flex-direction: column; }
        /* El primer filter-group (categorías) NO crece artificialmente - se ajusta a su contenido */
        .filter-group:first-child { flex-grow: 0; overflow: visible; }
        .filter-group h4 { font-size: 1rem; color: #1e293b; font-weight: 800; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; margin-top: 0; margin-bottom: 15px; text-transform: uppercase; flex-shrink: 0; }
        
        /* ACORDEON FILTROS DINAMICOS */
        .filter-group-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; margin-bottom: 0; cursor: pointer; user-select: none; }
        .filter-group-header h4 { font-size: 1rem; color: #1e293b; font-weight: 800; border-bottom: none; padding-bottom: 0; margin: 0; text-transform: uppercase; }
        .filter-group-header i { font-size: 0.85rem; color: #94a3b8; transition: transform 0.3s ease; }
        .filter-group-header.collapsed i { transform: rotate(-180deg); }
        /* El contenedor del contenido acordeón */
        .filter-group-content {
            overflow: hidden;
            transition: max-height 0.35s ease, padding 0.35s ease;
            max-height: 600px;
            padding-top: 12px;
        }
        .filter-group-content.collapsed { max-height: 0 !important; padding-top: 0; padding-bottom: 0; }
        /* Los filter-groups dinámicos (con acordeón) no crecen */
        .filter-group:has(.filter-group-header) { flex-grow: 0; overflow: visible; margin-top: 0; padding-top: 14px; border-top: none; }
        .sidebar-menu { list-style: none; padding: 0; margin: 0; overflow: visible; padding-right: 5px; }
        .sidebar-menu::-webkit-scrollbar { width: 6px; }
        .sidebar-menu::-webkit-scrollbar-track { background: #f8fafc; border-radius: 10px; }
        .sidebar-menu::-webkit-scrollbar-thumb { background: #f7c186; border-radius: 10px; }
        .sidebar-menu::-webkit-scrollbar-thumb:hover { background: #f19a31; }
        .sidebar-menu > li { margin-bottom: 5px; border-bottom: 1px solid #f8fafc; }
        .filter-item-wrapper { display: flex; justify-content: space-between; align-items: center; border-radius: 6px; }
        .filter-item-wrapper > a { flex-grow: 1; padding: 10px 8px; font-size: 0.95rem; color: #334155; font-weight: 600; text-decoration: none; }
        .submenu-toggle { background: transparent; border: none; color: #94a3b8; padding: 10px 12px; font-size: 0.85rem; }
        .submenu { list-style: none; padding-left: 0; margin-left: 12px; border-left: 2px solid #e2e8f0; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; }
        .filter-buttons { margin-top: 1.5rem; border-top: 1px solid #f1f5f9; padding-top: 1.5rem; display: flex; flex-direction: column; }
        .btn-clear-filters { display: block; width: 100%; padding: 12px; background-color: #f8fafc; color:#475569; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.95rem; font-weight: 600; text-align: center; }
        /* Estilo Premium para el "Ver Todos" dentro del submenú */
        .submenu a.ver-todos-link {
            font-weight: 700;
            padding-bottom: 10px;
            padding-top: 10px;
            margin-top: -4px;
        }

        /* Quitamos la barra lateral gris estándar para que "Ver Todos" sea diferente a los demás ítems */
        .submenu a.ver-todos-link::before {
            display: none; 
        }

        .submenu a.ver-todos-link:hover {
            background-color: transparent;
            padding-left: 24px; /* Pequeño desplazamiento al hacer hover */
        }

        /* DYNAMIC FILTERS CSS */
        /* ─── Premium Filter Checkbox ─── */
        .filter-checkbox-list { list-style: none; padding: 0; margin: 0; }
        .filter-checkbox-list > li { margin-bottom: 2px; }

        .filter-checkbox-item {
            display: flex;
            align-items: center;
            gap: 9px;
            cursor: pointer;
            font-size: 0.83rem;
            font-weight: 500;
            color: #4a5568;
            position: relative;
            user-select: none;
            padding: 6px 9px 6px 8px;
            border-radius: 8px;
            border: 1px solid transparent;
            transition: all 0.18s ease;
            letter-spacing: 0.01em;
        }
        .filter-checkbox-item:hover {
            color: #b96b0e;
            background-color: #fff8ee;
            border-color: #fde9c8;
        }

        /* Ocultar el checkbox nativo */
        .filter-checkbox-item input[type='checkbox'] {
            appearance: none;
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            border: 1.8px solid #cbd5e1;
            border-radius: 4px;
            cursor: pointer;
            margin: 0;
            flex-shrink: 0;
            background-color: #fff;
            transition: all 0.18s ease;
            position: relative;
        }
        .filter-checkbox-item input[type='checkbox']::after {
            content: '';
            position: absolute;
            top: 1px;
            left: 4px;
            width: 5px;
            height: 9px;
            border: 2px solid transparent;
            border-top: none;
            border-left: none;
            transform: rotate(45deg) scale(0);
            transition: transform 0.15s ease, border-color 0.15s ease;
        }
        .filter-checkbox-item input[type='checkbox']:checked {
            background-color: #f19a31;
            border-color: #f19a31;
            box-shadow: 0 2px 6px rgba(241,154,49,0.35);
        }
        .filter-checkbox-item input[type='checkbox']:checked::after {
            border-color: #fff;
            transform: rotate(45deg) scale(1);
        }
        .filter-checkbox-item input[type='checkbox']:checked ~ span {
            font-weight: 600;
            color: #b96b0e;
        }
        .filter-checkbox-item:has(input:checked) {
            background-color: #fff8ee;
            border-color: #fde9c8;
            color: #b96b0e;
        }

        /* Color swatch (sin cambios estructurales) */
        .color-swatch-filter { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #e2e8f0; vertical-align: middle; transition: all 0.2s; flex-shrink: 0; }
        .filter-checkbox-item input[type='checkbox']:checked + .color-swatch-filter { border-color: #f19a31; transform: scale(1.1); box-shadow: 0 0 5px rgba(241,154,49,0.5); }


        #productos { padding: 0.8rem 0.2rem; text-align: center; margin-bottom: 30px; }
        #productos-titulo { font-size: 2.4rem; color: #1e293b; font-weight: 800; margin-top: 0; margin-bottom: 1.5rem; letter-spacing: -0.5px; position: relative; display: inline-block; width: 100%; word-break: break-word !important;}
        #productos-titulo::after { content: ''; display: block; width: 60px; height: 4px; background-color: #f19a31; border-radius: 2px; margin: 15px auto 0 auto; }
        .category-description-wrapper { text-align: center; max-width: 1000px; margin: 1.5rem auto 3rem auto; padding-bottom: 0; box-shadow: none; border-bottom: none; }
        .accordion-wrapper { max-width: 1000px; margin: 0 auto; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); display: none; opacity: 0; max-height: 0; overflow: hidden; visibility: hidden; transition: all 0.5s ease-in-out; }
        .accordion-item { border-bottom: 1px solid #e2e8f0; position: relative; }
        .accordion-header { width: 100%; padding: 20px 25px; background: transparent; border: none; text-align: left; font-size: 1.05rem; font-weight: 600; color: #1e293b; display: flex; justify-content: space-between; align-items: center; }
        .accordion-content { max-height: 0; overflow: hidden; padding: 0 25px; background-color: #fffaf5; }
        .category-description { font-size: 1.15rem; word-break: break-word; color: #475569; line-height: 1.75; margin: 0 auto; max-width: 800px; padding: 0 1.5rem; max-height: 0; overflow: hidden; text-align: justify; hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; }
        .toggle-description-button { display: inline-block; margin-top: 1rem; margin-bottom: 1.5rem; padding: 8px 25px; font-size: 0.9rem; font-weight: 600; color: #fff; background-color: #2c3e50; border: none; border-radius: 8px; }
        
        .category-description-wrapper > .accordion-wrapper.expanded { display: block; opacity: 1; animation: fadeIn 0.5s ease forwards; max-height: none; visibility: visible; margin-top: 20px; }
        .category-description.expanded { max-height: none; padding-bottom: 1.5rem; }

        .producto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 350px)); justify-content: center; gap: 30px; width: 100%; margin: 0 auto; padding: 0; }
        .producto-item { border: 1px solid #ddd; padding: 1.2rem; border-radius: 10px; background-color: white; display: flex; flex-direction: column; justify-content: space-between; align-items: center; box-shadow: 0 10px 20px rgba(0,0,0,0.1); width: 100%; max-width: 380px; min-height: 380px; text-align: center; position: relative; }
        .product-badge-pill { display:inline-block; padding:.2rem .6rem; border-radius:20px; font-size:.68rem; font-weight:700; letter-spacing:.3px; text-transform:uppercase; background:rgba(15,23,42,.75); color:#f8fafc; border:1px solid rgba(241,154,49,.5); line-height:1.4; white-space:nowrap; backdrop-filter:blur(4px); }
        .product-image-container { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 1rem; }
        .producto-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
        .producto-item h2 { font-size: 1.25rem; margin: 0.5rem 0; color: #333; font-weight: 600; word-break: break-word; overflow-wrap: break-word; }
        .producto-item p { font-size: 0.9rem; color: #555; line-height: 1.5; min-height: 10px; margin: 0 0 1rem 0; flex-grow: 1; text-align: center; word-break: break-word; overflow-wrap: break-word; overflow: hidden; }
        .btn { display: inline-block; padding: 10px 25px; background-color: #2c3e50; color: white; text-decoration: none; border-radius: 8px; font-size: 0.9rem; font-weight: 500; min-width: 150px; margin-top: auto; }

        /* FLOAT BUTTONS */
        .float-buttons, .float-buttonsleft { position: fixed; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
        .float-buttons { bottom: 25px; right: -22px; align-items: flex-end; }
        .float-button, .float-button2 { width: 80px; height: 50px; border-radius: 40px; display: flex; align-items: center; justify-content: left; color: #fff; padding: 0 15px; opacity: 1; border: 2px solid transparent; background-clip: padding-box; font-size: 28px; }
        .whatsapp-float { background-color: #25d366; font-size: 29px; }
        .email-float { background-color: #ff4500; }
        .phone-float, .contact-main-float { display: none; }
        #btnUp { height: 0; padding: 0; margin: 0; opacity: 0; visibility: hidden; }
        .performance-toggle-mobile { position: fixed; bottom: 90px; left: -22px; z-index: 7000; display: none; align-items: center; }
        .performance-toggle-mobile {
            position: fixed; bottom: 90px; left: -22px; z-index: 7000; display: none; align-items: center;
        }
        .performance-toggle-mobile-button {
            width: 60px; height: 45px; background-color: #333333d5; color: white; border-radius: 40px; display: flex; align-items: center; justify-content: right; font-size: 25px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(255,255,255,0.1); outline: none; position: relative; padding: 0 15px; -webkit-tap-highlight-color: transparent;
        }
        .performance-toggle-mobile-button:hover { transform: scale(1.1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); }
        .performance-toggle-mobile-button.active-mode { background-color: #f19a31; }
        .performance-toggle-mobile-button.active-tap { transform: scale(0.92); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
        .performance-toggle-mobile-button i { transition: transform 0.4s ease-out; }
        .performance-toggle-mobile-button.active-mode i { transform: rotate(180deg); }
        .performance-toggle-mobile-tooltip {
            position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(-10px); background-color: rgba(51, 51, 51, 0.9); color: white; padding: 6px 12px; border-radius: 5px; font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s; pointer-events: none; box-shadow: 0 2px 5px rgba(0,0,0,0.15);
        }
        .performance-toggle-mobile-button.show-tooltip .performance-toggle-mobile-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); transition-delay: 0s; }

        /* MEDIA QUERIES */
        @media (min-width: 1051px) {
            #nav-menu > li:not(:last-child)::after { content: ""; position: absolute; right: -0.75rem; top: 50%; transform: translateY(-50%); height: 20px; width: 1px; background-color: #484848; }
            .performance-toggle-mobile { display: flex !important; }
            .breadcrumb-actual-links {

                display: flex;
                flex-wrap: wrap;
                justify-content: flex-start;
            }
        }
        @media (min-width: 931px) and (max-width: 1366px) { .breadcrumb-content-int { padding-left: 6.2rem; } }
        @media (max-width: 1600px) { .breadcrumb-content-int { padding-left: 7rem; padding-right: 2rem; } }
        @media (max-width: 1400px) { .breadcrumb-content-int { padding-left: 6.7rem; padding-right: 2rem; } }
        @media (max-width: 1200px) { .logo { width: clamp(320px, 75vw, 340px); height: clamp(40px, 30vw, 42px); } }
        @media (max-width: 1050px) {
            .header { padding: 0.5rem 1rem; }
            .header nav { justify-content: space-between; padding: 0.3rem 0.5rem; position: relative; width: 100%; height: 58px; }
            .nav-left { margin-top: 10px; }
            .hamburger { display: block; }
            .breadcrumb-actual-links .breadcrumb-current {
                color: #333;
                font-weight: 700;
                font-size: 1.1em;
            }
            .search-icon-mobile { display: none; }
            #nav-menu { position: fixed; top: 0; left: -100%; height: 100vh; width: 80%; gap:0; background-color: #f5f5f5; z-index: 9999; display: flex; flex-direction: column; margin-top: 0; padding: 0; }
            #nav-menu li a,
            #nav-menu li div {
                padding: 1.2rem 1.5rem;
                font-size: 15px;
                color: #333;
                text-align: right;
                width: 101%;
                text-decoration: none;
                display: block;
                transition: background-color 0.2s ease, color 0.2s ease;
                border-bottom: 1px solid #e0e0e0;
            }
            .products-page-container { grid-template-columns: 1fr; padding: 0; }
            .product-filters-sidebar { display: none; } /* Controlled by JS strictly */
            /* Cuando JS lo muestra en móvil: panel tipo drawer fijo que llega hasta el borde inferior */
            .product-filters-sidebar[style*="block"],
            .product-filters-sidebar[style*="flex"] {
                display: flex !important;
                position: fixed;
                top: 0;
                left: 0;
                width: 88%;
                max-width: 320px;
                height: auto;
                min-height: 200px;
                max-height: 100dvh;
                border-radius: 0 16px 16px 0;
                z-index: 9800;
                overflow-y: auto;
                box-shadow: 4px 0 30px rgba(0,0,0,0.2);
                align-self: auto;
                padding: 0 1.4rem 1.4rem 1.4rem;
            }
            .product-filters-sidebar[style*="block"] .filters-header,
            .product-filters-sidebar[style*="flex"] .filters-header {
                display: flex;
                justify-content: flex-end;
                flex-shrink: 0;
                position: sticky;
                top: 0;
                margin-left: -1.4rem;
                margin-right: -1.4rem;
                margin-top: -1.4rem;
                background: #ffffff;
                z-index: 10;
                padding: 0.9rem 1.4rem 0.7rem 1.4rem;
                border-bottom: 1px solid #f1f5f9;
                box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            }
            .product-filters-sidebar[style*="block"] .close-filters-btn,
            .product-filters-sidebar[style*="flex"] .close-filters-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                background: #f1f5f9;
                border: none;
                width: 34px;
                height: 34px;
                border-radius: 50%;
                font-size: 1.3rem;
                color: #475569;
                cursor: pointer;
                transition: background 0.2s;
            }
            .product-filters-sidebar[style*="block"] .close-filters-btn:hover,
            .product-filters-sidebar[style*="flex"] .close-filters-btn:hover {
                background: #fee2e2;
                color: #ef4444;
            }
            .mobile-filter-toggle-btn { display: block; width: calc(100% - 2rem); margin: 0 auto 1.5rem auto; padding: 12px; background-color: #2c3e50; color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
            .mobile-back-btn { display: block; width: calc(100% - 2rem); margin: 0 auto 0.8rem auto; padding: 10px; background-color: #2c3e50; color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 500; text-align: center; }
            #breadcrumb-back-button { display: none; }
            .breadcrumb-wrapper-ext { margin-top: 15px; margin-bottom: 15px; padding: 0 1rem; }
            .breadcrumb-content-int { padding: 0.4rem 0.8rem; border-radius: 8px; flex-wrap: wrap; }
            
            .contact-main-float { display: flex !important; background-color: #555; order: 4; }
            .float-buttons .phone-float, .float-buttons .email-float, .float-buttons .whatsapp-float { display: none; margin-bottom: 0; }
            .float-button.btnup-float { order: 5; display: flex !important; }
        }
        @media (max-width: 800px) {
        }
        @media (max-width: 768px) {
            #productos-titulo { font-size: 1.8rem; margin-bottom: 1.2rem; }
            #productos-titulo::after { width: 45px; height: 3px; margin-top: 10px; }
            .producto-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
            .producto-item { min-height: 320px; padding: 1rem; }
            .product-image-container { height: 180px; }
        }
        @media (max-width: 600px) {
            .producto-grid { grid-template-columns: 1fr; padding: 0; }
            #productos { padding: 0.8rem; }
            .mobile-filter-toggle-btn { padding: 10px; font-size: 0.8rem; }
            .mobile-back-btn { font-size: 0.8rem; }
            .toggle-description-button { font-size: 0.8rem; }
        }
        @media (max-width: 550px) {
            .header nav { height: 50px !important; }
            .breadcrumb-actual-links .breadcrumb-current {
                color: #333;
                font-weight: 700;
                font-size: 1.1em;
            }
            .logo { width: clamp(280px, 50vw, 240px); height: clamp(38px, 30vw, 35px); aspect-ratio: 16/9; }
            .float-button, .float-button2 { width: 70px; height: 50px; font-size: 25px; padding: 0 15px; }
        }
        @media (max-width: 480px) {
            .header nav { padding: 0.3rem 0.2rem; }
            .float-button, .float-button2 { width: 65px; height: 45px; font-size: 24px; padding: 0 12px; }
            .performance-toggle-mobile { bottom: 90px; }
        }
    
        /* =========================================
    COOKIE CONSENT BANNER (PREMIUM)
    ========================================= */
    .cookie-banner {
        position: fixed;
        z-index: 999999; /* Por encima de todo, incluidos los botones flotantes */
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        gap: 15px;

        /* Posición Escritorio: Inferior Izquierda */
        bottom: 30px;
        left: 30px;
        width: 380px;
        max-width: calc(100vw - 60px);
        border-radius: 16px;
        padding: 22px;
        transform: translateY(50px) scale(0.95);
        pointer-events: none; /* No bloquea clics mientras está oculto */
    }

    .cookie-banner.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto; /* Se vuelve interactivo */
    }

    .cookie-content {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }

    .cookie-icon {
        font-size: 1.8rem;
        color: #f19a31; /* Naranja corporativo */
        flex-shrink: 0;
        margin-top: 2px;
    }

    .cookie-text h4 {
        margin: 0 0 6px 0;
        font-size: 1.05rem;
        color: #1e293b;
        font-weight: 800;
        letter-spacing: -0.3px;
    }

    .cookie-text p {
        margin: 0;
        font-size: 0.85rem;
        color: #475569;
        line-height: 1.5;
    }

    .cookie-actions {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .btn-cookie {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.9rem;
        font-weight: 700;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        border: none;
        outline: none;
    }

    .btn-cookie-reject {
        background-color: transparent;
        color: #64748b;
        border: 1px solid #cbd5e1;
    }

    .btn-cookie-reject:hover {
        background-color: #f8fafc;
        color: #1e293b;
        border-color: #94a3b8;
    }

    .btn-cookie-accept {
        background-color: #f19a31;
        color: #ffffff;
        border: 1px solid #f19a31;
        box-shadow: 0 4px 10px rgba(241, 154, 49, 0.2);
    }

    .btn-cookie-accept:hover {
        background-color: #d97706;
        border-color: #d97706;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(241, 154, 49, 0.35);
    }

    /* =========================================
    COOKIE BANNER: RESPONSIVE MÓVIL (<= 768px)
    ========================================= */
    @media (max-width: 768px) {
        .cookie-banner {
            bottom: 0;
            left: 0;
            width: 100%; /* Ocupa todo el ancho */
            max-width: 100%;
            border-radius: 20px 20px 0 0; /* Bordes redondeados solo arriba */
            border-bottom: none;
            border-left: none;
            border-right: none;
            padding: 20px 20px 25px 20px; /* Padding inferior extra para iOS (Safe Area) */
            transform: translateY(100%); /* Escondido debajo de la pantalla */
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        }
        
        .cookie-banner.show {
            transform: translateY(0); /* Sube desde abajo */
        }
    }

    /* Para pantallas súper pequeñas (<= 360px) */
    @media (max-width: 360px) {
        .cookie-actions {
            flex-direction: column; /* Apila los botones si la pantalla es muy estrecha */
        }
        .btn-cookie {
            width: 100%;
        }
    }
    /* Reservar espacio para íconos Font Awesome antes de que cargue la fuente */
   

    .arrow {
        display: inline-block;
        width: 1em;      /* reserva el espacio aunque la fuente no cargó */
        height: 1em;
        vertical-align: middle;
        margin-left: 4px;
    }

    /* Evitar que el nav se mueva mientras cargan los íconos */
    @media (min-width: 1051px) {
    #nav-menu li a {
            display: flex;
            align-items: center;
            gap: 4px;
            white-space: normal;
        }
    }
    @media (max-width: 1050px) {
        #nav-menu li a {
        display: flex;
        gap: 4px;
        white-space: normal;
        justify-content: space-between;
        align-items: baseline;
        flex-direction: row-reverse;
        }
    }
    </style>

