/* AP27 · Catálogo alineado a "familias promocionales" y "categoria promocionales" */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
#catalogo [hidden]{display:none!important}
.cat-crumbs{width:min(1360px,calc(100% - 44px));margin:16px auto 10px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.84rem;color:var(--muted)}
.cat-crumbs a{color:var(--muted);text-decoration:none}.cat-crumbs a:hover{color:var(--blue);text-decoration:underline}
.cat-crumbs b{color:var(--navy);font-weight:700}
.cat-crumbs .pp-home svg{width:18px;height:18px;fill:var(--navy)}
.quiet-action{display:inline-flex;align-items:center;gap:6px;cursor:pointer;border-radius:20px;padding:8px 12px}
.quiet-action.active{background:#fff0fb;color:var(--pink)}
.quiet-action b{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:10px;background:var(--pink);color:#fff;font-size:.72rem;padding:0 5px}

/* Hero */
.catalog-hero{margin:0 auto 22px;width:min(1360px,calc(100% - 44px));max-width:none;min-height:250px;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);background:linear-gradient(110deg,#f3f8ff 0%,#eaf4ff 50%,#fde3f5 100%);border-radius:18px}
.catalog-hero:after{right:-120px;bottom:-150px;opacity:.9}
.hero-copy{padding:34px 34px 30px;display:flex;flex-direction:column;justify-content:center}
.hero-copy h1{font-size:clamp(2.1rem,3.8vw,3.4rem);letter-spacing:-.04em;line-height:1;color:#0a0f3a}
.hero-copy>p{font-size:1.12rem;color:var(--muted);margin:12px 0 18px;max-width:640px}
.catalog-hero.compact{min-height:220px}
.catalog-hero.compact .hero-copy h1{font-size:clamp(1.9rem,3.2vw,2.9rem)}
.hero-search{max-width:640px;box-shadow:0 8px 22px rgba(15,45,120,.08)}
.cat-facts{list-style:none;display:flex;flex-wrap:wrap;gap:12px 26px;margin:6px 0 0;padding:0}
.cat-facts li{display:flex;align-items:center;gap:10px;font-size:.88rem;color:var(--navy);font-weight:600;max-width:240px;line-height:1.25}
.cat-fact-ico{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:50%;background:#fff;color:var(--blue);box-shadow:0 4px 12px rgba(15,45,120,.1)}
.cat-fact-ico svg,.f-ico svg,.cat-pill svg,.family-card em svg,.card-cta svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cat-facts li:nth-child(2) .cat-fact-ico{color:var(--pink)}
.hero-products{position:relative;display:block;padding:0;min-height:220px}
.hero-products img{position:absolute;width:auto;max-width:52%;max-height:78%;object-fit:contain;mix-blend-mode:multiply;filter:none;margin:0}
.hero-products .hp-0{left:6%;bottom:8%;max-height:70%}
.hero-products .hp-1{right:8%;top:8%;max-height:62%}
.hero-products .hp-2{right:22%;bottom:6%;max-height:52%;max-width:40%}

/* Familias (portada) */
.family-section{margin-top:6px}
.section-title h2{font-size:1.6rem;letter-spacing:-.02em}
.family-showcase{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.family-card{grid-template-columns:44% 1fr;min-height:150px;border-radius:14px;border-color:#dfe9f6;align-items:stretch}
.family-card .fc-img{display:block;background:#fff;border-right:1px solid #eef3fa}
.family-card img{width:100%;height:100%;object-fit:contain;padding:12px;background:transparent;mix-blend-mode:multiply}
.family-card .fc-copy{display:flex;flex-direction:column;padding:14px 14px 12px}
.family-card strong{font-size:.95rem;letter-spacing:.01em}
.family-card ul{margin:6px 0 8px;padding:0;list-style:none;font-size:.84rem;color:var(--muted)}
.family-card li{position:relative;padding-left:12px;line-height:1.45}
.family-card li:before{content:"";position:absolute;left:0;top:.6em;width:5px;height:5px;border-radius:50%;background:var(--pink)}
.family-card small{margin:6px 0}
.family-card em{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:.88rem}
.family-card em svg{width:16px;height:16px}

/* Barra de filtros */
.catalog-toolbar{margin-top:8px;padding:0;border:0;background:transparent}
.cat-pills{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.cat-pill{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 18px;border:1px solid #dfe9f6;border-radius:12px;background:#fff;color:var(--navy);font-weight:600;cursor:pointer;transition:.15s}
.cat-pill svg{color:var(--blue);width:22px;height:22px}
.cat-pill small{color:var(--muted);font-weight:600;font-size:.76rem}
.cat-pill:hover{border-color:#8dbff4}
.cat-pill.active{background:#fdeaf8;border-color:#f5b8e6;color:#b0009a}.cat-pill.active svg{color:var(--pink)}
.cat-pill.back{color:var(--muted);font-weight:700}
.filter-head{display:none}
.filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;overflow:visible}
.filter-row label{flex:0 1 auto;min-height:0;border:0;padding:0;background:transparent;justify-content:flex-start;font-size:inherit;color:var(--navy)}
.quote-button{white-space:nowrap}
.filter-row .f-select{position:relative;display:flex;align-items:center;gap:8px;min-height:46px;padding:0 12px;border:1px solid #dfe9f6;border-radius:11px;background:#fff;min-width:0;flex:0 1 auto}
.filter-row .f-select:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #0877ff22}
.f-ico{display:grid;place-items:center;color:var(--blue)}
.filter-row select{appearance:none;-webkit-appearance:none;border:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2307145b' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 2px center/11px;padding:10px 24px 10px 2px;color:var(--navy);font-weight:600;font-size:.92rem;max-width:200px;cursor:pointer;outline:0}
.f-clear{border:0!important;background:transparent!important;color:var(--blue)!important;font-weight:600;text-decoration:underline;padding:8px!important}
.filter-row .f-sort{margin-left:auto;display:flex;align-items:center;gap:10px;padding-left:16px;border-left:1px solid #dfe9f6;font-weight:800;color:var(--navy)}
.f-sort select{border:1px solid #dfe9f6!important;border-radius:11px;min-height:46px;padding:0 34px 0 14px!important;background-position:right 12px center!important;background-color:#fff!important;max-width:none!important}
.result-sort{margin:18px 0 14px;justify-content:flex-start;gap:18px}
.result-sort strong{font-size:1.15rem}
.page-size{display:inline-flex;border:1px solid #dfe9f6;border-radius:10px;overflow:hidden}
.page-size button{border:0;background:#fff;color:var(--navy);padding:7px 14px;font-weight:600;cursor:pointer}
.page-size button+button{border-left:1px solid #dfe9f6}
.page-size button.active{background:var(--blue);color:#fff}

/* Tarjetas */
.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.product-card{display:flex;flex-direction:column;border:1px solid #dfe9f6;border-radius:14px;background:#fff}
.product-card:after{content:none!important;display:none!important}
.product-card:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.product-card .visual{position:relative;aspect-ratio:1/.86;background:#fff}
.product-card .visual img{width:100%;height:100%;object-fit:contain;padding:16px;mix-blend-mode:multiply}
.product-card .fav{position:absolute;right:10px;top:10px;z-index:2;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:#ffffffd9;color:var(--blue);cursor:pointer}
.product-card .fav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.product-card .fav.on{color:var(--pink)}.product-card .fav.on svg{fill:currentColor}
.product-card .fav:focus-visible{outline:2px solid var(--blue)}
.product-copy{display:flex;flex-direction:column;flex:1;padding:4px 16px 16px}
.product-copy .sku{color:var(--muted);font-weight:600;font-size:.8rem}
.product-copy h2{font-size:1rem;line-height:1.25;margin:3px 0 4px;min-height:0;color:#0a0f3a}
.card-desc{color:var(--muted);font-size:.86rem;line-height:1.35;-webkit-line-clamp:2;min-height:2.7em;margin:0 0 10px}
.color-summary{display:flex;align-items:center;gap:7px;margin:0 0 6px;min-height:22px}
.color-summary i{width:20px;height:20px;border-radius:50%;border:0;box-shadow:inset 0 0 0 1px rgba(7,20,91,.2)}
.color-summary i:nth-child(n){background-color:initial}
.color-summary i.out{opacity:.35}
.color-summary small{color:var(--muted);font-weight:700;font-size:.78rem}
.card-stock{margin:0 0 8px;font-size:.78rem;color:#087a45;font-weight:600}.card-stock.none{color:var(--muted)}
.card-price{margin:auto 0 10px;text-align:center;color:var(--pink);white-space:nowrap}
.card-price span{font-size:.82rem;font-weight:800}
.card-price strong{font-size:1.32rem;letter-spacing:-.01em}
.card-price small{display:block;color:var(--muted);font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin-top:1px}
.card-cta{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border:1.5px solid var(--blue);border-radius:22px;color:var(--blue);font-weight:700;transition:.15s}
.product-card:hover .card-cta{background:var(--blue);color:#fff}
.load-more{border-radius:22px;font-weight:700}

/* Ayuda */
.help-band{padding:20px 30px;border-radius:16px;background:linear-gradient(90deg,#fdf0fa,#eef5ff);gap:22px}
.help-band .chat-icon{width:72px;color:var(--pink)}.help-band .chat-icon svg{width:100%;height:auto}
.help-band h2{font-size:1.35rem;color:#1b2a8f}
.help-band a{display:inline-flex;align-items:center;gap:12px;border:1.5px solid var(--navy);background:#fff;padding:12px 30px;border-radius:26px}

@media(max-width:1180px){.family-showcase{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-row .f-sort{margin-left:0;border-left:0;padding-left:0}}
@media(max-width:1050px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){.catalog-hero{grid-template-columns:1fr}.hero-products{display:none}.family-showcase{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .cat-crumbs{width:calc(100% - 28px);margin:12px auto 8px}
  .catalog-hero{width:calc(100% - 28px);margin:0 auto 16px;min-height:0}.hero-copy{padding:22px 18px}
  .cat-facts{gap:10px 16px}.cat-facts li{font-size:.82rem;max-width:none;flex:1 1 40%}.cat-fact-ico{flex-basis:32px;height:32px}
  .cat-pills{flex-wrap:nowrap;overflow-x:auto;margin:0 -14px 12px;padding:2px 14px 6px;scrollbar-width:none}.cat-pill{flex:0 0 auto;min-height:42px;padding:0 14px}
  .filter-head{display:flex}.filters-toggle{border:1px solid #dfe9f6;background:#fff;color:var(--navy);border-radius:11px;padding:11px 16px;font-weight:700}
  .filter-row{display:none;margin-top:10px}.filter-row.open{display:grid;grid-template-columns:1fr 1fr}
  .filter-row .f-select select{max-width:none;width:100%}.f-sort{grid-column:1/-1}.f-sort select{flex:1}.f-clear{grid-column:1/-1;justify-self:start}
  .result-sort{flex-wrap:wrap;gap:10px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-copy{padding:2px 10px 12px}.product-copy h2{font-size:.88rem}.card-desc{display:none}.color-summary i{width:16px;height:16px}.color-summary{gap:5px}
  .card-price strong{font-size:1.08rem}.card-price span{font-size:.72rem}.card-cta{min-height:36px;font-size:.86rem}.card-stock{font-size:.72rem}
  .family-card{grid-template-columns:1fr;min-height:0}.family-card .fc-img{height:110px;border-right:0;border-bottom:1px solid #eef3fa}.family-card ul{display:none}
  .help-band{flex-wrap:wrap;padding:18px}.help-band .chat-icon{width:52px}.help-band a{margin-left:0}
}

/* Navegación de categorías táctil: visible sin depender de una tira horizontal. */
@media(max-width:760px){
  #familySection:not([hidden]){display:block!important}
  .family-showcase{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  .family-card{display:grid!important;grid-template-columns:1fr!important;min-width:0;min-height:205px!important}
  .family-card .fc-img{height:104px!important}
  .family-card .fc-copy{padding:12px!important}
  .family-card .fc-copy strong{font-size:.86rem;line-height:1.18}
  .family-card .fc-copy em{margin-top:8px;font-size:.78rem}
  .cat-pills:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;margin:0 0 14px;padding:0}
  .cat-pill{width:100%;min-width:0;min-height:46px;padding:8px 10px;justify-content:flex-start;white-space:normal;text-align:left;line-height:1.15}
  .cat-pill small{margin-left:auto}
}
@media(max-width:390px){
  .family-showcase{grid-template-columns:1fr!important}
  .family-card{grid-template-columns:112px 1fr!important;min-height:130px!important}
  .family-card .fc-img{height:100%!important;border-right:1px solid #eef3fa;border-bottom:0}
  .cat-pills:not([hidden]){grid-template-columns:1fr}
}

@media(max-width:760px){.header-actions{align-items:center;gap:4px}#favButton{display:inline-flex;padding:6px 8px;font-size:1.15rem}#favButton span{display:none}.filter-row .f-sort{margin-left:0;border-left:0;padding-left:0}}
.hero-products{z-index:auto}
.filter-row select{max-width:150px;text-overflow:ellipsis}
.filter-row .f-select{padding:0 10px}
.qb-short{display:none}
@media(max-width:760px){.qb-long{display:none}.qb-short{display:inline}.header-actions{top:40px}}
.result-sort .f-sort{margin-left:auto;display:flex;align-items:center;gap:10px;font-weight:800;color:var(--navy)}
.result-sort .f-sort select{appearance:none;-webkit-appearance:none;border:1px solid #dfe9f6;border-radius:11px;min-height:44px;padding:0 34px 0 14px;color:var(--navy);font-weight:600;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2307145b' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center/11px;margin:0;cursor:pointer}
@media(max-width:760px){.result-sort .f-sort{margin-left:0;width:100%}.result-sort .f-sort select{flex:1}}
@media(max-width:760px){.section-title{flex-wrap:wrap;gap:4px 12px;align-items:baseline}.section-title h2{font-size:1.35rem}}
