/* ═══════════════════════════════════════════════════════════════════════════
   MADERAS TRINIDAD — v6 "Catálogo Técnico Forestal"
   Ficha técnica industrial: filetes finos, tipografía IBM Plex, fotos reales
   con leyendas FIG., amarillo solo como marca de acento.
   Paleta de marca (inamovible): navy #001F3F · green #00804C · yellow #DBE64C
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --navy:        #001F3F;
  --green:       #00804C;
  --green-dark:  #006B40;
  --yellow:      #DBE64C;
  --white:       #FFFFFF;
  --offwhite:    #F7F5F0;

  --text:        #16232F;
  --muted:       #5C6873;
  --line:        rgba(0, 31, 63, 0.14);
  --line-strong: rgba(0, 31, 63, 0.32);
  --line-invert: rgba(255, 255, 255, 0.16);
  --error:       #dc2626;

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  --container: 1200px;
  --gutter: 24px;
  --radius: 2px;

  --shadow-card: 0 1px 2px rgba(0, 31, 63, 0.06);
  --shadow-lift: 0 10px 30px rgba(0, 31, 63, 0.10);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: var(--radius);
}

::selection { background: var(--yellow); color: var(--navy); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Skip link (accesibilidad) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ── Utilidades tipográficas ────────────────────────────────────────────── */
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Revelado al hacer scroll (JS añade .rv--in) */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.rv--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Botones ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-dark); color: var(--white); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #002E5C; color: var(--white); }

.btn--outline-navy { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--outline-navy:hover { border-color: var(--navy); color: var(--navy); background: rgba(0,31,63,.04); }

.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--outline-white:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }

.btn--yellow-on-navy { background: var(--yellow); color: var(--navy); }
.btn--yellow-on-navy:hover { background: #E8F26A; color: var(--navy); }

/* WhatsApp = verde de marca (accesible, blanco sobre #00804C) */
.btn--wa { background: var(--green); color: var(--white); }
.btn--wa:hover { background: var(--green-dark); color: var(--white); }

.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--full { width: 100%; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item .dot { color: var(--yellow); }
.topbar a { color: rgba(255, 255, 255, 0.85); }
.topbar a:hover { color: var(--yellow); }
.topbar__right { display: flex; gap: 20px; }
@media (max-width: 760px) {
  .topbar__right { display: none; }
  .topbar__inner { justify-content: center; text-align: center; }
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header--scrolled { box-shadow: 0 4px 18px rgba(0, 31, 63, 0.08); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.site-header__logo-icon { width: 42px; height: 42px; }
.site-header__logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-header__logo-name .name {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.site-header__logo-name .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}

.site-header__nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.site-header__nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
}
.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .2s ease;
}
.site-header__nav a:hover { color: var(--navy); }
.site-header__nav a:hover::after,
.site-header__nav a[aria-current="page"]::after { width: 100%; }
.site-header__nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

.site-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.site-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, background-color .18s ease;
}
.site-header__cart:hover { border-color: var(--navy); color: var(--navy); }
.cart-badge {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
}

.site-header__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
}

@media (max-width: 920px) {
  .site-header__inner { height: 64px; gap: 16px; }
  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__nav a { padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
  .site-header__nav a:last-child { border-bottom: none; }
  .site-header__nav a::after { display: none; }
  .site-header__toggle { display: inline-flex; }
  .site-header__wa-label { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--offwhite);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--yellow);
}

.hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--green);
}

.hero__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero__specs {
  display: flex;
  border-top: 1px solid var(--line-strong);
}
.hero__spec {
  flex: 1;
  padding: 14px 18px 0 0;
  border-right: 1px solid var(--line);
  margin-right: 18px;
}
.hero__spec:last-child { border-right: none; margin-right: 0; }
.hero__spec .k { color: var(--muted); display: block; margin-bottom: 3px; }
.hero__spec .v { font-weight: 600; color: var(--navy); font-size: 15px; }

/* Marco técnico de foto: borde + esquinas + leyenda FIG. */
.fig { position: relative; }
.fig__frame {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 10px;
  background: var(--white);
}
.fig__frame::before,
.fig__frame::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 3px solid var(--yellow);
  z-index: 2;
}
.fig__frame::before { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.fig__frame::after { bottom: -3px; right: -3px; border-left: none; border-top: none; }
.fig__img { width: 100%; object-fit: cover; }
.fig__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.fig__caption .num { color: var(--green); font-weight: 600; }

.hero .fig__img { aspect-ratio: 4 / 3; }

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
  .hero__specs { flex-wrap: wrap; }
  .hero__spec { flex: 1 1 45%; margin-bottom: 12px; }
}

/* ── Índice de líneas de producto ───────────────────────────────────────── */
.index-section { background: var(--white); }
.index-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 56px 0 24px;
}
.index-list { border-top: 1px solid var(--line-strong); margin-bottom: 72px; }

.index-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
}
.index-row:hover {
  background: var(--navy);
  color: var(--white);
  padding-left: 20px;
}
.index-row__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}
.index-row:hover .index-row__num { color: var(--yellow); }
.index-row__name {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.index-row__count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.index-row:hover .index-row__count { color: rgba(255,255,255,.75); }
.index-row__arrow { display: inline-flex; color: inherit; }

@media (max-width: 640px) {
  .index-row { grid-template-columns: 48px minmax(0,1fr) auto; }
  .index-row__count { display: none; }
}

/* ── Secciones genéricas ────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section--offwhite { background: var(--offwhite); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  margin-bottom: 10px;
}
.section__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--yellow); }
.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.15;
}
.section__link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--green);
}
.section__link:hover { color: var(--navy); border-color: var(--navy); }

/* ── Cards de producto (ficha técnica) ──────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 800px)  { .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 430px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.product-card__img-wrap {
  position: relative;
  display: block;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.product-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 14px;
}
.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 0; }
.product-card__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.product-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}
.product-card__name a { color: inherit; }
.product-card__name a:hover { color: var(--green); }

.product-card__price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; margin-top: auto; }
.product-card__price {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
}
.product-card__price--offer { color: var(--green); }
.product-card__price-original {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: line-through;
}
.product-card__unit { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin: 0 -16px;
}
.product-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 8px;
  font-size: 13.5px;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--navy);
  transition: background-color .15s ease, color .15s ease;
}
.product-card__action + .product-card__action { border-left: 1px solid var(--line); }
.product-card__action:hover { background: var(--navy); color: var(--white); }
.product-card__action--wa { color: var(--green); }
.product-card__action--wa:hover { background: var(--green); color: var(--white); }

/* ── Proceso + stats (banda navy) ───────────────────────────────────────── */
.process {
  background: var(--navy);
  color: var(--white);
  border-top: 3px solid var(--yellow);
  padding: 80px 0;
}
.process .section__eyebrow { color: var(--yellow); }
.process .section__title { color: var(--white); }

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-invert);
  margin-bottom: 64px;
}
.process__step {
  padding: 28px 28px 8px 0;
  border-right: 1px solid var(--line-invert);
  margin-right: 28px;
}
.process__step:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.process__step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  display: block;
  margin-bottom: 12px;
}
.process__step-title { font-size: 19px; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.process__step-desc { font-size: 15px; color: rgba(255,255,255,.72); }

.process__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line-invert);
  padding-top: 40px;
}
.process__stat { text-align: left; }
.process__stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}
.process__stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

@media (max-width: 800px) {
  .process__steps { grid-template-columns: 1fr; }
  .process__step { border-right: none; margin-right: 0; padding: 22px 0 14px; border-bottom: 1px solid var(--line-invert); }
  .process__step:last-child { border-bottom: none; }
  .process__stats { grid-template-columns: 1fr 1fr; }
}

/* ── Banda fotográfica documental ───────────────────────────────────────── */
.photo-band { position: relative; }
.photo-band__img {
  width: 100%;
  height: clamp(280px, 45vw, 460px);
  object-fit: cover;
}
.photo-band__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px var(--gutter);
}
.photo-band__caption .num { color: var(--yellow); font-weight: 600; }

/* ── Por qué elegirnos ──────────────────────────────────────────────────── */
.why {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}
.why__list { border-top: 1px solid var(--line-strong); }
.why__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.why__check {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  margin-top: 2px;
}
.why__item-title { font-weight: 600; color: var(--navy); font-size: 16.5px; display: block; margin-bottom: 3px; }
.why__item-desc { font-size: 14.5px; color: var(--muted); }

.why__aside { position: sticky; top: 96px; }
.why__quote {
  margin-top: 22px;
  border-left: 3px solid var(--yellow);
  padding: 6px 0 6px 18px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--navy);
}
.why__quote footer {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 920px) {
  .why { grid-template-columns: 1fr; gap: 40px; }
  .why__aside { position: static; }
}

/* ── CTA final ──────────────────────────────────────────────────────────── */
.cta {
  background: var(--navy);
  border-top: 3px solid var(--yellow);
  color: var(--white);
  padding: 80px 0;
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.cta__title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--white);
}
.cta__sub { color: rgba(255,255,255,.75); font-size: 16.5px; max-width: 52ch; }
.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.cta__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: rgba(255,255,255,.85);
}
.cta__tel a { color: var(--yellow); }
.cta__tel a:hover { color: #E8F26A; }
@media (max-width: 800px) { .cta__inner { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2.5fr) minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 40px;
  padding: 60px 0 44px;
  border-bottom: 1px solid var(--line-invert);
}
.site-footer__brand-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.site-footer__brand-logo img { width: 40px; height: 40px; }
.site-footer__brand-name { font-weight: 700; font-size: 16px; color: var(--white); line-height: 1.15; }
.site-footer__brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  display: block;
}
.site-footer__tagline { max-width: 34ch; color: rgba(255,255,255,.6); }

.site-footer__col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { color: rgba(255,255,255,.78); }
.site-footer__links a:hover { color: var(--yellow); }

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.site-footer__contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--yellow); }
.site-footer__contact-item a { color: rgba(255,255,255,.78); }
.site-footer__contact-item a:hover { color: var(--yellow); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.5);
}
.site-footer__bottom a { color: rgba(255,255,255,.7); }
.site-footer__bottom a:hover { color: var(--yellow); }

@media (max-width: 920px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; gap: 32px; } }

/* ── Botón flotante WhatsApp ────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.07); color: var(--white); }
.wa-float svg { width: 28px; height: 28px; }

/* ── Encabezado de páginas interiores ───────────────────────────────────── */
.page-head {
  background: var(--offwhite);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 36px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: var(--yellow); }
.breadcrumb .current { color: var(--navy); }

.page-head__title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.1;
}
.page-head__meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ── Catálogo: filtros ──────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip--active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filter-chip--active:hover { color: var(--white); }
.filter-chip .n { color: var(--green); }
.filter-chip--active .n { color: var(--yellow); }

/* ── Paginación ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pagination a:hover { border-color: var(--navy); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── Página de producto ─────────────────────────────────────────────────── */
.product-page {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  padding: 56px 0 72px;
  align-items: start;
}
.product-page__gallery .fig__img { aspect-ratio: 1 / 1; object-fit: contain; background: var(--white); }
.product-page__thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.product-page__thumb {
  width: 76px; height: 76px;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .15s ease;
}
.product-page__thumb:hover, .product-page__thumb--active { border-color: var(--green); }

.product-page__cat {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: inline-block;
}
.product-page__title {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 18px;
}
.product-page__price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.product-page__price {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
}
.product-page__price--offer { color: var(--green); }
.product-page__price-original {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--muted);
  text-decoration: line-through;
}
.product-page__desc { color: var(--text); margin-bottom: 28px; max-width: 58ch; }
.product-page__desc p + p { margin-top: 10px; }

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-stepper button {
  width: 44px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--navy);
  transition: background-color .15s ease;
}
.qty-stepper button:hover { background: var(--offwhite); }
.qty-stepper input {
  width: 56px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--navy);
}
.qty-stepper input:focus { outline: none; background: var(--offwhite); }

.product-page__buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-bottom: 32px; }

.spec-table { border-top: 1px solid var(--line-strong); width: 100%; }
.spec-table__row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec-table__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.spec-table__val { color: var(--navy); font-weight: 500; }

@media (max-width: 880px) { .product-page { grid-template-columns: 1fr; gap: 36px; } }

/* ── Carrito ────────────────────────────────────────────────────────────── */
.cart-page { padding-top: 56px; padding-bottom: 80px; }
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-empty {
  text-align: center;
  padding: 72px 24px;
  border: 1px dashed var(--line-strong);
}
.cart-empty__label { color: var(--muted); margin-bottom: 8px; }
.cart-empty p { color: var(--muted); margin-bottom: 20px; }

.cart-list { border-top: 1px solid var(--line-strong); }
.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item__img {
  width: 88px; height: 88px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 6px;
}
.cart-item__name { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.cart-item__price { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.cart-item__controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cart-item__qty-btn {
  width: 32px; height: 32px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 16px;
}
.cart-item__qty-btn:hover { border-color: var(--navy); }
.cart-item__qty { font-family: var(--font-mono); min-width: 24px; text-align: center; }
.cart-item__remove {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-item__remove:hover { color: var(--error); }
.cart-item__subtotal {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  text-align: right;
}
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-item__subtotal { grid-column: 2; text-align: left; }
}

.cart-summary {
  border: 1px solid var(--line-strong);
  padding: 26px;
  background: var(--offwhite);
  position: sticky;
  top: 96px;
}
.cart-summary__title { margin-bottom: 18px; color: var(--navy); }
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}
.cart-summary__row--total {
  border-bottom: none;
  padding-top: 16px;
  color: var(--navy);
  font-weight: 600;
  font-size: 17px;
}
.cart-summary__row--total .amount { font-family: var(--font-mono); font-size: 22px; }
.cart-summary__note { font-size: 12.5px; color: var(--muted); margin: 12px 0 18px; }
.cart-summary .btn { margin-bottom: 10px; }

/* ── Contacto ───────────────────────────────────────────────────────────── */
.contact-page { padding-top: 56px; padding-bottom: 80px; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-list { border-top: 1px solid var(--line-strong); }
.contact-list__item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.contact-list__val { color: var(--navy); font-weight: 500; }
.contact-list__val a { color: var(--green); }
@media (max-width: 480px) { .contact-list__item { grid-template-columns: 1fr; gap: 4px; } }

.contact-form {
  border: 1px solid var(--line-strong);
  padding: 30px;
  background: var(--offwhite);
}
.contact-form__title { color: var(--navy); margin-bottom: 6px; font-size: 19px; font-weight: 700; }
.contact-form__sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form__field { margin-bottom: 16px; }
.contact-form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.contact-form__input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .15s ease;
}
.contact-form__input:focus { outline: none; border-color: var(--green); }
.contact-form__input--error { border-color: var(--error); }
textarea.contact-form__input { resize: vertical; min-height: 110px; }
.contact-form__hint { font-size: 12.5px; color: var(--error); margin-top: 5px; display: none; }

/* ── Página 404 / mensajes ──────────────────────────────────────────────── */
.notice-block {
  border: 1px dashed var(--line-strong);
  padding: 48px 24px;
  text-align: center;
  margin: 56px 0;
}
.notice-block p { color: var(--muted); margin-bottom: 20px; }

/* ── WEB-123 · Correcciones de responsive y accesibilidad táctil ──────────── */

/* A 375px la fila del header no cabía: logo (196px) + atajo WhatsApp + carrito +
   hamburguesa + los dos gutters suman 421px, y el sobrante de 22px generaba scroll
   horizontal en todo el sitio. Bajo 430px se oculta el atajo de WhatsApp del header:
   el botón flotante (.wa-float) ya ofrece el mismo canal en esa pantalla. */
@media (max-width: 430px) {
  .site-header__actions .btn--wa { display: none; }
}

/* Red de seguridad: el nombre del sitio sale de la BD y uno más largo que
   «Maderas Trinidad» volvería a desbordar el header. Que el bloque de texto pueda
   encogerse evita que eso reaparezca en el futuro. */
@media (max-width: 920px) {
  .site-header__logo      { min-width: 0; flex-shrink: 1; }
  .site-header__logo-name { min-width: 0; overflow: hidden; }
  .site-header__logo-name .name,
  .site-header__logo-name .sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Touch targets de 44px mínimo en móvil (CLAUDE.md §9.2). En escritorio se respeta
   el alto original del diseño; esto solo aplica donde se toca con el dedo. */
@media (max-width: 768px) {
  .btn,
  .filter-chip,
  .product-card__action {
    min-height: 44px;
  }
}

/* ── WEB-123 · Rediseño de la home (maqueta aprobada por el CEO) ─────────── */

/* Pantalla de carga.
   Se cierra sola con una animación CSS (fill-mode: forwards). site.js solo añade
   .is-hidden para adelantar el cierre cuando la página terminó de cargar. Hacerlo
   al revés — que el JS fuera el único que la cierra — deja la portada tapada por
   una pantalla azul si el script falla, se bloquea o el usuario lo tiene apagado. */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  animation: loaderOut .5s ease 1.5s forwards;
}
.site-loader.is-hidden {
  animation: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
.site-loader__logo { width: 64px; height: 64px; }
.site-loader__name {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--yellow);
}
.site-loader__bar {
  position: relative;
  width: 140px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.site-loader__bar-fill {
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: var(--yellow);
  animation: loaderSweep 1.1s ease-in-out infinite;
}
@keyframes loaderOut   { to { opacity: 0; visibility: hidden; } }
@keyframes loaderSweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Sin animaciones: la pantalla de carga no aporta nada, así que se va enseguida. */
@media (prefers-reduced-motion: reduce) {
  .site-loader           { animation-delay: .1s; animation-duration: .1s; }
  .site-loader__bar-fill { animation: none; width: 100%; }
}

/* Barra superior: icono del enlace de ubicación. */
.topbar__icon { color: var(--yellow); flex-shrink: 0; }

/* Servicios de planta. */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.services__card {
  border: 1px solid var(--line-strong);
  padding: 28px;
  background: var(--white);
}
.services__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.services__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.services__desc { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Mapa del pie de página.
   pointer-events:none en el iframe a propósito: así el mapa no se traga el scroll
   del dedo en móvil, y el toque lo recibe el enlace que lo envuelve, que abre
   Google Maps en otra pestaña. */
.site-footer__map {
  display: block;
  margin-top: 20px;
  border: 1px solid var(--line-invert);
  padding: 4px;
}
.site-footer__map:hover { border-color: var(--yellow); }
.site-footer__map iframe {
  display: block;
  width: 100%;
  height: 140px;
  border: 0;
  filter: grayscale(.4);
  pointer-events: none;
}
.site-footer__map-label {
  display: block;
  padding: 8px 4px 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
