:root {
  --ink: #18201b;
  --muted: #59635d;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #ddd6c9;
  --brand: #bf3f1a;
  --brand-dark: #8f2c13;
  --gold: #f0b429;
  --green: #217a52;
  --steel: #243238;
  --wash: #f2eee6;
  --shadow: 0 22px 60px rgba(24, 32, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(221, 214, 201, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: var(--wash);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-link {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--brand-dark);
  box-shadow: 0 12px 24px rgba(143, 44, 19, 0.22);
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding: 9px 13px;
}

.button-secondary {
  color: var(--ink);
  background: var(--gold);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #d89b18;
}

.button-tertiary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button-tertiary:hover,
.button-tertiary:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.button-whatsapp {
  background: var(--green);
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
  background: #155f3e;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7, 13, 17, 0.9) 0%, rgba(7, 13, 17, 0.68) 36%, rgba(7, 13, 17, 0.18) 100%), url("assets/hero-ferreteria.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 76px);
  padding: 60px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd57b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3.8vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.13rem;
}

.search-panel {
  width: min(680px, 100%);
  margin: 30px 0 18px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 9px;
  color: var(--steel);
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.search-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip article {
  min-height: 118px;
  padding: 24px clamp(18px, 3vw, 34px);
  background: #fff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.trust-strip span {
  color: var(--muted);
}

.section,
.promo-band,
.service-band,
.site-footer {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow),
.compact p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.compact {
  max-width: 560px;
}

.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.category-pill {
  min-height: 42px;
  padding: 10px 14px;
  color: var(--steel);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.category-pill.active,
.category-pill:hover,
.category-pill:focus-visible {
  color: #fff;
  background: var(--steel);
  border-color: var(--steel);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 252px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(24, 32, 27, 0.07);
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--steel);
  border-radius: 7px;
  font-weight: 900;
}

.stock {
  align-self: start;
  padding: 5px 8px;
  color: #13533a;
  background: #e5f4ec;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.product-card p {
  color: var(--muted);
}

.product-card .button {
  width: 100%;
  margin-top: auto;
}

.empty-state {
  margin: 24px 0 0;
  padding: 18px;
  background: #fff2df;
  border: 1px solid #f4c987;
  border-radius: 8px;
  font-weight: 800;
}

.promo-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) 1.25fr;
  gap: 24px;
  align-items: start;
  background: var(--steel);
  color: #fff;
}

.promo-band .eyebrow {
  color: #ffd57b;
}

.promo-grid,
.review-grid,
.steps,
.service-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.promo-card,
.steps article,
.review-grid article,
.service-band article {
  padding: 22px;
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
}

.promo-card {
  border-top: 5px solid var(--gold);
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 8px;
  color: #5f3c00;
  background: #ffe3a3;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.promo-card strong {
  font-size: 1.45rem;
}

.promo-card small {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.steps article {
  min-height: 230px;
  border: 1px solid var(--line);
}

.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

.steps p,
.review-grid p,
.service-band p {
  color: var(--muted);
}

.service-band {
  background: #e8efe9;
}

.service-band article {
  min-height: 190px;
  border: 1px solid rgba(33, 122, 82, 0.18);
}

.reviews {
  background: #fff;
}

.rating {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-weight: 900;
}

.location {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
  gap: 26px;
  background: var(--wash);
}

.location-info {
  align-self: center;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}

.info-list div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  font-weight: 900;
}

.info-list dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.location iframe {
  width: 100%;
  min-height: 470px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  min-height: 58px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: #101613;
}

.site-footer p {
  max-width: 560px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.mobile-actions {
  display: none;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    flex-direction: column;
    padding: 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .ghost-link {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip,
  .promo-band,
  .split,
  .location {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 68px;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-actions .button {
    display: none;
  }

  .main-nav {
    inset: 68px 0 auto;
  }

  .hero {
    min-height: calc(100vh - 68px);
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 auto;
    padding: 44px 0 36px;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.3rem);
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-strip,
  .product-grid,
  .promo-grid,
  .review-grid,
  .steps,
  .service-band {
    grid-template-columns: 1fr;
  }

  .product-card,
  .steps article,
  .review-grid article,
  .service-band article {
    min-height: auto;
  }

  .location iframe {
    min-height: 330px;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-actions {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px;
    background: rgba(16, 22, 19, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    backdrop-filter: blur(16px);
  }

  .mobile-actions a {
    display: grid;
    place-items: center;
    min-height: 44px;
    color: #fff;
    background: var(--green);
    border-radius: 6px;
    font-weight: 900;
  }
}
