/* =========================================================
   Trivium Center — Design System
   Catálogo industrial, limpio y claro
   Palette: off-white, warm grays, muted red
   ========================================================= */

:root {
  /* Base */
  --bg: #ffffff;
  --bg-2: #f7f6f3;
  --bg-3: #f0ede8;
  --surface: #f7f6f3;
  --surface-hi: #ece9e3;
  --line: #e4e0d8;
  --line-2: #ccc8bf;

  /* Text */
  --text: #1c1c1c;
  --text-dim: #57534e;
  --text-mute: #a8a29e;

  /* Accent — rojo marca */
  --accent: #ff1e00;
  --accent-hi: #ff3d24;
  --accent-ink: #ffffff;

  /* Utility */
  --yellow: #b45309;
  --green: #15803d;
  --steel: #6b7280;

  /* Layout */
  --maxw: 1360px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.07);

  /* Fonts — Archivo para todo */
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.15; }
h3 { font-size: 1.1rem; line-height: 1.25; }
p  { margin: 0 0 .8em; color: var(--text-dim); }
.mono { font-family: var(--mono); font-size: .8rem; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  color: var(--text-mute);
  display: inline-block;
}

/* ---------- Container ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ---------- Header Sticky Container ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header {
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}
.header.scrolled {
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px; align-items: center;
  height: 80px;
  transition: height .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled .nav {
  height: 52px;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: height .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled .logo-img {
  height: 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-weight: 800; font-size: 1.1rem;
  border-radius: var(--radius);
}
.brand small {
  display: block;
  font-size: .6rem;
  color: var(--text-mute);
  letter-spacing: .1em;
  font-weight: 500;
  margin-top: 1px;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .nav { height: 64px; gap: 16px; }
  .header.scrolled .nav { height: 56px; }
}
.nav-links {
  display: flex; gap: 2px; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  padding: 8px 12px;
  font-weight: 500;
  font-size: .92rem;
  color: var(--text-dim);
  transition: color .15s, background .15s;
  border-radius: var(--radius);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-links .has-menu { position: relative; }
.nav-links .has-menu > a::after {
  content: "▾"; margin-left: 4px; font-size: .65rem; color: var(--text-mute);
}
.submenu {
  position: absolute; top: 100%; left: 0;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: 8px;
  display: none;
  box-shadow: var(--shadow);
  z-index: 50;
}
.nav-links .has-menu:hover .submenu { display: block; }
.submenu a {
  display: block; padding: 9px 12px; font-size: .9rem; color: var(--text-dim);
  border-radius: var(--radius);
}
.submenu a:hover { background: var(--surface); color: var(--text); }
.submenu a.submenu-primary { display: grid !important; grid-template-columns: 24px 1fr; align-items: center; gap: 12px; padding: 10px 12px; }
.submenu a.submenu-primary .cat-icon { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; opacity: .8; transition: opacity .2s; }
.submenu a.submenu-primary:hover .cat-icon { opacity: 1; }
.submenu a.submenu-primary strong { font-weight: 700; color: var(--text); margin: 0; line-height: 1.2; }
.submenu-sep {
  height: 1px;
  background: var(--line);
  margin: 6px 8px;
}

/* ---------- Brand bar (below header) ---------- */
.brand-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  height: 52px;
  position: relative;
  z-index: 1;
}
.brand-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
}
.brand-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  height: 40px;
  border-radius: var(--radius);
  transition: background .15s;
}
.brand-bar__item:hover { background: var(--surface); }
.brand-bar__item img {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 600px) {
  .brand-bar__item { padding: 4px 8px; }
  .brand-bar__item img { height: 18px; }
}
/* Logos más anchos / cortos: menos padding lateral para que se vean más grandes */
.brand-bar__item[data-slug="rotary-lift"],
.brand-bar__item[data-slug="trivium-pro"] {
  padding-left: 6px;
  padding-right: 6px;
}
.brand-bar__item[data-slug="rotary-lift"] img,
.brand-bar__item[data-slug="trivium-pro"] img {
  height: 30px;
}


.nav-cta {
  display: flex; gap: 10px; align-items: center;
}
.btn-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center; justify-content: center;
}
.btn-burger svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font-weight: 600; font-size: .88rem;
  border-radius: var(--radius);
  transition: transform .1s, background .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent); color: #fff;
}
.btn--primary:hover { background: var(--accent-hi); }
.btn--ghost {
  border: 1px solid var(--line-2); color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--text); background: var(--surface); }
.btn--dark { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); }
.btn--dark:hover { background: var(--surface-hi); }
.btn--wa {
  background: #25D366; color: #062e13;
}
.btn--wa:hover { background: #1fbb58; }
.btn--wa-red {
  background: var(--accent); color: #fff;
}
.btn--wa-red:hover { background: var(--accent-hi); }
.btn--sm { height: 36px; padding: 0 14px; font-size: .8rem; }
.btn--lg { height: 52px; padding: 0 28px; font-size: .95rem; }
.btn svg { width: 16px; height: 16px; }
/* Botones de WhatsApp sin icono propio: icono delante del texto */
a.btn[href*="wa.me"]:not(:has(svg))::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Chip / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  background: var(--bg-3); color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 99px;
}
.chip--accent { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.chip--yellow { background: color-mix(in srgb, var(--yellow) 10%, transparent); color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 30%, transparent); }
.chip--green { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 64px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .hero { padding: 40px 0 40px; }
}
.hero .inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px; align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}
.hero h1 .outline { color: inherit; }
.hero h1 .slash { color: var(--accent); }
.hero p.lead {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 18px 0 26px;
}
.hero .stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 32px; padding-top: 24px;
  gap: 16px;
}
.hero .stats > div {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero .stats b {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.hero .stats span {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: 6px; display: block;
  line-height: 1.2;
}
.hero-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  aspect-ratio: 4/5;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-card .tape {
  position: absolute; top: 16px; right: -44px;
  background: var(--yellow); color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 56px;
  font-size: .72rem;
  letter-spacing: .12em;
  transform: rotate(35deg);
}
.hero-card .ph {
  width: 100%; height: 75%;
  background: var(--bg-3);
  display: grid; place-items: center;
  color: var(--text-mute);
  font-size: .75rem;
  text-transform: uppercase; letter-spacing: .15em;
  border-radius: var(--radius);
}
.hero-card .meta {
  margin-top: 16px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.hero-card .meta h3 { font-weight: 700; font-size: 1.1rem; }
.hero-card .meta .sku { color: var(--text-mute); font-size: .75rem; }

@media (max-width: 900px) {
  .hero .inner { grid-template-columns: 1fr; }
  .hero-card { aspect-ratio: 5/4; }
}


/* ---------- Sections ---------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section--tight { padding: 48px 0; }
.section-head {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: end; margin-bottom: 36px;
}
.section-head h2 .accent { color: var(--accent); }
.section-head p { max-width: 48ch; margin-top: 8px; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.cat-faq { padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.cat-faq:empty { display: none; }
.cat-faq .container { max-width: 820px; }
.container.cat-faq { padding-left: 28px; padding-right: 28px; }
@media (max-width: 720px) { .container.cat-faq { padding-left: 20px; padding-right: 20px; } }
.cat-faq h2 { margin-bottom: 24px; }
.cat-faq details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px; background: var(--bg-2);
}
.cat-faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.cat-faq summary::-webkit-details-marker { display: none; }
.cat-faq summary::after { content: '+'; color: var(--accent); font-size: 1.3em; flex: none; }
.cat-faq details[open] summary::after { content: '−'; }
.cat-faq details p { margin-top: 10px; color: var(--muted, #666); line-height: 1.55; }

/* ---------- Guías del blog relacionadas (en categoría) ---------- */
.cat-blog-links { padding: 56px 0 72px; }
.cat-blog-links:empty { display: none; }
.cat-blog-links .container { max-width: 1100px; }
.cat-blog-links h2 { margin-bottom: 24px; }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .2s;
}
.cat-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.cat-card:hover::before { opacity: 1; }
.cat-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.cat-card__icon svg { width: 22px; height: 22px; }
.cat-card:hover .cat-card__icon {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.cat-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
}
.cat-card p { font-size: .9rem; color: var(--text-dim); margin: 0; max-width: 40ch; }
.cat-card .arrow {
  position: absolute; bottom: 24px; right: 24px;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--text-mute);
  transition: background .15s, color .15s, border-color .15s;
  font-size: 1rem;
}
.cat-card:hover .arrow { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 720px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Product grid ---------- */
.prod-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  /* Las tarjetas de una fila miden lo mismo (si un título ocupa 3 renglones y otro 2,
     no quedan desparejas); el blanco sobrante queda entre el título y los datos, que
     se anclan al pie de la tarjeta (ver .spec). */
  align-items: stretch;
}
.prod-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.prod-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.prod-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  position: relative;
  display: grid; place-items: center;
  color: var(--text-mute);
  font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em;
  overflow: hidden;
}
.prod-card .thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.prod-card .thumb .ribbon {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 6px;
}
/* Logo de marca sobre la foto, en la grilla de catálogo/categoría/marca. Fondo
   blanco propio (no depende de que la foto tenga fondo claro) y a todo color:
   la variante gris/opacidad baja de .brand-tag--logo de abajo es apenas un
   watermark, no cumple "que se vea el logo". */
.prod-card .thumb-brand {
  position: absolute; top: 10px; left: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 4px 8px; display: inline-flex; align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.prod-card .thumb-brand img { height: 16px; max-width: 72px; width: auto; display: block; object-fit: contain; }
/* Sello de origen ("Made in USA", "Marcado CE") sobre la foto, arriba a la derecha:
   el logo de marca ocupa la esquina izquierda. Va como HTML y no horneado en la
   imagen para poder cambiarlo sin rehacer la foto. Se define en "badges" del
   producto; ver ORIGIN_BADGES en site.js. Bandera arriba y el texto debajo, en
   una línea del mismo ancho que la bandera (el ancho del sello lo da la bandera). */
.origin-badge {
  display: inline-flex; flex-direction: column; align-items: stretch; gap: 3px;
  background: #fff; border: 1px solid var(--line); border-radius: 5px;
  padding: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.12);
  color: var(--text); line-height: 1;
}
.origin-badge img, .prod-card .thumb .origin-badge img {
  width: 54px; height: auto; max-width: none; display: block; background: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
/* width:0 + min-width:100%: el texto no aporta su ancho propio, toma el de la bandera. */
.origin-badge .ob-text { display: block; width: 0; min-width: 100%; height: auto; overflow: visible; }
.origin-badge .ob-text text { font-family: inherit; font-weight: 800; font-size: 8px; fill: currentColor; }
.prod-card .thumb .origin-badge { position: absolute; top: 8px; right: 8px; z-index: 1; }
.pd-gallery { position: relative; }
.pd-gallery > .origin-badge { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 6px; gap: 4px; }
.pd-gallery > .origin-badge img { width: 72px; }
@media (max-width: 520px) {
  /* Con dos columnas no entra junto al logo de marca: va abajo a la derecha. */
  .prod-card .thumb .origin-badge { top: auto; bottom: 6px; right: 6px; padding: 3px; }
  .prod-card .thumb .origin-badge img { width: 46px; }
  /* El logo de marca también abajo (a la izquierda): tapa menos de la foto del equipo. */
  .prod-card .thumb-brand { top: auto; bottom: 6px; left: 6px; padding: 3px 6px; }
  .prod-card .thumb-brand img { height: 13px; max-width: 58px; }
  .pd-gallery > .origin-badge { top: 8px; right: 8px; padding: 5px; }
  .pd-gallery > .origin-badge img { width: 56px; }
}
/* Solo el sello de la ficha de producto es un enlace a /origen/...: se nota al pasar el mouse. */
a.origin-badge { cursor: pointer; text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.origin-badge:hover { box-shadow: 0 3px 10px rgba(0,0,0,.22); transform: translateY(-1px); }
a.origin-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* En la tarjeta el sello no recibe toques: pasan a la tarjeta (el producto). */
.prod-card .origin-badge { pointer-events: none; }
.origin-badge--plain img, .prod-card .thumb .origin-badge--plain img { box-shadow: none; }
.origin-badge b { font-size: .54rem; font-weight: 800; letter-spacing: .05em; white-space: nowrap; }
.prod-card .thumb .origin-badge { position: absolute; top: 10px; right: 10px; z-index: 1; }
.pd-gallery { position: relative; }
.pd-gallery > .origin-badge { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 8px; gap: 6px; }
.pd-gallery > .origin-badge b { font-size: .8rem; }
@media (max-width: 520px) {
  /* Con dos columnas no entra junto al logo de marca: va abajo a la derecha. */
  .prod-card .thumb .origin-badge { top: auto; bottom: 6px; right: 6px; padding: 4px; }
  .prod-card .thumb .origin-badge b { font-size: .5rem; }
  .pd-gallery > .origin-badge { top: 8px; right: 8px; padding: 6px; }
  .pd-gallery > .origin-badge b { font-size: .66rem; }
}
/* Marcado CE en las tarjetas del catálogo: solo el logo, sin caja ni texto.
   La ficha de producto (.pd-gallery) mantiene el sello completo con "MARCADO CE". */
.prod-card .thumb .origin-badge--plain { background: none; border: 0; box-shadow: none; padding: 0; }
.prod-card .thumb .origin-badge--plain .ob-text { display: none; }
/* ce.webp es 3:2 con el círculo centrado y bordes transparentes: se recorta a
   cuadrado para que el círculo quede pegado a la esquina. */
.prod-card .thumb .origin-badge--plain img { width: 40px; height: 40px; object-fit: cover; }
@media (max-width: 520px) {
  .prod-card .thumb .origin-badge--plain img { width: 34px; height: 34px; }
}
/* Sello más chico en las tarjetas del catálogo: tapaba demasiado de la foto. */
.prod-card .thumb .origin-badge { top: 8px; right: 8px; padding: 3px; gap: 2px; }
.prod-card .thumb .origin-badge img { width: 38px; }
.prod-card .thumb .origin-badge b { font-size: .42rem; }
.prod-card .thumb .origin-badge--plain img { width: 34px; height: 34px; }
@media (max-width: 520px) {
  .prod-card .thumb .origin-badge { top: auto; bottom: 5px; right: 5px; padding: 2px; }
  .prod-card .thumb .origin-badge img { width: 30px; }
  .prod-card .thumb .origin-badge b { font-size: .38rem; }
  .prod-card .thumb .origin-badge--plain img { width: 30px; height: 30px; }
}
/* Las notas del blog aplican margen y borde a toda <img> del contenido (.post-content img);
   dentro de una grilla de productos eso agranda la foto y la caja blanca del logo. */
.post-content .prod-card img { margin: 0; border: 0; }
.prod-card .body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}
.prod-card .brand-tag {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-mute);
}
.prod-card .brand-tag--logo {
  display: block;
  margin-bottom: 5px;
  height: 11px;
}
.prod-card .brand-tag--logo img {
  height: 11px;
  max-width: 64px;
  width: auto;
  display: block;
  filter: grayscale(1) opacity(.3);
  transition: filter .2s;
  object-fit: contain;
}
.prod-card:hover .brand-tag--logo img { filter: grayscale(1) opacity(.55); }


.prod-card h3 {
  font-weight: 600;
  font-size: .98rem; line-height: 1.3;
  margin: 2px 0 4px;
  color: var(--text);
}
.prod-card .spec {
  display: flex; gap: 12px;
  margin-top: auto; padding-top: 6px;
  font-size: .75rem;
  color: var(--text-dim);
}
.prod-card .spec b { color: var(--text); font-weight: 600; }
/* Precio de lista, sólo en los equipos que lo tienen público (marca propia
   con precio cargado). El resto de las tarjetas queda igual que hoy. */
.prod-card .price-tag {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: var(--text);
}
.prod-card .price-tag span {
  display: block; font-size: .68rem; font-weight: 500; color: var(--text-mute);
  text-transform: none; letter-spacing: normal; margin-top: 1px;
}

/* Precio en la ficha de producto */
.pd-info .price-tag {
  margin: 14px 0 4px; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--text);
}
.pd-info .price-tag span {
  display: block; font-size: .8rem; font-weight: 500; color: var(--text-mute);
  letter-spacing: normal; margin-top: 2px;
}

@media (max-width: 1100px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- Clients carousel ---------- */
.clients-carousel {
  overflow: hidden;
  padding: 8px 0 4px;
  position: relative;
}
.clients-carousel::before,
.clients-carousel::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.clients-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-2), transparent);
}
.clients-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-2), transparent);
}
.clients-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
/* Pause on hover only on desktop */
@media (hover: hover) {
  .clients-carousel:hover .clients-track { animation-play-state: paused; }
}
.logo-wrap {
  width: 120px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
@media (max-width: 600px) {
  .logo-wrap { width: 90px; height: 42px; }
  .clients-track { gap: 16px; }
}

/* ---------- Services block ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.service .kicker {
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.service h3 {
  font-weight: 700;
  font-size: 1.1rem; margin: 10px 0 8px;
}
.service p { font-size: .92rem; color: var(--text-dim); margin: 0; }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: #1c1c1c;
  color: #fff;
  padding: 56px 0;
}
.cta-banner .inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.cta-banner p { color: rgba(255,255,255,.7); margin-top: 8px; max-width: 48ch; }
.cta-banner .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.cta-banner .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.cta-banner .btn--dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.cta-banner .btn--dark:hover { background: rgba(255,255,255,.18); }
@media (max-width: 800px) { .cta-banner .inner { grid-template-columns: 1fr; } }
/* ---------- Category page header ---------- */
.cat-hero {
  padding: 56px 0 36px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--text-mute); }
.breadcrumbs a:hover { color: var(--text); }

.pd-back-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  color: var(--text-dim); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 100px; padding: 8px 16px 8px 12px; margin-bottom: 14px;
}
.pd-back-link svg { width: 15px; height: 15px; }
.pd-back-link:hover { border-color: var(--accent); color: var(--accent); }
#pd-back-folleto:empty { display: none; }
.breadcrumbs span { color: var(--line-2); margin: 0 8px; }
.cat-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
}
.cat-hero .sub {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
  color: var(--text-dim);
  font-size: .9rem;
}

/* ---------- Sidebar + results ---------- */
.cat-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 72px;
}
.sidebar h4 {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.sidebar ul { list-style: none; margin: 0 0 24px; padding: 0; }
.sidebar li a {
  display: flex; justify-content: space-between;
  padding: 7px 0;
  color: var(--text-dim); font-size: .9rem;
}
.sidebar li a:hover { color: var(--text); }
.sidebar li a.active { color: var(--accent); font-weight: 600; }
.sidebar li a b {
  font-size: .72rem; color: var(--text-mute); font-weight: 500;
}
/* Banderas de origen (barra lateral y títulos de /origen/) */
.sidebar .org-lbl { display: inline-flex; align-items: center; gap: 9px; }
.org-flag-s { height: 12px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.org-flag-s.org-flag--ce { height: 14px; box-shadow: none; }
.cat-hero h1 .org-flag { display: inline-block; height: .62em; width: auto; margin-right: .32em; vertical-align: .02em; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.cat-hero h1 .org-flag--ce { height: .78em; box-shadow: none; }
.results-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.results-head .count { color: var(--text-mute); font-size: .82rem; }

@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { order: 2; }
}

/* ---------- Product detail ---------- */
.pd-wrap {
  padding-top: 36px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
}
.pd-gallery .main {
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  color: var(--text-mute);
  font-size: .8rem;
  text-transform: uppercase; letter-spacing: .15em;
  overflow: hidden;
}
.pd-gallery .thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 12px;
}
.pd-gallery .thumb {
  aspect-ratio: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.pd-gallery .thumb.active { border-color: var(--accent); }
.pd-gallery .main { position: relative; }
.pd-gallery .main.zoomable { cursor: zoom-in; }
.pd-gallery .main:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-gallery .thumb img { display: block; }
/* Lupa: lente sobre la foto + panel ampliado al costado (solo con mouse, ver zoom.js). */
.pd-lens {
  position: absolute; pointer-events: none; z-index: 1;
  border: 2px solid #fff; background: rgba(255,255,255,.3);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.pd-zoom-panel {
  position: fixed; z-index: 60; pointer-events: none;
  background-color: #fff; background-repeat: no-repeat;
  border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(0,0,0,.28);
}
.pd-zoom-icon {
  position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 1px 6px rgba(0,0,0,.2); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s;
  pointer-events: none; z-index: 1;
}
.pd-gallery .main:hover .pd-zoom-icon, .pd-gallery .main:focus-visible .pd-zoom-icon { opacity: 1; }
@media (hover: none) { .pd-zoom-icon { opacity: 1; } }
.pd-lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.pd-lightbox img { max-width: min(92vw, 1100px); max-height: 88vh; object-fit: contain; background: #fff; cursor: default; }
.pd-lb-close, .pd-lb-nav {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pd-lb-close:hover, .pd-lb-nav:hover { background: rgba(255,255,255,.28); }
.pd-lb-close { top: 16px; right: 16px; }
.pd-lb-nav { top: 50%; transform: translateY(-50%); }
.pd-lb-prev { left: 16px; } .pd-lb-next { right: 16px; }

.pd-info .brand-line {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 10px;
}
.pd-info .brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.pd-info .brand-chip:hover { border-color: var(--line-2); background: var(--bg-3); }
.pd-info .brand-chip img {
  height: 30px;
  max-width: 140px;
  width: auto;
  display: block;
  object-fit: contain;
}


.pd-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 8px;
}
.pd-info .sku { color: var(--text-mute); font-size: .8rem; letter-spacing: .08em; }
.pd-info .summary {
  margin: 18px 0 22px;
  font-size: 1rem;
  color: var(--text-dim);
  padding: 14px 16px;
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pd-spec-tiles {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin: 20px 0 24px;
}
.pd-spec-tile {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px 16px;
}
.pd-spec-tile .tile-label {
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-mute); margin-bottom: 5px;
}
.pd-spec-tile .tile-value {
  font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.2;
}
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
/* Ficha técnica: botón principal con Descargar y Compartir pegados (solo iconos) */
.pd-ficha-group { display: inline-flex; align-items: stretch; height: 52px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #111); box-shadow: 0 6px 16px rgba(0,0,0,.22); transition: box-shadow .15s; }
.pd-ficha-group:hover { box-shadow: 0 6px 16px rgba(0,0,0,.22), 0 0 0 2px rgba(255,30,0,.35); }
.pd-ficha-main { display: inline-flex; align-items: center; gap: 12px; padding: 0 18px 0 10px; color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.15; }
.pd-ficha-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); flex: none; }
.pd-ficha-ic svg { width: 18px; height: 18px; }
.pd-ficha-tx small { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .02em; color: rgba(255,255,255,.62); margin-top: 1px; }
.pd-ficha-seg { display: grid; place-items: center; width: 48px; border: 0; border-left: 1px solid rgba(255,255,255,.16); background: transparent; color: #fff; cursor: pointer; padding: 0; }
.pd-ficha-seg:hover { background: rgba(255,255,255,.14); }
.pd-ficha-seg svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .pd-ficha-group { width: 100%; } .pd-ficha-main { flex: 1; } }

/* Resumen corto bajo los botones: sólo desktop, donde la descripción larga
   queda muy abajo. En mobile la descripción larga ya está a un scroll. */
.pd-bullets { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.pd-bullets li {
  position: relative; padding-left: 22px; font-size: .92rem; line-height: 1.45; color: var(--text-dim);
}
.pd-bullets li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
@media (max-width: 900px) { .pd-bullets { display: none; } }

.pd-price {
  margin: 4px 0 20px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pd-price-label {
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-mute); margin-bottom: 4px;
}
.pd-price-val { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.pd-price-iva { font-size: .85rem; font-weight: 700; color: var(--accent); margin-top: 2px; }

/* Financiación en la ficha */
.pd-fin { margin: 0 0 18px; padding: 11px 14px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: .88rem; color: var(--text-dim); line-height: 1.45; }
.pd-fin strong { color: var(--text); }
.pd-fin a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Preguntas rápidas de la ficha */
.pd-qa { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pd-qa h2 { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 10px; font-family: var(--sans); }
.pd-qa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-qa-chip { border: 1px solid var(--line-2); background: #fff; color: var(--text); border-radius: 999px; padding: 7px 13px; font-size: .84rem; font-weight: 600; cursor: pointer; font-family: inherit; line-height: 1.2; }
.pd-qa-chip:hover { border-color: var(--text); }
.pd-qa-chip[aria-expanded="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.pd-qa-panel { margin-top: 12px; padding: 12px 14px; background: var(--bg-2); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; font-size: .92rem; line-height: 1.5; color: var(--text-dim); }
.pd-qa-panel strong { display: block; color: var(--text); margin-bottom: 3px; }
.pd-qa-panel a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.pd-qa-more { display: inline-block; margin-top: 12px; font-size: .86rem; font-weight: 700; color: #15803d; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) { .pd-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-card h3 {
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-card .item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-card .item:last-child { border-bottom: 0; }
.contact-card .item .icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); flex-shrink: 0;
  color: var(--accent);
  border-radius: var(--radius);
}
.contact-card .item b { display: block; font-size: .7rem; font-weight: 600; color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; }
.contact-card .item p { margin: 3px 0 0; color: var(--text); font-size: 1rem; }
.contact-card .item p a { color: var(--text); }
.contact-card .item p a:hover { color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.field { display: block; margin-bottom: 12px; }
.field label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-mute); margin-bottom: 5px;
}
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 13px; font-family: var(--sans); font-size: .95rem;
  border-radius: var(--radius);
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.field textarea { resize: vertical; min-height: 120px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: #111;
  padding: 80px 0 40px;
  color: rgba(255,255,255,.5);
}
.footer .grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer h5 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: #fff; margin: 0 0 24px;
}
.footer .tagline { 
  font-size: .95rem; 
  line-height: 1.6;
  max-width: 32ch; 
  color: rgba(255,255,255,.45);
  margin-bottom: 24px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li a { 
  display: block; 
  padding: 6px 0; 
  color: rgba(255,255,255,.5); 
  font-size: .95rem;
  transition: color .2s, transform .2s;
}
.footer-links li a:hover { color: #fff; transform: translateX(4px); }

.footer-contact-list { list-style: none; margin: 0; padding: 0; }
.footer-contact-list li { margin-bottom: 18px; }
.footer-contact-list a, .footer-contact-list .hours {
  display: flex; gap: 12px; align-items: flex-start;
  color: rgba(255,255,255,.5); font-size: .95rem;
}
.footer-contact-list a:hover { color: #fff; }
.footer-contact-list .icon { 
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  color: var(--accent);
}
.footer-contact-list .text b { color: #fff; font-weight: 600; }

.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: rgba(255,255,255,.6);
  transition: all .25s ease;
}
.footer-socials a svg { width: 18px; height: 18px; }
.footer-socials a:hover { 
  border-color: var(--accent); 
  color: #fff; 
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: .8rem;
  color: rgba(255,255,255,.25);
}
@media (max-width: 1024px) {
  .footer .grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .footer .grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 60;
  background: #25D366; color: #ffffff;
  height: 54px; padding: 0 20px 0 16px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .85rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform .15s, box-shadow .15s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.4); }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- Mobile nav ---------- */
@media (max-width: 980px) {
  .nav { gap: 0; }
  .nav-links { display: none; }
  .btn-burger { display: inline-flex; }
  .brand { justify-self: center; }
  .nav-cta .btn--ghost { display: none; }
  .nav-wa-text { display: none; }
}
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.4);
}
.mobile-nav.open { display: block; }
.mobile-nav .panel {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: min(340px, 90%);
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-menu-section { margin-bottom: 32px; }
.mobile-menu-section h5 {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; color: var(--text-mute);
  margin-bottom: 16px; border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.mobile-nav a {
  display: block; padding: 10px 0;
  font-size: 1rem; color: var(--text);
  text-decoration: none;
}
.mobile-nav .mobile-cat-list .bold {
  font-size: 1.1rem; padding: 12px 0;
  display: flex; align-items: center; gap: 12px;
}
.mobile-nav .mobile-cat-list .cat-icon {
  width: 24px; height: 24px; flex-shrink: 0;
}
.mobile-nav .mobile-cat-list .sep {
  height: 1px; background: var(--line); margin: 8px 0;
}
.mobile-nav .contact-link {
  display: flex; gap: 12px; align-items: center;
  font-size: .95rem; color: var(--text-dim);
}
.mobile-nav .contact-link svg { width: 18px; height: 18px; color: var(--accent); }


/* ---------- Utility ---------- */
.muted { color: var(--text-mute); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.tac { text-align: center; }
@media (max-width: 700px) { .hide-sm { display: none !important; } }

/* ---------- Rich HTML / WooCommerce Descriptions ---------- */
.rich-html { margin: 20px 0 0; overflow-x: hidden; }
.rich-html img { max-width: 100%; height: auto; }
.rich-html .product-page-button-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.rich-html .product-page-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px;
  font-weight: 600; font-size: .88rem;
  border-radius: var(--radius);
  border: none;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
  cursor: pointer;
}
.rich-html .product-page-btn:active { transform: translateY(1px); }
.rich-html .product-page-btn:hover { opacity: .88; }
.rich-html .product-page-btn-video {
  background: #1c1c1c;
  color: #fff;
}
.rich-html .product-page-btn-video::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #fff;
  flex-shrink: 0;
}
.rich-html .product-page-btn-pdf {
  background: var(--accent);
  color: #fff;
}
.rich-html .product-page-btn-pdf::before {
  content: '';
  display: inline-block;
  width: 12px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .rich-html .product-page-button-container { grid-template-columns: 1fr; }
}
.rich-html .product-page-title h2 { font-size: 1.35rem; margin-bottom: 4px; }
.rich-html .product-page-brand { color: var(--text-mute); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 18px; font-weight: 600; }
.rich-html .product-page-highlight { font-size: 1rem; padding: 14px 16px; background: var(--bg-2); border-left: 3px solid var(--accent); margin-bottom: 22px; color: var(--text-dim); border-radius: 0 var(--radius) var(--radius) 0; }
.rich-html .product-page-features-title { font-size: 1.1rem; margin: 24px 0 12px; font-weight: 700; font-family: var(--sans); }
.rich-html .product-page-features-title img { margin-top: 10px; }
.rich-html ul { padding-left: 18px; margin-bottom: 22px; color: var(--text-dim); }
.rich-html li { margin-bottom: 7px; font-size: .95rem; }
.rich-html .product-page-specs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.rich-html .product-page-spec-group { background: var(--bg-2); border: 1px solid var(--line); padding: 18px; border-radius: var(--radius-lg); min-width: 0; }
.rich-html .product-page-spec-title { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.rich-html .product-page-spec-group ul { padding-left: 16px; margin: 0; font-size: .9rem; }
.rich-html strong { color: var(--text); }
@media (max-width: 600px) { .rich-html .product-page-specs-grid { grid-template-columns: 1fr; } }

/* ---------- Carrito del header ----------
   Vive acá y no en tienda.css porque el header lo dibuja site.js en TODAS las
   páginas: si la regla estuviera sólo en tienda.css, en las páginas que no la
   cargan el botón aparecería sin estilo y siempre visible. Lo enciende
   tienda.js agregando .show, y sólo cuando el carrito tiene algo. */
.tn-navcart { display: none; align-items: center; gap: 7px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); border-radius: 100px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.tn-navcart.show { display: inline-flex; }
.tn-navcart:hover { background: var(--surface-hi); }
.tn-navcart svg { width: 15px; height: 15px; }
.tn-navcart .b { background: var(--accent); color: #fff; border-radius: 100px; padding: 0 7px; font-size: 11px; }

/* Tablas dentro de las notas del blog (datos comparativos). */
.post-content .tabla-wrap { overflow-x: auto; margin: 18px 0 26px; border: 1px solid var(--line); }
.post-content table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.4; min-width: 520px; }
.post-content th, .post-content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-content th { background: var(--bg-2); color: var(--text); font-weight: 700; }
.post-content tr:last-child td { border-bottom: 0; }

/* /instalacion-posventa-y-servicios/: fotos de trabajos bajo la grilla de servicios. */
.service-photos { padding-top: 0; }
.service-photos .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.service-photos figure { margin: 0; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.service-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }
.service-photos figcaption { padding: 10px 14px; font-size: .88rem; color: var(--text-dim); }
@media (max-width: 760px) { .service-photos .container { grid-template-columns: 1fr; } }
/* Marcado CE en la ficha: igual que en las tarjetas, sin caja blanca ni texto, para que se
   vea el anillo blanco del círculo sobre la foto (dentro de la caja blanca no se distinguía). */
.pd-gallery > .origin-badge--plain { background: none; border: 0; box-shadow: none; padding: 0; }
.pd-gallery > .origin-badge--plain .ob-text { display: none; }
.pd-gallery > .origin-badge--plain img { width: 76px; height: 76px; object-fit: cover; filter: drop-shadow(0 1px 3px rgba(0,0,0,.25)); }
.prod-card .thumb .origin-badge--plain img { filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
@media (max-width: 520px) {
  .pd-gallery > .origin-badge--plain img { width: 60px; height: 60px; }
}
/* Preguntas frecuentes dentro de las notas del blog */
.post-content .cat-faq { padding: 28px 0 8px; border-bottom: 0; }
.post-content .cat-faq h2 { margin-bottom: 16px; }
/* Enlaces internos dentro del texto de las notas: se tienen que reconocer como enlaces. */
.post-content :is(p, li, td) a:not(.modern-button) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Certificación ALI en la ficha de producto */
.pd-ali { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.pd-ali:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.pd-ali img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.pd-ali span { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.pd-ali small { color: var(--muted, #666); font-size: .8rem; }
.pd-ali em { font-style: normal; color: var(--accent); font-size: .8rem; }
/* Etiqueta ALI Gold Label en la descripción del producto */
.product-page-ali-cert { margin-top: 28px; }
.product-page-ali-label { margin: 16px 0 0; max-width: 300px; }
.product-page-ali-label img { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.product-page-ali-label figcaption { font-size: .8rem; color: var(--muted, #666); margin-top: 8px; line-height: 1.4; }
.product-page-ali-cert a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Cuadro explicativo del marcado CE (ficha de producto) */
.origin-badge .ob-pop { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 250px; z-index: 30; padding: 12px 14px; background: #fff; color: var(--text, #111); border: 1px solid var(--line, #ddd); border-radius: 10px; box-shadow: 0 6px 22px rgba(0,0,0,.2); font-size: .8rem; line-height: 1.4; font-weight: 400; text-align: left; }
.origin-badge .ob-pop b { display: block; margin-bottom: 4px; font-size: .88rem; }
.origin-badge .ob-pop em { display: block; margin-top: 6px; font-style: normal; color: var(--accent, #c8102e); font-size: .74rem; }
.origin-badge .ob-pop em.ob-pop-t { display: none; }
@media (hover: hover) { .origin-badge:hover .ob-pop, .origin-badge:focus-visible .ob-pop { display: block; } }
@media (hover: none) { .origin-badge.ob-open .ob-pop { display: block; } .origin-badge .ob-pop em.ob-pop-t { display: block; } .origin-badge .ob-pop em.ob-pop-h { display: none; } }
/* La foto de la ficha sin JS (HTML estático): sin deformarla */
.pd-static .pd-media img, .pd-static img { max-width: 100%; height: auto; }
/* Marcado CE: solo el círculo, sin caja detrás (ni al pasar el mouse, ni al enfocar, ni el resaltado del toque) */
.origin-badge--plain, a.origin-badge--plain { border-radius: 50%; -webkit-tap-highlight-color: transparent; background: none; box-shadow: none; }
a.origin-badge--plain:hover { box-shadow: none; transform: none; }
a.origin-badge--plain:hover img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
a.origin-badge--plain:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 50%; }
.pd-gallery > .origin-badge--plain img { border-radius: 50%; }
/* Páginas legales */
.legal { max-width: 800px; }
.legal h2 { margin: 28px 0 8px; font-size: 1.25rem; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal .btn { display: inline-flex; margin: 4px 8px 4px 0; }

/* Pie de foto de la galería de producto (fotos de detalle con zoom) */
.pd-cap { margin: 10px 2px 0; font-size: .86rem; line-height: 1.4; color: var(--text-dim); padding-left: 10px; border-left: 3px solid var(--accent); }
.pd-lb-cap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: min(92vw, 720px); margin: 0; padding: 8px 14px; background: rgba(0,0,0,.72); color: #fff; font-size: .92rem; line-height: 1.35; border-radius: 6px; text-align: center; }
.pd-static-fig { margin: 14px 0 0; }
.pd-static-fig img { max-width: 100%; height: auto; }
.pd-static-fig figcaption { font-size: .86rem; color: var(--text-dim); margin-top: 4px; }

/* ---------- Mejoras de diseño (2026-11-26) ---------- */
/* Portada: texto a la izquierda y equipos reales a la derecha */
.hero--home .inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero--home .hero-texto { text-align: left; }
.hero--home h1 { font-size: clamp(2.1rem, 4.1vw, 3.5rem); }
.hero--home p.lead { margin-left: 0; max-width: 56ch; }
.hero-acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-nota { margin: 16px 0 0; font-size: .85rem; max-width: 56ch; }
.hero--home .stats { margin: 28px 0 0; }
.hero-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-foto { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 1 / 1; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.hero-foto--grande { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.hero-foto img { width: 100%; height: 100%; object-fit: contain; padding: 14px 14px 30px; }
.hero-foto span { position: absolute; left: 0; bottom: 14px; background: var(--text); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px 6px 14px; border-left: 4px solid var(--accent); }
.hero-foto:hover { border-color: var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,.1); }
/* Categorías con foto */
.cat-card--foto { padding-right: 46%; }
.cat-card__foto { position: absolute; right: 12px; top: 12px; width: 42%; height: calc(100% - 24px); object-fit: contain; background: #fff; border-radius: var(--radius); }
.cat-card--foto .arrow { right: auto; left: 28px; bottom: 20px; }
.cat-card--foto > div:nth-of-type(2) { padding-bottom: 36px; }
/* Guías: tarjetas compactas, tres por fila */
#guias-home .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
#guias-home .cat-card { min-height: 0; padding: 22px 66px 22px 22px; justify-content: center; }
#guias-home .cat-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
#guias-home .cat-card .arrow { top: 50%; bottom: auto; right: 18px; transform: translateY(-50%); }
#guias-home .cat-card:last-child { grid-column: 1 / -1; }
/* Equipos sin precio publicado: la tarjeta lo dice en vez de dejar un hueco */
.prod-card .body:has(.spec):not(:has(.price-tag))::after { content: "Consultar precio →"; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--accent); }
.filtro-movil { display: none; }
@media (max-width: 980px) {
  .hero--home .inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  #guias-home .cat-grid { grid-template-columns: 1fr 1fr; }
  /* Catálogo en el celular: filtros arriba, plegados (antes quedaban después de todos los productos) */
  .cat-layout.con-filtro .filtro-movil { display: flex; width: 100%; justify-content: space-between; align-items: center; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 13px 16px; font: 700 .92rem/1.2 inherit; font-family: inherit; color: var(--text); cursor: pointer; }
  .cat-layout.con-filtro .filtro-movil::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
  .cat-layout.con-filtro .filtro-movil[aria-expanded="true"]::after { content: "−"; }
  .cat-layout.con-filtro .sidebar { order: 0; display: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 0; margin-top: -12px; }
  .cat-layout.con-filtro .sidebar.abierto { display: block; }
}
@media (max-width: 720px) {
  #guias-home .cat-grid { grid-template-columns: 1fr; }
  .cat-card--foto { padding: 22px 42% 22px 20px; min-height: 190px; }
  .cat-card__foto { width: 38%; right: 8px; }
  .cat-card--foto .arrow { left: 20px; bottom: 16px; }
}
@media (max-width: 640px) {
  .hero--home .hero-texto { text-align: left; }
  .hero-acciones .btn { flex: 1 1 100%; justify-content: center; }
  /* WhatsApp flotante: solo el ícono, para no tapar contenido */
  .wa-float { width: 54px; padding: 0; justify-content: center; gap: 0; right: 14px; bottom: 14px; font-size: 0; }
  .wa-float svg { width: 28px; height: 28px; }
  /* Ficha de producto: foto más baja para que el nombre entre en la primera pantalla */
  .pd-gallery .main { aspect-ratio: 4 / 3; }
  .pd-wrap { padding-top: 18px; gap: 22px; }
}
