/* ---- Tornillo & Llave — tokens ----
   color: steel #2E2F31, concrete #ECE7DD, orange #E1571A, hazard yellow #F2C230, ink #1C1C1B
   type: Oswald (display, condensed industrial) + Work Sans (body) + IBM Plex Mono (specs/SKU)
---------------------------------------- */

:root {
  --steel: #2e2f31;
  --concrete: #ece7dd;
  --orange: #e1571a;
  --yellow: #f2c230;
  --ink: #1c1c1b;
  --font-display: "Oswald", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* hazard stripe — literal safety tape, ties to the subject */
.hazard-bar {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow),
    var(--yellow) 16px,
    var(--ink) 16px,
    var(--ink) 32px
  );
  background-size: 45px 45px;
  animation: hazard-scroll 3.5s linear infinite;
}
@keyframes hazard-scroll {
  from { background-position: 0 0; }
  to { background-position: 45px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hazard-bar { animation: none; }
}

/* header */
.site-header {
  background: var(--steel);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  color: var(--concrete);
  text-decoration: none;
}
.logo span { color: var(--orange); }
nav a {
  text-decoration: none;
  color: #bdb9ae;
  margin-left: 26px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
nav a:hover { color: var(--concrete); }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
}

/* hero */
.hero { background: var(--steel); padding: 0; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 80px 24px;
}
.tag {
  font-family: var(--font-mono);
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0 0 16px;
}
.hero h1 {
  color: var(--concrete);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}
.lede {
  color: #b9b5aa;
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 20px 0 32px;
}
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--yellow); }
.hero-image img { border: 3px solid var(--orange); }

/* pasillos — signature: aisle directory (real store signage) */
.pasillos { padding: 90px 0 70px; }
.pasillos h2 { font-size: 1.9rem; }
.section-note { color: #55524a; max-width: 52ch; margin: 0 0 44px; }
.pasillo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 3px solid var(--ink);
}
.pasillo {
  border-right: 1px solid #cfc9ba;
  border-bottom: 1px solid #cfc9ba;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.15s ease;
}
.pasillo:nth-child(5n) { border-right: none; }
.pasillo:hover { background: var(--yellow); }
.num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--orange);
}
.label { font-size: 0.88rem; color: var(--ink); }

/* image bands */
.banda img { width: 100%; height: 420px; object-fit: cover; }

/* catalogo — spec sheets */
.catalogo { padding: 90px 0; }
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.spec-card {
  background: #fff;
  border: 1px solid #d9d3c2;
  padding: 22px;
}
.sku {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--ink);
  color: var(--yellow);
  padding: 3px 8px;
  margin-bottom: 14px;
}
.spec-card { transition: border-color 0.25s ease, transform 0.25s ease; }
.spec-card.spec-activa {
  border-color: var(--orange);
  border-width: 2px;
  transform: translateY(-4px);
}
.banda { overflow: hidden; }
.spec-card h3 {
  font-size: 1.05rem;
  text-transform: none;
  margin-bottom: 16px;
  line-height: 1.25;
}
.spec-card dl { margin: 0; font-family: var(--font-mono); font-size: 0.78rem; }
.spec-card dt { color: #8a8577; margin-top: 8px; }
.spec-card dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }

/* ubicacion */
.ubicacion { padding: 80px 0; background: var(--steel); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.info-grid h3 { color: var(--orange); font-size: 1rem; margin-bottom: 10px; }
.info-grid p { color: #bdb9ae; margin: 0; }

/* footer */
.site-footer {
  background: var(--ink);
  color: #7d7a70;
  padding: 26px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px; }
  .pasillo-grid { grid-template-columns: repeat(2, 1fr); }
  .pasillo:nth-child(5n) { border-right: 1px solid #cfc9ba; }
  .pasillo:nth-child(2n) { border-right: none; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; gap: 24px; }
  nav a { margin-left: 14px; font-size: 0.72rem; }
}
