/* ============================================================
   Aberturas Aluminio Concordia — tienda online
   Estructura de e-commerce (header 2 filas, franja de beneficios,
   secciones de productos en grilla, footer de columnas).
   Azul #003098 del logo · naranja de marca #F45F11.
   ============================================================ */

:root {
  --blue: #003098;
  --blue-deep: #002370;
  --blue-ink: #001b52;
  --blue-tint: #eef2fa;
  --orange: #f45f11;
  --orange-dark: #d24d08;
  --orange-tint: #fff1ea;

  /* Curvatura: suave y constante. r-sm en controles, r en superficies. */
  --r-sm: 5px;
  --r: 9px;
  --r-lg: 14px;

  --ink: #1b1e24;
  --ink-mid: #4d545e;
  --ink-soft: #6d747e;
  --line: #d7dae0;
  --line-soft: #e9ebef;
  --surface: #f5f6f8;
  --surface-alt: #eceef2;
  --white: #ffffff;

  --wa: #128c4a;
  --wa-dark: #0d6b38;
  --danger: #b3261e;

  --pad: 4vw;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, system-ui, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }
/* También ol: si no, el padding de los marcadores corre la grilla de pasos. */
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; color: var(--blue-ink); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: clamp(26px, 3vw, 38px); }
h2 { font-size: clamp(20px, 2.1vw, 26px); }

.overline {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ============ Barra superior ============ */
.topbar {
  min-height: 34px;
  padding: 7px var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  color: #b9c6e2;
  background: var(--blue-ink);
  font-size: 12px;
}
.topbar button {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.topbar .icon-wa { width: 15px; height: 15px; color: #4ade80; }
.topbar button:hover { color: #ffc9b8; }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--white); }
.head-main {
  height: 78px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; }
.brand-logo { width: 200px; height: 52px; display: block; object-fit: contain; object-position: left center; }

.head-search { max-width: 520px; display: grid; grid-template-columns: 1fr auto; }
.head-search input {
  min-height: 42px;
  border-right: 0;
  background: var(--surface);
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.head-search input:focus { background: var(--white); }
.head-search button {
  width: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border: 0;
  cursor: pointer;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.head-search button:hover { background: var(--blue-deep); }
.head-search svg { width: 18px; height: 18px; }

.head-actions { display: flex; align-items: center; gap: 8px; }
.head-wa {
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wa);
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .16s, background .16s;
  border-radius: var(--r-sm);
}
.head-wa:hover { background: #f2f9f5; border-color: var(--wa); }
.head-wa svg { width: 18px; height: 18px; }
/* Carrito: solo icono, con el contador como globo sobre el borde */
.cart-button {
  width: 46px;
  height: 44px;
  padding: 0;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue-ink);
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .16s;
}
.cart-button:hover { background: var(--blue); }
.cart-button .icon-cart { width: 22px; height: 22px; }
.cart-button b {
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border: 2px solid var(--white);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Fila de categorías: bloque "Categorías" fijo + carril con flechas */
.head-nav-bar {
  padding: 0 var(--pad);
  display: flex;
  align-items: stretch;
  background: var(--blue-ink);
}
/* Las categorías ya no ocupan la barra: viven en este desplegable. */
.nav-cats { position: relative; flex: 0 0 auto; display: flex; }
.nav-all {
  padding: 0 18px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  background: none;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .16);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .16s;
}
.nav-all:hover, .nav-all.open { color: #ffc0a4; }
.nav-all svg { width: 18px; height: 18px; }
.nav-caret { width: 15px !important; height: 15px !important; transition: transform .18s; }
.nav-all.open .nav-caret { transform: rotate(180deg); }

.nav-cats-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 268px;
  padding: 7px;
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 14px 34px rgba(0, 20, 60, .17);
}
.nav-cats-panel a {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-mid);
  border-radius: var(--r-sm);
  font-size: 13px;
  transition: color .14s, background .14s;
}
.nav-cats-panel a:hover { color: var(--blue); background: var(--blue-tint); }
.nav-cats-panel b { display: grid; place-items: center; color: var(--blue); }
.nav-cats-panel b svg { width: 18px; height: 18px; display: block; }

.nav-arrow {
  width: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #9fb0d6;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .16s;
}
.nav-arrow:hover { color: var(--white); }
.nav-arrow svg { width: 17px; height: 17px; }

.head-nav {
  flex: 1 1 auto;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.head-nav::-webkit-scrollbar { display: none; }
.nav-page {
  padding: 13px 16px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: #cdd8ef;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.nav-page:hover { color: var(--white); background: rgba(255, 255, 255, .09); }
.nav-page.active { color: var(--white); background: var(--orange); font-weight: 600; }

/* ============ Hero ============ */
/* Banda oscura a la izquierda + foto a la derecha. La foto está recortada
   para que el ventanal caiga fuera de la zona que tapa la tarjeta. */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-ink);
}
.hero-photo { position: absolute; inset: 0 0 0 42%; }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: right center; }
.hero-inner {
  width: 100%;
  padding: 44px var(--pad);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
/* Más ancha que la banda oscura a propósito: se monta sobre la foto. */
.hero-card {
  width: min(620px, 100%);
  padding: 40px 46px 34px;
  color: var(--white);
  background: var(--orange);
  text-align: center;
  border-radius: var(--r-lg);
}
.hero-card h1 {
  display: grid;
  gap: 4px;
  color: var(--white);
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: uppercase;
}
.hero-card h1 [data-content="heroSubtitle"] {
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: none;
}
.hero-sub { margin: 12px 0 0; color: rgba(255,255,255,.94); font-size: 14px; }
.hero-badges {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hero-badges li { display: grid; justify-items: center; gap: 8px; }
.hero-badges svg { width: 30px; height: 30px; }
.hero-badges span { font-size: 12px; font-weight: 500; line-height: 1.3; }
/* Centrado bajo la tarjeta, no pegado al borde izquierdo. */
.hero-cta {
  margin-left: calc(min(620px, 100%) / 2);
  padding: 13px 30px;
  display: inline-block;
  color: var(--white);
  background: var(--orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: background .16s;
  border-radius: var(--r-sm);
}
.hero-cta:hover { background: var(--orange-dark); }

/* ============ Botones ============ */
.button {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .16s, color .16s, border-color .16s;
}
.button-primary { color: var(--white); background: var(--orange); }
.button-primary:hover { background: var(--orange-dark); }
.button-buy { color: var(--white); background: var(--orange); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.button-buy:hover { background: var(--orange-dark); }
.button-blue { color: var(--blue); background: var(--white); border-color: var(--blue); }
.button-blue:hover { color: var(--white); background: var(--blue); }
.button-ghost { color: var(--white); background: transparent; border-color: rgba(255,255,255,.45); }
.button-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.button-whatsapp { color: var(--white); background: var(--wa); }
.button-whatsapp:hover { background: var(--wa-dark); }
.button-outline { color: var(--ink); background: var(--white); border-color: var(--line); }
.button-outline:hover { color: var(--blue); border-color: var(--blue); }
/* Botón sobre fondo naranja: blanco con letras naranjas */
.button-on-orange { color: var(--orange); background: var(--white); }
.button-on-orange:hover { color: var(--orange-dark); background: #fff4ee; }
.button-small { min-height: 36px; padding-inline: 13px; font-size: 12px; }
.full { width: 100%; }

/* Iconos dentro de botones. display:block evita el hueco de línea base que
   los descentraba respecto del texto. */
.icon-wa, .icon-cart {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
  align-self: center;
}
.button-small .icon-wa { width: 15px; height: 15px; }

/* El auricular del logo toma el color del fondo sobre el que se apoya */
.button-whatsapp { --wa-ink: var(--wa); }
.button-whatsapp:hover { --wa-ink: var(--wa-dark); }
.footer-wa { --wa-ink: var(--wa); }
.footer-wa:hover { --wa-ink: var(--wa-dark); }
.wa-float { --wa-ink: var(--wa); }
.head-wa { --wa-ink: var(--white); }
.head-wa:hover { --wa-ink: #f2f9f5; }
.product-body .whatsapp-link { --wa-ink: var(--white); }
.product-body .whatsapp-link:hover { --wa-ink: #f2f9f5; }

/* ============ Beneficios ============ */
.benefits {
  padding: 22px var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.benefits article {
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-right: 1px solid var(--line);
}
.benefits article:first-child { padding-left: 0; }
.benefits article:last-child { border-right: 0; }
.benefit-icon { flex: 0 0 auto; color: var(--blue); border-radius: var(--r-sm); }
.benefit-icon svg { width: 27px; height: 27px; display: block; }
.benefits strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.benefits small { color: var(--ink-soft); font-size: 12px; line-height: 1.4; }

/* ============ Secciones ============ */
.section { padding: 56px var(--pad); }
.section-featured { border-bottom: 1px solid var(--line-soft); }
.section-head { margin-bottom: 26px; text-align: center; }
.section-head h2 { position: relative; display: inline-block; padding-bottom: 12px; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46px;
  height: 3px;
  background: var(--orange);
  transform: translateX(-50%);
}
.section-head p { max-width: 620px; margin: 12px auto 0; color: var(--ink-soft); font-size: 14px; }

/* ============ Grilla de productos ============ */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  transition: border-color .16s, box-shadow .16s;
  border-radius: var(--r);
}
.product-card:hover { border-color: var(--line); box-shadow: 0 4px 16px rgba(0, 20, 60, .07); }
.product-media {
  height: 250px;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  border-radius: var(--r) var(--r) 0 0;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-code {
  padding: 4px 8px;
  position: absolute;
  top: 0;
  left: 0;
  color: var(--white);
  background: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  border-radius: var(--r) 0 var(--r-sm) 0;
}
.product-body { padding: 15px; display: flex; flex: 1; flex-direction: column; }
.product-category {
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.product-body h3 { min-height: 38px; margin: 7px 0 5px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.product-measures { min-height: 32px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.product-price { margin: 12px 0 13px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.product-price small { display: block; color: var(--ink-soft); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.product-price strong { display: block; margin-top: 2px; color: var(--blue); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

/* Ofertas. El precio que se paga queda en el mismo azul que el de cualquier
   otro producto: lo que marca la oferta es el precio anterior tachado al lado
   y la cinta, no un color distinto. Con el precio en naranja, la grilla se
   leía como dos tipos de producto en vez de uno con descuento. */
.product-price.on-sale strong { color: var(--blue); }
.precio-anterior {
  margin-left: 7px;
  color: var(--ink-soft);
  font-size: .72em;
  font-weight: 500;
  text-decoration-thickness: 1.5px;
}
.product-sale {
  /* A la derecha: arriba a la izquierda ya está el código del producto. */
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product-body .whatsapp-link {
  margin-top: 7px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--wa);
  background: none;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: border-color .16s, background .16s;
  border-radius: var(--r-sm);
}
.product-body .whatsapp-link .icon-wa { width: 16px; height: 16px; }
.product-body .whatsapp-link:hover { background: #f2f9f5; border-color: var(--wa); }
.product-body .button-buy { margin-top: auto; }

/* Placeholder técnico monocromo cuando el producto no tiene foto */
.product-placeholder {
  width: 52%;
  height: 60%;
  position: relative;
  background: var(--white);
  border: 2px solid #9aa3b0;
  box-shadow: inset 0 0 0 1px var(--white), inset 0 0 0 9px #f2f4f7;
}
.product-placeholder::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-left: 2px solid #9aa3b0;
  transform: translateX(calc(50% - 1px));
}
.product-placeholder.door { width: 33%; height: 74%; box-shadow: inset 0 0 0 1px var(--white), inset 0 0 0 7px #f2f4f7; }
.product-placeholder.door::before {
  inset: auto auto 46% 18%;
  width: 9px; height: 3px;
  border: 0;
  background: #9aa3b0;
  transform: none;
}
.product-placeholder.reja {
  width: 56%; height: 56%;
  box-shadow: none;
  background:
    repeating-linear-gradient(90deg, #9aa3b0 0 2px, transparent 2px 15px),
    repeating-linear-gradient(0deg, #9aa3b0 0 2px, transparent 2px 22px),
    var(--white);
}
.product-placeholder.reja::before { content: none; }
.product-placeholder.mampara {
  width: 44%; height: 64%;
  box-shadow: inset 0 0 0 1px var(--white), inset 0 0 0 7px #f2f4f7;
  background: repeating-linear-gradient(90deg, transparent 0 12px, #eef0f3 12px 14px), var(--white);
}
.product-placeholder.accessory {
  width: 54%; height: 34%;
  box-shadow: none;
  background: repeating-linear-gradient(45deg, #c6ccd5 0 1px, transparent 1px 6px), var(--white);
}
.product-placeholder.accessory::before { content: none; }

/* ============ Banners de categoría ============ */
/* Uno grande a la izquierda ocupando las dos filas, dos apilados a la derecha. */
.category-banners {
  padding: 0 var(--pad) 56px;
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  grid-auto-rows: clamp(150px, 15.5vw, 218px);
  gap: 16px;
}
.cat-banner {
  padding: 0;
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--surface-alt);
  border: 0;
  cursor: pointer;
  border-radius: var(--r);
}
.cat-banner-lg { grid-row: span 2; }
.cat-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* El zoom es el efecto de hover: lento y corto, que se sienta y no moleste. */
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
  will-change: transform;
}
.cat-banner:hover img,
.cat-banner:focus-visible img { transform: scale(1.07); }
.cat-overlay {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 11px;
  background: linear-gradient(to top, rgba(0, 16, 48, .78) 0%, rgba(0, 16, 48, .34) 38%, rgba(0, 16, 48, 0) 68%);
}
.cat-title {
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 16, 48, .45);
}
.cat-banner-lg .cat-title { font-size: clamp(26px, 3.2vw, 42px); }
.cat-go {
  padding: 6px 13px;
  color: var(--ink);
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .16s, color .16s;
  border-radius: var(--r-sm);
}
.cat-banner:hover .cat-go { color: var(--white); background: var(--orange); }

/* Con "reducir movimiento" activo acortamos el recorrido en vez de anularlo:
   un scale de 1.07 en hover no es el movimiento que esa preferencia evita. */
@media (prefers-reduced-motion: reduce) {
  .cat-banner img { transition-duration: .25s; }
  .cat-banner:hover img,
  .cat-banner:focus-visible img { transform: scale(1.04); }
}

/* ============ Catálogo ============ */
.catalog-section { background: var(--surface); border-top: 1px solid var(--line); }
.catalog-tools {
  margin-bottom: 20px;
  padding: 15px 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.catalog-tools label { display: grid; gap: 6px; }
.catalog-tools label > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.search { width: min(520px, 62%); }
.sort { width: 210px; }

input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  font-size: 14px;
  transition: border-color .16s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }

/* min-width:0 en los items: sin esto el carril de categorías impone su
   ancho de contenido al grid y desborda en pantallas chicas. */
.catalog-layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 22px; }
.catalog-layout > * { min-width: 0; }
.catalog-layout .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filters { align-self: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.filter-heading {
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.filter-heading strong { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.filter-heading button { padding: 0; color: var(--orange); background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 600; }
#category-filters { display: grid; padding: 6px; }
.filter-option {
  width: 100%;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-mid);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: background .16s, color .16s;
  border-radius: var(--r-sm);
}
.filter-option:hover { color: var(--blue); background: var(--blue-tint); }
.filter-option.active { color: var(--white); background: var(--blue); font-weight: 600; }
.filter-option b { color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.filter-option.active b { color: #b9c8e8; }
.result-count {
  margin: 0 0 13px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.empty-state { padding: 64px 20px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.empty-state strong { font-size: 17px; font-weight: 700; }
.empty-state p { color: var(--ink-soft); }

/* ============ Bloque institucional ============ */
.institutional {
  padding: 62px var(--pad);
  text-align: center;
  background: var(--orange);
}
.institutional h2 { color: var(--white); }
.institutional p { max-width: 660px; margin: 14px auto 24px; color: rgba(255, 255, 255, .95); font-size: 15px; line-height: 1.65; }

/* ============ Cómo comprar: los 4 pasos ============ */
.how-to-buy { background: var(--white); scroll-margin-top: 120px; }
.buy-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: paso;
}
.buy-steps li {
  padding: 26px 20px;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  text-align: center;
}
/* Conector entre pasos, solo en escritorio */
.buy-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -10px;
  width: 10px;
  height: 1px;
  background: var(--line);
}
.step-n {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}
.step-text { color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.45; }

.buy-note {
  max-width: 720px;
  margin: 26px auto 0;
  padding: 15px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--orange-tint);
  border: 1px solid #f7d4c2;
  border-radius: var(--r);
}
.buy-note svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--orange); }
.buy-note > span { display: grid; gap: 3px; }
.buy-note strong { color: var(--ink); font-size: 13px; font-weight: 700; }
.buy-note span span { color: var(--ink-mid); font-size: 12.5px; line-height: 1.5; }

/* ============ Zonas de entrega ============ */
.delivery-section { background: var(--surface); border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.delivery-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.delivery-search-col,
.delivery-list-col {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.delivery-hint { margin: 16px 0 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.55; }

.locality-search { margin-top: 0; }
.locality-search label { display: block; margin-bottom: 7px; color: var(--ink-mid); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.locality-search > div { display: grid; grid-template-columns: 1fr auto; }
.locality-search input { border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.locality-search button {
  padding: 0 20px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.locality-search button:hover { background: var(--blue-deep); }
.locality-suggestions { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.locality-suggestions button { padding: 6px 10px; color: var(--ink-mid); background: var(--white); border: 1px solid var(--line); cursor: pointer; font-size: 11px; border-radius: 999px; }
.locality-suggestions button:hover { color: var(--blue); border-color: var(--blue); }

.delivery-result { margin-top: 15px; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--wa); border-radius: var(--r); }
.delivery-result.unavailable { border-left-color: var(--orange); }
.delivery-result h4 { margin: 0 0 9px; font-size: 15px; }
.delivery-result dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 12px; }
.delivery-result dt { color: var(--ink-soft); }
.delivery-result dd { margin: 0; color: var(--ink); font-weight: 600; }
.delivery-result p { margin: 9px 0 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.55; }
.delivery-result button { margin-top: 13px; }
.delivery-result .match-count { margin: 0 0 11px; color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.delivery-match + .delivery-match { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.delivery-match h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.delivery-match h4 small { color: var(--ink-soft); font-size: 11px; font-weight: 500; white-space: nowrap; }

.delivery-zone-list-heading {
  margin-bottom: 12px;
  padding-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-mid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.delivery-zone-list-heading span { color: var(--ink-soft); font-weight: 500; letter-spacing: 0; text-transform: none; }
.delivery-zone-rows { max-height: 360px; overflow-y: auto; display: grid; }
.delivery-zone-row {
  padding: 10px 11px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 130px minmax(170px, 1.2fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}
.delivery-zone-row:nth-child(odd) { background: var(--surface); }
.delivery-zone-row > strong { color: var(--ink); font-size: 13px; }
.delivery-zone-row > strong small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 11px; font-weight: 400; }
.delivery-zone-row > span { color: var(--ink-mid); }
.delivery-zone-row > span b { display: block; margin-bottom: 2px; color: var(--ink-soft); font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }

/* ============ Contacto ============ */
.contact-section {
  padding: 62px var(--pad);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.contact-intro { max-width: 620px; margin: 0 auto 30px; text-align: center; }
.contact-intro > p:not(.overline) { margin: 14px 0 22px; color: var(--ink-soft); line-height: 1.65; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: 20px; align-items: stretch; }
/* El panel tiene menos contenido que el mapa: centramos en vertical para que
   el aire sobrante se reparta y las dos columnas se lean parejas. */
.contact-panel {
  padding: 26px;
  display: grid;
  align-content: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r);
}

/* Mapa embebido */
.contact-map {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 290px; display: block; border: 0; }
.map-link {
  padding: 9px 14px;
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-ink);
  background: var(--white);
  border-radius: var(--r-sm);
  box-shadow: 0 3px 12px rgba(0, 20, 60, .2);
  font-size: 12.5px;
  font-weight: 600;
  transition: color .16s;
}
.map-link:hover { color: var(--orange); }
.map-link svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* Redes sociales (solo footer) */
.social-links { display: flex; gap: 9px; }
.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink-mid);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: color .16s, border-color .16s, background .16s;
}
.social-links a:hover { color: var(--white); background: var(--orange); border-color: var(--orange); }
.social-links svg { width: 19px; height: 19px; }
/* Solo los bloques de primer nivel: si alcanzara a los anidados, convertiría
   en columna el grupo de redes sociales. */
.contact-panel > div { padding-bottom: 16px; display: grid; gap: 4px; border-bottom: 1px solid var(--line); }
.contact-panel > div:last-child { padding: 0; border: 0; }
.contact-panel small { color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact-panel strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.contact-panel span { color: var(--ink-soft); font-size: 13px; }

/* ============ Footer ============ */
.site-footer { color: #9fadc8; background: var(--blue-ink); }
.footer-cols {
  padding: 48px var(--pad) 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
/* Logo en versión blanca: se apoya directo sobre el azul, sin caja */
.footer-logo { width: 210px; height: auto; display: block; object-fit: contain; }
.footer-brand p { margin: 16px 0 0; max-width: 300px; font-size: 13px; line-height: 1.6; }
/* Redes: viven en la columna Contactanos, sobre fondo oscuro */
.site-footer .social-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .social-links a {
  color: #b9c6e2;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
}
.site-footer .social-links a:hover { color: var(--white); background: var(--orange); border-color: var(--orange); }
.footer-col h3 { margin-bottom: 14px; color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-col li { margin-bottom: 9px; font-size: 13px; line-height: 1.5; }
.footer-col a:hover { color: var(--white); }
.footer-contact li { color: #9fadc8; }
.footer-wa {
  margin-top: 4px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: var(--wa);
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-sm);
}
.footer-wa:hover { background: var(--wa-dark); }
.footer-policies {
  padding: 0 var(--pad) 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
}
.footer-policies a { color: #9fadc8; }
.footer-policies a:hover { color: var(--white); }
.footer-legal {
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
}
/* Sello de autoría: presente pero discreto */
.footer-credit { margin-left: auto; color: #6f80a3; font-size: 11px; letter-spacing: .02em; }

/* ============ Modal de producto ============ */
.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(0, 20, 60, .55); }
.product-modal {
  width: min(940px, calc(100% - 28px));
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  background: var(--white);
  border-top: 3px solid var(--blue);
  box-shadow: 0 20px 60px rgba(0, 20, 60, .22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -48%);
  transition: opacity .18s, transform .18s;
  border-radius: var(--r-lg);
}
.product-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal-close {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink-mid);
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  border-radius: var(--r-sm);
}
.modal-close:hover { color: var(--blue); border-color: var(--blue); }
.product-modal > .modal-close { position: absolute; top: 15px; right: 15px; z-index: 3; }
.product-detail-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 30px; }
.detail-image { min-height: 400px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.gallery-main { min-height: 340px; flex: 1; display: grid; place-items: center; overflow: hidden; background: var(--white); }
.gallery-main img { width: 100%; height: 100%; max-height: 400px; object-fit: contain; }
.gallery-thumbs { padding: 9px; display: flex; gap: 8px; background: var(--surface); border-top: 1px solid var(--line); }
.gallery-thumbs button { width: 64px; height: 54px; padding: 3px; overflow: hidden; background: var(--white); border: 1px solid var(--line); cursor: pointer; border-radius: var(--r-sm); }
.gallery-thumbs button.active { border-color: var(--blue); border-width: 2px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.detail-info { padding: 6px 4px 4px 0; }
.detail-info .product-category { display: block; margin-bottom: 7px; }
.detail-info h2 { margin: 0 0 11px; font-size: 25px; }
.detail-info > p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.detail-price {
  margin: 16px 0;
  padding: 13px 15px;
  color: var(--blue);
  background: var(--blue-tint);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.02em;
  border-radius: var(--r-sm);
}
.variant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.variant-grid label { display: grid; gap: 6px; }
.variant-grid label span { color: var(--ink-mid); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
/* Medida a pedido: aparece solo al elegir esa opción */
.custom-measure {
  margin-top: 14px;
  padding: 14px 15px;
  display: grid;
  gap: 7px;
  background: var(--orange-tint);
  border: 1px solid #f7d4c2;
  border-radius: var(--r);
}
.custom-measure > span {
  color: var(--ink-mid);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.custom-measure small { color: var(--ink-soft); font-size: 12px; line-height: 1.45; }

.detail-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 9px; }
.a-pedido { color: var(--orange); font-size: 12px; font-style: normal; font-weight: 600; }
/* Cuando hay algo a cotizar, el subtotal aclara que es parcial */
#cart-total[data-parcial="1"]::after,
#cart-grand-total[data-parcial="1"]::after {
  content: " + a cotizar";
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
}
.validation-message {
  margin: 11px 0 0;
  padding: 9px 12px;
  color: var(--danger);
  background: #fdf3f2;
  border-left: 3px solid var(--danger);
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ============ Carrito ============ */
.cart-drawer {
  width: min(450px, 100%);
  height: 100dvh;
  padding: 24px;
  position: fixed;
  top: 0; right: 0;
  z-index: 51;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: -14px 0 44px rgba(0, 20, 60, .18);
  transform: translateX(105%);
  transition: transform .24s;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header { padding-bottom: 15px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { flex: 1; font-size: 19px; }
.cart-items { min-height: 0; overflow: auto; }
.cart-item { padding: 15px 0; display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.cart-thumb { width: 56px; height: 56px; overflow: hidden; display: grid; place-items: center; background: var(--surface-alt); border: 1px solid var(--line-soft); border-radius: var(--r-sm); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .product-placeholder { border-width: 1px; box-shadow: none; }
.cart-thumb .product-placeholder::before { inset: 3px; }
.cart-item h4 { margin: 0 0 3px; font-size: 13px; font-weight: 600; }
.cart-item p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.quantity { margin-top: 8px; display: flex; align-items: center; }
.quantity button { width: 26px; height: 26px; padding: 0; color: var(--ink-mid); background: var(--white); border: 1px solid var(--line); cursor: pointer; font-size: 14px; line-height: 1; }
.quantity button:hover { color: var(--blue); border-color: var(--blue); }
.quantity span { min-width: 32px; height: 26px; display: grid; place-items: center; border-block: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item-side strong { color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.cart-item-side button { padding: 0; color: var(--ink-soft); background: none; border: 0; cursor: pointer; font-size: 11px; }
.cart-item-side button:hover { color: var(--danger); }
.cart-empty { margin: auto 0; text-align: center; }
.cart-empty strong { font-size: 16px; font-weight: 700; }
.cart-empty p { color: var(--ink-soft); font-size: 13px; }
.cart-summary { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.cart-summary small { margin: 9px 0 13px; display: block; color: var(--ink-soft); font-size: 11.5px; line-height: 1.5; }

.cart-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-line span { color: var(--ink-mid); font-size: 13px; }
.cart-line strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.cart-total-line {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cart-total-line span { color: var(--ink); font-size: 17px; font-weight: 700; }
.cart-total-line strong { color: var(--blue); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }

.cart-note { margin: 16px 0 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }

/* Zona de entrega dentro del carrito */
.cart-shipping { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.cart-shipping-head {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-mid);
  font-size: 12px;
  font-weight: 600;
}
.cart-shipping-head svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--blue); }
.cart-shipping-form { display: grid; grid-template-columns: 1fr auto; }
.cart-shipping-form input { min-height: 42px; border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.cart-shipping-form button {
  padding: 0 18px;
  color: var(--white);
  background: var(--blue-ink);
  border: 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.cart-shipping-form button:hover { background: var(--blue); }
.cart-shipping-result { margin-top: 10px; display: grid; gap: 3px; color: var(--ink-soft); font-size: 12.5px; }
.cart-shipping-result strong { color: var(--ink); font-size: 13px; }
.cart-shipping-result.con-zona { padding: 11px 13px; background: #f2f9f5; border-left: 3px solid var(--wa); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.cart-shipping-result.sin-zona { padding: 11px 13px; background: var(--orange-tint); border-left: 3px solid var(--orange); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* Paso de datos */
.cart-step { min-height: 0; display: flex; flex: 1; flex-direction: column; overflow-y: auto; }
.drawer-back {
  width: 34px;
  height: 34px;
  margin-right: 4px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--ink-mid);
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.drawer-back:hover { color: var(--blue); background: var(--surface); }
.drawer-back svg { width: 19px; height: 19px; }
.checkout-intro { margin: 16px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.checkout-resumen {
  margin: 14px 0 18px;
  padding: 13px 15px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.checkout-resumen span { color: var(--ink-mid); font-size: 13px; }
.checkout-resumen strong { color: var(--blue); font-size: 17px; font-weight: 700; }
#step-datos label { margin-bottom: 14px; display: grid; gap: 6px; color: var(--ink-mid); font-size: 12px; font-weight: 600; }
#step-datos label small { color: var(--ink-soft); font-weight: 400; }
.checkout-modo { margin: 0 0 16px; padding: 0; display: grid; gap: 9px; border: 0; }
.checkout-modo legend { margin-bottom: 9px; padding: 0; color: var(--ink-mid); font-size: 12px; font-weight: 600; }
.checkout-modo .radio {
  margin: 0;
  padding: 11px 13px;
  display: flex !important;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 500;
}
.checkout-modo .radio:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.checkout-modo input { width: auto; min-height: auto; }
#step-datos .button-whatsapp { margin-top: 4px; }
.clear-cart { width: 100%; margin-top: 9px; padding: 8px; color: var(--ink-soft); background: none; border: 0; cursor: pointer; font-size: 12px; }
.clear-cart:hover { color: var(--danger); }

.toast {
  max-width: calc(100% - 30px);
  padding: 12px 17px;
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 80;
  color: var(--white);
  background: var(--blue-ink);
  border-left: 3px solid var(--orange);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .2s, transform .2s;
  font-size: 13px;
  border-radius: var(--r-sm);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ WhatsApp flotante: abajo a la derecha, siempre visible ============ */
.wa-float {
  display: grid;
  width: 56px; height: 56px;
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 45;
  place-items: center;
  color: var(--white);
  background: var(--wa);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .26);
  transition: background .16s, transform .16s;
}
.wa-float:hover { background: var(--wa-dark); transform: scale(1.06); }
.wa-float .icon-wa { width: 30px; height: 30px; }

/* ============ Encabezado de las páginas internas ============ */
.page-hero {
  padding: 40px var(--pad) 44px;
  text-align: center;
  background: var(--blue-tint);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero > p { max-width: 660px; margin: 0 auto; color: var(--ink-mid); font-size: 14.5px; line-height: 1.6; }
.breadcrumb {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb b { color: var(--orange); }

.section-foot { margin-top: 28px; text-align: center; }
.block-title {
  margin-bottom: 18px;
  padding-bottom: 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.block-title + .payment-grid { margin-bottom: 40px; }

/* ============ Preguntas frecuentes ============ */
.faq-section { background: var(--surface); border-top: 1px solid var(--line); scroll-margin-top: 120px; }

/* En la home la sección entera se pliega. El <summary> hace de encabezado:
   mismo tamaño de título que el resto, con el subrayado naranja de sección. */
.faq-summary {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  cursor: pointer;
  list-style: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary h2 { position: relative; padding-bottom: 12px; }
.faq-summary h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46px;
  height: 3px;
  background: var(--orange);
  transform: translateX(-50%);
}
.faq-summary-cue {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.faq-summary:hover .faq-summary-cue { color: var(--orange); }
.faq-summary-cue svg { width: 17px; height: 17px; transition: transform .2s; }
.faq-collapse[open] .faq-summary-cue svg { transform: rotate(180deg); }
.cue-close { display: none; }
.faq-collapse[open] .cue-open { display: none; }
.faq-collapse[open] .cue-close { display: inline; }
.faq-collapse-body { padding-top: 22px; }
.faq-lead { margin: 0 auto 22px; max-width: 620px; color: var(--ink-soft); font-size: 14px; text-align: center; }

.faq-groups { display: grid; gap: 26px; }
.faq-group-title {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.faq-group-icon { display: grid; place-items: center; color: var(--orange); }
.faq-group-icon svg { width: 21px; height: 21px; display: block; }
.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.faq-item[open] { border-color: var(--blue); }
.faq-item summary {
  padding: 15px 52px 15px 17px;
  position: relative;
  color: var(--blue-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* El signo se dibuja con dos barras: la vertical desaparece al abrir. */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  background: var(--orange);
  transition: transform .18s, opacity .18s;
}
.faq-item summary::before { width: 13px; height: 2px; transform: translateY(-50%); }
.faq-item summary::after { width: 2px; height: 13px; right: 25.5px; transform: translateY(-50%); }
.faq-item[open] summary::after { opacity: 0; transform: translateY(-50%) rotate(90deg); }
.faq-item summary:hover { color: var(--blue); }
.faq-answer { padding: 0 52px 16px 17px; }
.faq-answer p { margin: 0; color: var(--ink-mid); font-size: 13.5px; line-height: 1.65; }
.faq-foot {
  margin: 30px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-mid);
  font-size: 13.5px;
}

/* ============ Reseñas ============ */
.reviews-section { border-bottom: 1px solid var(--line-soft); }
.reviews-summary {
  margin-bottom: 26px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.reviews-score { display: flex; align-items: center; gap: 13px; }
.reviews-score strong { color: var(--blue); font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.reviews-score strong.sin-datos { color: var(--ink-soft); }
.reviews-score span { color: var(--ink-soft); font-size: 12.5px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; fill: var(--line); }
.stars svg.on { fill: #f5a623; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.review-card p { margin: 0; flex: 1; color: var(--ink-mid); font-size: 13.5px; line-height: 1.65; }
.review-card footer { padding-top: 12px; display: grid; gap: 2px; border-top: 1px solid var(--line-soft); }
.review-card footer strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.review-card footer span { color: var(--ink-soft); font-size: 11.5px; }
.reviews-empty {
  margin: 0;
  padding: 44px 20px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r);
}

.reviews-foot {
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-mid);
  font-size: 13.5px;
  text-align: center;
}

.review-cta-section { background: var(--surface); border-top: 1px solid var(--line); }
.review-cta-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 28px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.review-cta-icon svg { width: 34px; height: 34px; display: block; fill: #f5a623; }
.review-cta-card p { margin: 0 0 8px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }

/* ============ Página de contacto ============ */
.contact-channels { margin-bottom: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.channel-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.channel-card.channel-wa { border-color: var(--wa); }
.channel-icon { color: var(--blue); }
.channel-card.channel-wa .channel-icon { color: var(--wa); }
.channel-icon svg { width: 26px; height: 26px; display: block; }
.channel-card h3 { font-size: 16px; }
.channel-card p { margin: 0; flex: 1; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.channel-card strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.channel-link { color: var(--blue); font-size: 13.5px; font-weight: 600; word-break: break-all; }
.channel-link:hover { color: var(--orange); }
.channel-hours { color: var(--ink-soft); font-size: 12.5px; }
.contact-page .contact-panel { background: var(--surface); }

/* ============ Medios de pago ============ */
.payment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.payment-card {
  padding: 22px;
  display: grid;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.payment-icon { color: var(--blue); }
.payment-icon svg { width: 28px; height: 28px; display: block; }
.payment-card h3 { font-size: 15px; }
.payment-card p { margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.55; }
/* ---------- Planes de financiación ---------- */
/* El precio publicado es de contado: el recargo se muestra acá, entero y sin
   letra chica, para que nadie se entere del número recién en el mostrador. */
.payment-intro { max-width: 720px; margin: -8px 0 20px; color: var(--ink-mid); font-size: 13.5px; line-height: 1.6; }
.payment-plans { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.payment-plan {
  padding: 24px 22px;
  display: grid;
  gap: 4px;
  background: var(--blue-tint);
  border: 1px solid var(--blue);
  border-radius: var(--r);
  text-align: center;
}
.plan-cuotas { color: var(--blue-ink); font-size: 14px; font-weight: 700; }
.plan-recargo { color: var(--blue); font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.plan-nota { color: var(--ink-soft); font-size: 12px; }
.payment-plans-foot { margin: 0 0 40px; color: var(--ink-mid); font-size: 13px; line-height: 1.6; }

.payment-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.payment-notes article {
  padding: 18px 20px;
  background: var(--surface);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--r) var(--r) 0;
}
.payment-notes h3 { margin-bottom: 5px; font-size: 14px; }
.payment-notes p { margin: 0; color: var(--ink-mid); font-size: 13px; line-height: 1.6; }
.payment-foot {
  margin: 34px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink-mid);
  font-size: 13.5px;
  text-align: center;
}

/* ============ Páginas legales ============ */
.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body h2 {
  margin: 34px 0 10px;
  font-size: 17px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 11px; color: var(--ink-mid); font-size: 14px; line-height: 1.72; }
.legal-body ul { margin: 0 0 13px; display: grid; gap: 7px; }
.legal-body li {
  padding-left: 19px;
  position: relative;
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.65;
}
.legal-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--orange); }
.legal-cta { margin: 16px 0 0; }

/* ============ Responsive ============ */
@media (max-width: 1250px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 1050px) {
  .head-main { grid-template-columns: auto 1fr; gap: 16px; }
  /* Los botones se van al borde derecho, no al centro de su columna. */
  .head-actions { justify-content: flex-end; }
  .head-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .head-main { height: auto; padding-block: 12px; gap: 12px; }
  .head-wa span { display: none; }
  .hero { min-height: 430px; }
  .hero-photo { inset: 0 0 0 34%; }
  .hero-card { padding: 32px 30px 28px; }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .benefits article:nth-child(2) { border-right: 0; }
  .benefits article:nth-child(3) { padding-left: 0; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: sticky; top: 0; z-index: 5; }
  #category-filters { display: flex; overflow-x: auto; padding: 7px; }
  .filter-option { flex: 0 0 auto; width: auto; gap: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 280px; }
  .contact-map iframe { min-height: 280px; }
  .delivery-layout { grid-template-columns: 1fr; }
  .buy-steps li:not(:last-child)::after { content: none; }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-channels { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --pad: 16px; }
  .topbar { font-size: 11px; line-height: 1.35; }
  .brand-logo { width: 150px; height: 42px; }
  .cart-button span, .head-wa span { display: none; }
  .cart-button { padding: 0 12px; }
  .nav-page { padding: 11px 13px; font-size: 12px; }
  /* En mobile la foto pasa a fondo completo, con velo para que lea el texto */
  .hero { min-height: 0; }
  .hero-photo { inset: 0; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 20, 60, .5); }
  .hero-inner { padding-block: 26px; align-items: stretch; gap: 16px; }
  .hero-card { width: 100%; padding: 26px 20px 22px; }
  .hero-cta { margin-left: 0; transform: none; }
  .hero-badges { gap: 10px; }
  .hero-badges svg { width: 26px; height: 26px; }
  .hero-badges span { font-size: 11px; }
  .hero-cta { text-align: center; }
  .section { padding: 40px var(--pad); }
  .benefits { grid-template-columns: 1fr; padding-block: 18px; }
  .benefits article { padding: 0; border-right: 0; }
  .product-grid,
  .catalog-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-media { height: 165px; }
  .product-body { padding: 12px; }
  .product-body h3 { min-height: 34px; font-size: 13px; }
  .product-measures { min-height: 0; margin-bottom: 4px; }
  .product-price strong { font-size: 17px; }
  .category-banners { grid-template-columns: 1fr; grid-auto-rows: 150px; gap: 12px; padding-bottom: 40px; }
  .cat-banner-lg { grid-row: span 1; }
  .cat-overlay { padding: 16px; gap: 9px; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .search, .sort { width: 100%; }
  .buy-steps { grid-template-columns: 1fr 1fr; }
  .buy-steps li::after { content: none !important; }
  .delivery-search-col, .delivery-list-col { padding: 18px; }
  .locality-search > div { grid-template-columns: 1fr; gap: 8px; }
  .locality-search input { border-right: 1px solid var(--line); }
  .locality-search button { min-height: 44px; }
  .delivery-zone-row { grid-template-columns: 1fr; gap: 6px; }
  .institutional { padding: 44px var(--pad); }
  .contact-section { padding: 46px var(--pad); }
  .contact-panel { padding: 20px; }
  .contact-map, .contact-map iframe { min-height: 240px; }
  .page-hero { padding: 28px var(--pad) 32px; }
  .faq-item summary { padding: 14px 46px 14px 15px; font-size: 13.5px; }
  .faq-answer { padding: 0 46px 15px 15px; }
  .faq-foot { flex-direction: column; gap: 12px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-summary { flex-direction: column; align-items: stretch; text-align: center; }
  .reviews-score { justify-content: center; }
  .reviews-foot { flex-direction: column; }
  .review-cta-card { padding: 26px 20px; }
  .faq-summary { gap: 10px; }
  .payment-grid, .payment-notes, .payment-plans { grid-template-columns: 1fr; }
  .payment-foot { flex-direction: column; }
  .legal-body h2 { margin-top: 28px; font-size: 16px; }
  .nav-cats-panel { min-width: min(300px, calc(100vw - 32px)); }
  .footer-policies { flex-direction: column; gap: 2px; }
  .footer-policies a { padding: 9px 0; display: inline-block; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; padding-block: 34px 28px; }
  .footer-logo { width: 175px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-credit { margin-left: 0; }
  .product-modal { padding: 18px; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 18px; }
  .detail-image { min-height: 240px; }
  .gallery-main { min-height: 200px; }
  .detail-info { padding: 0; }
  .detail-info h2 { font-size: 21px; }
  .variant-grid, .detail-actions { grid-template-columns: 1fr; }
  .detail-actions .button-whatsapp { grid-column: auto; }
  .cart-drawer { padding: 18px; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .wa-float .icon-wa { width: 26px; height: 26px; }
  .toast { bottom: 78px; }

  /* ---- Ajustes táctiles ----
     Objetivo ~44px de alto en todo lo que se toca, y nada de texto por
     debajo de 11px. */
  .footer-col li { margin-bottom: 2px; }
  .footer-col li a { padding: 9px 0; display: inline-block; }
  .filter-heading button,
  .filter-option { min-height: 44px; }
  .filter-heading button { padding: 0 4px; }
  .nav-arrow { width: 42px; }
  .nav-page { padding-block: 14px; }
  .modal-close { width: 42px; height: 42px; }
  .map-link { min-height: 42px; }
  .product-body .whatsapp-link { min-height: 42px; }
  .locality-suggestions button { min-height: 38px; padding-inline: 13px; }
  .quantity button { width: 34px; height: 34px; }
  .quantity span { min-width: 40px; height: 34px; }
  .cart-item-side button { padding: 8px 0; }
  .social-links a { width: 44px; height: 44px; }

  /* Legibilidad: nada por debajo de 11px en pantalla chica */
  .product-code,
  .product-category,
  .product-price small,
  .stat-card small,
  .contact-panel small,
  .footer-col h3,
  .delivery-zone-row > span b { font-size: 11px; }
  .product-measures,
  .product-options-summary span,
  .delivery-zone-row > strong small { font-size: 12px; }
  .catalog-tools label > span { font-size: 11px; }

  /* Últimos dos puntos de toque por debajo de 40px */
  .footer-col li a { padding: 11px 0; }
  .locality-suggestions button { min-height: 40px; }

  /* Lo mismo en las páginas nuevas: enlaces de texto que sin padding quedan
     en la altura de su línea (17px la miga, 21px el correo). */
  .breadcrumb a { padding: 12px 4px; }
  .footer-policies a { padding: 11px 0; }
  .channel-link { padding: 11px 0; display: inline-block; }
  .button-small { min-height: 42px; }
}
