/* =========================================================
   STOCKS INDUSTRIA · Marketplace de oportunidades industriales
   Diseño definitivo (antes «Propuesta 2»)
   ========================================================= */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* Antracita / negro */
  --ink: #15181c;
  --ink-2: #1f2328;
  --ink-3: #2c3137;
  --steel: #5b636d;
  --steel-2: #8a929c;
  /* Claros */
  --paper: #ffffff;
  --mist: #f3f4f6;
  --mist-2: #e8eaed;
  --line: #dde0e4;
  /* Rojo: acción, oportunidad, liquidación */
  --red: #c0260d;
  --red-dark: #9a1e09;
  --red-soft: #fbece9;
  /* Verde: disponibilidad, verificado, circular */
  --green: #1d7a37;
  --green-dark: #135224;
  --green-soft: #e8f4ec;
  /* Otros estados */
  --amber: #b86e00;
  --amber-soft: #fdf3e2;
  --blue: #1f5fa8;
  --blue-soft: #e8f0fa;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 28, .06), 0 1px 3px rgba(20, 24, 28, .08);
  --shadow: 0 6px 24px rgba(20, 24, 28, .10);
  --shadow-lg: 0 18px 50px rgba(20, 24, 28, .18);
  --wrap: 1280px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Inter", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .005em;
}

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--ink);
  color: #c7ccd2;
  font-size: 13px;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px;
}
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info svg { width: 14px; height: 14px; stroke: var(--steel-2); }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a:hover { color: #fff; }
.topbar .accent-green { color: #7fd09a; font-weight: 600; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; gap: 28px; min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: .04em;
  color: var(--ink);
}
.brand-name b { color: var(--red); font-weight: 800; }
.brand-sub {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a,
.nav > .nav-item > a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav > a:hover,
.nav > .nav-item > a:hover { background: var(--mist); color: var(--ink); }
.nav a.is-active { color: var(--red); }
.nav a.nav-hot { color: var(--red); }
.nav a.nav-hot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
.nav-item { position: relative; }
.nav-item > a svg { width: 12px; height: 12px; }

.mega {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 620px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.mega::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item:hover .mega,
.nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--ink-3);
}
.mega a:hover { background: var(--mist); color: var(--red); }
.mega a svg { width: 20px; height: 20px; stroke: var(--steel); flex-shrink: 0; }
.mega a:hover svg { stroke: var(--red); }
.mega-foot {
  grid-column: 1 / -1; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--steel);
}
.mega-foot a { padding: 0; font-weight: 700; color: var(--red); }

.header-cta { display: flex; gap: 10px; align-items: center; }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 6px 18px rgba(192, 38, 13, .28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17824a; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 15px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--red);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 680px;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-almacen.webp") center 45% / cover no-repeat;
  transform: scale(1.03);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 16, 19, .92) 0%, rgba(14, 16, 19, .78) 38%, rgba(14, 16, 19, .30) 72%, rgba(14, 16, 19, .15) 100%),
    linear-gradient(0deg, rgba(14, 16, 19, .55) 0%, rgba(14, 16, 19, 0) 35%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 110px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 7px 14px 7px 10px; border-radius: 40px;
  margin-bottom: 26px;
}
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 4px rgba(62, 207, 110, .25); }
.hero h1 {
  font-size: clamp(56px, 8.4vw, 116px);
  font-weight: 800;
  letter-spacing: .01em;
  color: #fff;
  margin: 0 0 12px;
  line-height: .9;
  text-transform: uppercase;
}
.hero h1 span { color: var(--red); }
.hero h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 600;
  color: #fff;
  max-width: 760px;
  margin-bottom: 18px;
  line-height: 1.08;
}
.hero-lead {
  font-size: 18px; line-height: 1.55; color: #d6dade; max-width: 620px; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-search {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex; gap: 8px;
  max-width: 820px;
}
.hero-search label.hs-label {
  position: absolute; left: -9999px;
}
.hs-field {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  color: var(--ink);
}
.hs-field svg { width: 22px; height: 22px; stroke: var(--steel); flex-shrink: 0; }
.hs-field input {
  border: 0; outline: 0; width: 100%; height: 52px; font-size: 16.5px; background: transparent;
}
.hs-field input::placeholder { color: #7a828c; }
.hs-select {
  border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink-3);
  padding: 0 14px; font-weight: 600; font-size: 14.5px; outline: 0; max-width: 220px;
}
.hero-search .btn { min-height: 52px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: #b8bec5; align-items: center; }
.hero-tags a {
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 30px; padding: 3px 12px; color: #e7eaed;
}
.hero-tags a:hover { background: #fff; color: var(--ink); }

/* Franja de garantías bajo el hero */
.trust {
  position: relative; z-index: 5;
  margin-top: -58px;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 24px 22px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 30px; height: 30px; flex-shrink: 0; stroke: var(--green); }
.trust-item:nth-child(2n) svg { stroke: var(--red); }
.trust-item strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.trust-item span { font-size: 13.5px; color: var(--steel); line-height: 1.45; display: block; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-mist { background: var(--mist); }
.section-dark { background: var(--ink); color: #c9ced4; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; }
.eyebrow.green { color: var(--green); }
.section-dark .eyebrow { color: #ff6a50; }
.section-title { font-size: clamp(36px, 4.4vw, 56px); text-transform: uppercase; margin-bottom: 0; }
.section-sub { font-size: 17.5px; color: var(--steel); max-width: 640px; margin: 14px 0 0; }
.section-dark .section-sub { color: #aab1b9; }

/* ---------- Comprar / Vender / Liquidaciones ---------- */
.paths { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.path {
  position: relative; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  isolation: isolate;
}
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.path::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 16, 19, .05) 20%, rgba(14, 16, 19, .88) 78%);
}
.path:hover img { transform: scale(1.05); }
.path-body { padding: 30px; }
.path-num { font-weight: 700; font-size: 12px; letter-spacing: .18em; color: rgba(255, 255, 255, .78); margin-bottom: 8px; }
.path h3 { color: #fff; font-size: 44px; text-transform: uppercase; margin-bottom: 8px; }
.path p { color: #d5d9de; font-size: 15.5px; margin-bottom: 20px; max-width: 380px; }
.path .bar { position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.path.buy .bar { background: var(--green); }
.path.sell .bar { background: var(--red); }
.path.liq .bar { background: #ffb020; }
.path-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 18px 18px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  min-height: 150px;
}
.cat:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat svg { width: 36px; height: 36px; stroke: var(--ink); stroke-width: 1.5; }
.cat:hover svg { stroke: var(--red); }
.cat strong { font-size: 15px; line-height: 1.25; color: var(--ink); display: block; }
.cat small { font-size: 12.5px; color: var(--steel); display: block; margin-top: 2px; }
.cat-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.cat-count { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 20px; white-space: nowrap; }

/* ---------- Tarjeta de producto ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-products.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  position: relative;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c9cdd3; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-photos {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(14, 16, 19, .72); color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px; display: inline-flex; gap: 5px; align-items: center;
}
.card-photos svg { width: 13px; height: 13px; stroke: #fff; }
.card.is-sold .card-media img { filter: grayscale(1) brightness(.85); }
.card.is-sold .card-media::after {
  content: "VENDIDO"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: .12em; color: #fff;
  background: rgba(14, 16, 19, .35);
}

.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--steel); margin-bottom: 6px; }
.card-meta .cat-name { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.card-title { font-family: var(--font); font-size: 16.5px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; color: var(--ink); }
.card-title a:hover { color: var(--red); }
.card-facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-3); }
.card-facts li { display: flex; gap: 8px; align-items: center; }
.card-facts svg { width: 15px; height: 15px; stroke: var(--steel); flex-shrink: 0; }
.card-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.price { line-height: 1.1; }
.price small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-bottom: 3px; }
.price strong { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink); }
.price strong em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--steel); margin-left: 3px; }
.price.ask strong { font-size: 20px; color: var(--ink-3); }
.price-old { font-size: 12px; color: var(--steel); margin-top: 4px; }
.price-old s { color: var(--red); font-weight: 600; }
.card-ref { white-space: nowrap; }
.price-vol { font-size: 12px; color: var(--green); font-weight: 600; margin-top: 4px; }
.card-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  display: inline-grid; place-items: center; flex-shrink: 0; transition: all .15s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn.wa { color: #1f9d55; }
.icon-btn.wa:hover { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.icon-btn.go { background: var(--red); color: #fff; border-color: var(--red); }
.icon-btn.go:hover { background: var(--red-dark); }

/* ---------- Estados (badges) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; line-height: 1.2; white-space: nowrap;
  background: #fff; color: var(--ink);
}
.badge svg { width: 12px; height: 12px; }
.badge-disponible { background: var(--green); color: #fff; }
.badge-verificado { background: #fff; color: var(--green-dark); box-shadow: inset 0 0 0 1.5px var(--green); }
.badge-liquidacion { background: var(--red); color: #fff; }
.badge-lote { background: var(--ink); color: #fff; }
.badge-ultimas { background: #ffb020; color: #2a1c00; }
.badge-reservado { background: var(--blue); color: #fff; }
.badge-vendido { background: #5b636d; color: #fff; }
.card-badges .badge { box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.card-badges .badge-verificado { box-shadow: inset 0 0 0 1.5px var(--green), 0 2px 6px rgba(0, 0, 0, .18); }

/* Pestañas de filtro rápido */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 1181px) { .section-head .chips { flex-wrap: nowrap; flex-shrink: 0; } }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 30px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Liquidaciones destacadas ---------- */
.liq-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: stretch; }
.liq-feature {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
}
.liq-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.liq-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 16, 19, .15), rgba(14, 16, 19, .92) 75%); }
.liq-feature .body { padding: 34px; }
.liq-feature h3 { font-size: 40px; text-transform: uppercase; margin: 12px 0 10px; }
.liq-feature p { color: #cdd2d8; max-width: 520px; }
.liq-stats { display: flex; gap: 30px; margin: 18px 0 24px; flex-wrap: wrap; }
.liq-stats div { border-left: 3px solid var(--red); padding-left: 12px; }
.liq-stats strong { display: block; font-family: var(--font-display); font-size: 30px; color: #fff; line-height: 1; }
.liq-stats span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: #aab1b9; }
.liq-list { display: grid; gap: 14px; }
.liq-row {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 18px; align-items: center;
  background: var(--ink-2); border: 1px solid #2f353c; border-radius: var(--radius-lg); padding: 12px; transition: border-color .15s, background .15s;
}
.liq-row:hover { border-color: var(--red); background: #242930; }
.liq-row img { width: 112px; height: 84px; object-fit: cover; border-radius: var(--radius); }
.liq-row h4 { font-family: var(--font); font-size: 16px; color: #fff; margin: 4px 0 4px; line-height: 1.3; }
.liq-row p { font-size: 13px; color: #9ea6af; margin: 0; }
.liq-deadline { text-align: right; font-size: 12px; color: #9ea6af; white-space: nowrap; padding-right: 8px; }
.liq-deadline strong { display: block; color: #ff7a61; font-size: 14px; }
.countdown { display: inline-flex; gap: 6px; font-family: var(--font-display); font-size: 22px; color: #fff; font-weight: 700; }
.countdown span { background: rgba(255, 255, 255, .1); padding: 4px 9px; border-radius: 4px; min-width: 50px; text-align: center; line-height: 1.1; }
.countdown small { display: block; font-family: var(--font); font-size: 9.5px; letter-spacing: .1em; color: #aab1b9; font-weight: 600; }

/* ---------- Procedencia ---------- */
.origins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.origin { padding: 30px 24px; border-right: 1px solid var(--line); position: relative; }
.origin:last-child { border-right: 0; }
.origin-n { font-family: var(--font-display); font-size: 54px; font-weight: 800; color: var(--mist-2); line-height: 1; margin-bottom: 14px; }
.origin svg { width: 34px; height: 34px; stroke: var(--red); position: absolute; top: 34px; right: 24px; }
.origin h3 { font-family: var(--font); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.origin p { font-size: 14px; color: var(--steel); margin: 0; }
.circular {
  margin-top: 28px; display: flex; gap: 22px; align-items: center;
  background: var(--green-soft); border: 1px solid #cfe6d7; border-radius: var(--radius-lg); padding: 22px 26px;
}
.circular svg { width: 44px; height: 44px; stroke: var(--green); flex-shrink: 0; }
.circular p { margin: 0; color: var(--green-dark); font-size: 15.5px; }
.circular strong { color: var(--green-dark); }

/* ---------- Cómo funciona ---------- */
.how-tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 5px; margin-bottom: 36px; }
.how-tabs button { border: 0; background: transparent; padding: 10px 22px; border-radius: 40px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); }
.how-tabs button.is-active { background: var(--ink); color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps[hidden] { display: none; }
.step { background: #fff; border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #fff;
  background: var(--ink); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
}
.steps.sell .step::before { background: var(--red); }
.steps.buy .step::before { background: var(--green); }
.step h3 { font-family: var(--font); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--steel); margin: 0; }

/* ---------- Formularios ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split-media { position: relative; min-height: 560px; isolation: isolate; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.split-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(154, 30, 9, .55), rgba(20, 10, 8, .92)); }
.split-media .body { padding: 44px; }
.split-media h2 { color: #fff; font-size: clamp(34px, 3.6vw, 50px); text-transform: uppercase; }
.split-media p { color: #f0d9d4; font-size: 16.5px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: #fff; }
.checklist.dark li { color: var(--ink-3); }
.checklist.dark svg { stroke: var(--green); }
.split-form { background: #fff; padding: 44px; }
.split-form h3 { font-family: var(--font); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.split-form .hint { color: var(--steel); font-size: 14px; margin-bottom: 22px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #cfd3d8; border-radius: var(--radius); background: #fff;
  padding: 11px 13px; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 24, 28, .1); }
.dropzone {
  border: 2px dashed #c3c8ce; border-radius: var(--radius-lg); padding: 22px; text-align: center; background: var(--mist);
  font-size: 14px; color: var(--steel); cursor: pointer; transition: border-color .15s, background .15s; display: block;
}
.dropzone:hover { border-color: var(--red); background: var(--red-soft); }
.dropzone svg { width: 30px; height: 30px; stroke: var(--red); margin: 0 auto 8px; }
.dropzone strong { color: var(--ink); display: block; }
.dropzone input { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--steel); }
.check input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0; }
.form-note { font-size: 12.5px; color: var(--steel); margin: 0; }
.form-ok {
  display: none; grid-column: 1 / -1; background: var(--green-soft); border: 1px solid #bfe0ca; color: var(--green-dark);
  border-radius: var(--radius); padding: 12px 14px; font-size: 14px; font-weight: 600;
}
.form.sent .form-ok { display: block; }

/* Alerta de búsqueda (compradores) */
.alert-box {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--green);
  border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-sm);
}
.alert-box h2 { font-size: clamp(34px, 3.6vw, 48px); text-transform: uppercase; }
.alert-box .bell { width: 58px; height: 58px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; margin-bottom: 20px; }
.alert-box .bell svg { width: 28px; height: 28px; stroke: var(--green); }

/* ---------- Sobre nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about-media .stamp {
  position: absolute; right: -18px; bottom: -22px; background: var(--ink); color: #fff;
  padding: 22px 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 280px;
}
.about-media .stamp small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9ea6af; margin-bottom: 4px; }
.about-media .stamp strong { font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; }
.about h2 { font-size: clamp(34px, 3.8vw, 50px); text-transform: uppercase; }
.about p { color: var(--ink-3); font-size: 16.5px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 30px; }
.value { display: flex; gap: 12px; align-items: flex-start; }
.value svg { width: 24px; height: 24px; stroke: var(--red); flex-shrink: 0; margin-top: 2px; }
.value strong { display: block; font-size: 15px; color: var(--ink); }
.value span { font-size: 13.5px; color: var(--steel); }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--steel); font-size: 15px; }

/* ---------- CTA final ---------- */
.cta-band { background: var(--red); color: #fff; padding: 54px 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .06);
}
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); text-transform: uppercase; margin: 0; }
.cta-band p { margin: 6px 0 0; color: #ffdcd5; font-size: 16.5px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-white { background: #fff; color: var(--red); }
.cta-band .btn-white:hover { background: var(--ink); color: #fff; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: #aab1b9; font-size: 14.5px; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: #8a929c; }
.footer h4 { font-family: var(--font); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a:hover { color: #fff; }
.footer-about { margin: 20px 0; max-width: 340px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; stroke: #ff6a50; flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid #2c3137; padding: 22px 0; font-size: 13px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }
.pending { color: #ffd24d; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #1f9d55; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(31, 157, 85, .45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Cabecera de página interior ---------- */
.page-head { background: var(--ink); color: #c9ced4; padding: 46px 0 40px; position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background: url("../img/almacen-pasillo.webp") center / cover;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(40px, 5vw, 64px); text-transform: uppercase; margin: 6px 0 8px; }
.page-head p { margin: 0; max-width: 700px; font-size: 16.5px; }
.page-head.liq::after { background-image: url("../img/almacen-palets.webp"); opacity: .28; }
.page-head.sell::after { background-image: url("../img/carretilla-diesel.webp"); opacity: .22; }
.crumbs { font-size: 13px; color: #8a929c; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.crumbs.light { color: var(--steel); }
.crumbs.light a:hover { color: var(--red); }

/* ---------- Catálogo ---------- */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 34px; padding: 40px 0 90px; align-items: start; }
.filters { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filters-head strong { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.filters-head button { border: 0; background: none; color: var(--red); font-size: 13px; font-weight: 600; }
.fgroup { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h5 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.fgroup label { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 4px 0; cursor: pointer; color: var(--ink-3); }
.fgroup label input { accent-color: var(--red); width: 16px; height: 16px; }
.fgroup label em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--steel-2); }
.fgroup .fsearch { width: 100%; border: 1px solid #cfd3d8; border-radius: var(--radius); padding: 10px 12px; font-size: 14px; }
.fgroup .fsearch:focus { outline: 0; border-color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.results-bar .count { font-size: 15px; color: var(--steel); }
.results-bar .count strong { color: var(--ink); font-size: 18px; }
.results-tools { display: flex; gap: 10px; align-items: center; }
.results-tools select { border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font-size: 14px; background: #fff; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { border: 0; background: #fff; width: 40px; height: 38px; display: grid; place-items: center; }
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button.is-active { background: var(--ink); color: #fff; }
.view-toggle svg { width: 18px; height: 18px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.active-filters button { border: 0; background: var(--ink); color: #fff; padding: 5px 10px 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--steel); }
.empty h3 { font-family: var(--font); font-size: 20px; }
.filters-open { display: none; }

/* Vista lista */
.grid-products.is-list { grid-template-columns: 1fr; }
.grid-products.is-list .card { flex-direction: row; }
.grid-products.is-list .card-media { width: 300px; aspect-ratio: auto; flex-shrink: 0; min-height: 220px; }
.grid-products.is-list .card-desc { display: block; }
.card-desc { display: none; font-size: 14px; color: var(--steel); margin: -4px 0 12px; }

/* Banner dentro del catálogo */
.inline-banner {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: var(--green-soft); border: 1px solid #cfe6d7; border-radius: var(--radius-lg); padding: 20px 24px;
}
.inline-banner strong { color: var(--green-dark); font-size: 17px; display: block; }
.inline-banner span { color: var(--green-dark); font-size: 14px; }

/* ---------- Ficha de producto ---------- */
.pdp { padding: 26px 0 80px; }
.pdp-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start; margin-top: 18px; }
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .card-badges { top: 16px; left: 16px; }
.gallery-main .badge { font-size: 12px; padding: 6px 10px; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-count { position: absolute; bottom: 14px; right: 14px; background: rgba(14, 16, 19, .75); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 20px; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: none; opacity: .7; transition: opacity .15s, border-color .15s; }
.thumbs button.is-active, .thumbs button:hover { opacity: 1; border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info .ref { font-size: 13px; color: var(--steel); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.pdp-info .ref strong { color: var(--ink); font-weight: 700; }
.pdp-info h1 { font-family: var(--font); font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.18; margin-bottom: 14px; }
.pdp-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.pdp-badges .badge { font-size: 11.5px; padding: 5px 10px; }
.pdp-badges .badge-verificado { box-shadow: inset 0 0 0 1.5px var(--green); }
.pdp-lead { color: var(--ink-3); font-size: 16px; }

.keyfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 20px 0; }
.keyfact { padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.keyfact:nth-child(2n) { border-right: 0; }
.keyfact:nth-last-child(-n+2) { border-bottom: 0; }
.keyfact svg { width: 20px; height: 20px; stroke: var(--red); flex-shrink: 0; margin-top: 2px; }
.keyfact small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.keyfact strong { font-size: 15px; color: var(--ink); line-height: 1.3; display: block; }

.price-box { background: var(--mist); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px; }
.price-box .price strong { font-size: 44px; }
.price-box .price.ask strong { font-size: 30px; }
.price-box .tax { font-size: 13px; color: var(--steel); margin-top: 4px; }
.vol-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.vol-table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); padding: 9px 12px; background: var(--mist-2); }
.vol-table td { padding: 9px 12px; border-top: 1px solid var(--line); }
.vol-table td:last-child { font-weight: 700; color: var(--green-dark); text-align: right; }
.vol-table th:last-child { text-align: right; }

.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-actions .btn-red { grid-column: 1 / -1; }
.pdp-assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.pdp-assure div { display: flex; gap: 10px; align-items: center; background: var(--mist); border-radius: var(--radius); padding: 14px; line-height: 1.35; }
@media (max-width: 760px) { .pdp-assure { grid-template-columns: 1fr; } }
.pdp-assure svg { width: 18px; height: 18px; stroke: var(--green); flex-shrink: 0; }

.pdp-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; margin-top: 56px; align-items: start; }
.pdp-body aside { position: sticky; top: 100px; }
.tabs { border-bottom: 2px solid var(--line); display: flex; gap: 4px; overflow-x: auto; margin-bottom: 26px; position: sticky; top: 76px; background: #fff; z-index: 5; }
.tabs a, .tabs button { border: 0; background: none; padding: 12px 16px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.is-active, .tabs button.is-active { color: var(--ink); border-bottom-color: var(--red); }
.pdp-sec { margin-bottom: 38px; scroll-margin-top: 150px; }
.pdp-sec h3 { font-family: var(--font); font-size: 19px; font-weight: 700; margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--red); }
.pdp-sec p, .pdp-sec li { color: var(--ink-3); font-size: 15.5px; }
.pdp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .pdp-two { grid-template-columns: 1fr; } }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-family: var(--font); font-size: 19px; font-weight: 700; margin: 0 0 12px; }
.tab-panel p, .tab-panel li { color: var(--ink-3); font-size: 15.5px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table tr:nth-child(odd) { background: var(--mist); }
.spec-table th { text-align: left; font-weight: 600; color: var(--steel); padding: 11px 14px; width: 45%; }
.spec-table td { padding: 11px 14px; color: var(--ink); font-weight: 600; }
.docs { display: grid; gap: 10px; }
.doc { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.doc svg { width: 28px; height: 28px; stroke: var(--red); flex-shrink: 0; }
.doc strong { display: block; font-size: 14.5px; color: var(--ink); }
.doc span { font-size: 12.5px; color: var(--steel); }
.doc .tag { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.doc .tag.ok { background: var(--green-soft); color: var(--green-dark); }
.doc .tag.req { background: var(--amber-soft); color: var(--amber); }

.side-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 18px; background: #fff; }
.side-card h3 { font-family: var(--font); font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.side-card.origin-card { border-left: 5px solid var(--red); }
.side-card.loc-card .map {
  height: 170px; border-radius: var(--radius); margin: 12px 0;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .0)),
    repeating-linear-gradient(0deg, #e9ecef 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, #e9ecef 0 1px, transparent 1px 28px),
    #f5f6f7;
  position: relative; overflow: hidden;
}
.map::before { content: ""; position: absolute; left: -10%; right: -10%; top: 58%; height: 14px; background: #fff; transform: rotate(-8deg); box-shadow: 0 0 0 1px #dfe2e6; }
.map::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 40%; width: 10px; background: #fff; transform: rotate(14deg); box-shadow: 0 0 0 1px #dfe2e6; }
.map .pin { position: absolute; left: 48%; top: 34%; z-index: 2; width: 34px; height: 34px; }
.map .pin svg { width: 34px; height: 34px; fill: var(--red); stroke: #fff; }

/* Modal oferta */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(14, 16, 19, .6); }
.modal.is-open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 620px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-family: var(--font); font-size: 20px; font-weight: 800; margin: 0 0 2px; }
.modal-head p { margin: 0; font-size: 13.5px; color: var(--steel); }
.modal-close { border: 0; background: var(--mist); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 24px 26px 26px; }

/* ---------- Página vender ---------- */
.sell-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sell-type { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: #fff; }
.sell-type svg { width: 34px; height: 34px; stroke: var(--red); margin-bottom: 14px; }
.sell-type h3 { font-family: var(--font); font-size: 18px; font-weight: 700; }
.sell-type p { font-size: 14.5px; color: var(--steel); margin: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-card { background: var(--ink); color: #c9ced4; border-radius: var(--radius-lg); padding: 36px; }
.contact-card h3 { color: #fff; font-size: 30px; text-transform: uppercase; }
.contact-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.contact-card li { display: flex; gap: 14px; }
.contact-card li svg { width: 22px; height: 22px; stroke: #ff6a50; flex-shrink: 0; margin-top: 2px; }
.contact-card li strong { display: block; color: #fff; }

.notice {
  background: var(--amber-soft); border: 1px solid #f2d9ab; color: #6b4300; border-radius: var(--radius);
  padding: 12px 14px; font-size: 13.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav > a, .nav > .nav-item > a { padding: 10px 8px; font-size: 14px; }
  .header-cta .btn-outline { display: none; }
  .cats { grid-template-columns: repeat(5, 1fr); }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .origins { grid-template-columns: repeat(3, 1fr); }
  .origin:nth-child(3) { border-right: 0; }
  .origin:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .nav, .header-cta { display: none; }
  .header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow);
  }
  .header.is-open .mega { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .paths { grid-template-columns: 1fr 1fr; }
  .paths .path:first-child { grid-column: 1 / -1; }
  .liq-wrap, .split, .about, .alert-box, .contact-grid, .pdp-top, .pdp-body { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .pdp-body aside { position: static; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .filters-open { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media .stamp { right: 12px; }
  .sell-types { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .topbar-info span:nth-child(n+2), .topbar-links { display: none; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 40px; height: 40px; }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 90px; }
  .hero h1 { font-size: 60px; }
  .hero h1 span { display: block; }
  .hero-kicker { font-size: 11px; letter-spacing: .1em; }
  .hero-lead { font-size: 16.5px; }
  .hero-search { flex-direction: column; }
  .hs-select { border-left: 0; border-top: 1px solid var(--line); height: 48px; max-width: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 68px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .paths { grid-template-columns: 1fr; }
  .path { min-height: 340px; }
  .cats { grid-template-columns: 1fr 1fr; }
  .grid-products, .grid-products.cols-3 { grid-template-columns: 1fr; }
  .grid-products.is-list .card { flex-direction: column; }
  .grid-products.is-list .card-media { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
  .origins { grid-template-columns: 1fr; }
  .origin { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .split-media { min-height: 380px; }
  .split-media .body, .split-form, .alert-box { padding: 28px 20px; }
  .form { grid-template-columns: 1fr; }
  .liq-row { grid-template-columns: 84px 1fr; }
  .liq-row img { width: 84px; height: 70px; }
  .liq-deadline { grid-column: 1 / -1; text-align: left; }
  .values { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: 1fr; }
  .keyfact { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .keyfact:last-child { border-bottom: 0 !important; }
  .pdp-actions { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .sell-types { grid-template-columns: 1fr; }
  .inline-banner { flex-direction: column; align-items: flex-start; }
}

/* Evita que el contenido ensanche las columnas de la rejilla en pantallas estrechas */
.catalog > *, .pdp-top > *, .pdp-body > *, .grid-products > *, .liq-wrap > *, .split > *, .about > *, .contact-grid > *, .alert-box > * { min-width: 0; }

/* =========================================================
   Complementos de la versión WordPress
   ========================================================= */

/* Hero: imagen más ligera en pantallas pequeñas */
@media (max-width: 1280px) { .hero-bg { background-image: url("../img/hero-almacen-1200.webp"); } }
@media (max-width: 760px)  { .hero-bg { background-image: url("../img/hero-almacen-768.webp"); } }

/* Accesibilidad */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Barra de administración de WordPress */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 0; } }

/* Tarjeta sin foto */
.card-media .no-photo, .gallery-main .no-photo {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, #eceef1 0 12px, #e5e8eb 12px 24px);
  color: var(--steel); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 20px;
}
.card-body .price strong.txt { font-size: 22px; }
.price-box .price strong.txt { font-size: 34px; }

/* Avisos de formulario */
.si-aviso { grid-column: 1 / -1; border-radius: var(--radius); padding: 12px 14px; font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.si-aviso--ok { background: var(--green-soft); border: 1px solid #bfe0ca; color: var(--green-dark); }
.si-aviso--error { background: var(--red-soft); border: 1px solid #f1c5bc; color: var(--red-dark); }
.si-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rgpd { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; color: var(--steel); margin: 0; }
.rgpd a, .check a { color: var(--ink); text-decoration: underline; }
.dropzone small { display: block; margin-top: 4px; font-size: 12px; }

/* Paginación del catálogo */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 14px; background: #fff;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--ink); }

/* Filtros: botón aplicar (sin JavaScript) */
.filters-apply { padding: 14px 18px; border-top: 1px solid var(--line); }
.js .filters-apply { display: none; }
.active-filters a { background: var(--ink); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.active-filters a svg { width: 12px; height: 12px; }

/* Estados vacíos */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 56px 24px; border: 1px dashed #c9cdd3;
  border-radius: var(--radius-lg); background: #fff;
}
.empty-state h3 { font-family: var(--font); font-size: 21px; font-weight: 700; }
.empty-state p { color: var(--steel); max-width: 560px; margin: 0 auto 22px; }
.empty-state .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.section-dark .empty-state { background: var(--ink-2); border-color: #3a4048; }
.section-dark .empty-state h3 { color: #fff; }
.section-dark .empty-state p { color: #aab1b9; }

/* Contenido editorial (textos legales, páginas genéricas) */
.prose { max-width: 820px; margin: 0 auto; padding: 56px 0 90px; font-size: 16.5px; color: var(--ink-3); }
.prose h2, .prose h3 { font-family: var(--font); font-weight: 700; text-transform: none; margin: 1.8em 0 .6em; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 19px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--red); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose mark { background: #fff2b8; padding: 0 3px; }

/* Descripción de la ficha escrita en el editor */
.pdp-sec .entry > *:first-child { margin-top: 0; }
.pdp-sec .entry p, .pdp-sec .entry li { color: var(--ink-3); font-size: 15.5px; }
.pdp-sec .entry h2, .pdp-sec .entry h3 { font-family: var(--font); font-size: 17px; font-weight: 700; text-transform: none; margin: 1.2em 0 .4em; }

/* Pie: redes */
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid #3a4048; border-radius: 50%; display: grid; place-items: center; }
.footer-social a:hover { border-color: #fff; }
.footer-social svg { width: 17px; height: 17px; }

/* Buscador de la portada con el foco visible */
.hs-field input:focus-visible { outline: 0; }
.hero-search:focus-within { box-shadow: 0 0 0 3px rgba(192, 38, 13, .45), var(--shadow-lg); }

/* Modal: evita desplazamiento de fondo */
body.modal-open { overflow: hidden; }

/* Mapa real enlazado */
.map-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; color: var(--red); margin-top: 8px; }
.map-link svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Encabezados semánticos con el aspecto del diseño */
.hero .hero-h2 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; color: #fff; max-width: 760px; margin: 0 0 18px; line-height: 1.08; }
.footer .footer-h { font-family: var(--font); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 18px; line-height: 1.3; }
.pdp-sec .pdp-h { font-family: var(--font); font-size: 19px; font-weight: 700; margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--red); line-height: 1.3; }
.side-card .side-h { font-family: var(--font); font-size: 17px; font-weight: 700; margin: 0 0 12px; line-height: 1.3; }
.modal-head .modal-h { font-family: var(--font); font-size: 20px; font-weight: 800; margin: 0 0 2px; line-height: 1.3; }
.split-form .split-h { font-family: var(--font); font-size: 22px; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.empty-state .empty-h { font-family: var(--font); font-size: 21px; font-weight: 700; }
.modal[hidden] { display: none; }
.topbar a:hover { color: #fff; }
.footer-contact a:hover, .contact-card a:hover { text-decoration: underline; }
.contact-card a { color: inherit; }
.fgroup .dot.badge { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; box-shadow: none; }
.fgroup .dot.badge-verificado { background: var(--green-dark); }
.nav > a.nav-cta-mobile { display: none; }
@media (max-width: 1024px) {
  .header.is-open .nav > a.nav-cta-mobile { display: inline-flex; margin-top: 8px; color: #fff; justify-content: center; padding: 0 18px; min-height: 46px; }
  .header.is-open .nav > a, .header.is-open .nav > .nav-item > a { padding: 12px 10px; font-size: 16px; }
}
.liq-list { align-content: start; }
.tabs a, .tabs button { padding: 12px 12px; font-size: 13px; }
