/* Primera mejora del catálogo: información visible en todas las pantallas. */
.galeria-item[hidden],.catalog-empty[hidden]{display:none!important}
.catalog-filters{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;border:1px solid var(--border);background:var(--surface);padding:1.2rem;margin-bottom:.8rem}
.catalog-filters label{display:flex;flex-direction:column;gap:.45rem;font-size:.8rem;color:var(--text-muted)}
.catalog-search{flex:1 1 280px}
.catalog-filters input[type="search"],.catalog-filters select{background:var(--bg);color:var(--text);border:1px solid var(--border);font:inherit;font-size:1rem;padding:.7rem;min-height:46px;width:100%;border-radius:0}
.catalog-filters select{min-width:190px;max-width:100%}
.catalog-filters .catalog-stock{flex-direction:row;align-items:center;min-height:46px;gap:.6rem;cursor:pointer}
.catalog-stock input{width:18px;height:18px;accent-color:var(--gold)}
.catalog-reset{min-height:46px;padding:.7rem 1rem;font:inherit;font-size:.8rem;border:1px solid var(--border);background:transparent;color:var(--text);cursor:pointer}
.catalog-reset:hover{border-color:var(--gold)}
.catalog-filters input:focus-visible,.catalog-filters select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.catalog-results{color:var(--text-muted);font-size:.85rem;margin-bottom:1.4rem}
.catalog-empty{border:1px solid var(--border);color:var(--text-muted);padding:2rem;text-align:center;line-height:1.7}
@media(max-width:540px){.catalog-filters{padding:1rem;gap:.9rem}.catalog-filters>label:not(.catalog-stock){flex:1 1 100%;min-width:0}.catalog-reset{width:100%}}
[data-theme="dark"]{--text-muted:#b4b1a8;--text-dim:#a39f94}
[data-theme="light"]{--text-dim:#655e55}
body{font-weight:400}
nav{position:sticky;min-height:72px}
.nav-links a{font-size:.75rem;letter-spacing:.08em}
.nav-pill,.btn-primary{color:#17140c!important}
.theme-switch,.hamburger{background:transparent;color:var(--text);font:inherit}
.hamburger{border:0;min-width:44px;min-height:44px;justify-content:center;align-items:center}
.theme-switch{min-height:44px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:5px}
.skip-link{position:fixed;top:-100px;left:1rem;z-index:1000;background:var(--gold);color:#17140c;padding:1rem}
.skip-link:focus{top:1rem}
.hero{min-height:0!important;padding:3.5rem 3rem 2.5rem!important;max-width:1440px;margin:auto}
.hero-eyebrow,.hero-title,.hero-sub{opacity:1;animation:none}
.hero-eyebrow{margin-bottom:1rem;letter-spacing:.16em}
.hero-title{font-size:clamp(2.8rem,5vw,4.8rem)!important;line-height:1.05}
.hero-sub{margin:1.2rem 0 1.5rem;max-width:620px;font-size:1rem}
.catalog-intro{display:flex;gap:.6rem;flex-wrap:wrap;list-style:none;color:var(--text-muted);font-size:.8rem}
.catalog-intro li{border:1px solid var(--border);padding:.5rem .8rem}
:is(#gym,#hogar){padding:2rem 3rem 3rem;scroll-margin-top:90px}
.catalog-wrap{max-width:1344px;margin:auto}
.catalog-heading{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1.5rem;flex-wrap:wrap}
.catalog-heading h2{font-size:1.1rem;font-weight:500}
.catalog-heading p{font-size:.85rem;color:var(--text-muted)}
.galeria{columns:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;opacity:1;transform:none}
.galeria-item{margin:0;border:1px solid var(--border);display:flex;flex-direction:column;cursor:default;overflow:hidden}
.product-photo{display:block;width:100%;border:0;border-bottom:1px solid var(--border);background:#e8e1d6;cursor:zoom-in;position:relative;padding:0}
.product-placeholder{width:100%;aspect-ratio:4/3;display:grid;place-items:center;background:var(--bg3);color:var(--text-muted);border-bottom:1px solid var(--border);padding:1.5rem;text-align:center}
.product-category,.product-code,.product-stock{font-size:.75rem;color:var(--text-muted);line-height:1.5}
.product-category{margin-bottom:.6rem;color:var(--gold)}
.product-stock{margin-top:.7rem}.product-code{margin-top:.35rem}
.precio-unico small{font-size:.65em}
.galeria-item img{width:100%;aspect-ratio:4/3;object-fit:contain;filter:none;transition:transform .3s}
.galeria-item:hover img{transform:none}
.product-photo:hover img{transform:scale(1.025)}
.photo-hint{position:absolute;bottom:.6rem;right:.6rem;background:#17140ce8;color:#fff;padding:.35rem .6rem;font-size:.7rem}
.galeria-item .galeria-overlay{position:static;inset:auto;background:none;opacity:1;padding:1.4rem;flex:1;display:flex;flex-direction:column;justify-content:flex-start}
.galeria-nombre{font-family:"Jost",sans-serif;font-size:1.15rem;line-height:1.3;font-weight:500;color:var(--text);transform:none;margin-bottom:.65rem}
.galeria-desc{font-size:.9rem;color:var(--text-muted);opacity:1;transform:none;line-height:1.65;margin-bottom:1rem}
.galeria-precio{margin-top:auto;min-height:3rem;justify-content:center;gap:.45rem}
.precio-label,.precio-combo-item{color:var(--text-muted);font-size:.8rem;letter-spacing:.02em}
.precio-valor,.precio-unico{font-size:1.2rem;color:var(--gold);font-weight:500}
.precio-combo-item span:last-child{color:var(--text)}
.btn-consultar{display:flex;justify-content:center;min-height:46px;align-items:center;background:var(--gold);color:#17140c;border:1px solid var(--gold);font-size:.75rem;font-weight:500;letter-spacing:.05em;margin-top:1.2rem;width:100%;padding:.8rem}
.btn-consultar:hover{background:var(--gold-light);color:#17140c}
.purchase-help{max-width:1344px;margin:2rem auto 0;border-top:1px solid var(--border);padding-top:2rem}
.purchase-help h2{font-family:"Cormorant Garamond",serif;font-size:2rem;font-weight:400;margin-bottom:.75rem}
.purchase-help p{color:var(--text-muted);max-width:780px;font-size:.95rem;line-height:1.8}
.purchase-help a{color:var(--gold);text-underline-offset:4px}
.lightbox{display:none}
.lightbox.open{display:flex}
.lightbox img{max-height:65vh;margin-bottom:4rem}
.lightbox-info{bottom:1.5rem}
.lightbox-desc{color:#c9c6bf;line-height:1.6}
.lightbox-close,.lightbox-nav{color:#eee;min-width:44px;min-height:44px}
footer .footer-links a,footer .footer-copy{font-size:.75rem;color:var(--text-muted)}
@media(max-width:1100px){.nav-links{gap:.8rem}.nav-links a{font-size:.65rem}nav{padding:.8rem 1.5rem}.galeria{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){.hero{padding:2.5rem 1.25rem 2rem!important}:is(#gym,#hogar){padding:1.5rem 1.25rem 2rem}.hero-sub{margin-bottom:1.2rem}.galeria{gap:1rem}.galeria-item .galeria-overlay{padding:1rem}.theme-switch{display:flex}.nav-links{display:none}.mobile-menu{gap:1.5rem}.mobile-menu a{font-size:1rem}.lightbox img{max-width:82vw}.lightbox-nav{padding:.4rem}.lightbox-prev{left:0}.lightbox-next{right:0}}
@media(max-width:540px){.galeria{grid-template-columns:1fr}.galeria-item img{aspect-ratio:4/3}.hero-eyebrow{font-size:.6rem}.catalog-intro{font-size:.72rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

.back-to-top[hidden]{display:none!important}
.back-to-top{position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:calc(1rem + env(safe-area-inset-bottom));z-index:90;display:flex;align-items:center;justify-content:center;gap:.45rem;min-width:48px;min-height:48px;padding:.75rem 1rem;border:1px solid var(--gold);border-radius:999px;background:var(--gold);color:#17140c;box-shadow:0 4px 18px #0004;font:500 .8rem "Jost",sans-serif;cursor:pointer}
.back-to-top span:first-child{font-size:1.3rem;line-height:1}
.back-to-top:hover{background:var(--gold-light)}
.back-to-top:focus-visible{outline:3px solid var(--text);outline-offset:4px}
body:has(.lightbox.open) .back-to-top{visibility:hidden}

/* Ofertas: el precio final también se usa para consultar por WhatsApp. */
.price-current{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}
.galeria-precio.has-offer{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem}
.price-before{font-size:.9rem;color:var(--text-muted);line-height:1.4}
.price-before del{text-decoration-thickness:1px}
.offer-badge{display:inline-block;background:#214a34;color:#d5f5dc;border:1px solid #4f8f65;border-radius:4px;font:600 .75rem/1.2 "Jost",sans-serif;padding:.3rem .5rem;white-space:nowrap}
[data-theme="light"] .offer-badge{background:#e4f4e8;color:#18582c;border-color:#85b591}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Identidad azul de Fabrilar: misma paleta aprobada en la vista de prueba. */
[data-theme="dark"]{--gold:#65b8ff;--gold-light:#91ceff;--blue-action:#006bd6;--blue-action-hover:#0055ad;--bg:#080d13;--bg2:#0e151e;--bg3:#131e2a;--surface:#141e29;--border:rgba(101,184,255,.24);--border-hover:rgba(101,184,255,.65);--text:#f1f5fa;--text-muted:#b8c4d1;--text-dim:#9dabbc;--nav-bg:rgba(8,13,19,.96);--card-hover:#1a2a3b;--section-alt:#0d151e;--section-alt2:#111b26;--section-vis:#0b121b}
[data-theme="light"]{--gold:#005fb8;--gold-light:#004b92;--blue-action:#0065c7;--blue-action-hover:#004e9c;--bg:#f6f9fd;--bg2:#fff;--bg3:#eaf1f9;--surface:#fff;--border:rgba(0,95,184,.24);--border-hover:rgba(0,95,184,.6);--text:#152334;--text-muted:#4e6073;--text-dim:#52667d;--nav-bg:rgba(246,249,253,.97);--card-hover:#edf4fc;--section-alt:#fff;--section-alt2:#edf3fa;--section-vis:#e5eef8}
.hero-bg{background:radial-gradient(ellipse 55% 60% at 75% 40%,rgba(0,125,240,.13) 0%,transparent 65%)}
.btn-primary,.nav-pill,.btn-consultar,.back-to-top{background:var(--blue-action)!important;color:#fff!important;border-color:var(--blue-action)!important}
.btn-primary:hover,.nav-pill:hover,.btn-consultar:hover,.back-to-top:hover{background:var(--blue-action-hover)!important;border-color:var(--blue-action-hover)!important}
.btn-ghost:hover{background:rgba(50,150,255,.08)}
[data-theme="light"] .nav-logo img,[data-theme="light"] .gym-logo,[data-theme="light"] .hogar-logo{filter:brightness(0) saturate(100%) invert(26%) sepia(86%) saturate(2000%) hue-rotate(184deg)}

/* Enlace a Instagram separado del botón para ampliar la foto. */
.galeria-item:has(> .product-video){position:relative}
.product-video{position:absolute;top:14px;left:14px;z-index:2;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid #91ceff;border-radius:6px;background:#0055ad;color:#fff;font-size:.8rem;font-weight:700;letter-spacing:.06em;text-decoration:none;box-shadow:0 2px 8px #0005}
.product-video:hover{background:#003e80;color:#fff}
.product-video:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* Acceso al cotizador de escritorios (portada y Hogar). */
#cotizador{background:var(--section-alt2);padding:4rem max(3rem,calc((100vw - 1344px)/2))}
.cz-in{max-width:1344px;margin:auto;display:grid;gap:2.5rem;align-items:center}
.cz-txt{min-width:0}
.cz-txt .section-sub{margin-bottom:1.5rem}
.cz-datos{display:flex;flex-wrap:wrap;gap:.6rem;list-style:none;margin:0 0 2rem;padding:0;font-size:.8rem;color:var(--text-muted)}
.cz-datos li{border:1px solid var(--border);padding:.5rem .8rem}
.cz-btns{display:flex;flex-wrap:wrap;gap:.8rem}
.cz-fig{display:block;width:100%;max-width:440px;justify-self:center;color:var(--text)}
.cz-fig svg{display:block;width:100%;height:auto;overflow:visible}
.cz-f{stroke:var(--text);stroke-width:2.4;stroke-linecap:square}
.cz-top{fill:var(--surface);stroke:var(--text);stroke-width:1.2;stroke-linejoin:round}
.cz-edge{fill:var(--bg3);stroke:var(--text);stroke-width:1.2;stroke-linejoin:round}
.cz-d{stroke:var(--gold);stroke-width:1}
.cz-fig text{fill:var(--gold);font:400 11px "Jost",sans-serif;letter-spacing:.06em}
.cz-fig:hover .cz-top{fill:var(--card-hover)}
@media(min-width:900px){.cz-in{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}}
@media(max-width:768px){#cotizador{padding:3rem 1.25rem}.cz-fig{max-width:340px}}

/* Las tarjetas con ficha conservan navegación nativa. */
a.product-photo{display:block;text-decoration:none;cursor:pointer}.galeria-nombre a{color:inherit;text-decoration:none}.galeria-nombre a:hover{color:var(--gold)}
