/* ==========================================================================
   GASTROEQUIPOS — HOJA DE ESTILOS PRINCIPAL
   --------------------------------------------------------------------------
   CSS moderno, mobile-first, sin frameworks ni preprocesadores.
   Decisión técnica: se usa CSS plano (custom properties + Grid/Flexbox) en
   lugar de Tailwind para evitar depender de un paso de build en el
   despliegue estático (GitHub Pages / Netlify sin CI). Ver README.

   Índice:
   1. Reset y base
   2. Tokens de diseño
   3. Tipografía
   4. Layout y utilidades
   5. Botones
   6. Header y navegación
   7. Hero
   8. Secciones genéricas / tarjetas
   9. Categorías y tipos de negocio
   10. Producto (tarjeta, galería, ficha técnica, breadcrumb)
   11. Catálogo (buscador y filtros)
   12. Cotización
   13. Formularios (fabricación a medida)
   14. Confianza / estadísticas
   15. Proyectos y testimonios
   16. FAQ (acordeón)
   17. Ubicación
   18. CTA final
   19. Footer
   20. Utilidades varias / accesibilidad
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET Y BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Evita scroll horizontal por el menú móvil fuera de pantalla
     (position: fixed + transform: translateX) y otros elementos
     transformados; el contenido del sitio nunca necesita desbordar. */
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* El atributo [hidden] debe ganar siempre, incluso sobre clases que
   fijan "display" (.grid, .placeholder-note, etc.). Sin esta regla,
   togglear el booleano ".hidden" desde JS no ocultaría esos elementos. */
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   2. TOKENS DE DISEÑO
   -------------------------------------------------------------------------- */
:root {
  /* Paleta de marca: azul + blanco + negro (grises = tintes de negro) */
  --color-ink: #0d1117;         /* negro — headers oscuros, texto fuerte */
  --color-ink-soft: #161d27;
  --color-graphite: #232c3a;
  --color-steel: #55606c;
  --color-steel-light: #c7ccd3;
  --color-border: #dde1e6;
  --color-bg: #f5f7fa;          /* fondo general */
  --color-surface: #ffffff;     /* tarjetas */
  --color-text: #10151c;
  --color-text-muted: #55606c;

  --color-accent: #1d4ed8;      /* azul — CTAs principales */
  --color-accent-dark: #1739ad;
  --color-accent-contrast: #ffffff;
  --color-cold: #2563eb;        /* azul secundario, uso puntual */

  --color-success: #1d4ed8;     /* "Disponible": azul (sin verde, fuera de paleta) */
  --color-success-bg: #e7edfc;
  --color-warning-bg: #e7e9ec;  /* "Fabricación": negro/gris (sin naranja, fuera de paleta) */
  --color-warning-text: #10151c;
  --color-focus: #1d4ed8;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(26, 31, 38, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 31, 38, 0.08);

  --header-h: 64px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFÍA
   -------------------------------------------------------------------------- */
h1, .h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); line-height: 1.15; font-weight: 800; color: var(--color-ink); letter-spacing: -0.01em; }
h2, .h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.2; font-weight: 800; color: var(--color-ink); letter-spacing: -0.01em; }
h3, .h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.3; font-weight: 700; color: var(--color-ink); }
h4, .h4 { font-size: 1.05rem; line-height: 1.35; font-weight: 700; color: var(--color-ink); }
.lead { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--color-text-muted); }
.text-muted { color: var(--color-text-muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   4. LAYOUT Y UTILIDADES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
}

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--muted { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.section--dark { background: var(--color-ink); color: #e7eaed; }
.section--dark h2, .section--dark h3 { color: #ffffff; }

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-6);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: none;
}

.grid { display: grid; gap: var(--space-5); min-width: 0; }
.grid > * { min-width: 0; } /* evita que celdas con contenido ancho (ej. tablas) desborden el grid */
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Grid de tarjetas de producto (catálogo, destacados, relacionados):
   a diferencia de .grid-4 (usada también por contenido sin botones,
   como los pasos de "Nuestro proceso de fabricación"), estas tarjetas
   necesitan un ancho mínimo garantizado para que sus dos botones
   ("Ver equipo" / "Agregar a cotización") quepan uno junto al otro sin
   recortarse. auto-fit + minmax agrega columnas según el espacio
   disponible en vez de forzar siempre 4, evitando ese recorte a
   cualquier ancho. */
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--color-ink);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-4); }

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   5. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--color-accent); color: var(--color-accent-contrast); }
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-secondary { background: var(--color-ink); color: #fff; }
.btn-secondary:hover { background: var(--color-ink-soft); }

.btn-outline { background: transparent; border-color: var(--color-ink); color: var(--color-ink); }
.btn-outline:hover { background: var(--color-ink); color: #fff; }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn-ghost { background: transparent; color: var(--color-ink); padding-inline: 0.5rem; }
.btn-ghost:hover { color: var(--color-accent-dark); }

/* WhatsApp — verde de marca, reservado exclusivamente para botones que
   abren wa.me / api.whatsapp.com. No usar en ningún otro contexto. */
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(18, 140, 71, 0.25);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(18, 140, 71, 0.3);
}
.btn-whatsapp:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(18, 140, 71, 0.25); }

/* Cotización — azul corporativo JEINOX, para acciones del sistema
   interno de cotización (agregar, revisar, ver). Distinto de
   --color-accent para fijar exactamente el hex pedido sin afectar el
   resto de usos de --color-accent en el sitio. */
.btn-quote { background: #1d4ed8; color: #ffffff; }
.btn-quote:hover { background: #1e40af; }

.btn-quote-outline { background: transparent; border-color: #1d4ed8; color: #1d4ed8; }
.btn-quote-outline:hover { background: rgba(29, 78, 216, 0.06); border-color: #1e40af; color: #1e40af; }

.btn-whatsapp, .btn-quote, .btn-quote-outline { min-height: 44px; }

/* Neutral — utilidades secundarias junto a botones de WhatsApp/cotización
   (ej. "Vaciar lista"), para que no compitan visualmente con ellos. */
.btn-neutral { background: #ffffff; color: #1e3a8a; border-color: #cbd5e1; }
.btn-neutral:hover { background: #f8fafc; }

.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   6. HEADER Y NAVEGACIÓN
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.logo-img { height: 30px; width: auto; }

/* Ícono de marca del header (assets/images/branding/logo-mark.webp).
   Cuadrado 1:1, object-fit:contain evita cualquier deformación. */
.logo-mark {
  display: block;
  height: 36px;
  width: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-wordmark {
  font-weight: 800;
  /* clamp() en vez de un salto brusco por breakpoint: a 320-360px
     (los teléfonos más angostos) "Jeinox GastroSystems" + el ícono +
     el botón de menú no caben en una sola línea a tamaño completo;
     de ~400px en adelante ya vuelve a su tamaño normal (1.02rem). */
  font-size: clamp(0.85rem, 3vw + 0.28rem, 1.02rem);
  line-height: 1.15;
  color: var(--color-ink);
  white-space: nowrap;
}
.logo-wordmark strong { color: var(--color-accent); font-weight: 800; }

@media (min-width: 768px) {
  .logo-mark { height: 42px; width: 42px; }
  .logo-wordmark { font-size: 1.1rem; }
}
@media (min-width: 1024px) {
  .logo-mark { height: 46px; width: 46px; }
}

.main-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-surface);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  overflow-y: auto;
  z-index: 90;
}
.main-nav.is-open { transform: translateX(0); }

.nav-list {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
}
.nav-list li { border-bottom: 1px solid var(--color-border); }
.nav-list a {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-weight: 600;
  color: var(--color-ink);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--color-accent-dark); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.quote-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.9rem;
  padding: var(--space-2);
}
.quote-indicator__label { display: none; }
.quote-indicator__count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.quote-indicator__count[data-empty="true"] { background: var(--color-steel); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
}
.nav-toggle:hover { background: var(--color-bg); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

body.nav-is-open { overflow: hidden; }

/* El menú de escritorio (enlaces en línea + botón "Cotizar equipos"
   visible) se activa recién en 1280px, no en 1024px. Con el ancho de
   marca + 6 enlaces + "Mi cotización" + CTA que tiene esta cabecera,
   1024-1279px no alcanza a mostrarlos todos en una sola fila sin
   recortarse: en ese rango se mantiene el menú hamburguesa (que ya
   funciona correctamente a cualquier ancho) en vez de forzar un
   layout que no cabe. Ver FASE_3_RESPONSIVE_JEINOX.md. */
@media (min-width: 1280px) {
  .main-nav {
    position: static;
    inset: auto;
    transform: none;
    background: none;
    overflow: visible;
  }
  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    gap: var(--space-2) var(--space-4);
  }
  .nav-list li { border-bottom: 0; }
  .nav-list a { padding: var(--space-2) 0; position: relative; }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.15s ease;
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .header-cta { display: inline-flex; }
  .quote-indicator__label { display: inline; }
  .nav-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-ink) 0%, var(--color-ink-soft) 55%, var(--color-graphite) 100%);
  color: #fff;
  overflow: hidden;
}

/* Fondo de video/imagen del hero. La imagen (<img>) es el elemento LCP:
   siempre está presente y visible de entrada. El <video> se superpone con
   opacity:0 y solo se revela (clase is-video-ready, añadida por
   js/main.js) cuando ya tiene datos para reproducirse sin cortes; si el
   video no llega a cargar o el navegador bloquea el autoplay, la imagen
   de abajo sigue siendo el fondo visible. Ninguno de los dos participa en
   el flujo del documento (position:absolute), así que no afectan la
   altura del hero ni generan Cumulative Layout Shift. */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-media__poster,
.hero-media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media__video {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-media.is-video-ready .hero-media__video { opacity: 1; }

/* Capa oscura semitransparente (mismos tonos de marca que el degradado
   original) para asegurar contraste de texto sobre el video/foto. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,17,23,0.86) 0%, rgba(22,29,39,0.82) 55%, rgba(35,44,58,0.8) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: var(--space-8) var(--space-7);
  max-width: 720px;
}
.hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hero p.lead { color: #cbd2d9; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-7); }

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.trust-badges li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: #e7eaed;
}
.trust-badges .icon { color: var(--color-accent); }

@media (min-width: 640px) {
  .trust-badges { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .hero-inner { padding-block: var(--space-9); max-width: 800px; }
}

/* --------------------------------------------------------------------------
   8. SECCIONES GENÉRICAS / TARJETAS
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); }

.media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-bg);
  overflow: hidden;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-steel);
  border: 1px solid var(--color-border);
}
.badge--disponible { background: var(--color-success-bg); color: var(--color-success); border-color: transparent; }
.badge--fabricacion { background: var(--color-warning-bg); color: var(--color-warning-text); border-color: transparent; }
.badge--consultar { background: var(--color-bg); color: var(--color-steel); }

/* --------------------------------------------------------------------------
   9. CATEGORÍAS Y TIPOS DE NEGOCIO
   -------------------------------------------------------------------------- */
.category-card { display: flex; flex-direction: column; height: 100%; }
.category-card .media-frame { aspect-ratio: 16 / 10; }
.category-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.category-card__body p { flex: 1; }
.category-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-top: var(--space-2);
}
.category-card__link .icon { transition: transform 0.15s ease; }
.category-card__link:hover .icon { transform: translateX(3px); }

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 640px) { .business-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .business-grid { grid-template-columns: repeat(5, 1fr); } }

.business-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-5) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.business-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.business-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
}

/* --------------------------------------------------------------------------
   10. PRODUCTO: TARJETA, GALERÍA, FICHA TÉCNICA, BREADCRUMB
   -------------------------------------------------------------------------- */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card__media { position: relative; }
.product-card__badge { position: absolute; top: var(--space-3); left: var(--space-3); }
.product-card__body {
  padding: var(--space-4) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.product-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-steel);
}
.product-card__name { font-size: 1.05rem; }
.product-card__features {
  margin: var(--space-1) 0 var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.product-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.product-card__features .icon { color: var(--color-success); margin-top: 2px; }
.product-card__price {
  margin-top: auto;
  font-weight: 800;
  color: var(--color-ink);
  padding-top: var(--space-2);
}
.product-card__price .price-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
@media (min-width: 480px) {
  .product-card__actions { flex-direction: row; }
  .product-card__actions .btn { flex: 1; }
}

.breadcrumb { margin-bottom: var(--space-5); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); font-size: 0.85rem; color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent-dark); }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb li[aria-current="page"] { color: var(--color-ink); font-weight: 600; }

.product-gallery { display: flex; flex-direction: column; gap: var(--space-3); }
.product-gallery__main { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.product-gallery__main .media-frame { aspect-ratio: 4 / 3; }
.product-gallery__main img { object-fit: contain; background: var(--color-surface); }
.product-gallery__thumbs { display: flex; gap: var(--space-2); }
.product-gallery__thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  background: var(--color-surface);
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb[aria-current="true"] { border-color: var(--color-accent); }

.product-main__meta { display: flex; flex-direction: column; gap: var(--space-4); }
.product-main__features { display: flex; flex-direction: column; gap: var(--space-2); }
.product-main__features li { display: flex; gap: var(--space-2); align-items: flex-start; }
.product-main__features .icon { color: var(--color-success); margin-top: 3px; }
.product-main__cta { display: flex; flex-direction: column; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-2); }
@media (min-width: 480px) { .product-main__cta { flex-direction: row; } }

.spec-table-wrap { overflow-x: auto; }
.spec-table { min-width: 100%; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.spec-table th {
  width: 40%;
  color: var(--color-text-muted);
  font-weight: 600;
}
.spec-table td { color: var(--color-ink); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-empty { color: var(--color-text-muted); font-style: italic; padding: var(--space-4) 0; }

/* --------------------------------------------------------------------------
   11. CATÁLOGO
   -------------------------------------------------------------------------- */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.search-field .icon { position: absolute; left: var(--space-3); color: var(--color-steel); pointer-events: none; }
.search-field input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.search-field input:focus { border-color: var(--color-accent); }

.filter-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-ink);
}
.filter-pill:hover { border-color: var(--color-accent); }
.filter-pill[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }

.catalog-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); color: var(--color-text-muted); font-size: 0.9rem; }
.catalog-empty { text-align: center; padding: var(--space-8) var(--space-4); color: var(--color-text-muted); }
.catalog-empty .icon { margin-inline: auto; margin-bottom: var(--space-3); color: var(--color-steel-light); width: 40px; height: 40px; }

/* --------------------------------------------------------------------------
   12. COTIZACIÓN
   -------------------------------------------------------------------------- */
/* overscroll-behavior-x:contain evita que, en móvil, un gesto de
   scroll horizontal sobre la tabla (más ancha que la pantalla a
   propósito, para no comprimir sus columnas) se "encadene" y arrastre
   la página completa hacia los lados; el scroll queda contenido
   dentro de este wrapper, como se espera de una tabla con scroll
   propio. */
.quote-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; max-width: 100%; }
.quote-table { min-width: 560px; }
.quote-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.quote-table td { padding: var(--space-3); border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.quote-row__product { display: flex; align-items: center; gap: var(--space-3); }
.quote-row__thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--color-bg); }
.quote-row__thumb img { width: 100%; height: 100%; object-fit: cover; }

.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); }
.qty-control button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-ink); }
.qty-control button:hover { background: var(--color-bg); }
.qty-control input {
  width: 40px;
  text-align: center;
  border: 0;
  border-inline: 1.5px solid var(--color-border);
  height: 32px;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.quote-remove { color: var(--color-steel); }
.quote-remove:hover { color: #b3261e; }

.quote-empty { text-align: center; padding: var(--space-9) var(--space-4); color: var(--color-text-muted); }
.quote-empty .icon { margin-inline: auto; margin-bottom: var(--space-4); width: 48px; height: 48px; color: var(--color-steel-light); }

.quote-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.quote-summary__row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--color-text-muted); }
.quote-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}
.quote-message-preview {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  transform: translate(-50%, 12px);
  background: var(--color-ink);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .icon { color: #7fd19c; }

/* --------------------------------------------------------------------------
   13. FORMULARIOS
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--color-ink); }
.field .hint { font-size: 0.78rem; color: var(--color-text-muted); }
.field input,
.field select,
.field textarea {
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-accent); }
.field textarea { resize: vertical; min-height: 100px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #b3261e; }
.field-error { display: none; color: #b3261e; font-size: 0.8rem; }
.field.has-error .field-error { display: block; }

.form-status {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-success-bg);
  color: var(--color-success);
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }

.custom-fab {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .custom-fab { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

/* --------------------------------------------------------------------------
   14. CONFIANZA / ESTADÍSTICAS
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { display: flex; flex-direction: column; }
.stat-item .stat-value {
  font-size: clamp(1.3rem, 3.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.stat-item .stat-label { font-size: 0.85rem; color: var(--color-text-muted); }

.why-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item { display: flex; flex-direction: column; gap: var(--space-2); }
.why-item .icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   15. PROYECTOS Y TESTIMONIOS
   -------------------------------------------------------------------------- */
.project-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); }
.project-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.project-card__meta { display: flex; align-items: center; gap: var(--space-1); font-size: 0.85rem; color: var(--color-text-muted); }

.testimonial-card {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.testimonial-card__stars { display: flex; gap: 2px; color: var(--color-accent); }
.testimonial-card__quote { font-size: 0.98rem; color: var(--color-ink); }
.testimonial-card__author { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-bg);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-steel);
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 0.92rem; }
.testimonial-card__author span { display: block; font-size: 0.8rem; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   16. FAQ (ACORDEÓN)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--color-border); }
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  text-align: left;
  font-weight: 700;
  color: var(--color-ink);
}
.accordion-trigger .icon { transition: transform 0.2s ease; color: var(--color-steel); flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease;
}
.accordion-panel__inner { padding-top: var(--space-2); padding-bottom: var(--space-4); color: var(--color-text-muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   17. UBICACIÓN
   -------------------------------------------------------------------------- */
.location-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1fr; } }
/* Mapa real de Google Maps embebido (iframe, sin API key). Altura fija
   por breakpoint en vez de aspect-ratio, para controlar el alto en
   escritorio (~350-400px) y reducirlo en móvil según lo pedido. */
.location-map { display: flex; flex-direction: column; }
.location-map__frame {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
.location-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (min-width: 768px) {
  .location-map__frame { height: 320px; }
}
@media (min-width: 1024px) {
  .location-map__frame { height: 380px; }
}

.location-list { display: flex; flex-direction: column; gap: var(--space-4); }
.location-list li { display: flex; gap: var(--space-3); }
.location-list .icon { color: var(--color-accent-dark); flex-shrink: 0; margin-top: 2px; }
.location-list span { display: flex; flex-direction: column; gap: 2px; }
.location-list__name { font-weight: 800; color: var(--color-ink); }
.location-list a { color: var(--color-accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.location-list a:hover { color: var(--color-accent); }

.location-cards { display: grid; gap: var(--space-5); grid-template-columns: 1fr; margin-top: var(--space-6); }
@media (min-width: 480px) { .location-cards { grid-template-columns: repeat(2, 1fr); } }

.location-actions { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 480px) { .location-actions { flex-direction: row; flex-wrap: wrap; } }
.location-actions .btn { justify-content: center; }

/* --------------------------------------------------------------------------
   18. CTA FINAL
   -------------------------------------------------------------------------- */
.cta-final {
  background: linear-gradient(135deg, var(--color-ink), var(--color-graphite));
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-5);
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #cbd2d9; margin-block: var(--space-3) var(--space-5); }
.cta-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--color-ink); color: #cbd2d9; }
.footer-top { padding-block: var(--space-8); display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand .logo-img { height: 28px; margin-bottom: var(--space-3); }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; }
.footer-col h4, .footer-col .h4 { color: #fff; margin-bottom: var(--space-3); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-steel-light);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* --------------------------------------------------------------------------
   20. UTILIDADES VARIAS
   -------------------------------------------------------------------------- */
.placeholder-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  display: inline-block;
}
.divider { height: 1px; background: var(--color-border); border: 0; margin-block: var(--space-7); }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.related-products { margin-top: var(--space-4); }

/* Páginas legales (privacidad, libro de reclamaciones): bloque de datos
   del responsable y listas legibles dentro de texto largo. */
.legal-info {
  margin: var(--space-4) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  display: grid;
  gap: var(--space-2) var(--space-5);
  grid-template-columns: 1fr;
  font-size: 0.92rem;
}
@media (min-width: 640px) { .legal-info { grid-template-columns: 1fr 1fr; } }
.legal-info div { display: flex; flex-direction: column; }
.legal-info dt { font-size: 0.78rem; color: var(--color-text-muted); }
.legal-info dd { margin: 0; font-weight: 600; color: var(--color-ink); }

.legal-content ul { display: flex; flex-direction: column; gap: var(--space-2); padding-left: 1.25rem; list-style: disc; }
.legal-content li { color: var(--color-text-muted); }

/* Listas de garantía: elementos cubiertos (check) y no cubiertos (equis). */
.check-list { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .check-list { grid-template-columns: repeat(2, 1fr); } }
.check-list li { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--color-text-muted); }
.check-list .icon { flex-shrink: 0; margin-top: 2px; }
.check-list--yes .icon { color: var(--color-success); }
.check-list--no .icon { color: var(--color-steel); }
