/* =============================================================
   SISG — Inicio (home pública)
   Diseño aprobado, convertido desde el mockup a clases.
   Paleta: navy #1b4165 · lima #a3c433 · verde WhatsApp #22b358
   ============================================================= */

/* ── Fuentes (self-hosted) ───────────────────────────────────
   Barlow y Barlow Condensed, subset latin, servidas desde este
   dominio. Antes venían de fonts.googleapis.com, que costaba dos
   conexiones a terceros (googleapis + gstatic) y una hoja de
   estilos bloqueante en el camino crítico.

   Sólo el subset latin: cubre U+0000-00FF (á é í ó ú ñ ü ¿ ¡) y
   U+2000-206F (la raya —), que es todo lo que usa el sitio.
   Sólo los pesos que aparecen en este archivo: Barlow 400/500/600/700
   y Condensed 600/700. Barlow es SIL OFL, el self-hosting está permitido.

   Actualizar = volver a bajar los woff2 de Google Fonts. La ruta
   /frontend/fonts/ es relativa a este CSS, así que no depende del dominio.
   ──────────────────────────────────────────────────────────── */

/* swap: el texto se ve enseguida con la fuente del sistema y cambia
   al cargar. Nunca hay un lapso en blanco. */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
}

:root {
  --sg-navy:        #1b4165;
  --sg-navy-hover:  #16344f;
  --sg-navy-deep:   #10263c;
  /* El lima y el verde de marca se mantienen para FONDOS y acentos, donde el
     contraste no aplica. Las variantes de abajo existen porque sobre fondo
     claro el lima original daba 2.6:1 y WCAG AA pide 4.5:1 para texto. */
  --sg-lime:        #a3c433;
  --sg-lime-dark:   #62771e; /* texto normal sobre claro: 4.6:1 */
  --sg-lime-num:    #7e9727; /* texto grande (44px) sobre claro: 3.1:1 */
  --sg-lime-soft:   #cede84;
  --sg-wa:          #1a8843; /* fondo de botón con texto blanco: 4.5:1 */
  --sg-wa-hover:    #14682f;
  --sg-wa-dark:     #168340; /* texto verde sobre claro: 4.7:1 */

  --sg-ink:         #2b3a4a;
  --sg-ink-soft:    #3d4f60;
  --sg-muted:       #5a6b7c;
  --sg-placeholder: #9aabb9;

  --sg-bg:          #fbfbf9;
  --sg-bg-alt:      #f6f8f4;
  --sg-bg-gray:     #f2f5f6;
  --sg-surface:     #fff;
  --sg-field-bg:    #f3f6f8;

  --sg-line:        #e3e7ea;
  --sg-line-soft:   #e9edf0;
  --sg-border:      #d7dfe6;
  --sg-border-alt:  #e2e8ee;

  --sg-shell:       1320px;
  --sg-gutter:      clamp(20px, 4vw, 48px);
  --sg-block:       clamp(40px, 7vw, 80px);

  /* Celda del carrusel de marcas: ancho + separación deben sumar siempre lo
     mismo para que el loop de -50% cierre exacto (ver .sg-marcas__track). */
  --sg-logo:        104px;
  --sg-logo-gap:    56px;

  --sg-sans:        'Barlow', system-ui, -apple-system, sans-serif;
  --sg-display:     'Barlow Condensed', 'Barlow', sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sg-bg);
  font-family: var(--sg-sans);
}

/* `overflow-x: clip` y NO `hidden`: hidden en un eje convierte al elemento en
   contenedor de scroll, y entonces el header sticky se pega a ESTE caja en vez
   del viewport — o sea, se va con la página. `clip` recorta igual sin crear
   scrollport, así el sticky del header sigue funcionando. */
.sg-page {
  position: relative;
  background: var(--sg-bg);
  color: var(--sg-ink);
  overflow-x: clip;
}

/* Sin `.sg-page` delante: como selector de tipo puro queda por debajo de
   cualquier clase, así los botones definen su propio color sin pelear. */
a { color: var(--sg-navy); text-decoration: none; }
a:hover { color: var(--sg-lime-dark); }

input::placeholder,
textarea::placeholder { color: var(--sg-placeholder); }

/* Contenedor central compartido por todas las secciones */
.sg-shell {
  max-width: var(--sg-shell);
  margin: 0 auto;
}

.sg-h2 {
  font-family: var(--sg-display);
  font-size: clamp(32px, 4.5vw, 42px);
  color: var(--sg-navy);
  font-weight: 700;
  margin: 0;
}

/* ── Botones y enlaces de acción ──────────────────────────── */

.sg-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.sg-btn--navy {
  background: var(--sg-navy);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
}
.sg-btn--navy:hover { background: var(--sg-navy-hover); color: #fff; }

.sg-btn--wa {
  background: var(--sg-wa);
  color: #fff;
  padding: 13px 26px;
  border-radius: 6px;
  margin-top: 32px;
}
.sg-btn--wa:hover { background: var(--sg-wa-hover); color: #fff; }

.sg-btn--wa-lg {
  background: var(--sg-wa);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
}
.sg-btn--wa-lg:hover { background: var(--sg-wa-hover); color: #fff; }

/* Enlace WhatsApp en texto (hero) */
.sg-link-wa {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-wa-dark);
  font-weight: 600;
  font-size: 15px;
}
.sg-link-wa:hover { color: #106a33; }

/* ── Header ───────────────────────────────────────────────── */

.sg-header-bar {
  border-bottom: 1px solid var(--sg-line);
  background: var(--sg-bg);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background .25s, box-shadow .25s, border-color .25s;
}

/* Estado al scrollear hacia abajo (lo pone inicio.js): la barra se despega,
   se compacta y proyecta sombra sobre el contenido que pasa por debajo. */
.sg-header-bar.is-stuck {
  background: rgba(251, 251, 249, .93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: transparent;
  box-shadow: 0 6px 22px rgba(16, 38, 60, .12);
}

.sg-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--sg-gutter);
  transition: padding .25s;
}

.sg-header-bar.is-stuck .sg-header { padding-top: 11px; padding-bottom: 11px; }

.sg-header__logo { height: 30px; display: block; transition: height .25s; }

.sg-header-bar.is-stuck .sg-header__logo { height: 26px; }

.sg-header__nav {
  display: flex;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
}

/* Marcado por el observer de scroll (inicio.js) */
.sg-header__nav a.is-active { color: var(--sg-lime-dark); }

/* Duplica el teléfono dentro del panel mobile; en desktop manda .sg-header__phone */
.sg-header__nav-phone { display: none; }

.sg-header__phone {
  font-weight: 600;
  color: var(--sg-navy);
  font-size: 15px;
}

/* ── Hamburguesa (sólo mobile) ─────────────────────────────── */

.sg-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--sg-navy);
  cursor: pointer;
}
.sg-burger:hover { background: rgba(27, 65, 101, .07); }

.sg-burger__bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.sg-burger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, opacity .2s, top .25s;
}
.sg-burger__bars span:nth-child(1) { top: 0; }
.sg-burger__bars span:nth-child(2) { top: 7px; }
.sg-burger__bars span:nth-child(3) { top: 14px; }

/* Abierto: las barras arman una X */
.sg-burger[aria-expanded="true"] .sg-burger__bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.sg-burger[aria-expanded="true"] .sg-burger__bars span:nth-child(2) { opacity: 0; }
.sg-burger[aria-expanded="true"] .sg-burger__bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* ── Hero ─────────────────────────────────────────────────── */

.sg-hero {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 72px;
  align-items: center;
  padding: var(--sg-block) var(--sg-gutter) clamp(48px, 8vw, 88px);
}

.sg-hero__title {
  font-family: var(--sg-display);
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.06;
  color: var(--sg-navy);
  margin: 0 0 22px;
  font-weight: 700;
  text-wrap: pretty;
}

/* Subrayado grueso tipo marcador */
.sg-hero__mark { box-shadow: inset 0 -12px 0 var(--sg-lime-soft); }

.sg-hero__text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--sg-muted);
  margin: 0 0 34px;
  max-width: 500px;
}

.sg-hero__actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

.sg-hero__media {
  position: relative;
  height: min(400px, 64vw);
}

/* Rectángulo lima desplazado detrás de la foto */
.sg-hero__accent {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 70%;
  height: 70%;
  background: var(--sg-lime);
  border-radius: 12px;
}

.sg-hero__frame {
  position: absolute;
  inset: 0;
  background: #eef1ee;
  border-radius: 12px;
}

.sg-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* ── Productos ────────────────────────────────────────────── */

.sg-products {
  background: var(--sg-surface);
  border-top: 1px solid var(--sg-line);
}

.sg-products__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 56px var(--sg-gutter) 12px;
}

.sg-products__title {
  font-family: var(--sg-display);
  font-size: clamp(34px, 4.5vw, 44px);
  color: var(--sg-navy);
  margin: 0;
  font-weight: 700;
}

.sg-catrow {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 90px 1fr 360px;
  gap: 36px;
  align-items: center;
  padding: 34px var(--sg-gutter);
  border-top: 1px solid var(--sg-line-soft);
}

/* Filas pares con fondo alterno */
.sg-catrow--alt { background: var(--sg-bg-alt); }

.sg-catrow__num {
  font-family: var(--sg-display);
  font-size: 44px;
  font-weight: 700;
  /* Va con la variante --num y no con --lime: son texto, y el lima puro daba
     1.9:1 contra los dos fondos alternados de las filas. */
  color: var(--sg-lime-num);
}

.sg-catrow__title {
  margin: 0 0 8px;
  font-family: var(--sg-display);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--sg-navy);
  font-weight: 600;
}

.sg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sg-tag {
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--sg-muted);
}

.sg-catimg { height: 200px; }

.sg-catimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ── Franja de certificaciones ────────────────────────────── */

.sg-cert-bar {
  background: var(--sg-lime);
  color: var(--sg-navy-deep);
}

.sg-cert {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px var(--sg-gutter);
}

.sg-cert__title {
  font-family: var(--sg-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.05;
}

.sg-cert__text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 500;
}

/* ── Carrusel de marcas ───────────────────────────────────── */

.sg-marcas {
  background: var(--sg-surface);
  border-bottom: 1px solid var(--sg-line);
  padding: 36px 0;
  overflow: hidden;
}

/* Degradado en los bordes para que las marcas entren y salgan */
.sg-marcas__mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

@keyframes sg-marcas-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* El track son dos sets idénticos, así al llegar a -50% el segundo queda
   exactamente donde arrancó el primero. Para que ese -50% caiga justo, cada
   logo tiene que ocupar siempre lo mismo: por eso el ancho es fijo y la
   separación va como margin-right (incluida la del último) en lugar de `gap`,
   que además sólo existe en flexbox desde Safari 14.1. */
.sg-marcas__track {
  display: flex;
  width: max-content;
  animation: sg-marcas-scroll 42s linear infinite;
  will-change: transform;
}

.sg-marcas__set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.sg-marcas__set img {
  /* flex:0 0 auto es lo que evita que, si el navegador no resuelve
     width:max-content, los 66 logos se compriman hasta quedar ilegibles. */
  flex: 0 0 auto;
  width: var(--sg-logo);
  height: 58px;
  margin-right: var(--sg-logo-gap);
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .55;
  transition: filter .2s, opacity .2s;
}

/* En touch el :hover queda pegado después de tocar, así que se limita a
   dispositivos con puntero real. */
@media (hover: hover) {
  .sg-marcas__track:hover { animation-play-state: paused; }
  .sg-marcas__set img:hover { filter: grayscale(0%); opacity: 1; }
}

/* ── Nosotros ─────────────────────────────────────────────── */

.sg-about {
  background: var(--sg-bg-gray);
  border-top: 1px solid var(--sg-line);
  break-inside: avoid;
}

.sg-about__grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 64px;
  align-items: center;
  padding: var(--sg-block) var(--sg-gutter);
}

.sg-eyebrow {
  font-family: var(--sg-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sg-lime-dark);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.sg-about__title { margin-bottom: 16px; }

.sg-about__p {
  margin: 0 0 16px;
  color: var(--sg-ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 560px;
}
.sg-about__p--last { margin-bottom: 22px; }

.sg-about__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--sg-navy);
}

.sg-map {
  position: relative;
  height: min(420px, 70vw);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sg-border);
  box-shadow: 0 10px 28px rgba(16, 38, 60, .12);
  background: #dfe6ea;
}

.sg-map__link {
  position: absolute;
  inset: 0;
  display: block;
}

.sg-map__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Atribución a OpenStreetMap: requisito de la licencia ODbL, no un adorno.
   Va abajo a la derecha —la convención en cualquier mapa— con fondo claro
   para que el texto se lea sobre calles y manchas verdes por igual. */
.sg-map__attrib {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 3px 7px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--sg-ink);
  background: rgba(255, 255, 255, .88);
  border-top-left-radius: 6px;
}

.sg-map__attrib a { color: var(--sg-navy); text-decoration: underline; }
.sg-map__attrib a:hover { color: var(--sg-navy-hover); }

.sg-map__btn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--sg-navy);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.sg-map__btn:hover { background: var(--sg-navy-hover); color: #fff; }

/* ── Contacto ─────────────────────────────────────────────── */

.sg-contact {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 64px;
  padding: var(--sg-block) var(--sg-gutter);
  align-items: start;
}

.sg-contact__lead {
  margin: 12px 0 32px;
  color: var(--sg-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 440px;
}

.sg-facts {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15.5px;
}

.sg-fact { display: flex; gap: 12px; }
.sg-fact__arrow { color: var(--sg-lime-dark); font-weight: 700; }
.sg-fact b { color: var(--sg-navy); }
.sg-fact__value { color: var(--sg-muted); }

/* ── Formulario ───────────────────────────────────────────── */

.sg-form {
  background: var(--sg-field-bg);
  border: 1px solid var(--sg-border-alt);
  border-radius: 12px;
  padding: 32px;
}

.sg-formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sg-input {
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  color: var(--sg-ink);
}
.sg-input:focus {
  outline: none;
  border-color: var(--sg-lime-dark);
  box-shadow: 0 0 0 3px rgba(163, 196, 51, .18);
}
.sg-input.is-invalid { border-color: #c0392b; }

/* Campos a ancho completo, debajo de la grilla de 2 columnas */
.sg-input--wide { margin-top: 14px; }

.sg-textarea { resize: vertical; }

.sg-form__submit {
  background: var(--sg-navy);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px;
  border: none;
  border-radius: 6px;
  width: 100%;
  margin-top: 18px;
  cursor: pointer;
  font-family: inherit;
}
.sg-form__submit:hover:not(:disabled) { background: var(--sg-navy-hover); }
.sg-form__submit:disabled { opacity: .6; cursor: default; }

.sg-form__status {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.sg-form__status:empty { margin-top: 0; }
.sg-form__status.is-ok  { color: var(--sg-wa-dark); }
.sg-form__status.is-err { color: #c0392b; }

/* ── CTA final ────────────────────────────────────────────── */

.sg-cta {
  background: var(--sg-navy);
  color: #fff;
  text-align: center;
  padding: var(--sg-block) var(--sg-gutter);
}

.sg-cta__title {
  font-family: var(--sg-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  margin: 0;
}

.sg-cta__text {
  margin: 14px auto 32px;
  color: #b9c7d4;
  font-size: 16px;
  max-width: 480px;
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────── */

.sg-footer-bar {
  background: var(--sg-bg);
  border-top: 1px solid var(--sg-line);
}

.sg-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px var(--sg-gutter);
  font-size: 13px;
  color: var(--sg-muted);
}

.sg-footer__logo { height: 22px; display: block; }

/* ── Botón flotante de WhatsApp ───────────────────────────── */

.sg-wa-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sg-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}
.sg-wa-fab:hover { background: var(--sg-wa-hover); }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 960px) {
  .sg-hero,
  .sg-about__grid { grid-template-columns: 1fr; gap: 36px; }

  .sg-catrow { grid-template-columns: 64px 1fr; }
  .sg-catimg { grid-column: 1 / -1; }

  .sg-cert { grid-template-columns: 1fr; gap: 16px; }

  .sg-contact { grid-template-columns: 1fr; gap: 40px; }

  .sg-footer { flex-wrap: wrap; justify-content: center; gap: 8px; text-align: center; }

  /* Header mobile: logo + hamburguesa, y el nav pasa a panel desplegable */
  .sg-burger { display: inline-flex; }
  .sg-header__phone { display: none; }

  .sg-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--sg-gutter) 12px;
    background: var(--sg-surface);
    border-top: 1px solid var(--sg-line);
    box-shadow: 0 16px 28px rgba(16, 38, 60, .16);
  }

  .sg-header__nav.is-open {
    display: flex;
    animation: sg-nav-drop .18s ease-out;
  }

  .sg-header__nav a {
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--sg-line-soft);
  }
  .sg-header__nav a:last-child { border-bottom: none; }

  .sg-header__nav-phone {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    color: var(--sg-lime-dark);
  }
}

@keyframes sg-nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .sg-formgrid { grid-template-columns: 1fr; }
}

/* ── Aparición al scrollear ───────────────────────────────────
   El estado oculto cuelga de .js, que agrega un script inline en el
   <head>. Sin JavaScript la clase nunca se aplica y todo se ve
   normalmente: nadie se queda con la página en blanco.

   Se animan SÓLO opacity y transform. Las dos las resuelve el
   compositor, así que no disparan layout ni reflow y no suman CLS
   (animar height, margin o top sí lo haría).

   El hero queda deliberadamente afuera: es el elemento LCP y
   arrancarlo en opacity:0 retrasaría la métrica.
   ──────────────────────────────────────────────────────────── */

.js .sg-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease-out, transform .55s ease-out;
}

.js .sg-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Escalonado: las filas de categorías entran una detrás de otra en vez
   de todas juntas. El índice lo pone el view con data-reveal. */
.js .sg-reveal[data-reveal="1"] { transition-delay: .07s; }
.js .sg-reveal[data-reveal="2"] { transition-delay: .14s; }
.js .sg-reveal[data-reveal="3"] { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sg-marcas__track { animation: none; }
  .sg-header__nav.is-open { animation: none; }
  .sg-header-bar,
  .sg-header,
  .sg-header__logo,
  .sg-burger__bars span { transition: none; }

  /* Con movimiento reducido el contenido aparece directamente: sin
     desplazamiento, sin transición y sin depender de que corra el JS. */
  .js .sg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Impresión ────────────────────────────────────────────── */

@media print {
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sg-header-bar { position: static; }
  .sg-wa-fab { display: none; }
}