/* =========================================================
   HT Rodamientos y Empaques — estilos globales
   Dirección visual: "plano técnico"
   ========================================================= */

:root {
  --navy: #0A2549;
  --navy-deep: #061A36;
  --navy-line: #2C4A78;
  --navy-line-soft: #1C3558;
  --red: #E3392C;          /* rojo del logo: acentos */
  --red-action: #C42C20;   /* botones con texto blanco */
  --red-soft: #FF6F63;     /* rojo sobre fondos oscuros */
  --red-link: #FF8A80;
  --steel: #3D4A5C;        /* texto de párrafo */
  --muted: #5B6677;
  --mist: #EDEEEA;         /* fondo general */
  --paper: #FFFFFF;
  --line: #D8DCE2;
  --on-dark: #C9D3E3;
  --on-dark-muted: #8FA3C2;
  --ink: #0B1628;          /* texto principal oscuro */
  --text: #3A4556;         /* párrafos de secciones nuevas */
  --line-strong: #C5CBD3;  /* bordes de campos y filtros */
  --red-hover: #A8251B;    /* hover de botones rojos */
  --placeholder: #7A8494;
  --stripe: #F7F8F6;       /* filas alternas de tablas */
  --wa: #25D366;           /* verde oficial de WhatsApp */
  --wa-hover: #1EBE5A;

  --font-display: 'Figtree', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --chamfer-sm: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  --chamfer: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  --chamfer-lg: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);

  --gutter: 64px;
  --max: 1440px;
  --header-h: 88px;

  /* Movimiento (motion.js): usar estos tokens en todos los efectos */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: .25s;
  --dur: .6s;
  --dur-slow: .9s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.h1 { font-size: clamp(42px, 5.4vw, 74px); }
.h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.12; }
.h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: 0; font-weight: 700; line-height: 1.2; }
.accent { color: var(--red-action); }
.on-dark .accent { color: var(--red-soft); }
.label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-action);
}
.on-dark .label { color: var(--red-soft); }
.lead { font-size: 18px; line-height: 1.6; color: var(--steel); margin: 0; }
.on-dark .lead { color: var(--on-dark); }
.mono { font-family: var(--font-mono); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  font-weight: 600; font-size: 16px;
  border: 0; border-radius: 6px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn--primary { background: var(--red-action); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn--outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.on-dark .btn--outline { color: #fff; box-shadow: inset 0 0 0 1.5px var(--navy-line); }
.on-dark .btn--outline:hover { background: #fff; color: var(--navy); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Header ---------- */
/* Fondo blanco con logo a color. Contraste sobre blanco: navy 15.3:1, rojo acción 5.6:1 (AA).
   main.js agrega .is-scrolled cuando scrollY > 8 para la sombra. El footer no usa estas clases. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(6, 26, 54, .08); }
/* 3 columnas: los links quedan centrados respecto a la página, no al espacio entre logo y botón */
.site-header__inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 32px; }
.site-header__logo { grid-column: 1; justify-self: start; }
.site-header__logo img { height: 48px; width: auto; }
.nav { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--navy); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--red-action); }
/* Activo: la página actual, o "Productos" cuando estás en una página de línea (aria-current="true") */
.nav > a[aria-current="page"], .nav-dropdown__link[aria-current] { border-color: var(--red); }
.site-header__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 24px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--navy); color: var(--navy); cursor: pointer;
}
.mobile-nav { display: none; }

/* Menú desplegable de "Productos" (escritorio). "Productos" sigue siendo link; la flecha es un <button>.
   main.js lo abre con hover (cierre con 150 ms de retraso), clic/Enter en la flecha o ↓; cierra con Escape, clic fuera o al salir el mouse. */
.nav-dropdown { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-dropdown__toggle {
  display: grid; place-items: center; width: 24px; height: 28px; margin-right: -8px; padding: 0;
  background: none; border: 0; border-radius: 4px; color: var(--navy); cursor: pointer; transition: color .2s;
}
.nav-dropdown__toggle:hover, .nav-dropdown.is-open .nav-dropdown__toggle { color: var(--red-action); }
.nav-dropdown__toggle svg { transition: transform .2s ease; }
.nav-dropdown__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dropdown__panel {
  position: absolute; top: calc(100% + 14px); left: -22px; z-index: 60; width: 280px; padding: 8px;
  background: #fff; border: 1px solid #D8DCE2; border-radius: 8px; box-shadow: 0 16px 40px rgba(10, 37, 73, .16);
  animation: nav-dropdown-in .18s ease-out;
}
/* Puente invisible sobre el hueco entre "Productos" y el panel: el mouse no "sale" al bajar */
.nav-dropdown__panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }
.nav-dropdown__panel[hidden] { display: none; }
.nav-dropdown__list { margin: 0 0 8px; padding: 0 0 8px; list-style: none; border-bottom: 1px solid var(--line); }   /* línea divisoria antes de "Ver todos" */
.nav .nav-dropdown__item {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 6px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--navy);
  transition: background-color .15s, color .15s;
}
.nav .nav-dropdown__item:hover, .nav .nav-dropdown__item:focus-visible { background: var(--mist); color: var(--red-action); }
.nav .nav-dropdown__item:focus-visible { outline-offset: -2px; }
.nav .nav-dropdown__item[aria-current="page"] { color: var(--red-action); }
.nav .nav-dropdown__item[aria-current="page"]::before { content: ""; width: 6px; height: 6px; margin-left: -2px; border-radius: 50%; background: var(--red); }
.nav-dropdown__all span { transition: transform .2s; }
.nav-dropdown__all:hover span { transform: translateX(4px); }
@keyframes nav-dropdown-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Submenú de "Productos" en el menú móvil (acordeón) */
.mobile-sub__row { display: flex; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-sub__row a { flex: 1; border-bottom: 0; }
.mobile-sub__toggle {
  flex: none; display: grid; place-items: center; width: 56px; padding: 0;
  background: none; border: 0; border-left: 1px solid var(--line); color: var(--navy); cursor: pointer;
}
.mobile-sub__toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.mobile-sub__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-sub__list { margin: 0; padding: 4px 0; list-style: none; background: var(--mist); border-bottom: 1px solid var(--line); }
.mobile-sub__list[hidden] { display: none; }
.mobile-nav .mobile-sub__list a { padding: 12px var(--gutter) 12px calc(var(--gutter) + 20px); border-bottom: 0; font-size: 15px; }
.mobile-nav .mobile-sub__list a[aria-current="page"] { color: var(--red-action); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown__panel { animation: none; }
  .nav-dropdown__toggle svg, .mobile-sub__toggle svg, .nav-dropdown__all span { transition: none; }
}

/* Hero carrusel */
/* Un solo componente para index.html (780px) y productos.html (--compact, ~490px), 5 slides en cada uno.
   Escritorio (>1200px): las fotos van detrás del texto fijo, a todo lo ancho; el panel de controles
   (etiqueta, marcas, flechas, barras y enlace de la slide activa) va en el bloque de texto, debajo del párrafo.
   Tablet y móvil (≤1200px): foto arriba (21:9 en tablet, 4:3 en móvil), el panel justo debajo y el texto al final. */
.hero-carousel {
  --hc-interval: 4s;                /* duración de cada slide (autoplay) */
  --hc-fade: 800ms;                  /* fade cruzado */
  --hc-min-h: 780px;
  --hc-ratio: 2560 / 1086;           /* proporción de las fotos -2560/-1600 */
  --hc-pos: center;                  /* object-position; cada slide pone el suyo */
  --hc-reserve: 170px;               /* alto libre bajo la foto (mantiene el tamaño de la pieza) */
  --hc-shade: rgba(6, 26, 54, .92);  /* var(--navy-deep) al 92% */
  position: relative; overflow: hidden;
  min-height: var(--hc-min-h);
  display: flex; flex-direction: column;
  background: var(--navy-deep);
  color: #fff;
}
.hero-carousel--compact { --hc-min-h: 492px; --hc-reserve: 0px; }   /* 492: un poco más alto que el contenido con la fuente final, sin salto al cargar la fuente de títulos */

/* Texto fijo (no cambia entre slides) + panel de controles */
.hero-carousel__inner {
  position: relative; z-index: 3; flex: 1;
  display: flex; flex-direction: column; gap: 32px;
  padding-top: 72px; padding-bottom: 64px;
  pointer-events: none;
}
.hero-carousel__inner > * { pointer-events: auto; }
.hero-carousel__inner > .hero__facts { align-self: flex-start; margin-top: auto; }
.hero-carousel__copy { max-width: min(700px, 48vw); display: flex; flex-direction: column; gap: 32px; }
.hero-carousel--compact .hero-carousel__inner { gap: 20px; padding-top: 32px; padding-bottom: 40px; }
.hero-carousel--compact .hero-carousel__copy { max-width: 640px; gap: 20px; }

/* Slides */
.hero-carousel__stage { position: absolute; inset: 0; z-index: 1; }
.hero-carousel__slide {
  position: absolute; inset: 0; isolation: isolate;
  opacity: 0; visibility: hidden;   /* al salir (tras .is-leaving) se oculta al instante: ya está tapada por la nueva */
}
.hero-carousel__slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.hero-carousel__slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity var(--hc-fade) ease, visibility 0s; }
/* Degradado navy de izquierda a derecha para que el texto fijo cumpla contraste AA */
.hero-carousel__slide::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--hc-shade) 0%, rgba(6, 26, 54, .75) 25%, rgba(6, 26, 54, 0) 55%);
}

/* Caja de la foto, anclada arriba a la derecha:
   - alto máximo 48vw: la foto recorta solo a los lados (según --hc-pos) y la pieza cabe entera, con margen para el zoom;
   - --hc-reserve deja libre la franja de abajo;
   - ancho máximo 21:9: en pantallas muy anchas no recorta arriba ni abajo; el resto es navy.
   Los bordes se funden con el fondo navy con una máscara. */
.hero-carousel__media {
  position: absolute; top: 0; right: 0;
  height: min(calc(100% - var(--hc-reserve)), var(--hc-media-max, 48vw)); aspect-ratio: var(--hc-ratio); max-width: 100%; overflow: hidden;
}
.hero-carousel__media picture { display: block; }
.hero-carousel__media picture, .hero-carousel__media img { width: 100%; height: 100%; }
.hero-carousel__media img { object-fit: cover; object-position: var(--hc-pos); transform-origin: var(--hc-pos); }
.hero-carousel__media picture {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%), linear-gradient(transparent, #000 8%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 14%), linear-gradient(transparent, #000 8%, #000 84%, transparent);
  mask-composite: intersect;
}

/* Zoom lento (Ken Burns) en la foto activa */
.hero-carousel.has-motion .is-active .hero-carousel__media img,
.hero-carousel.has-motion .is-leaving .hero-carousel__media img { animation: hc-zoom calc(var(--hc-interval) + var(--hc-fade)) linear forwards; }
.hero-carousel.has-motion.is-paused .hero-carousel__slide .hero-carousel__media img { animation-play-state: paused; }
/* 1 → 1.08 en los 4 s que la slide está al frente (lineal); sigue igual durante el fade: 1 + .08 × 4.8 / 4 = 1.096 */
@keyframes hc-zoom { from { transform: scale(1); } to { transform: scale(1.096); } }

/* Slide de marcas: la imagen ya trae el fondo y los 16 logos (no se ponen logos con código).
   Sin zoom. El enlace se coloca en % de la foto: debajo del grid de logos y alineado a su izquierda. */
.hero-carousel.has-motion .hero-carousel__slide--brands .hero-carousel__media img { animation: none; }
.hero-carousel__more {
  position: absolute; z-index: 2; left: 54.8%; top: 76%;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--red-link);
  transition: color .2s;
}
.hero-carousel__more:hover { color: #fff; }

/* Panel de controles: una sola franja para todo el carrusel. main.js la llena con los data-* de la slide activa
   (data-label, data-marcas, data-href, data-link). Escritorio: etiqueta y marcas a la izquierda, flechas a la derecha,
   barras de progreso a todo lo ancho y el enlace debajo. */
.hero-carousel__panel {
  max-width: min(700px, 40vw);   /* 40vw: en 1280–1440 las flechas no caen sobre la pieza de la foto */
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  grid-template-areas: "info toggle prev next" "bars bars bars bars" "link link link link";
  align-items: center; column-gap: 8px;
  padding-top: 16px; border-top: 1px solid var(--navy-line);
}
.hero-carousel--compact .hero-carousel__panel { max-width: min(640px, 40vw); }
.hero-carousel__info { grid-area: info; min-width: 0; }
.hero-carousel__label, .hero-carousel__marcas { margin: 0; font-family: var(--font-mono); letter-spacing: .08em; }
.hero-carousel__label { font-size: 13px; color: #fff; }
.hero-carousel__label span { color: var(--red-soft); }
.hero-carousel__marcas { margin-top: 6px; font-size: 12px; color: var(--on-dark-muted); }
.hero-carousel__link { grid-area: link; justify-self: start; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--red-link); transition: color .2s; }
.hero-carousel__link:hover { color: #fff; }
/* Cambio de slide: la etiqueta, las marcas y el enlace salen y entran con fade */
.hero-carousel__info, .hero-carousel__link { transition: opacity .2s ease, color .2s; }
.hero-carousel__info.is-swapping, .hero-carousel__link.is-swapping { opacity: 0; }

.hero-carousel__arrow {
  flex-shrink: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: var(--navy-line); color: #fff; cursor: pointer;
  transition: background-color .2s;
}
.hero-carousel__arrow:hover { background: var(--red-action); }
.hero-carousel__arrow--prev { grid-area: prev; }
.hero-carousel__arrow--next { grid-area: next; }
/* Pausar / reproducir: mismo estilo que las flechas; main.js pone .is-running mientras corre el autoplay */
.hero-carousel__toggle { grid-area: toggle; margin-right: 8px; }
.hero-carousel__icon-play { display: none; }
.hero-carousel:not(.is-running) .hero-carousel__icon-pause { display: none; }
.hero-carousel:not(.is-running) .hero-carousel__icon-play { display: block; }
.hero-carousel__bars { grid-area: bars; display: flex; gap: 6px; }
/* Sin JS no hay flechas, botón de pausa ni barras (no harían nada) */
.hero-carousel:not(.is-ready) .hero-carousel__arrow, .hero-carousel:not(.is-ready) .hero-carousel__bars { display: none; }
/* Área clicable de 44px; el margen negativo conserva el espacio que ocupaba (36px) y la línea sigue centrada */
.hero-carousel__bar { position: relative; flex: 1; height: 44px; margin: -4px 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-carousel__bar::before, .hero-carousel__bar::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; }
.hero-carousel__bar::before { background: rgba(255, 255, 255, .22); transition: background-color .2s; }
.hero-carousel__bar:hover::before { background: rgba(255, 255, 255, .45); }
.hero-carousel__bar::after { background: var(--red); transform: scaleX(0); transform-origin: left center; }
.hero-carousel__bar[aria-current="true"]::after { transform: scaleX(1); }
.hero-carousel.is-playing .hero-carousel__bar[aria-current="true"]::after { animation: hc-progress var(--hc-interval) linear forwards; }
/* Más específico que la regla anterior: el atajo "animation" reinicia animation-play-state */
.hero-carousel.is-playing.is-paused .hero-carousel__bar[aria-current="true"]::after { animation-play-state: paused; }
@keyframes hc-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Chips de categoría debajo del hero de productos */
.hero-carousel-chips { background: var(--navy-deep); border-top: 1px solid var(--navy-line); padding: 20px 0 28px; }

/* ≤1200px: foto arriba, luego el panel de controles, luego el texto fijo sobre navy.
   (Más angosto que 1200px la pieza quedaría debajo del texto.)
   .hero-carousel__inner pasa a display: contents para poder ordenar el panel justo debajo de la foto. */
@media (max-width: 1200px) {
  .hero-carousel, .hero-carousel--compact { --hc-min-h: 0; }
  .hero-carousel__stage { position: relative; inset: auto; order: 1; display: grid; }
  .hero-carousel__slide { position: relative; inset: auto; grid-area: 1 / 1; display: flex; flex-direction: column; }
  .hero-carousel__slide::after { display: none; }
  .hero-carousel__media { position: relative; top: auto; bottom: auto; right: auto; left: auto; margin: 0; width: 100%; height: auto; max-width: none; aspect-ratio: var(--hc-ratio); }
  .hero-carousel__media picture { -webkit-mask-image: none; mask-image: none; }
  .hero-carousel__inner, .hero-carousel--compact .hero-carousel__inner { display: contents; }
  .hero-carousel__inner > * { margin-left: var(--gutter); margin-right: var(--gutter); }
  .hero-carousel__panel, .hero-carousel--compact .hero-carousel__panel { order: 2; max-width: none; margin-top: 16px; }
  .hero-carousel__copy, .hero-carousel--compact .hero-carousel__copy { order: 3; max-width: 700px; margin-top: 32px; }
  .hero-carousel--compact .hero-carousel__copy { margin-bottom: 48px; }
  .hero-carousel__inner > .hero__facts { order: 4; margin-top: 32px; margin-bottom: 48px; }
  .hero-carousel .hero__lead { max-width: 520px; }
  /* Slide de marcas: aquí el enlace del panel ("Ver todas las marcas") ya lleva a las marcas;
     el de la imagen se oculta para no duplicarlo ni dejar un hueco bajo la foto en las demás slides */
  .hero-carousel__more { display: none; }
}
/* Móvil: flechas a los lados de la etiqueta, barras y enlace debajo */
@media (max-width: 720px) {
  .hero-carousel { --hc-ratio: 4 / 3; }
  .hero-carousel__media img { object-position: center; transform-origin: center; }
  .hero-carousel.has-motion .is-active .hero-carousel__media img,
  .hero-carousel.has-motion .is-leaving .hero-carousel__media img { animation: none; }
  /* El botón de pausa baja a la fila del enlace, a la derecha (arriba no cabe sin descentrar la etiqueta) */
  .hero-carousel__panel { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "prev info next" "bars bars bars" "link link toggle"; column-gap: 12px; }
  .hero-carousel__toggle { margin-right: 0; }
  .hero-carousel__info { text-align: center; }
  .hero-carousel__label { font-size: 12px; }
  .hero-carousel__marcas { font-size: 11px; }
  .hero-carousel__link { justify-self: center; text-align: center; font-size: 12px; }
  .hero-carousel__copy, .hero-carousel--compact .hero-carousel__copy { margin-top: 28px; gap: 24px; }
  .hero-carousel--compact .hero-carousel__copy { margin-bottom: 40px; }
  .hero-carousel__inner > .hero__facts { margin-top: 28px; margin-bottom: 40px; }
}

/* Contenido del hero de inicio */
.hero__tag {
  align-self: flex-start; padding: 8px 14px; border: 1px solid var(--navy-line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--on-dark);
}
.hero__title { color: #fff; }
.hero__title span { color: var(--red-soft); }
.hero__lead { max-width: min(520px, 40vw); }
.hero__facts { position: relative; z-index: 2; display: flex; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--on-dark); }
.hero__facts span { padding: 0 24px; border-left: 1px solid var(--navy-line); }
.hero__facts span:first-child { padding-left: 0; border-left: 0; }

/* ---------- Marquesina de marcas ---------- */
.marquee {
  --marquee-speed: 80s;    /* duración de una vuelta completa */
  --marquee-gap: 64px;
  --marquee-logo-h: 48px;
  --marquee-fade: 64px;
  display: flex; align-items: center; gap: 24px;
  height: 112px; overflow: hidden;
  padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: #fff;
  border-top: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy);
}
.marquee__label {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px 0 16px;
  background: var(--navy); color: #fff; border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.marquee__count { color: var(--red-soft); }
.marquee__more {
  flex-shrink: 0; white-space: nowrap;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-action);
}
.marquee__more:hover { color: var(--navy); }
.marquee__viewport {
  flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent);
}
/* Dos sets idénticos; cada uno termina con el mismo espacio que separa los logos, así -50% cae justo en el inicio del segundo */
.marquee__track { display: flex; width: max-content; background: #fff; animation: marquee var(--marquee-speed) linear infinite; }
.marquee__set { display: flex; align-items: center; gap: var(--marquee-gap); padding-right: var(--marquee-gap); }
.marquee__set img {
  width: auto; height: auto; max-height: var(--marquee-logo-h); max-width: 140px; object-fit: contain;
  filter: grayscale(1); opacity: .7; mix-blend-mode: multiply;
  transition: filter .35s ease, opacity .35s ease;
}
.marquee__set img:hover { filter: none; opacity: 1; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 720px) {
  .marquee { --marquee-speed: 55s; --marquee-gap: 40px; --marquee-logo-h: 32px; --marquee-fade: 32px; height: 80px; gap: 12px; }
  .marquee__label { height: 36px; padding: 0 16px 0 12px; font-size: 11px; }
  .marquee__label-long { display: none; }
  .marquee__more { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__viewport { overflow-x: auto; }
  .marquee__set[aria-hidden="true"] { display: none; }
}

/* ---------- Secciones ---------- */
.section { padding: 128px 0; }
.section--white { background: #fff; }
.section--dark { background: var(--navy-deep); color: #fff; }
.section--navy { background: var(--navy); color: #fff; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.split__aside { grid-column: span 4; display: flex; flex-direction: column; gap: 24px; align-self: start; }
.split__main { grid-column: 6 / span 7; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.section-head > div { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }

/* Líneas de producto (index): piezas flotando, sin tarjetas */
.lineas__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; row-gap: 24px; align-items: end; margin-bottom: 88px; }
.lineas__head-title { display: flex; flex-direction: column; gap: 14px; }
.lineas__eyebrow { margin: 0; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--red-action); }
.lineas__head-side { display: flex; flex-direction: column; gap: 24px; }
.lineas__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lineas__btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px;
  border-radius: 6px; font-family: var(--font-body); font-size: 16px; font-weight: 600; transition: background-color .2s, color .2s;
}
.lineas__btn--solid { background: var(--navy); color: #fff; }
.lineas__btn--solid:hover { background: var(--navy-deep); }
.lineas__btn--outline { box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy); }
.lineas__btn--outline:hover { background: var(--navy); color: #fff; }

.lineas__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; row-gap: 72px; }
.lineas__grid > li { display: flex; justify-content: center; }

.linea {
  --float-delay: 0s;
  display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 360px; color: var(--navy); text-align: center;
}
.lineas__grid > li:nth-child(1) .linea { --float-delay: 0s; }
.lineas__grid > li:nth-child(2) .linea { --float-delay: -1.2s; transition-delay: .1s; }
.lineas__grid > li:nth-child(3) .linea { --float-delay: -2.4s; transition-delay: .2s; }
.lineas__grid > li:nth-child(4) .linea { --float-delay: -3.6s; transition-delay: .3s; }
.lineas__grid > li:nth-child(5) .linea { --float-delay: -4.8s; transition-delay: .4s; }
.lineas__grid > li:nth-child(6) .linea { --float-delay: -.6s; transition-delay: .5s; }

.linea__stage { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; }
.linea__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.linea__ring { stroke: var(--line); stroke-width: 1.5; stroke-opacity: 1; transition: stroke .4s, stroke-opacity .4s; }
.linea__dash { stroke: var(--navy-line); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.linea__orbit, .linea__orbit-boost { transform-box: view-box; transform-origin: 50% 50%; }
.linea__orbit { animation: linea-spin 40s linear infinite; }
/* En hover se suma un segundo giro (1/40 + 1/10 = 1/8 → 8 s por vuelta) sin reiniciar la animación */
.linea__orbit-boost { animation: linea-spin 10s linear infinite; animation-play-state: paused; }

.linea__float {
  position: absolute; left: 10%; top: 10%; width: 80%; height: 80%;
  animation: linea-float 6s ease-in-out infinite; animation-delay: var(--float-delay);
}
.linea__piece { width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.linea__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.linea__shadow {
  position: absolute; left: 22.5%; bottom: 7%; width: 55%; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 37, 73, .18), rgba(10, 37, 73, 0));
  animation: linea-shadow 6s ease-in-out infinite; animation-delay: var(--float-delay);
}

.linea__body { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }
.linea__title { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.linea__n { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--red-action); }
.linea__name { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--navy); transition: color .3s; }
.linea__desc {
  margin: 0; max-width: 320px; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--text);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.linea__more { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--red-action); }
.linea__arrow { display: inline-block; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }

@keyframes linea-spin { to { transform: rotate(360deg); } }
@keyframes linea-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes linea-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .6; } }

@media (hover: hover) {
  .linea:hover .linea__piece { transform: rotate(-6deg) scale(1.06); }
  .linea:hover .linea__orbit-boost { animation-play-state: running; }
  .linea:hover .linea__ring { stroke: var(--red-soft); stroke-opacity: .45; }
  .linea:hover .linea__name { color: var(--red-action); }
  .linea:hover .linea__arrow { transform: translateX(6px); }
}
.linea:focus-visible { outline-offset: 8px; }
.linea:focus-visible .linea__piece { transform: rotate(-6deg) scale(1.06); }
.linea:focus-visible .linea__orbit-boost { animation-play-state: running; }
.linea:focus-visible .linea__ring { stroke: var(--red-soft); stroke-opacity: .45; }
.linea:focus-visible .linea__name { color: var(--red-action); }
.linea:focus-visible .linea__arrow { transform: translateX(6px); }

@media (prefers-reduced-motion: reduce) {
  .linea__float, .linea__shadow, .linea__orbit, .linea__orbit-boost { animation: none; }
  .lineas__grid .linea { transition-delay: 0s; }
}

/* Index: "40 años" — foto con tarjeta de cotización + texto */
.about-home { background: var(--mist); padding: 104px 0; }
.about-home__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 96px; row-gap: 40px; align-items: center; }
.about-home__media { display: flex; flex-direction: column; gap: 12px; }
.about-home__frame { position: relative; }
.about-home__photo { display: block; }
.about-home__photo img { display: block; width: 100%; height: 470px; object-fit: cover; object-position: 38% 50%; border-radius: 8px; background: var(--line); }
.about-home__caption { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }

.quote-card {
  position: absolute; right: -24px; bottom: 36px; width: 316px; z-index: 2;
  display: flex; flex-direction: column; gap: 16px; padding: 20px; background: #fff; border-radius: 8px;
  box-shadow: 0 16px 40px rgba(10, 37, 73, .16), 0 2px 6px rgba(10, 37, 73, .08);
}
/* Entra una vez con el .reveal, .3 s después que la foto */
.quote-card.reveal { transition: opacity .7s cubic-bezier(.2, .8, .2, 1) .3s, transform .7s cubic-bezier(.2, .8, .2, 1) .3s; }
.quote-card__top { display: flex; align-items: center; gap: 14px; }
.quote-card__thumb { flex-shrink: 0; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; background: var(--mist); border-radius: 6px; }
.quote-card__thumb img { width: 70px; height: 70px; object-fit: contain; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.quote-card:hover .quote-card__thumb img { transform: rotate(-25deg) scale(1.06); }
.quote-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.quote-card__title { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--navy); }
.quote-card__sub { margin: 0; font-family: var(--font-body); font-size: 14px; line-height: 1.4; color: var(--muted); }
.quote-card__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 6px;
  background: var(--red-action); color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 600; transition: background-color .2s;
}
.quote-card__btn:hover { background: var(--red-hover); }

.about-home__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.about-home__eyebrow { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; color: var(--navy); }
.about-home__title { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--navy); }
.about-home__lead { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--text); }
.about-home__facts { list-style: none; margin: 8px 0 12px; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.about-home__facts li { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); }
.about-home__facts li:nth-child(odd) { border-right: 1px solid var(--line); }
.about-home__facts li:nth-child(even) { padding-left: 24px; padding-right: 0; }
.about-home__n { font-family: var(--font-mono); font-size: 13px; color: var(--red-action); }
.about-home__facts strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.about-home__facts li > span:last-child { font-family: var(--font-body); font-size: 15px; color: var(--muted); }
.about-home__more { gap: 8px; }

/* Nosotros: historia (texto + foto) */
.about-story {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; row-gap: 40px;
  grid-template-areas: "copy media" "more more";
}
.about-story__copy { grid-area: copy; display: flex; flex-direction: column; gap: 24px; }
.about-story__stamp { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.about-story__copy .h2 { color: var(--navy); }
.about-story__text { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.about-story__text p, .about-story__more p { margin: 0; color: var(--steel); line-height: 1.7; }
.about-story__text strong { color: var(--navy); font-weight: 600; }
.about-story__text a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--red-action); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.about-story__text a:hover { color: var(--red-action); }
/* La foto llena el alto de la fila 1 (object-fit: cover) para cerrar a la par del texto */
.about-story__media { grid-area: media; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.about-story__media picture { position: relative; flex: 1 1 auto; min-height: 300px; }
.about-story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 8px; background: var(--line); }
.about-story__media figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.about-story__more { grid-area: more; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; row-gap: 20px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Nosotros: "Lo que nos distingue" con valero bajo el título */
.about-why .split__aside { grid-row: 1; }
.about-why .split__main { grid-row: 1 / span 2; }
.about-why__bearing { grid-column: 1 / span 4; grid-row: 2; align-self: start; display: block; width: 100%; max-width: 260px; }
.about-why__bearing img { width: 100%; height: auto; }

/* Nosotros: lista editorial */
.about-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.about-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.about-list__n { font-family: var(--font-mono); font-size: 14px; color: var(--navy); padding-top: 4px; }
.about-list__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: 0; line-height: 1.15; color: var(--navy); }
.about-list p { margin: 0; color: var(--steel); max-width: 560px; }

/* Nosotros: banda Grupo A&M */
.group-band { background: var(--navy); color: #fff; padding: 72px 0; }
.group-band__inner { display: flex; flex-direction: column; gap: 14px; }
.group-band .label { color: var(--red-soft); }
.group-band p { margin: 0; max-width: 760px; font-size: 18px; line-height: 1.6; color: #fff; }
.group-band__links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; }
.group-band__links li { border-left: 1px solid var(--navy-line); }
.group-band__links li:first-child { border-left: 0; }
.group-band__links li:first-child a { padding-left: 0; }
.group-band__links a { display: inline-flex; gap: 8px; padding: 6px 24px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; transition: color .2s; }
.group-band__links a span { color: var(--on-dark); transition: color .2s; }
.group-band__links a:hover, .group-band__links a:hover span { color: var(--red-link); }

/* Index: cotiza por línea (usa la franja navy de .group-band) */
.group-band.line-quote { padding: 80px 0; }
.line-quote__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 64px; row-gap: 32px; align-items: center; }
.line-quote__copy { display: flex; flex-direction: column; gap: 14px; }
.line-quote__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.01em; color: #fff; }
.line-quote .line-quote__text { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.line-quote__buttons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.line-quote__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; min-height: 56px; padding: 12px 18px;
  border: 1px solid var(--navy-line); border-radius: 6px; background: transparent; color: #fff;
  font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.25; transition: background-color .2s, color .2s, border-color .2s;
}
.line-quote__btn span { flex-shrink: 0; }
.line-quote__btn:hover { background: #fff; color: var(--navy); border-color: #fff; }
.line-quote .line-quote__foot { grid-column: 1 / -1; max-width: none; font-family: var(--font-body); font-size: 15px; color: var(--on-dark); }
.line-quote__foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.line-quote__foot a:hover { color: var(--red-link); }
.line-quote__foot > span { margin: 0 6px; }

/* Index: catálogos (índice técnico en filas) */
.catalogos { background: #fff; padding: 104px 0; }
.catalogos__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; row-gap: 20px; align-items: end; margin-bottom: 48px; }
.catalogos__head-title { display: flex; flex-direction: column; gap: 14px; }
.catalogos__eyebrow { margin: 0; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--red-action); }
.catalogos__title { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 3.9vw, 56px); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; color: var(--navy); }
.catalogos__lead { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--text); }

.catalogos__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.catalogos__filter {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--navy); cursor: pointer; white-space: nowrap;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; transition: background-color .2s, border-color .2s, color .2s;
}
.catalogos__filter:hover { border-color: var(--navy); }
.catalogos__filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.catalogos__count { opacity: .6; font-weight: 500; }

.catalogos__index { border-top: 1.5px solid var(--navy); }
.catalogos__cols, .catalogo { display: grid; grid-template-columns: 44px 130px minmax(0, 1fr) 220px auto; align-items: center; column-gap: 24px; padding: 0 24px; }
.catalogos__cols { height: 44px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.catalogos__cols span:last-child { text-align: right; }
.catalogos__list { list-style: none; margin: 0; padding: 0; }
.catalogo { min-height: 88px; border-bottom: 1px solid var(--line); color: var(--navy); overflow: hidden; transition: background-color .25s, color .25s; }
.catalogo[hidden], .catalogo.is-collapsed { display: none; }
.catalogo__n { font-family: var(--font-mono); font-size: 13px; color: var(--red-action); transition: color .25s; }
.catalogo__logo { position: relative; display: block; width: 110px; height: 36px; }
.catalogo__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .25s, filter .25s; }
.catalogo__logo-white { opacity: 0; }
.catalogo__name { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.15; color: inherit; }
.catalogo__line { font-family: var(--font-body); font-size: 15px; line-height: 1.35; color: var(--muted); transition: color .25s; }
.catalogo__actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; white-space: nowrap; font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.catalogo__pdf { color: inherit; }
.catalogo__arrow { display: inline-block; transition: transform .25s; }
.catalogo__quote { color: var(--red-action); transition: color .25s; }
.catalogo__pdf:hover, .catalogo__quote:hover { text-decoration: underline; text-underline-offset: 3px; }
.catalogo a:focus-visible { outline-color: var(--red-soft); }

/* Hover / focus de la fila */
.catalogo:hover, .catalogo:focus-within { background: var(--navy); color: #fff; }
.catalogo:hover .catalogo__n, .catalogo:focus-within .catalogo__n,
.catalogo:hover .catalogo__quote, .catalogo:focus-within .catalogo__quote { color: var(--red-link); }
.catalogo:hover .catalogo__line, .catalogo:focus-within .catalogo__line { color: var(--on-dark); }
.catalogo:hover .catalogo__logo-color, .catalogo:focus-within .catalogo__logo-color { opacity: 0; }
.catalogo:hover .catalogo__logo-white, .catalogo:focus-within .catalogo__logo-white { opacity: 1; }
.catalogo:hover .catalogo__logo--filter .catalogo__logo-color,
.catalogo:focus-within .catalogo__logo--filter .catalogo__logo-color { opacity: 1; filter: brightness(0) invert(1); }
.catalogo:hover .catalogo__arrow, .catalogo:focus-within .catalogo__arrow { transform: translate(3px, -3px); }

.catalogos__more-wrap { display: flex; justify-content: center; margin-top: 40px; }
.catalogos__more[hidden] { display: none; }
.catalogos__more {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border: 0; border-radius: 6px;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy); cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; transition: background-color .2s, color .2s;
}
.catalogos__more:hover { background: var(--navy); color: #fff; }


/* Pasos: eje con rodamientos */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 8px; background: var(--navy); }
.step { position: relative; display: flex; flex-direction: column; gap: 18px; }
.step__node { width: 96px; height: 96px; border-radius: 50%; border: 12px solid var(--navy); background: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 600; color: var(--navy); }
.step:last-child .step__node { border-color: var(--red); color: var(--red-action); }
.step h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--navy); }
.step p { margin: 0; max-width: 340px; color: var(--steel); }
/* Variante sobre fondo navy (index: "Cotizar es así de simple") */
.steps-band .steps::before { background: var(--navy-line); }
.steps-band .step__node { border-color: var(--navy-line); color: var(--navy); }
.steps-band .step:last-child .step__node { border-color: var(--red); color: var(--red-action); }
.steps-band .step h3 { color: #fff; }
.steps-band .step p { color: var(--on-dark); }

/* Contacto */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.contact__info { grid-column: span 5; display: flex; flex-direction: column; gap: 32px; }
.contact__list { display: flex; flex-direction: column; border-top: 1px solid var(--navy-line); }
.contact__list a, .contact__list div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--navy-line); }
.contact__list .k { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-muted); }
.contact__list .v { font-family: var(--font-mono); font-size: 16px; text-align: right; }
.contact__list a:hover .v { color: var(--red-link); }
.quote-form { grid-column: 7 / span 6; background: #fff; color: var(--ink); padding: 48px; display: flex; flex-direction: column; gap: 20px; clip-path: var(--chamfer-lg); }
.quote-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--steel); text-transform: uppercase; }
.field input, .field textarea { border: 0; border-bottom: 1.5px solid var(--navy); background: transparent; padding: 10px 2px; font-size: 16px; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { font-family: var(--font-mono); font-size: 15px; resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { font-size: 14px; font-weight: 600; color: var(--navy); margin: 0; }
.hidden-field { display: none; }

/* Contacto sencillo (títulos en Figtree, resto en IBM Plex Sans; sin estilo técnico) */
.contact-simple { --cs-red: var(--red-action); --cs-red-hover: var(--red-hover); --cs-text: var(--text); --cs-gray: var(--muted); --cs-line: var(--line); --cs-input: var(--line-strong);
  background: #fff; padding: 96px 0; font-family: var(--font-body); color: var(--navy); }
.contact-simple__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 96px; row-gap: 48px; align-items: start; }
.contact-simple__info { display: flex; flex-direction: column; align-items: flex-start; }
.contact-simple__eyebrow { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--cs-red); }
.contact-simple__title { margin: 0; font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1.15; color: var(--navy); }
.contact-simple__lead { margin: 16px 0 28px; font-size: 18px; line-height: 1.55; color: var(--cs-text); max-width: 520px; }
.contact-simple__wa, .contact-form__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px;
  background: var(--cs-red); color: #fff; border: 0; border-radius: 6px; font-family: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: background-color .2s;
}
.contact-simple__wa:hover, .contact-form__submit:hover { background: var(--cs-red-hover); }
.contact-form__submit:disabled { opacity: .7; cursor: wait; }
.contact-simple__list { list-style: none; margin: 40px 0 0; padding: 0; width: 100%; border-top: 1px solid var(--cs-line); }
.contact-simple__list li { display: grid; grid-template-columns: 20px 110px minmax(0, 1fr); align-items: start; column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--cs-line); }
.contact-simple__list svg { color: var(--navy); margin-top: 2px; }
.contact-simple__k { font-size: 15px; color: var(--cs-gray); line-height: 1.5; padding-top: 1px; }
.contact-simple__v { font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.45; overflow-wrap: anywhere; }
a.contact-simple__v:hover { color: var(--cs-red); }

.contact-form { display: flex; flex-direction: column; gap: 20px; background: var(--mist); border: 1px solid var(--cs-line); border-radius: 8px; padding: 40px; color: var(--navy); }
.contact-form__head { display: flex; flex-direction: column; gap: 4px; }
.contact-form__title { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.contact-form__sub { margin: 0; font-size: 15px; color: var(--cs-gray); }
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-form__field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.contact-form__opt { font-weight: 400; color: var(--cs-gray); }
.contact-form__field input, .contact-form__field textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--cs-input); border-radius: 6px; background: #fff;
  font-family: inherit; font-size: 16px; color: var(--navy); outline: none; transition: border-color .2s;
}
.contact-form__field textarea { height: auto; min-height: 128px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.contact-form__field input::placeholder, .contact-form__field textarea::placeholder { color: var(--placeholder); }
.contact-form__field input:focus, .contact-form__field textarea:focus { border-color: var(--navy); }
.contact-form__submit { width: 100%; }
.contact-form .form-status { font-family: inherit; font-size: 15px; }
.contact-form .form-status:empty { display: none; }
.contact-form__note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--cs-gray); }
.contact-form__note a { color: var(--navy); text-decoration: underline; }

/* Asesores de WhatsApp (contacto.html#asesores, debajo del formulario).
   Escritorio: iniciales + nombre y puesto, el número abajo en mono y el botón a todo lo ancho.
   Móvil: el número se junta con el puesto en una línea ("Asesor de ventas · 81 8175 5023"). */
/* Contacto alterna fondos: hero navy → formulario blanco → asesores mist → mapa blanco → FAQ mist → footer navy */
.asesores { background: var(--mist); padding: 96px 0; color: var(--navy); }   /* las tarjetas siguen blancas con borde --line */
.contact-map { background: var(--paper); }
.asesores__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.asesores__title { margin: 0; font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1.15; color: var(--navy); }
.asesores__lead { margin: 4px 0 0; font-size: 18px; line-height: 1.55; color: var(--text); }
.asesores__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.asesor {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-content: start;
  padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.asesor:hover, .asesor:focus-within { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 37, 73, .12); border-color: var(--navy); }
.asesor__avatar {
  grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1;
}
.asesor__name { grid-column: 2; align-self: end; margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--navy); }
.asesor__meta { display: contents; }
.asesor__role { grid-column: 2; align-self: start; margin-top: 2px; font-size: 15px; line-height: 1.4; color: #5B6675; }
.asesor__sep { display: none; }
.asesor__num { grid-column: 1 / -1; margin-top: 20px; font-family: var(--font-mono); font-size: 15px; color: var(--navy); }
.asesor__btn { grid-column: 1 / -1; width: 100%; height: 50px; margin-top: 16px; }
.asesor__icon { width: 20px; height: 20px; flex: none; }

@media (max-width: 767px) {
  .asesores { padding: 64px 0; }
  .asesores .container { padding: 0 16px; }
  .asesores__title { font-size: 32px; }
  .asesores__lead { font-size: 17px; }
  .asesores__head { margin-bottom: 28px; }
  .asesores__grid { grid-template-columns: minmax(0, 1fr); }
  .asesor { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding: 24px; }
  .asesor__avatar { width: 48px; height: 48px; font-size: 18px; }
  .asesor__meta { display: block; grid-column: 2; margin: 2px 0 0; font-size: 15px; line-height: 1.4; color: #5B6675; }
  .asesor__role { margin: 0; }
  .asesor__sep { display: inline; }
  .asesor__num { margin: 0; color: inherit; white-space: nowrap; }
  .asesor__btn { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .asesor { transition: none; }
  .asesor:hover, .asesor:focus-within { transform: none; }
}

/* Liga "o elige a tu asesor →" bajo el botón de WhatsApp de los CTA navy (cta-band, ln-cta) */
.wa-cta { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; }
.wa-cta__link { font-size: 15px; font-weight: 500; color: var(--red-link); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.wa-cta__link:hover { color: #fff; }
.ln-cta .ln-actions { align-items: flex-start; }
@media (max-width: 720px) {
  .ln-actions > .wa-cta { width: 100%; }
}

/* ---------- Encabezado de página interior ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.page-hero__inner { position: relative; padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.page-hero__ring { position: absolute; right: -60px; top: -80px; width: 440px; opacity: .14; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--on-dark); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }
.page-hero .lead { max-width: 680px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border: 1px solid var(--navy-line); border-radius: 999px; font-size: 14px; color: #fff; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; background: var(--navy); color: #fff; border-radius: 8px; }
.cta-band h2 { font-size: clamp(26px, 2.6vw, 36px); }
.cta-band p { margin: 8px 0 0; color: var(--on-dark); }

/* Texto legal / largo */
/* Texto legal (aviso de privacidad): una columna de lectura */
.legal { max-width: calc(760px + 2 * var(--gutter)); }
.legal p, .legal li { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--text); }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 20px; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 6px; padding-left: 4px; }
.legal li::marker { color: var(--red-action); }
.legal h2 { margin: 48px 0 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.25; color: var(--navy); }
.legal a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--red-action); text-underline-offset: 3px; }
.legal a:hover { color: var(--red-action); }
.legal .legal__updated { margin-bottom: 32px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.legal__toc { padding: 24px 28px; background: var(--mist); border-radius: 8px; }
.legal .legal__toc-title { margin: 0 0 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal__toc ol { margin: 0; padding-left: 26px; columns: 2; column-gap: 32px; }
.legal__toc li { margin-bottom: 6px; font-size: 15px; line-height: 1.45; break-inside: avoid; }
.legal__toc li::marker { font-family: var(--font-mono); font-size: 13px; color: var(--red-action); }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .legal p, .legal li { font-size: 16px; }
  .legal__toc { padding: 20px; }
  .legal__toc ol { columns: 1; }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-dark); padding-top: 80px; font-size: 14px; }
.footer-grid {
  display: grid; gap: 48px 40px; padding-bottom: 64px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.4fr);
}
.footer-col { display: flex; flex-direction: column; gap: 20px; }
.footer-title { margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--on-dark); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.footer-col a:hover { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
/* Contacto: ícono (teléfono, sobre, WhatsApp) + texto; el ícono toma el color del link */
.footer-col .footer-contact { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact__icon { width: 17px; height: 17px; flex: none; }
.footer-contact span { min-width: 0; }
/* "o elige a tu asesor →" debajo del WhatsApp, alineada con el texto (17px del ícono + 10px de separación) */
.footer-col .footer-asesores { display: inline-block; margin: -6px 0 0 27px; font-size: 13px; }

.footer-brand { display: flex; flex-direction: column; gap: 24px; }
.footer-brand__logo { width: 220px; max-width: 100%; height: auto; flex-shrink: 0; }
.footer-brand__text { display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { margin: 0; max-width: 320px; }
.footer-brand__group { color: #fff; font-weight: 600; }

.footer-map { display: block; width: 100%; height: 170px; border: 0; background: var(--navy); border-radius: 8px; }
.footer-location__info { display: flex; flex-direction: column; gap: 12px; }
.footer-address { font-style: normal; }
.footer-col .footer-maplink { color: var(--red-link); }
.footer-title--sub { margin-top: 12px; }
.footer-hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.footer-hours dt { color: var(--on-dark); }
.footer-hours dd { margin: 0; color: #fff; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 28px 88px 32px 0; border-top: 1px solid var(--navy-line); font-size: 13px; }
.footer-bottom p { margin: 0; }

@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand, .footer-location { grid-column: 1 / -1; }
  .footer-brand { flex-direction: row; align-items: center; gap: 40px; }
  .footer-brand p { max-width: 520px; }
  .footer-location { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
  .footer-location .footer-title:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-footer { padding-top: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-brand__logo { width: 180px; }
  .footer-location { display: flex; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 28px 0 148px; }   /* libre para los botones flotantes */
}

/* ---------- Preguntas frecuentes (página y panel de contacto) ---------- */
.faq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 80px; row-gap: 40px; align-items: start; }
.faq-toc { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-toc__title { margin: 0 0 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.faq-toc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.faq-toc__list a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--navy); transition: color .2s; }
.faq-toc__list a:hover { color: var(--red-action); }
.faq-toc__n { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--red-action); padding-top: 1px; }
.faq-groups { min-width: 0; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group__title { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; line-height: 1.2; color: var(--navy); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--navy); transition: color .2s;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--red-action); }
.faq-item__q:focus-visible { outline-offset: 4px; }
/* "+" que gira a "×" al abrir */
.faq-item__icon { position: relative; flex-shrink: 0; width: 24px; height: 24px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; left: 5px; right: 5px; top: 11px; height: 2px; border-radius: 1px; background: currentColor; }
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open]:not(.is-closing) .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { overflow: hidden; }
.faq-item__a p { margin: 0; padding: 0 48px 22px 0; max-width: 760px; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--text); }
.faq-item__a a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--red-action); text-underline-offset: 3px; }
.faq-item__a a:hover { color: var(--red-action); }

.faq-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 72px; padding: 36px 40px; background: var(--mist); border-radius: 8px; }
.faq-cta__text { display: flex; flex-direction: column; gap: 8px; }
.faq-cta__title { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--navy); }
.faq-cta__text p { margin: 0; font-family: var(--font-body); font-size: 16px; color: var(--text); }
.faq-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.faq-cta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 6px;
  background: var(--red-action); color: #fff; font-family: var(--font-body); font-size: 16px; font-weight: 600; transition: background-color .2s;
}
.faq-cta__btn:hover { background: var(--red-hover); }
.faq-cta__link { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--red-action); text-underline-offset: 3px; }
.faq-cta__link:hover { color: var(--red-action); }

/* Panel desplegable en contacto.html */
.faq-drawer { background: var(--mist); padding: 72px 0; }   /* contacto.html: va después del mapa (blanco) */
.faq-drawer__bar { display: flex; justify-content: center; }
.faq-drawer__toggle {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: 6px; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy);
  font-family: var(--font-body); font-size: 16px; font-weight: 600; transition: background-color .2s, color .2s;
}
.faq-drawer__toggle:hover { background: var(--navy); color: #fff; }
.faq-drawer__arrow { display: inline-block; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.faq-drawer__toggle[aria-expanded="true"] .faq-drawer__arrow { transform: rotate(180deg); }
.faq-drawer__panel { max-width: 880px; margin: 0 auto; padding-top: 48px; overflow: hidden; }
.faq-drawer__panel .faq-group__title { font-size: clamp(22px, 2vw, 26px); }
.faq-drawer__more { display: inline-flex; gap: 8px; margin-top: 40px; font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--red-action); }
.faq-drawer__more:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-toc { position: static; }
  .faq-toc__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 767px) {
  .faq-page .container, .faq-drawer .container { padding: 0 16px; }
  .faq-toc__list { grid-template-columns: minmax(0, 1fr); }
  .faq-item__q { font-size: 18px; gap: 16px; padding: 18px 0; }
  .faq-item__a p { padding-right: 0; font-size: 16px; }
  .faq-cta { flex-direction: column; align-items: stretch; padding: 28px 20px; margin-top: 56px; }
  .faq-cta__btn { width: 100%; }
  .faq-drawer { padding: 56px 0; }
  .faq-drawer__toggle { width: 100%; justify-content: center; }
  .faq-drawer__panel { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item__icon, .faq-drawer__arrow { transition: none; }
}

/* ---------- Botones flotantes (los inyecta main.js) ---------- */
/* z-index 45: encima del contenido, debajo del header con el menú móvil (50) */
.float-actions {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: opacity .25s, visibility .25s;
}
.float-actions.is-hidden { opacity: 0; visibility: hidden; }
.float-wa, .float-top { display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
.float-wa {
  width: 60px; height: 60px; background: var(--wa);
  box-shadow: 0 8px 24px rgba(10, 37, 73, .25);
  transition: background-color .2s, transform .2s;
}
.float-wa svg { width: 30px; height: 30px; }
.float-wa:hover { background: var(--wa-hover); transform: scale(1.06); }
.float-top {
  width: 48px; height: 48px; padding: 0; border: 0; cursor: pointer; background: var(--navy);
  box-shadow: 0 6px 16px rgba(10, 37, 73, .2);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s, background-color .2s;
}
.float-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-top:hover { background: var(--red-action); }
@media (prefers-reduced-motion: reduce) {
  .float-top, .float-wa, .float-actions { transition: none; }
  .float-wa:hover { transform: none; }
}

/* ---------- Animación de entrada ---------- */
/* Respaldo: si motion.js no llega en 2 s (falló o tarda), reveal-failsafe los muestra; motion.js pone .motion-ready
   en <html> y la apaga. Con JS desactivado se ven desde el inicio. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; animation: reveal-failsafe 0s 2s forwards; }
.reveal.is-visible { opacity: 1; transform: none; }
/* blog.js: figuras, tablas, notas y CTA (doble clase: le gana a la transición propia del CTA mientras aparece) */
.reveal.reveal--sm { transform: translateY(16px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.reveal.reveal--sm.is-visible { transform: none; }
.motion-ready .reveal { animation: none; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Página de productos */
a.chip { transition: background-color .2s, color .2s, border-color .2s; }
a.chip:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* Secciones por categoría */
.brand-section { padding: 112px 0; }
.brand-section .split__aside { position: sticky; top: calc(var(--header-h) + 40px); }
.brand-section__title { color: var(--navy); font-size: clamp(28px, 2.6vw, 40px); hyphens: auto; }
.brand-section__intro { margin: 0; color: var(--steel); }

/* Grid de logos */
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.brand-card { position: relative; display: block; aspect-ratio: 250 / 120; background: #fff; border: 1.5px solid var(--navy); border-radius: 8px; overflow: hidden; transition: background-color .25s; }
.brand-card__logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px 14px; background: #fff; transition: inset .25s, padding .25s; }
.brand-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-card__cta {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.brand-card:hover, .brand-card:focus-visible { background: var(--navy); }
.brand-card:hover .brand-card__logo, .brand-card:focus-visible .brand-card__logo { inset: 8px 8px 30px; padding: 6px 10px; }
.brand-card:hover .brand-card__cta, .brand-card:focus-visible .brand-card__cta { opacity: 1; transform: none; }

/* Tarjeta con dos acciones (catálogo PDF + cotizar): es un <article>, no un enlace */
.brand-card--duo .brand-card__actions {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.brand-card__actions .btn { width: min(100%, 164px); height: 34px; padding: 0 12px; gap: 6px; font-size: 14px; }
.brand-card__pdf { background: #fff; color: var(--navy); }
.brand-card__pdf:hover { background: var(--mist); }
.brand-card__pdf svg { flex: none; }
.brand-card__short { display: none; }
.brand-card__size { font-family: var(--font-mono); font-size: 11px; font-weight: 500; opacity: .7; white-space: nowrap; }
.brand-card__actions :focus-visible { outline-color: #fff; outline-offset: 2px; }
.brand-card__tag {
  position: absolute; top: 0; right: 0; z-index: 2;
  padding: 3px 7px; background: var(--navy); color: #fff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .06em; line-height: 1.2; white-space: nowrap;
  transition: opacity .25s;
}
.brand-card--duo:hover, .brand-card--duo:focus-within { background: var(--navy); }
.brand-card--duo:hover .brand-card__logo, .brand-card--duo:focus-within .brand-card__logo { inset: 0; padding: 10px 14px; opacity: .08; }
.brand-card--duo .brand-card__logo { transition: opacity .25s; }
.brand-card--duo:hover .brand-card__actions, .brand-card--duo:focus-within .brand-card__actions { opacity: 1; transform: none; }
.brand-card--duo:hover .brand-card__tag, .brand-card--duo:focus-within .brand-card__tag { opacity: 0; }

/* Táctil: sin hover, las acciones van siempre visibles debajo del logo */
@media (hover: none) {
  .brand-card--duo { display: flex; flex-direction: column; aspect-ratio: auto; }
  .brand-card--duo .brand-card__logo, .brand-card--duo:hover .brand-card__logo, .brand-card--duo:focus-within .brand-card__logo { position: relative; inset: auto; aspect-ratio: 250 / 120; opacity: 1; }
  .brand-card--duo:hover, .brand-card--duo:focus-within { background: #fff; }
  .brand-card--duo .brand-card__actions, .brand-card--duo:hover .brand-card__actions, .brand-card--duo:focus-within .brand-card__actions {
    position: static; flex-direction: row; gap: 4px; padding: 0 4px 4px; opacity: 1; transform: none;
  }
  .brand-card__actions .btn { flex: 1 1 0; min-width: 0; width: auto; height: 44px; padding: 0 6px; gap: 4px; font-size: 13px; }
  .brand-card__pdf { background: var(--navy); color: #fff; }
  .brand-card__pdf:hover { background: var(--navy); }
  .brand-card__actions :focus-visible { outline-color: var(--red); }
  .brand-card--duo .brand-card__tag, .brand-card--duo:hover .brand-card__tag { opacity: 1; }
  .brand-card__long { display: none; }
  .brand-card__short { display: inline; }
}

/* Enlaces a las páginas de línea */
.brand-related { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.brand-related__k { margin-right: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 1024px) {
  .brand-section .split__aside { position: static; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .brand-related__k { flex-basis: 100%; }
}

/* Blog */

/* Filtros por categoría (chips en el hero, son botones con aria-pressed) */
.chip--filter { display: inline-flex; align-items: center; min-height: 44px; background: transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip--filter:hover { border-color: #fff; }
.chip--filter[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--navy); }
.chip--filter:focus-visible { outline-color: #fff; }

.blog-list { padding: 80px 0 128px; }
.post-count { margin: 0 0 24px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-empty { margin: 0; padding: 32px; border: 1.5px solid var(--navy); background: #fff; color: var(--steel); }

/* Grid de tarjetas: 3 / 2 / 1 columnas */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.post-grid > li { display: flex; }
.post-grid > [hidden] { display: none; }
.post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Tarjeta: todo es un solo enlace. Hover = tratamiento navy de las tarjetas de productos.html */
.post-card { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1.5px solid var(--navy); border-radius: 8px; overflow: hidden; color: var(--navy); transition: background-color .25s, color .25s; }
.post-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); border-bottom: 1.5px solid var(--navy); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 20px; }
.post-card__cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-action); transition: color .25s; }
.post-card__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: 0; }
.post-card__excerpt {
  margin: 0; font-size: 15px; color: var(--steel); transition: color .25s;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .25s, border-color .25s; }
.post-card:hover, .post-card:focus-visible { background: var(--navy); color: #fff; }
.post-card:hover .post-card__media img, .post-card:focus-visible .post-card__media img { transform: scale(1.03); }
.post-card:hover .post-card__cat, .post-card:focus-visible .post-card__cat { color: var(--red-soft); }
.post-card:hover .post-card__excerpt, .post-card:focus-visible .post-card__excerpt { color: var(--on-dark); }
.post-card:hover .post-card__meta, .post-card:focus-visible .post-card__meta { color: var(--on-dark-muted); border-color: var(--navy-line); }

/* Artículo: encabezado */
.article-hero .page-hero__inner { padding-bottom: 112px; }
.article-hero__title { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.1; max-width: 980px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); }
.article-meta span[aria-hidden] { color: var(--on-dark-muted); }

.article-cover { position: relative; max-width: 1040px; margin: -72px auto 0; border: 1.5px solid var(--navy); background: var(--navy); }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Artículo: cuerpo con ancho de lectura */
.article-main { padding: 72px 0 112px; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.75; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 56px 0 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(27px, 2.6vw, 34px); line-height: 1.15; letter-spacing: 0; color: var(--navy); scroll-margin-top: 16px; }   /* se suma al scroll-padding-top de html (alto del header + 16px) */
.article-body h3 { margin: 36px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--navy); }
.article-body p { margin: 0 0 20px; color: var(--steel); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; color: var(--steel); }
.article-body li { margin-bottom: 8px; padding-left: 4px; }
.article-body li::marker { color: var(--red-action); font-family: var(--font-mono); font-size: .9em; }
/* Links del texto: línea tenue siempre (no depender solo del color) y en hover una sólida que crece de izquierda a derecha */
.article-body a {
  color: var(--red-action); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(196, 44, 32, .3), rgba(196, 44, 32, .3));
  background-size: 0% 1px, 100% 1px; background-position: 0 100%, 0 100%; background-repeat: no-repeat;
  transition: background-size var(--dur-fast) var(--ease-out);
}
.article-body a:hover { background-size: 100% 1px, 100% 1px; }

/* Códigos de rodamientos y medidas */
.code { font-family: var(--font-mono); font-size: .92em; font-weight: 500; color: var(--navy); white-space: nowrap; }
.article-body strong .code { font-weight: 600; }
.article-body a .code { color: inherit; }
.article-body h2 .code, .article-body h3 .code, .article-hero__title .code { font-size: .9em; color: inherit; white-space: normal; }

/* Tablas técnicas */
.table-wrap { margin: 8px 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--navy); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.table-wrap--wide table { min-width: 600px; }
.table-wrap th { padding: 12px 16px; background: var(--navy); color: #fff; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-align: left; white-space: nowrap; border-right: 1px solid var(--navy-line); }
.table-wrap td { padding: 11px 16px; color: var(--steel); border-top: 1px solid var(--navy); border-right: 1px solid var(--line); vertical-align: top; }
.table-wrap th:last-child, .table-wrap td:last-child { border-right: 0; }
.table-wrap tbody tr:nth-child(even) td { background: var(--stripe); }
.table-wrap td { transition: background-color 150ms ease; }
@media (hover: hover) {
  .table-wrap tbody tr:hover td { background: var(--mist); }
}
.table-note { margin-top: -16px !important; font-size: 14px; color: var(--muted) !important; }

/* Caja "Dato técnico" (blockquote del Markdown) */
.tech-note { margin: 8px 0 28px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); }
.tech-note__label { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--red-action); }
.tech-note p { margin: 0; color: var(--ink); }
/* Fórmula destacada dentro de un artículo */
.formula { margin: 8px 0 28px; padding: 24px 28px; background: #fff; border: 1.5px solid var(--navy); border-left: 4px solid var(--navy); }
.article-body .formula__eq { margin: 4px 0 12px; font-family: var(--font-mono); font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: .02em; color: var(--navy); overflow-wrap: anywhere; }
.article-body .formula__legend { margin: 0; font-size: 15px; color: var(--steel); }
/* Resumen "En corto" al inicio de cada artículo (usa la misma caja) */
.article-summary ul { margin: 0; padding-left: 20px; color: var(--ink); }
.article-summary li:last-child { margin-bottom: 0; }

/* Cierre del artículo: productos relacionados + CTA */
.article-end { max-width: 960px; margin: 64px auto 0; display: flex; flex-direction: column; gap: 24px; }
.related-products { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding: 24px 28px; background: #fff; border: 1.5px solid var(--navy); border-radius: 8px; }
.related-products__k { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.related-products__v { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy); }
.cta-band--article p { max-width: 560px; }

.related-posts { padding: 96px 0 112px; }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-cover { margin-left: var(--gutter); margin-right: var(--gutter); }
}
@media (max-width: 720px) {
  .blog-list { padding: 48px 0 80px; }
  .post-grid, .post-grid--2 { grid-template-columns: 1fr; gap: 16px; }
  .post-card__body { padding: 20px 18px 18px; }
  .post-card__title { font-size: 20px; }
  .article-hero .page-hero__inner { padding-bottom: 72px; }
  .article-meta { font-size: 11px; }
  .article-cover { margin-top: -40px; }
  .article-main { padding: 48px 0 80px; }
  .article-body { font-size: 16px; line-height: 1.7; }
  .article-body h2 { margin-top: 44px; }
  .table-wrap th, .table-wrap td { padding: 10px 12px; }
  .tech-note { padding: 16px 18px; }
  .formula { padding: 18px 18px; }
  .article-end { margin-top: 48px; }
  .related-products { padding: 20px; }
  .related-products .btn { width: 100%; }
  .related-posts { padding: 72px 0 80px; }
}

/* Almacén (almacen.html): estado vacío + catálogo que arma main.js desde data/almacen.json */
.almacen { background: var(--mist); }

.almacen-empty { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.almacen-empty[hidden], .almacen-list[hidden] { display: none; }
.almacen-empty__icon { display: grid; place-items: center; width: 104px; height: 104px; margin-bottom: 6px; border-radius: 50%; background: #fff; color: var(--navy); }
.almacen-empty__icon svg { width: 48px; height: 48px; }
.almacen-empty__title { color: var(--navy); font-size: clamp(28px, 3vw, 40px); }
.almacen-empty p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.almacen-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* Barra: filtros a la izquierda, buscador a la derecha */
.almacen-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-bottom: 24px; }
.almacen-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.almacen-filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
  font: 500 14px var(--font-body); color: var(--navy); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.almacen-filter:hover { border-color: var(--navy); }
.almacen-filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.almacen-filter__n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.almacen-filter[aria-pressed="true"] .almacen-filter__n { color: var(--on-dark); }

.almacen-search { position: relative; flex: 0 1 340px; }
.almacen-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.almacen-search input {
  width: 100%; height: 44px; padding: 0 14px 0 42px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
  font: 15px var(--font-body); color: var(--ink);
}
.almacen-search input::placeholder { color: var(--placeholder); }
.almacen-search input:focus-visible { outline-offset: 0; border-color: var(--navy); }

/* Grid: 4 / 3 / 2 / 1 columnas */
.almacen-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.almacen-grid > li { display: flex; }
.almacen-grid > [hidden] { display: none; }
@media (min-width: 600px) { .almacen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .almacen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .almacen-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.almacen-card { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.almacen-card__media { position: relative; display: grid; place-items: center; height: 200px; background: #F6F7F4; }
.almacen-card__media img { width: 150px; height: 150px; object-fit: contain; transition: transform .35s ease; }
.almacen-card__icon { width: 72px; height: 72px; color: var(--navy); opacity: .5; }
.almacen-card:hover, .almacen-card:focus-within { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 37, 73, .12); }
.almacen-card:hover .almacen-card__media img, .almacen-card:focus-within .almacen-card__media img { transform: scale(1.05); }
.almacen-card__stock {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.almacen-card__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1F8A4C; }
.almacen-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.almacen-card__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5B6675; }
.almacen-card__part { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.almacen-card__desc { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--text); }
.almacen-card__btn { width: 100%; margin-top: auto; }
.almacen-card__btn svg { width: 18px; height: 18px; flex: none; }

.almacen-none { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; }
.almacen-none[hidden] { display: none; }
.almacen-none p { margin: 0; font-size: 17px; color: var(--text); }
.almacen-note { margin: 32px 0 0; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .almacen-card, .almacen-card__media img { transition: none; }
  .almacen-card:hover, .almacen-card:focus-within { transform: none; }
  .almacen-card:hover .almacen-card__media img, .almacen-card:focus-within .almacen-card__media img { transform: none; }
}

/* Franja "En almacén" en productos.html (debajo del hero): badge + título + botón, y las 4 categorías como pills
   que llevan a su sección en la misma página (los números van escritos a mano en el HTML) */
.almacen-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.almacen-band__top { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; }
.almacen-band__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.almacen-band__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--mist); font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--navy);
}
.almacen-band__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1F8A4C; }
.almacen-band__title { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--navy); }
.almacen-band__btn { flex: none; height: 50px; padding: 0 24px; }
.almacen-band__cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.almacen-band__cat {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  font: 600 15px var(--font-body); color: var(--navy);
  transition: background-color .2s, color .2s, border-color .2s;
}
.almacen-band__cat:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.almacen-band__n { opacity: .6; }

@media (max-width: 767px) {
  .almacen-band__top { flex-direction: column; align-items: stretch; }
  .almacen-band__btn { width: 100%; white-space: normal; }
}

@media (max-width: 720px) {
  .almacen-search { flex-basis: 100%; }
  .almacen-empty__actions { flex-direction: column; align-self: stretch; }
}

/* Páginas de línea (las 6 de productos/): una sola plantilla para las 6 líneas.
   Orden: hero navy · tipos (blanco) · qué datos necesitamos (mist) · marcas (blanco) · FAQ (mist) · blog (blanco) · CTA navy. */
.ln-wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ln-section { padding: 112px 0; }
.ln-section--white { background: #fff; }
.ln-section--mist { background: var(--mist); }
.ln-section--mist + .ln-section--mist { border-top: 1px solid var(--line); }   /* retenes: sin muro de marcas quedan dos mist seguidas */
.ln-h2 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; color: var(--navy); }
.ln-intro { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.ln-link { align-self: flex-start; font-weight: 600; color: var(--red-action); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.ln-link:hover { text-decoration-color: currentColor; }
.ln-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.ln-head--row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ln-head--row > div { display: flex; flex-direction: column; gap: 16px; }
.ln-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ln-btn-icon { width: 20px; height: 20px; flex: none; }
.ln-mono { font-family: var(--font-mono); font-weight: 500; color: var(--navy); }

/* Hero: texto a la izquierda, pieza flotando sobre un círculo a la derecha */
.ln-hero { overflow: hidden; background: var(--navy); color: #fff; }
.ln-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 80px; }
.ln-hero__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ln-hero__copy > .label { margin-top: 12px; }
.ln-hero__title { font-size: clamp(40px, 5vw, 68px); }
.ln-hero .lead { max-width: 600px; }
.ln-hero .ln-actions { margin-top: 8px; }
.ln-hero__facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 12px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--navy-line); font-size: 15px; color: var(--on-dark); }
.ln-hero__facts li { display: flex; align-items: center; gap: 8px; }
.ln-hero__check { width: 18px; height: 18px; flex: none; color: var(--red-soft); }
.ln-hero__media { position: relative; justify-self: center; width: 100%; max-width: 440px; aspect-ratio: 1; }
.ln-hero__disc { position: absolute; inset: 4%; border-radius: 50%; background: var(--navy-line-soft); }
.ln-hero__shadow {
  position: absolute; left: 27%; bottom: 10%; width: 46%; height: 24px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(3, 12, 26, .55), rgba(3, 12, 26, 0));
  animation: ln-shadow 6s ease-in-out infinite;
}
.ln-hero__img { position: absolute; left: 12%; top: 8%; width: 76%; height: 76%; object-fit: contain; animation: ln-float 6s ease-in-out infinite; }
/* Pieza abajo = sombra grande y marcada; pieza arriba = sombra chica y tenue */
@keyframes ln-float { 0%, 100% { transform: translateY(14px) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes ln-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.7); opacity: .45; } }

/* Tipos: 1/3 título + 2/3 lista */
.ln-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.ln-split__aside { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 16px; }
.ln-types { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.ln-type { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 220px); gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ln-type__n { padding-top: 6px; font-family: var(--font-mono); font-size: 14px; color: var(--red-action); }
.ln-type__name { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.ln-type p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.ln-type__apps { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.ln-type__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ln-type__apps p { font-size: 15px; line-height: 1.5; }

/* ¿Qué datos necesitamos? */
.ln-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.ln-option { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.ln-option__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-action); }
.ln-option__title { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--navy); }
.ln-option p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.ln-option .ln-option__note { padding-left: 12px; border-left: 2px solid var(--line); font-size: 15px; color: var(--muted); }
.ln-options__cta { display: flex; justify-content: center; margin-top: 40px; }

/* Ejemplo desglosado: código en mono grande, cada parte en un color, y su leyenda */
.ln-code { padding: 24px 20px 20px; background: var(--navy); border-radius: 8px; color: #fff; }
.ln-option .ln-code__code { font-family: var(--font-mono); font-size: clamp(28px, 2.5vw, 36px); font-weight: 500; line-height: 1.1; letter-spacing: .02em; color: #fff; overflow-wrap: anywhere; }
.ln-code__c1 { color: #fff; }
.ln-code__c2 { color: var(--red-soft); }
.ln-code__c3 { color: #8CC4FF; }
.ln-code__sep { padding: 0 .2em; color: var(--on-dark-muted); }
.ln-code__suffix { margin-left: .35em; font-size: .5em; color: var(--on-dark-muted); }
.ln-code__legend { display: flex; flex-direction: column; gap: 6px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--navy-line); font-size: 14px; }
.ln-code__legend div { display: flex; gap: 12px; }
.ln-code__legend dt { min-width: 56px; font-family: var(--font-mono); font-weight: 600; }
.ln-code__legend dd { margin: 0; color: var(--on-dark); }

.ln-kv { display: flex; flex-direction: column; gap: 10px; margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.ln-kv dt { display: inline; font-weight: 600; color: var(--navy); }
.ln-kv dt::after { content: ":"; }
.ln-kv dd { display: inline; margin: 0 0 0 .3em; }
.ln-kv--mono dt { font-family: var(--font-mono); color: var(--red-action); }
.ln-kv--mono dt::after { content: " ="; }
.ln-list, .ln-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.5; color: var(--text); }
.ln-list li { position: relative; padding-left: 20px; }
.ln-list li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; background: var(--red-action); }
.ln-steps { counter-reset: ln-step; }
.ln-steps li { display: flex; align-items: flex-start; gap: 12px; counter-increment: ln-step; }
.ln-steps li::before {
  content: counter(ln-step); flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -1px;
  border: 1.5px solid var(--navy); border-radius: 50%; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--navy);
}
.ln-drawing { display: block; width: 100%; max-width: 300px; height: auto; color: var(--navy); }
.ln-drawing__dim { stroke: var(--red-action); }
.ln-drawing__txt { font-family: var(--font-mono); font-size: 15px; font-weight: 600; fill: var(--red-action); }

/* Marcas: muro de logos con líneas finas entre celdas (el margen negativo esconde las del borde exterior) */
.ln-brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin: 0; padding: 0; list-style: none; }
.ln-brands > li { margin: 0 -1px -1px 0; border-right: 1px solid #D8DCE2; border-bottom: 1px solid #D8DCE2; }
.ln-brands > li:last-child { border-right-color: transparent; }
.ln-brand { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 176px; padding: 24px; }
.ln-brand img { width: 180px; max-width: 100%; height: auto; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ln-brand__cta {
  position: absolute; left: 0; right: 0; bottom: 26px; text-align: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-action);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.ln-brand--pdf:hover img, .ln-brand--pdf:focus-visible img { transform: translateY(-8px); }
.ln-brand--pdf:hover .ln-brand__cta, .ln-brand--pdf:focus-visible .ln-brand__cta { opacity: 1; transform: none; }
.ln-brand--pdf:focus-visible { outline-offset: -4px; }
/* Táctil: sin hover, "Ver catálogo" va siempre visible debajo del logo */
@media (hover: none) {
  .ln-brand__cta { position: static; margin-top: 10px; opacity: 1; transform: none; }
}

/* Preguntas frecuentes: acordeón con <button aria-expanded> (main.js); sin JS se ven todas las respuestas */
.ln-faq { border-top: 2px solid var(--navy); }
.ln-faq__item { border-bottom: 1px solid var(--line); }
.ln-faq__h { margin: 0; }
.ln-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 22px 0;
  background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--navy); transition: color .2s;
}
.ln-faq__q:hover { color: var(--red-action); }
.ln-faq__q:focus-visible { outline-offset: 4px; }
.ln-faq__icon { position: relative; flex: none; width: 24px; height: 24px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.ln-faq__icon::before, .ln-faq__icon::after { content: ""; position: absolute; left: 5px; right: 5px; top: 11px; height: 2px; border-radius: 1px; background: currentColor; }
.ln-faq__icon::after { transform: rotate(90deg); }
.ln-faq__q[aria-expanded="true"] .ln-faq__icon { transform: rotate(45deg); }
.ln-faq__a { overflow: hidden; }
.ln-faq__a[hidden] { display: none; }
.ln-faq__a p { margin: 0; padding: 0 48px 24px 0; font-size: 17px; line-height: 1.65; color: var(--text); }

/* Del blog: filas con borde superior navy */
.ln-posts { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.ln-post { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; padding: 26px 0; border-top: 2px solid var(--navy); color: var(--navy); }
.ln-post__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--red-action); }
.ln-post__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.3; transition: color .2s; }
.ln-post__more { font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--red-action); }
.ln-post__more span { display: inline-block; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.ln-post:hover .ln-post__title { color: var(--red-action); }
.ln-post:hover .ln-post__more span, .ln-post:focus-visible .ln-post__more span { transform: translateX(6px); }

/* CTA final + otras líneas */
.ln-cta { padding: 96px 0 72px; background: var(--navy); color: #fff; }
.ln-cta__main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; }
.ln-cta__text { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.ln-cta .ln-h2 { color: #fff; }
.ln-cta__text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.ln-others { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--navy-line); }
.ln-others__title { margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.ln-others ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ln-others .chip { display: inline-flex; align-items: center; min-height: 44px; transition: border-color .2s, background-color .2s, color .2s; }
.ln-others .chip:hover { border-color: #fff; background: #fff; color: var(--navy); }

@media (max-width: 1024px) {
  .ln-section { padding: 88px 0; }
  .ln-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ln-hero__media { max-width: 340px; }
  .ln-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ln-split__aside { position: static; }
  .ln-options { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
  .ln-post { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 720px) {
  .ln-section { padding: 72px 0; }
  .ln-head { margin-bottom: 36px; }
  .ln-head--row { flex-direction: column; align-items: flex-start; }
  .ln-hero__grid { padding-top: 32px; padding-bottom: 56px; gap: 32px; }
  .ln-hero__media { max-width: 280px; }
  .ln-actions .btn, .ln-options__cta .btn { width: 100%; white-space: normal; text-align: center; }
  .ln-hero__facts { flex-direction: column; gap: 10px; }
  .ln-type { grid-template-columns: 32px minmax(0, 1fr); gap: 12px 12px; padding: 24px 0; }
  .ln-type__apps { grid-column: 2; }
  .ln-option { padding: 24px 20px; }
  .ln-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ln-brand { height: 136px; padding: 16px; }
  .ln-faq__q { font-size: 18px; padding: 20px 0; }
  .ln-faq__a p { padding-right: 0; }
  .ln-post__title { font-size: 20px; }
  .ln-cta { padding: 72px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .ln-hero__img, .ln-hero__shadow { animation: none; }
  .ln-brand img, .ln-brand__cta, .ln-faq__icon, .ln-post__more span { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .nav { gap: 24px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .nav, .site-header__actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: none; background: #fff; border-top: 1px solid var(--line); }
  /* Con el submenú abierto el menú puede pasar del alto de la pantalla: el header es sticky, así que el menú hace scroll propio */
  .mobile-nav.is-open { display: block; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav a { display: block; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 500; }
  .mobile-nav a:hover { color: var(--red-action); }
  .mobile-nav .btn { margin: 16px var(--gutter) 24px; display: flex; border-bottom: 0; }
  .mobile-nav .btn--primary, .mobile-nav .btn--primary:hover { color: #fff; }
  .split__aside, .split__main, .contact__info, .quote-form { grid-column: 1 / -1; }
  .about-story { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "copy" "more"; }
  .about-story__media picture { position: static; min-height: 0; }
  .about-story__media img { position: static; height: auto; }
  .about-why .split__aside, .about-why .split__main, .about-why__bearing { grid-row: auto; }
  .about-why__bearing { grid-column: 1 / -1; max-width: 180px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 68px; }
  body { font-size: 15px; }
  .site-header__logo img { height: 38px; }
  .section { padding: 72px 0; }
  .hero__facts { font-size: 11px; row-gap: 8px; }
  .hero__facts span { padding: 0 12px; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { left: 44px; right: auto; top: 0; bottom: 0; width: 8px; height: auto; }
  .step { flex-direction: row; align-items: flex-start; gap: 20px; }
  .step__node { flex-shrink: 0; width: 96px; }
  .step > div { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
  .step h3 { font-size: 20px; }
  .quote-form { padding: 28px 20px; clip-path: var(--chamfer); }
  .quote-form__row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .contact__list .v { font-size: 14px; }
  .about-list li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 22px 0; }
  .about-list__title { font-size: 20px; }
  .group-band { padding: 56px 0; }
  .group-band p { font-size: 16px; }
  .about-story__more { grid-template-columns: minmax(0, 1fr); padding-top: 0; border-top: 0; }
  .group-band__links { flex-direction: column; border-top: 1px solid var(--navy-line); }
  .group-band__links li { border-left: 0; border-bottom: 1px solid var(--navy-line); }
  .group-band__links a, .group-band__links li:first-child a { display: flex; justify-content: space-between; padding: 14px 0; }
  .float-actions { right: 16px; bottom: 16px; }
  .float-wa { width: 56px; height: 56px; }
}

/* Catálogos: tablet, celular y reducir movimiento */
@media (max-width: 1023px) {
  .catalogos { padding: 88px 0; }
  .catalogos__head { grid-template-columns: minmax(0, 1fr); }
  .catalogos__cols, .catalogo { grid-template-columns: 28px 96px minmax(0, 1fr) 140px auto; column-gap: 16px; padding: 0 16px; }
  .catalogo__logo { width: 96px; height: 32px; }
  .catalogo__name { font-size: 24px; }
  .catalogo__line { font-size: 14px; }
  .catalogo__actions { gap: 16px; }
}
@media (max-width: 767px) {
  .catalogos { padding: 64px 0; }
  .catalogos .container { padding: 0 16px; }
  .catalogos__head { margin-bottom: 32px; }
  .catalogos__lead { font-size: 17px; }
  /* Filtros en una fila con scroll horizontal propio (no el de la página) */
  .catalogos__filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 4px; scrollbar-width: none; }
  .catalogos__filters::-webkit-scrollbar { display: none; }
  .catalogos__filter { flex-shrink: 0; }
  .catalogos__cols { display: none; }
  .catalogo {
    grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "logo name" "meta meta";
    column-gap: 14px; row-gap: 12px; padding: 16px 12px; min-height: 0;
  }
  .catalogo__n { display: none; }
  .catalogo__logo { grid-area: logo; width: 96px; height: 30px; }
  .catalogo__name { grid-area: name; font-size: 22px; }
  .catalogo__line, .catalogo__actions { grid-area: meta; }
  .catalogo__line { font-size: 14px; align-self: center; max-width: calc(100% - 170px); }
  .catalogo__actions { gap: 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalogo, .catalogo__logo img, .catalogo__arrow { transition: none; }
}

/* "40 años" del index, escritorio: la tarjeta baja a la esquina y sobresale de la foto */
@media (min-width: 1024px) {
  .about-home__media { position: relative; gap: 0; }
  .about-home__frame { margin-bottom: 56px; }               /* lo mismo que sobresale la tarjeta */
  .quote-card { right: -32px; bottom: -56px; }
  /* El pie pasa a etiqueta sobre la foto, esquina inferior izquierda */
  .about-home__caption {
    position: absolute; left: 16px; bottom: calc(56px + 16px); z-index: 1;
    padding: 8px 12px; border-radius: 4px; background: rgba(10, 37, 73, .78); color: #fff; line-height: 1.55;
  }
  .about-home__caption span { display: block; }
  .about-home__caption .about-home__caption-sep { display: none; }
}
/* 1024–1279: la foto es más angosta; la tarjeta sobresale menos y la etiqueta sube para no chocar */
@media (min-width: 1024px) and (max-width: 1279px) {
  .quote-card { right: -16px; }
  .about-home__caption { top: 16px; bottom: auto; }
}

/* "40 años" del index: tablet, celular y reducir movimiento */
@media (max-width: 1023px) {
  .about-home { padding: 88px 0; }
  .about-home__grid { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .about-home__photo img { height: 420px; }
  .quote-card { right: 24px; }
}
@media (max-width: 767px) {
  .about-home { padding: 64px 0; }
  .about-home .container { padding: 0 16px; }
  .about-home__grid { row-gap: 40px; }
  /* La tarjeta deja de ir encimada: foto, pie y tarjeta a todo lo ancho */
  .about-home__frame { display: contents; }
  .about-home__photo { order: 1; }
  .about-home__caption { order: 2; }
  .quote-card { order: 3; position: static; width: auto; margin-top: 4px; }
  .about-home__photo img { height: 240px; }
  .about-home__lead { font-size: 17px; }
}
@media (max-width: 479px) {
  .about-home__facts { grid-template-columns: minmax(0, 1fr); }
  .about-home__facts li, .about-home__facts li:nth-child(odd), .about-home__facts li:nth-child(even) { padding: 16px 0; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-card.reveal { transition: none; }
  .quote-card__thumb img { transition: none; }
  .quote-card:hover .quote-card__thumb img { transform: none; }
}

/* Líneas de producto: tablet (2 columnas, sin escalón) y celular (2 columnas compactas) */
@media (max-width: 1023px) {
  .lineas__head { grid-template-columns: minmax(0, 1fr); margin-bottom: 64px; }
  .lineas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineas__grid > li:nth-child(n) .linea { transition-delay: 0s; }
  .lineas__grid > li:nth-child(even) .linea { transition-delay: .1s; }
}
@media (max-width: 767px) {
  .lineas .container { padding: 0 16px; }
  .lineas__head { margin-bottom: 48px; }
  .lineas__btn { flex: 1 1 auto; }
  .lineas__grid { column-gap: 16px; row-gap: 40px; }
  .linea__stage { max-width: 150px; }
  .linea__shadow { height: 10px; }
  .linea__body { margin-top: 12px; gap: 6px; }
  .linea__title { flex-direction: column; align-items: center; gap: 2px; }
  .linea__name { font-size: 18px; }
  .linea__desc { display: none; }
  .linea__more { font-size: 14px; }
}

/* Contacto sencillo y cotiza por línea: tablet y celular */
@media (max-width: 1024px) {
  .line-quote__grid { grid-template-columns: minmax(0, 1fr); }
  .line-quote__buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-simple__grid { grid-template-columns: minmax(0, 1fr); }
  .contact-simple__lead { max-width: 640px; }
}
@media (max-width: 767px) {
  .group-band.line-quote { padding: 64px 0; }
  .line-quote .container { padding: 0 16px; }
  .line-quote__buttons { grid-template-columns: minmax(0, 1fr); }
  .contact-simple { padding: 64px 0; }
  .contact-simple .container { padding: 0 16px; }
  .contact-simple__title { font-size: 32px; }
  .contact-simple__lead { font-size: 17px; margin-bottom: 24px; }
  .contact-simple__wa { width: 100%; }
  .contact-simple__list { margin-top: 32px; }
  .contact-simple__list li { grid-template-columns: minmax(0, 1fr); row-gap: 2px; padding: 14px 0; }
  .contact-simple__list svg { display: none; }
  .contact-simple__k { font-size: 14px; }
  .contact-form { padding: 24px 20px; gap: 18px; }
  .contact-form__row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* =========================================================
   Movimiento (motion.js)
   Solo transform y opacity, con los tokens --ease-out / --dur-fast / --dur / --dur-slow.
   Los efectos de hover van en el bloque "solo mouse" del final: en celular y táctil no hay.
   ========================================================= */

/* Header compacto (scrollY > 80): todo con transform, el alto real no cambia y la página no se mueve.
   El header sube 20% de su alto y el contenido baja 10%: queda centrado en la franja visible. */
.site-header { transition: box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.site-header__inner, .site-header__logo img { transition: transform var(--dur-fast) var(--ease-out); }
.site-header__logo img { transform-origin: left center; }
.site-header.is-compact { transform: translateY(calc(var(--header-h) * -.2)); box-shadow: 0 6px 20px rgba(10, 37, 73, .10); }
.site-header.is-compact .site-header__inner { transform: translateY(calc(var(--header-h) * .1)); pointer-events: none; }
.site-header.is-compact .site-header__inner > * { pointer-events: auto; }
.site-header.is-compact .site-header__logo img { transform: scale(.85); }

/* =========================================================
   Blog (blog.js en los artículos; el índice blog.html solo usa .reveal y el hover de .post-card)
   ========================================================= */

/* Barra de lectura: fija arriba de todo, encima del header; avanza con el cuerpo del artículo */
.read-progress {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; pointer-events: none;
  background: var(--red-action); transform: scaleX(0); transform-origin: left center; will-change: transform;
}

/* Entrada del encabezado al cargar: breadcrumb → categoría → título → datos → portada (80 ms entre cada uno).
   Solo CSS (sin JS se ve igual) y solo transform/opacity: el contenido no se mueve de lugar. */
@keyframes blog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .article-hero .breadcrumb, .article-hero .label, .article-hero__title, .article-hero .article-meta, .article-cover { animation: blog-in 500ms var(--ease-out) both; }
  .article-hero .label { animation-delay: 80ms; }
  .article-hero__title { animation-delay: 160ms; }
  .article-hero .article-meta { animation-delay: 240ms; }
  .article-cover { animation-delay: 320ms; }
}

/* Índice "En este artículo" (blog.js, artículos con 3 o más h2). blog.js arma, fuera del .container:
   .article-layout.has-toc > aside.article-toc-bar > details.article-toc  +  .article-body
   Tablet y móvil (≤1100px): desplegable arriba del texto. Escritorio: barra navy pegada al borde izquierdo. */
.article-main { container-type: inline-size; }   /* 100cqw = ancho de la página sin la scrollbar (para cuadrar con el logo) */
.article-layout { padding: 0 var(--gutter); }
.article-layout > .article-body { margin: 0 auto; }
.article-layout > .article-body > :last-child { margin-bottom: 0; }   /* la barra termina justo con la última pregunta */
.article-toc { max-width: 720px; margin: 0 auto 32px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.article-toc__title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
}
.article-toc__title::-webkit-details-marker { display: none; }
.article-toc__arrow { flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.article-toc[open] .article-toc__arrow { transform: rotate(180deg); }
.article-toc__list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 4px; padding: 0; list-style: none; }
.article-toc__link { position: relative; display: block; padding-left: 14px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; color: var(--navy); transition: color .2s; }
.article-toc__link::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--red-action);
  transform: scaleY(0); transition: transform var(--dur-fast) var(--ease-out);
}
.article-toc__link:hover { color: var(--red-action); }
.article-toc__link.is-active { font-weight: 600; }
.article-toc__link.is-active::before { transform: scaleY(1); }
.article-toc__link:focus-visible { outline-offset: 2px; }

@media (min-width: 1101px) {
  /* Ancho = 2 × el margen del .container (lo que hay del borde al logo), entre 260 y 340px */
  .article-layout.has-toc {
    --toc-w: clamp(260px, calc(2 * (max(0px, (100cqw - var(--max)) / 2) + var(--gutter))), 340px);
    display: grid; grid-template-columns: var(--toc-w) minmax(0, 1fr); padding: 0;
  }
  /* El texto conserva sus 720px y su lugar centrado en la página; si no cabe, se recorre: mínimo 48px de la barra */
  .article-layout.has-toc > .article-body { margin: 0 0 0 max(48px, calc(50cqw - 360px - var(--toc-w))); }
  .article-toc-bar { background: var(--navy); }
  .article-toc {
    position: sticky; top: calc(var(--header-h) + 24px); max-width: none; margin: 0;
    max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding: 32px 32px 24px;
    background: none; border: 0; border-radius: 0;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
  }
  .article-toc::-webkit-scrollbar { width: 6px; }
  .article-toc::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 3px; }
  .article-toc__title { cursor: default; color: var(--red-link); }
  .article-toc__arrow { display: none; }
  .article-toc__list { margin: 16px 0 0; }
  .article-toc__link { color: var(--on-dark); }
  .article-toc__link::before { background: var(--red-soft); }
  .article-toc__link:hover, .article-toc__link.is-active { color: #fff; }
}

/* Títulos H2 que se revelan por línea: .ml-w recorta (clip-path, no cambia la línea base), .ml-i sube.
   motion.js pone el retraso de cada palabra según su línea y quita los envoltorios al terminar. */
.ml-split .ml-w { display: inline-block; clip-path: inset(-.3em -.15em); }
.ml-split .ml-i { display: inline-block; transform: translateY(140%); transition: transform var(--dur) var(--ease-out); }
.ml-split.ml-in .ml-i { transform: none; }
.ml-eyebrow { opacity: 0; transition: opacity var(--dur) var(--ease-out); }
.ml-eyebrow.ml-in { opacity: 1; }

/* Flechas vivas (→ ↗): motion.js les pone .arrow-live; se mueven en el bloque "solo mouse" */
.arrow-live { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }

/* Hero carrusel: al cambiar de slide, etiqueta, marcas y enlace vuelven a entrar subiendo 16px, escalonados 80 ms (main.js pone .is-entering) */
@keyframes hc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-carousel__info.is-entering > *, .hero-carousel__link.is-entering { animation: hc-in var(--dur) var(--ease-out) both; }
.hero-carousel__info.is-entering > .hero-carousel__marcas { animation-delay: 80ms; }
.hero-carousel__link.is-entering { animation-delay: 160ms; }

/* Contadores ([data-count]): ancho reservado y cifras tabulares mientras cuentan.
   position: relative contiene su .sr-only (absoluto): dentro de una fila con scroll horizontal no ensancha la página. */
.count { position: relative; display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }

/* Pasos: la línea se dibuja con --steps-p (motion.js) y cada círculo "prende" (.is-lit) cuando la línea lo alcanza */
.steps.is-drawing::before { transform: scaleX(var(--steps-p, 1)); transform-origin: left center; }
.steps.is-drawing.is-vertical::before { transform: scaleY(var(--steps-p, 1)); transform-origin: center top; }
.steps.is-drawing .step__node { transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.steps.is-drawing .step:not(.is-lit) .step__node { transform: scale(.9); border-color: var(--line); color: var(--muted); }
.steps-band .steps.is-drawing .step:not(.is-lit) .step__node { border-color: var(--navy-line-soft); color: var(--on-dark-muted); }

/* Tarjetas del blog: "Leer artículo →" al final de la fila de meta (la flecha se desliza en hover, bloque "solo mouse") */
.post-card__more { margin-left: auto; color: var(--red-action); transition: color .25s; }
.post-card:hover .post-card__more, .post-card:focus-visible .post-card__more { color: var(--red-soft); }
.post-card__arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }

/* Páginas de línea — código que se explica (.code-explain, motion.js): al entrar en pantalla cada parte del código
   y su leyenda se encienden en secuencia (700 ms por parte); las demás quedan a .35 y al final todas encendidas */
.code-explain .code-part { transition: opacity var(--dur-fast) var(--ease-out); }
.code-explain.is-explaining .code-part { opacity: .35; }
.code-explain.is-explaining .code-part.is-on { opacity: 1; }

/* Nosotros — cortina en la foto: una cortina navy se retira de izquierda a derecha al aparecer (.is-visible del .reveal)
   y la foto pasa de scale 1.06 a 1 */
@media (prefers-reduced-motion: no-preference) {
  .about-story__media.reveal picture { position: relative; overflow: hidden; border-radius: 8px; }
  .about-story__media.reveal picture::after {
    content: ""; position: absolute; inset: 0; z-index: 1; background: var(--navy);
    transform-origin: right center; transition: transform var(--dur-slow) var(--ease-out) .1s;
    animation: curtain-failsafe 0s 2s forwards;   /* mismo respaldo que .reveal */
  }
  .motion-ready .about-story__media.reveal picture::after { animation: none; }
  @keyframes curtain-failsafe { to { transform: scaleX(0); } }
  .about-story__media.reveal.is-visible picture::after { transform: scaleX(0); }
  .about-story__media.reveal img { transform: scale(1.06); transition: transform var(--dur-slow) var(--ease-out) .1s; }
  .about-story__media.reveal.is-visible img { transform: none; }
}

/* ---------- Solo mouse (≥768px, hover y puntero fino) y sin reducir movimiento ---------- */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(a, button):hover > .arrow-live { transform: translateX(4px); }
  :is(a, button):hover > .arrow-live--ne { transform: translate(4px, -4px); }

  /* Botones con fondo: un relleno un tono más oscuro entra de izquierda a derecha (el fondo base no cambia) */
  .btn--primary, .quote-card__btn, .contact-simple__wa, .contact-form__submit, .faq-cta__btn, .lineas__btn--solid {
    --btn-fill: var(--red-hover);
    position: relative; isolation: isolate; overflow: hidden;
  }
  .lineas__btn--solid { --btn-fill: var(--navy-deep); }
  .btn--primary::before, .quote-card__btn::before, .contact-simple__wa::before, .contact-form__submit::before, .faq-cta__btn::before, .lineas__btn--solid::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill);
    transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-fast) var(--ease-out);
  }
  .btn--primary:hover::before, .quote-card__btn:hover::before, .contact-simple__wa:hover::before, .contact-form__submit:hover::before, .faq-cta__btn:hover::before, .lineas__btn--solid:hover::before { transform: scaleX(1); }
  .btn--primary:hover, .quote-card__btn:hover, .contact-simple__wa:hover, .contact-form__submit:hover, .faq-cta__btn:hover { background: var(--red-action); }
  .lineas__btn--solid:hover { background: var(--navy); }

  /* Marquesina: además de la pausa (ya existente), el logo bajo el cursor crece */
  .marquee__set img { transition: filter .35s ease, opacity .35s ease, transform var(--dur-fast) var(--ease-out); }
  .marquee__set img:hover { transform: scale(1.08); }

  /* Parallax ([data-parallax], motion.js): la imagen es más alta que su marco para tener ±24px de recorrido */
  .about-home__photo[data-parallax] { position: relative; height: 470px; overflow: hidden; border-radius: 8px; }
  .about-home__photo[data-parallax] img { position: absolute; left: 0; top: -24px; height: calc(100% + 48px); border-radius: 0; transform: translate3d(0, var(--parallax-y, 0px), 0); will-change: transform; }
  @media (max-width: 1023px) {
    .about-home__photo[data-parallax] { height: 420px; }
  }
  /* Portada del artículo: la imagen sigue en el flujo (el alto no cambia); un scale de 1.08 le da ±20px de recorrido */
  .article-cover[data-parallax] { overflow: hidden; }
  .article-cover[data-parallax] img { transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.08); will-change: transform; }

  /* Tarjetas del blog (blog.html y relacionados): sube 3px con sombra suave (la misma de las tarjetas de almacén),
     la imagen crece a 1.05 dentro de su marco y la flecha de "Leer artículo" se desliza */
  .post-card { transition: background-color .25s, color .25s, transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
  .post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 37, 73, .12); }
  /* CTA final del artículo: mismo hover de tarjeta (sin imagen que crezca) */
  .cta-band--article { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
  .cta-band--article:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 37, 73, .12); }
  .post-card__media img { transition: transform var(--dur) var(--ease-out); }
  .post-card:hover .post-card__media img { transform: scale(1.05); }
  .post-card:hover .post-card__arrow { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header__inner, .site-header__logo img, .arrow-live { transition: none; }
  .hero-carousel__info.is-entering > *, .hero-carousel__link.is-entering { animation: none; }
  .post-card__arrow, .code-explain .code-part { transition: none; }
  .article-body a, .table-wrap td, .article-toc__link, .article-toc__link::before, .article-toc__arrow { transition: none; }
}
