:root {
  --ink: #192b3c;
  --steel: #506171;
  --line: #cbd2d8;
  --paper: #fff;
  --wash: #f2f4f5;
  --copper: #9b461e;
  --light-copper: #ffc29c;
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.5 "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #b35a2e; outline-offset: 3px;
}
[hidden] { display: none !important; }
.frame { width: min(1380px, calc(100% - clamp(36px, 7vw, 100px))); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: -100px; padding: 12px; background: #fff; }
.skip:focus { top: 8px; left: 8px; }
.utility { color: #eef2f6; background: var(--ink); }
.utility .frame, .mast, .menu, .section-head, .footer-main {
  display: flex; align-items: center; justify-content: space-between;
}
.utility .frame { min-height: 29px; gap: 12px; font-size: .8rem; }
.utility a:hover, .site-footer a:hover { text-decoration: underline; }
.mast { min-height: 83px; gap: clamp(15px, 4vw, 65px); }
.brand { flex: 0 1 158px; }
.brand img { width: 100%; height: 58px; object-fit: contain; object-position: left; }
#quick { display: flex; flex: 1; border: 1px solid #bac4cd; border-radius: 5px; overflow: hidden; background: #f8f9fa; }
#quick:focus-within, .search:focus-within { outline: 3px solid #a45026; outline-offset: 2px; }
#quick input, .search input { border: 0; outline: 0; background: transparent; padding: 10px 15px; width: 100%; min-width: 0; }
input::placeholder { color: #596978; opacity: 1; }
#quick button, .quote-trigger { border: 0; border-radius: 0; padding: 10px 18px; font-weight: 650; }
#quick button { background: var(--ink); color: white; }
#quick button:hover { background: #344f68; }
.quote-trigger { background: transparent; border: 1px solid #83929f; border-radius: 5px; white-space: nowrap; }
.quote-trigger:hover { background: var(--wash); }
.nav-line { border-block: 1px solid var(--line); background: white; }
.menu { justify-content: flex-start; gap: clamp(18px, 3vw, 48px); }
.menu a { padding: 12px 0; font-size: .92rem; font-weight: 650; }
.menu .billing-link { margin-left: auto; color: var(--copper); }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.cover { background: #1b2d40; color: white; overflow: hidden; }
.cover-grid { width: min(1536px,100%); display: grid; grid-template-columns: minmax(0,1.75fr) minmax(0,1fr); }
.cover-photo { margin: 0; align-self: center; background: #1b2d40; }
.cover-photo img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
.cover-copy { padding: clamp(22px, 3.5vw, 62px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--steel); }
.cover-copy .eyebrow, .invoice .eyebrow { color: var(--light-copper); }
h1, h2 { letter-spacing: -.045em; line-height: 1.04; }
h1 { font-size: clamp(2.45rem, 4.7vw, 5.2rem); font-weight: 640; }
.cover-copy h1 { margin: .22em 0; }
.cover-copy .lead { color: #d8e2ea; max-width: 35ch; line-height: 1.55; }
.cover-action, .action, #more { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 18px; border-radius: 4px; font-weight: 680; line-height: 1.25; }
.cover-action { background: #f0c6a6; color: #291d17; margin-top: clamp(15px, 2vw, 30px); }
.cover-action:hover { background: #ffe4cf; }
.section { padding-block: clamp(28px, 4.6vw, 74px); }
.section-head { gap: 16px; margin-bottom: clamp(18px,2vw,32px); }
h2 { font-size: clamp(1.9rem, 3.25vw, 3.3rem); font-weight: 640; }
.text-link { color: var(--copper); font-weight: 680; text-decoration: underline; text-underline-offset: .25em; }
.dept-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(12px,1.7vw,25px); }
.dept { overflow: hidden; border-bottom: 2px solid var(--line); }
.dept img { width: 100%; aspect-ratio: 1.64; height: auto; object-fit: contain; background: #e9edf1; }
.dept span { display: block; padding: 12px 0 14px; }
.dept b { display: block; font-size: clamp(1.06rem,1.65vw,1.5rem); letter-spacing: -.025em; }
.dept small { display: block; color: var(--steel); margin-top: 1px; font-size: .9rem; }
.dept:hover,.dept[aria-current=true] { border-color: var(--copper); }
.dept:hover b { color: var(--copper); }
.catalog, .brand-shelf { border-top: 1px solid var(--line); }
.search { display: block; border: 1px solid #a8b5bf; border-radius: 4px; width: min(320px, 100%); }
#filters { display: flex; gap: 8px; flex-wrap: wrap; }
#filters button { background: white; color: var(--steel); border: 1px solid var(--line); border-radius: 3px; padding: 7px 13px; font-weight: 620; }
#filters button:hover { border-color: var(--steel); }
#filters button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: white; }
#count { color: var(--steel); font-size: .9rem; margin: 15px 0 9px; }
#products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.card { padding: 17px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-top: 3px solid #788da1; border-radius: 4px; min-width: 0; }
.card[data-family="Tornillería"] { border-top-color: #aa7455; }
.card[data-family="Electricidad"] { border-top-color: #8e7951; }
.card[data-family="Plomería"] { border-top-color: #56677d; }
.card .product-art:has(b:only-child) { display: none; }
.product-art img { width: 100%; height: 100px; object-fit: contain; }
.details { flex: 1; }
.details small { font-size: .8rem; color: var(--steel); }
.details h3 { font-size: 1.06rem; line-height: 1.35; margin-top: 5px; font-weight: 650; }
.details h3 a:hover { text-decoration: underline; }
#more { display: flex; color: var(--ink); background: white; border: 1px solid var(--ink); margin: 20px auto 0; }
#more:hover { background: var(--wash); }
#brand-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(230px,100%),1fr)); gap: 15px; }
.brand-option { display: grid; gap: 4px; text-align: left; border: 1px solid var(--line); background: #f5f7f8; padding: 18px 24px; border-radius: 4px; }
.brand-option strong { font-size: 1.45rem; letter-spacing: -.04em; }
.brand-option small { color: var(--steel); }
.brand-option:hover, .brand-option[aria-pressed=true] { border-color: var(--copper); }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.services section { padding: clamp(23px,3.7vw,58px); min-width: 0; }
.local-block { background: #e9edf1; }
.invoice { background: var(--ink); color: white; }
.services h2, .help-intro h2 { margin: 8px 0 16px; }
.services p:not(.eyebrow), .services address { font-style: normal; max-width: 43ch; }
.services .action { margin-top: 20px; }
.local-block .action { border: 1px solid var(--ink); }
.invoice .action { background: #f0c6a6; color: #291d17; }
.action:hover, #more:hover { text-decoration: underline; text-underline-offset: .21em; }
.counter-help { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: 7%; }
.help-topics details { border-bottom: 1px solid var(--line); }
.help-topics details:first-child { border-top: 1px solid var(--line); }
.help-topics summary { cursor: pointer; padding: 15px 0; font-weight: 630; }
.help-topics details p { padding-bottom: 15px; color: var(--steel); }
.help-topics details a { color: var(--copper); text-decoration: underline; }
.site-footer { background: #152535; color: #fff; }
.footer-main { gap: 20px; align-items: flex-start; padding-block: 30px; }
.footer-main div { display: grid; gap: 4px; }
.footer-name { font-weight: 700; }
.footer-main p, .footer-main div:nth-child(2) { font-size: .9rem; color: #d2dce4; }
@media (prefers-reduced-motion:no-preference) {
  .dept, .dept img, button, .action, .cover-action { transition: background-color .18s ease,color .18s ease,border-color .18s ease; }
  .enter { animation: catalog-entry .22s ease-out; }
  @keyframes catalog-entry { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media(max-width:950px) {
  #products { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cover-grid { grid-template-columns: 1.4fr 1fr; }
}
@media(max-width:710px) {
  .mast { padding-block: 8px 11px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .brand img { width: 116px; height: 40px; }
  #quick { grid-area: 2 / 1 / 3 / 3; }
  .quote-trigger { grid-area: 1 / 2; padding: 7px 12px; }
  .menu { gap: 0; justify-content: space-between; }
  .menu a { padding-block: 10px; font-size: .88rem; }
  .menu .billing-link { margin: 0; }
  .cover-grid { grid-template-columns: 1fr; }
  .cover-copy { padding: 19px max(18px,3.5vw) 24px; }
  .cover-copy h1 br { display: none; }
  .cover-copy h1 br::after { content: " "; }
  .cover-copy h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .cover-copy .lead { max-width: 48ch; }
  .dept-grid, #products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .services, .counter-help { grid-template-columns: 1fr; gap: 14px; }
  .heading { align-items: flex-start; flex-direction: column; }
  .search { width: 100%; }
  .section-head .text-link { font-size: .88rem; }
}
@media(max-width:440px) {
  .utility .frame { font-size: .72rem; gap: 8px; }
  .menu { flex-wrap: wrap; gap: 0 12px; justify-content: flex-start; }
  .menu a { font-size: .82rem; padding-block: 7px; }
  .dept b { font-size: 1rem; }
  .dept small { font-size: .82rem; }
  .section-head { align-items:flex-start; flex-wrap:wrap; }
  #products { grid-template-columns: 1fr; }
  .footer-main { align-items:flex-start; flex-direction:column; }
}
