.hp-home-card-link{color:inherit;text-decoration:none}
.hp-home-card-link:focus-visible,.hp-link-button:focus-visible,.hp-home-auto-option:focus-visible,.hp-home-manual-option:focus-visible{outline:3px solid #1687c7;outline-offset:3px}
.hero-search-panel{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);align-items:end;gap:28px;margin:24px 0 38px;padding:20px 22px;border:1px solid #dbe5ea;border-radius:13px;background:#fff;box-shadow:0 8px 20px rgba(24,40,70,.05)}
.hero-search-panel>div:first-child{display:grid;gap:6px}.hero-search-panel strong{display:block;color:#202043;font-size:18px;line-height:1.2}.hero-search-panel span{display:block;color:#61717a;font-size:14px;line-height:1.45}
.priority-card:after{display:none!important}.priority-card>div:last-child{min-width:0}.priority-card span{margin-top:0}.priority-card h3{margin-top:7px}.priority-card small{display:block;margin-top:10px}.cat-icon.line-icon{color:var(--blue-strong)}.cat-icon.line-icon svg{width:23px;height:23px}.hp-home-sector-link{display:block;margin-top:14px}.solution{display:flex;flex-direction:column}.solution p{flex:1}
.hp-link-button{padding:0;border:0;background:transparent;cursor:pointer;font:inherit}
.hp-home-products-head{margin-top:38px}
.hp-home-status{margin:0 0 15px;color:#50616a;font-weight:750}
.hp-home-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:16px}
.hp-home-product-card{display:flex;min-width:0;align-self:start}
.hp-home-product-card .product-image{display:grid;place-items:center;aspect-ratio:1/1;height:auto;min-height:0;background:#f3f7f8;text-decoration:none;overflow:hidden;padding:14px}
.hp-home-product-card .product-image img{width:auto;height:auto;max-width:100%;max-height:100%;padding:0;box-sizing:border-box;object-fit:contain;object-position:center;transform:none;transform-origin:center;display:block;margin:auto}
.hp-home-noimage{padding:24px;color:#627680;text-align:center;font-size:13px}

.hp-home-product-card .product-body{padding:12px 14px 14px;gap:5px}
.hp-home-product-card .brand{font-size:10px;line-height:1.05;margin:0}
.hp-home-product-card h3{margin:3px 0 1px;line-height:1.18;font-size:15px;letter-spacing:-.01em}
.hp-home-product-category{margin:0 0 8px;color:#50616a;font-size:13px;line-height:1.25}
.hp-home-measures{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.hp-home-measures span{padding:4px 7px;border-radius:7px;background:#edf5f8;color:#29434f;font-size:11px;line-height:1.15}
.hp-home-product-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto;padding-top:8px}
.hp-home-simple-buy{display:grid;gap:7px;margin-top:8px}

.hp-home-qty{display:grid;grid-template-columns:44px minmax(56px,72px) 44px;width:max-content}
.hp-home-qty button,.hp-home-qty input{min-width:44px;min-height:44px;padding:7px;border:1px solid var(--border-strong);background:#fff;text-align:center}
.hp-home-qty button{cursor:pointer;color:var(--blue-strong);font-size:18px;font-weight:800}
.hp-home-qty button:first-child{border-radius:8px 0 0 8px}.hp-home-qty button:last-child{border-radius:0 8px 8px 0}.hp-home-qty input{border-radius:0}
.hp-home-measures{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.hp-home-measures span{padding:5px 8px;border-radius:7px;background:#edf5f8;color:#29434f;font-size:13px}
.hp-home-variants{display:grid;gap:7px;max-height:430px;margin-top:12px;padding:10px;border:1px solid #d3e1e7;border-radius:10px;background:#f8fbfc;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.hp-home-variants[hidden],.hp-home-variant[hidden]{display:none}
.hp-home-variant{display:grid;grid-template-columns:minmax(112px,1fr) 82px;column-gap:10px;row-gap:9px;align-items:center;padding:10px;border:1px solid #d9e5ea;border-radius:9px;background:#fff}.hp-home-variant>span{grid-column:1/-1;font-size:15px;font-weight:800;line-height:1.3}.hp-home-variant .hp-home-qty{grid-template-columns:44px minmax(56px,72px) 44px;width:max-content;max-width:100%}.hp-home-variant .hp-home-qty button,.hp-home-variant .hp-home-qty input{min-width:44px;padding-left:3px;padding-right:3px}.hp-home-variant .hp-home-qty button{font-size:16px}.hp-home-variant .btn{width:82px;min-width:82px;min-height:44px;padding:8px 6px;font-size:14px}
.hp-home-variant-toggle{justify-self:start;border:0;background:transparent;color:var(--link-blue);font-weight:750;text-decoration:underline;cursor:pointer}
.hp-home-section-link{margin:18px 0 0}.hp-home-solutions{grid-template-columns:repeat(5,minmax(0,1fr))}
.hp-home-auto-option,.hp-home-manual-option{display:grid;width:100%;gap:3px;padding:10px 12px;border:0;border-bottom:1px solid #e0eaee;background:#fff;text-align:left;cursor:pointer}.hp-home-auto-option:hover,.hp-home-auto-option.active,.hp-home-manual-option:hover,.hp-home-manual-option.active{background:#edf6fb}.hp-home-auto-option span{color:#526973;font-size:12px}.hp-home-manual-option{color:var(--link-blue);font-weight:750}
.hp-home-qo-row input[aria-invalid="true"]{border-color:#b42318;box-shadow:0 0 0 2px #ffd5d0}.hp-home-quick-status{min-height:22px;color:#29434f;font-weight:750}.hp-home-upload-summary{cursor:default}
@media(max-width:1100px){.hp-home-products{grid-template-columns:repeat(2,minmax(0,1fr))}.hp-home-solutions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.hero-search-panel{grid-template-columns:1fr;gap:14px;margin:18px 0 32px;padding:17px}.hp-home-products,.hp-home-solutions{grid-template-columns:1fr}.hp-home-product-card{display:grid}.hp-home-product-card .product-image{aspect-ratio:1/1;height:auto;min-height:0;padding:12px}.hp-home-product-card .product-image img{width:auto;height:auto;max-width:100%;max-height:100%;padding:0;transform:none}.hp-home-product-card .product-body{padding:11px 13px 13px;gap:4px}.hp-home-product-card h3{font-size:14px;line-height:1.16}.hp-home-product-category{font-size:12.5px;line-height:1.2;margin:0 0 7px}.hp-home-measures{gap:4px;margin-top:5px}.hp-home-measures span{font-size:10.5px;padding:4px 6px}.hp-home-product-actions{display:grid;gap:6px;padding-top:7px}.hp-home-simple-buy{gap:6px;margin-top:7px}.hp-home-product-actions .btn,.hp-home-simple-buy .btn{width:100%;justify-content:center}.hp-home-variant{grid-template-columns:1fr}.hp-home-variant>span{grid-column:auto}.hp-home-qty{grid-template-columns:44px minmax(62px,80px) 44px}}

/* Consistent product cards and compact variant selection. */
.hp-home-products{align-items:stretch}
.hp-home-product-card{display:flex;align-self:stretch;height:100%}
.hp-home-product-card .product-image{aspect-ratio:1.15/1;flex-shrink:0;padding:24px;background:#fff}
.hp-home-product-card .product-image img{width:100%;height:100%;min-height:0;object-fit:contain}
.hp-home-product-card .product-body{padding:18px;gap:10px}
.hp-home-product-card .brand{min-height:13px}
.hp-home-product-card h3{font-size:16px;line-height:1.35;min-height:2.7em;margin:0}
.hp-home-product-card h3 a{color:inherit;text-decoration:none}
.hp-home-product-category{min-height:2.6em;line-height:1.3;margin:0;font-size:13px}
.hp-home-specs{margin:0;display:grid;gap:5px;font-size:12px;line-height:1.4}
.hp-home-specs:empty{display:none}
.hp-home-specs div{display:flex;gap:6px;flex-wrap:wrap}.hp-home-specs dt{color:#61717a}.hp-home-specs dd{margin:0;color:#15345a;font-weight:600}
.hp-home-variant-count{margin:0;color:#15345a;font-size:13px;font-weight:700}
.hp-home-product-actions{display:flex;flex-direction:column;gap:10px;margin-top:auto;padding-top:12px}
.hp-home-action-context{min-height:44px;display:flex;align-items:center;font-size:12px;color:#61717a}
.hp-home-product-actions>.btn,.hp-home-selector>.btn{width:100%;min-height:48px;justify-content:center;padding:12px 8px;font-size:14px}
.hp-home-detail-link{display:block;text-align:center;color:#075bc7;font-weight:700;font-size:13px;padding:8px;text-underline-offset:4px}
.hp-home-selector{display:grid;gap:8px;padding:12px;background:#f3f7fb;border:1px solid #d3e1e7;border-radius:10px;min-width:0}
.hp-home-selector[hidden]{display:none}.hp-home-selector label{font-size:13px;font-weight:700;color:#15345a}
.hp-home-selector select{width:100%;min-width:0;min-height:44px;border:1px solid var(--border-strong);border-radius:6px;padding:8px;background:#fff;color:#15345a;font:inherit;font-size:13px}
.hp-home-selected{margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.hp-home-selected:empty{display:none}
.hp-home-selector .btn:disabled{opacity:.55;cursor:not-allowed}
.hp-home-product-card a:focus-visible,.hp-home-product-card button:focus-visible,.hp-home-selector select:focus-visible{outline:3px solid #1687c7;outline-offset:3px}
@media(max-width:700px){.hp-home-product-card .product-image{aspect-ratio:1.2/1;padding:24px}.hp-home-product-card .product-body{padding:18px}.hp-home-product-card h3{font-size:17px;min-height:0}.hp-home-product-category{min-height:0}}


.hp-home-products{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
.hp-home-product-card{
  display:flex;
  flex-direction:column;
  height:100%;
  min-width:0;
  overflow:hidden;
  border:1px solid #d7e1e7;
  border-radius:14px;
  background:#fff;
  box-shadow:none;
}
.hp-home-product-card:hover{
  transform:translateY(-2px);
  border-color:#c4d3dc;
  box-shadow:0 9px 22px rgba(24,40,70,.07);
}
.hp-home-product-card .product-image{
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:1/1;
  min-height:0;
  padding:14px;
  background:#f7fafb;
  border-bottom:1px solid #e9eff2;
}
.hp-home-product-card .product-image img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  margin:auto;
  padding:0;
  object-fit:contain;
  object-position:center;
  transform:none;
}
.hp-home-product-card .product-body{
  display:flex;
  flex:1;
  flex-direction:column;
  gap:5px;
  padding:12px 13px 13px;
}
.hp-home-product-card .brand{
  min-height:0;
  margin:0;
  color:var(--green);
  font-size:9.5px;
  font-weight:900;
  line-height:1.1;
  letter-spacing:.07em;
}
.hp-home-product-card h3{
  min-height:2.38em;
  margin:2px 0 0;
  color:#082d70;
  font-size:15px;
  line-height:1.19;
  letter-spacing:-.01em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.hp-home-product-card h3 a{color:inherit;text-decoration:none}
.hp-home-product-category{
  min-height:0;
  margin:0;
  color:#62717b;
  font-size:11.5px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hp-home-product-card .hp-home-specs{display:none}
.hp-home-variant-count{
  align-self:flex-start;
  margin:4px 0 0;
  padding:4px 7px;
  border-radius:7px;
  background:#edf5f8;
  color:#29434f;
  font-size:10.5px;
  font-weight:750;
  line-height:1.15;
}
.hp-home-product-actions{
  display:grid;
  gap:6px;
  margin-top:auto;
  padding-top:7px;
}
.hp-home-product-actions>.btn,
.hp-home-selector>.btn{
  width:100%;
  min-height:40px;
  padding:9px 10px;
  border-radius:8px;
  font-size:12.5px;
  line-height:1.15;
}
.hp-home-detail-link{
  display:block;
  padding:5px 4px 1px;
  text-align:center;
  color:#075bc7;
  font-size:11.5px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none;
}
.hp-home-detail-link:hover{text-decoration:underline}
.hp-home-action-context{
  min-height:0;
  display:flex;
  align-items:center;
  margin:0;
  font-size:11.5px;
  color:#61717a;
}
.hp-home-qty{
  display:grid;
  grid-template-columns:44px minmax(56px,72px) 44px;
  width:max-content;
}
.hp-home-qty button,.hp-home-qty input{
  min-width:44px;
  min-height:44px;
  padding:5px 4px;
}
.hp-home-qty button{font-size:15px}
.hp-home-selector{
  display:grid;
  gap:6px;
  padding:9px;
  border:1px solid #d3e1e7;
  border-radius:9px;
  background:var(--surface-raised);
}
.hp-home-selector label{
  margin:0;
  font-size:11.5px;
  line-height:1.2;
}
.hp-home-selector select{
  min-height:38px;
  padding:7px 8px;
  font-size:12px;
}
.hp-home-selected{
  margin:0;
  font-size:11px;
  line-height:1.25;
}
.hp-home-product-card.is-simple .hp-home-action-context{
  padding-top:1px;
}
.hp-home-noimage{
  padding:18px;
  color:#71828b;
  font-size:12px;
  text-align:center;
}
@media(max-width:1100px){
  .hp-home-products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .hp-home-products{grid-template-columns:1fr}
  .hp-home-product-card .product-image{
    aspect-ratio:1.15/1;
    padding:16px;
  }
  .hp-home-product-card .product-body{
    gap:4px;
    padding:11px 12px 12px;
  }
  .hp-home-product-card h3{
    min-height:0;
    font-size:15px;
    -webkit-line-clamp:3;
  }
  .hp-home-product-category{
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
  }
  .hp-home-product-actions>.btn,
  .hp-home-selector>.btn{
    min-height:46px;
    font-size:13px;
  }
}


.hp-home-product-card.is-simple .hp-home-qty{
  margin-left:auto;
  margin-right:auto;
  justify-self:center;
}
@media(max-width:700px){
  .hp-home-product-card.is-simple .hp-home-qty{
    margin-left:auto;
    margin-right:auto;
  }
}

.hp-home-product-card .product-image{aspect-ratio:1/1}.hp-home-product-card .product-image img{object-fit:contain}@media(max-width:700px){.hp-home-product-card .product-image{aspect-ratio:1/1}.hp-home-qty button,.hp-home-qty input,.hp-home-variant .btn,.hp-home-selector select{min-height:44px}.hp-home-product-actions>.btn,.hp-home-selector>.btn{min-height:46px}}

.hp-home-selector input[type="search"],.hp-home-measure-search{width:100%;min-height:44px;padding:9px 10px;border:1px solid #adbed0;border-radius:8px;background:#fff;font:inherit;box-sizing:border-box}
.hp-home-variant-results,.hp-home-measure-results{display:grid;gap:5px;max-height:260px;overflow:auto;margin-top:4px}
.hp-home-variant-results .hp-home-auto-option,.hp-home-measure-results .hp-home-auto-option{width:100%;min-height:44px;padding:8px 10px;text-align:left;border:1px solid #cbd9e4;border-radius:8px;background:#fff;color:#10244d;cursor:pointer}
.hp-home-variant-results .hp-home-auto-option:hover,.hp-home-measure-results .hp-home-auto-option:hover{border-color:#165eb6;background:#f2f8ff}

/* Recuperación explícita ante errores de red. */
.hp-home-status-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.hp-home-status-row .btn,.hp-home-retry{min-height:44px}.autocomplete-empty .hp-home-retry,.hp-home-variant-results .hp-home-retry,.hp-home-measure-results .hp-home-retry{margin-top:8px}
