/*
 * El home de MotoMundo — los nueve bloques del lienzo aprobado el 20/08/2026.
 *
 * Esta hoja se encola en TODAS las páginas. Por eso cada regla cuelga de
 * `.mm-home` (dentro del <main> del home) o de `body.home` (el pie, que vive
 * fuera del <main>). Una regla suelta acá se filtra al carrito y al checkout.
 *
 * Los valores salen de Main.dc.html (escritorio, 1440) y Movil.dc.html
 * (celular, 390). La única traducción es de píxeles del lienzo a tokens.
 */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/archivo-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Contención: el home se sale de la columna de Storefront ─────────────── */

/* Storefront le da al encabezado `margin-bottom: 4.235801032em` (67,8 px a
   1440) y deja una banda blanca entre el masthead negro y la cinta verde,
   que en el lienzo van pegados.

   OJO con la especificidad: la regla de Storefront NO es `.site-header`,
   es `.home.blog .site-header, .home.page:not(…) .site-header,
   .home.post-type-archive-product .site-header` — tres clases, (0,3,0).
   Un `body.home .site-header` pesa (0,2,1) y PIERDE. Hay que igualar las
   tres formas que Storefront cubre. Solo en el home: las demás páginas
   conservan el respiro que Storefront espera. */
body.home.blog .site-header,
body.home.page .site-header,
body.home.post-type-archive-product .site-header {
  margin-bottom: 0;
}

body.home .site-content > .col-full {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.home .mm-home {
  margin: 0;
  color: var(--mm-text);
}

.mm-home__wrap {
  width: min(calc(100% - 2rem), 1360px);
  margin-inline: auto;
}

/* ── Tipografía y piezas compartidas ─────────────────────────────────────── */

.mm-home__title,
.mm-home__category-name,
.mm-home__step-number,
.mm-home__video-title,
.mm-home__product-price,
body.home .mm-home-footer__wordmark {
  margin: 0;
  font-family: Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.mm-home__title {
  color: var(--mm-text);
  font-size: 44px;
}

.mm-home__title--light {
  color: var(--mm-paper);
}

.mm-home__eyebrow,
body.home .mm-home-footer .mm-home__eyebrow {
  margin: 0;
  color: var(--mm-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mm-home__eyebrow--lime,
body.home .mm-home-footer .mm-home__eyebrow--lime {
  color: var(--mm-lime);
}

.mm-home__section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.mm-home__section-head .mm-home__eyebrow {
  margin-bottom: 12px;
}

.mm-home__section-note {
  padding-bottom: 8px;
  color: var(--mm-muted);
  font-size: 14.5px;
}

.mm-home__section-lead {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: 16.5px;
  line-height: 1.55;
}

.mm-home__section-lead--light {
  color: #b9beb2;
}

.mm-home__icon {
  flex-shrink: 0;
}

.mm-home__btn,
.mm-home__btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--mm-lime);
  border-radius: var(--mm-radius-sm);
  background: var(--mm-lime);
  color: var(--mm-ink);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.mm-home__btn:hover,
.mm-home__btn:focus-visible {
  border-color: var(--mm-yellow);
  background: var(--mm-yellow);
  color: var(--mm-ink);
  text-decoration: none;
}

.mm-home__btn--block {
  width: 100%;
  justify-content: center;
}

.mm-home__textlink,
.mm-home__textlink:visited {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 6px;
  color: var(--mm-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.mm-home__textlink .mm-home__icon--arrow {
  color: var(--mm-lime);
}

.mm-home__textlink:hover,
.mm-home__textlink:focus-visible {
  color: var(--mm-ink);
  text-decoration: underline;
}

.mm-home a:focus-visible,
body.home .mm-home-footer a:focus-visible {
  outline: 0;
  box-shadow: var(--mm-focus);
}

/* El reset de listas va dentro de :where() a propósito. Escrito como
   `.mm-home ul, .mm-home ol, …` pesa (0,1,1) —una clase y un tipo— y le gana
   a cualquier regla de UNA clase sin importar el orden del archivo: se comió
   el padding de .mm-home__hours, el margen de .mm-home__steps y el respiro
   lateral de .mm-home__video-grid. :where() aporta especificidad cero, así
   que el reset baja a (0,1,0) y las clases del bloque vuelven a mandar. */
.mm-home :where(ul, ol, dl, dd) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-home img {
  max-width: 100%;
}

/* ── 1 · La cinta de confianza ───────────────────────────────────────────── */

.mm-home__strip {
  background: var(--mm-lime);
  color: var(--mm-ink);
}

.mm-home__strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  padding: 13px 0;
}

.mm-home__strip-item,
.mm-home__strip-item:visited {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--mm-ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.mm-home__strip-item:hover,
.mm-home__strip-item:focus-visible {
  color: var(--mm-ink);
  text-decoration: underline;
}

.mm-home__strip-sep {
  width: 1px;
  height: 18px;
  background: rgba(5, 5, 5, 0.28);
}

/* ── 2 · El héroe ────────────────────────────────────────────────────────── */

.mm-home__hero {
  position: relative;
  height: 700px;
  overflow: hidden;
  background: var(--mm-ink);
}

.mm-home__hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-home__hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.97) 0%, rgba(5, 5, 5, 0.95) 34%, rgba(5, 5, 5, 0.82) 52%, rgba(5, 5, 5, 0.28) 76%, rgba(5, 5, 5, 0.4) 100%);
}

.mm-home__hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.mm-home__hero-content .mm-home__wrap {
  padding-bottom: 30px;
}

.mm-home__hero-copy {
  max-width: 700px;
  margin-bottom: 30px;
}

.mm-home__hero-copy .mm-home__eyebrow {
  margin-bottom: 16px;
}

.mm-home__title--hero {
  margin-bottom: 18px;
  color: var(--mm-paper);
  font-size: 62px;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.mm-home__hero-lead {
  margin: 0;
  max-width: 48ch;
  color: #d5d9cd;
  font-size: 17px;
  line-height: 1.5;
}

.mm-home__hero-note {
  margin: 20px 0 0;
  max-width: 52ch;
  padding-left: 14px;
  border-left: 2px solid var(--mm-lime);
  color: #a9ae9f;
  font-size: 13.5px;
  line-height: 1.55;
}

.mm-home__chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.mm-home__chip,
.mm-home__chip:visited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border: 1px solid rgba(246, 247, 242, 0.22);
  border-radius: var(--mm-radius-sm);
  background: rgba(5, 5, 5, 0.55);
  color: var(--mm-paper);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}

.mm-home__chip .mm-home__icon--arrow {
  color: var(--mm-lime);
}

.mm-home__chip:hover,
.mm-home__chip:focus-visible {
  border-color: rgba(246, 247, 242, 0.6);
  color: var(--mm-paper);
  text-decoration: none;
}

.mm-home__chip--primary,
.mm-home__chip--primary:visited {
  border-color: var(--mm-lime);
  background: var(--mm-lime);
  color: var(--mm-ink);
  font-weight: 750;
}

.mm-home__chip--primary .mm-home__icon--arrow {
  color: var(--mm-ink);
}

.mm-home__chip--primary:hover,
.mm-home__chip--primary:focus-visible {
  border-color: var(--mm-yellow);
  background: var(--mm-yellow);
  color: var(--mm-ink);
}

/* ── 3 · Las cuatro puertas ──────────────────────────────────────────────── */

.mm-home__categories .mm-home__wrap {
  padding-bottom: 76px;
}

.mm-home__category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mm-home__category,
.mm-home__category:visited {
  display: block;
  overflow: hidden;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-sm);
  background: #fff;
  color: var(--mm-text);
  text-decoration: none;
}

.mm-home__category:hover,
.mm-home__category:focus-visible {
  border-color: var(--mm-ink);
  color: var(--mm-text);
  text-decoration: none;
}

/* Las cuatro puertas comparten fondo blanco: las tres imágenes de producto
   están recortadas sobre blanco (AGV y Cardo son PNG con transparencia, la
   parrilla es una foto ya recortada) y antes cada tarjeta traía el suyo. */
.mm-home__category-media {
  display: flex;
  height: 230px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.mm-home__category-media--dark {
  background: var(--mm-ink);
}

.mm-home__category-media img {
  width: auto;
  max-height: var(--mm-fit-lg, 190px);
}

.mm-home__category-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
}

.mm-home__category-body .mm-home__icon--arrow {
  color: var(--mm-lime);
}

.mm-home__category-name {
  display: block;
  margin-bottom: 4px;
  color: var(--mm-text);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.mm-home__category-count {
  color: var(--mm-muted);
  font-size: 13px;
}

/* ── 4 · Instalación en el local ─────────────────────────────────────────── */

.mm-home__installation .mm-home__wrap {
  padding-bottom: 76px;
}

.mm-home__installation-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  overflow: hidden;
  border: 1px solid #c9d4b0;
  border-radius: var(--mm-radius-sm);
  background: #eef2e4;
}

.mm-home__installation-body {
  padding: 52px 48px;
}

.mm-home__installation-body .mm-home__eyebrow {
  margin-bottom: 16px;
}

.mm-home__title--installation {
  margin-bottom: 18px;
  font-size: 42px;
}

.mm-home__installation-lead {
  margin: 0 0 30px;
  max-width: 40ch;
  color: var(--mm-text);
  font-size: 16.5px;
  line-height: 1.55;
}

.mm-home__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 34px;
}

.mm-home__step {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 16px;
}

.mm-home__step-number {
  display: flex;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--mm-radius-sm);
  background: var(--mm-ink);
  color: var(--mm-lime);
  font-size: 14px;
}

.mm-home__installation-media {
  position: relative;
  min-height: 470px;
}

/* El archivo es un cuadro de video (1240×696) donde la moto ya viene cortada
   en los cuatro bordes: ningún recorte la endereza. Lo que sí se puede es
   elegir qué mitad se conserva — se corre hacia la izquierda para que el
   escape completo, que es lo que la foto quiere contar, quede dentro. */
.mm-home__installation-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 60%;
}

.mm-home__installation-caption {
  position: absolute;
  bottom: 22px;
  left: 22px;
  padding: 9px 14px;
  border-radius: var(--mm-radius-sm);
  background: rgba(5, 5, 5, 0.86);
  color: var(--mm-paper);
  font-size: 12.5px;
  font-weight: 700;
}

/* ── 5 · El muro de marcas ───────────────────────────────────────────────── */

.mm-home__brands .mm-home__wrap {
  padding-bottom: 76px;
}

.mm-home__brands-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mm-home__brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-sm);
  background: #fff;
}

.mm-home__brand {
  display: flex;
  height: 108px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 24px;
  border-right: 1px solid var(--mm-line);
  border-bottom: 1px solid var(--mm-line);
}

.mm-home__brand:nth-child(4n) {
  border-right: 0;
}

.mm-home__brand:nth-child(n + 5) {
  border-bottom: 0;
}

/* El enlace tiene que llenar la celda, no encogerse al contenido.
   Sin caja propia es un flex item de ancho automático, y adentro la imagen
   pide `max-width: 100%` contra un ancho que depende de ella misma: la
   dependencia es circular y el motor la resuelve en 0. Solo se nota con los
   SVG que traen únicamente `viewBox` (marca-mt y marca-ebc): sin width/height
   no hay tamaño intrínseco que rompa el ciclo, y el logo desaparece.
   El bug estuvo latente mientras product_brand estuvo vacía y no hubo <a>. */
.mm-home__brand-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.mm-home__brand img {
  width: auto;
  max-width: 100%;
  max-height: var(--mm-logo-h, 40px);
}

/* ── 6 · Redes y video ───────────────────────────────────────────────────── */

.mm-home__social {
  padding: 76px 0;
  background: var(--mm-ink);
  color: var(--mm-paper);
}

.mm-home__section-head--social {
  margin-bottom: 34px;
}

.mm-home__section-head--social .mm-home__eyebrow {
  margin-bottom: 14px;
}

.mm-home__social .mm-home__title {
  font-size: 46px;
}

.mm-home__video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mm-home__video {
  margin: 0;
  overflow: hidden;
  border-radius: var(--mm-radius-sm);
  background: #111110;
}

.mm-home__video-link,
.mm-home__video-link:visited {
  display: block;
  color: var(--mm-paper);
  text-decoration: none;
}

.mm-home__video-link:hover,
.mm-home__video-link:focus-visible {
  color: var(--mm-paper);
  text-decoration: none;
}

.mm-home__video-media {
  position: relative;
  display: block;
}

.mm-home__video-media img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.mm-home__video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--mm-radius-sm);
  background: rgba(5, 5, 5, 0.82);
  color: var(--mm-paper);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mm-home__video-badge .mm-home__icon--play {
  color: var(--mm-lime);
}

.mm-home__video-title {
  display: block;
  padding: 16px 17px 7px;
  color: var(--mm-paper);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.mm-home__video-link:last-child .mm-home__video-title {
  padding-bottom: 19px;
}

.mm-home__video-category,
.mm-home__video-category:visited {
  display: block;
  padding: 0 17px 19px;
  color: #8d9287;
  font-size: 13px;
  text-decoration: none;
}

.mm-home__video-category:hover,
.mm-home__video-category:focus-visible {
  color: var(--mm-lime);
  text-decoration: none;
}

.mm-home__social-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #23231f;
}

.mm-home__social-note {
  color: #8d9287;
  font-size: 13.5px;
}

.mm-home__social-note strong {
  color: var(--mm-paper);
  font-weight: 700;
}

.mm-home__social-link,
.mm-home__social-link:visited {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--mm-paper);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.mm-home__social-link .mm-home__icon {
  color: var(--mm-lime);
}

.mm-home__social-link:hover,
.mm-home__social-link:focus-visible {
  color: var(--mm-lime);
  text-decoration: none;
}

/* ── 7 · Listo para llevar hoy ───────────────────────────────────────────── */

.mm-home__featured .mm-home__wrap {
  padding: 76px 0;
}

.mm-home__product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mm-home__product {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-sm);
  background: #fff;
}

.mm-home__product-link,
.mm-home__product-link:visited {
  display: block;
  color: var(--mm-text);
  text-decoration: none;
}

.mm-home__product-link:hover,
.mm-home__product-link:focus-visible {
  color: var(--mm-text);
  text-decoration: none;
}

.mm-home__product:hover {
  border-color: var(--mm-ink);
}

.mm-home__product-media {
  display: flex;
  height: 250px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
}

.mm-home__product-media img {
  width: auto;
  max-width: 100%;
  max-height: 225px;
  object-fit: contain;
}

.mm-home__product-body {
  display: block;
  padding: 16px 17px 18px;
  border-top: 1px solid var(--mm-line);
}

.mm-home__product-brand {
  display: block;
  margin-bottom: 7px;
  color: var(--mm-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-home__product-name {
  display: block;
  margin-bottom: 10px;
  color: var(--mm-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.mm-home__product-price,
.mm-home__product-price .amount,
.mm-home__product-price .woocommerce-Price-amount {
  color: var(--mm-text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mm-home__product-price del,
.mm-home__product-price del .amount {
  margin-right: 0.35em;
  color: var(--mm-muted);
  font-size: 15px;
  font-weight: 650;
}

.mm-home__empty {
  margin: 0;
}

/* ── 8 · La tienda física ────────────────────────────────────────────────── */

.mm-home__store .mm-home__wrap {
  padding-bottom: 80px;
}

.mm-home__store-card {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  overflow: hidden;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-sm);
  background: #fff;
}

.mm-home__store-body {
  padding: 48px 44px;
}

.mm-home__store-body .mm-home__eyebrow {
  margin-bottom: 16px;
}

.mm-home__title--store {
  margin-bottom: 22px;
  font-size: 38px;
}

.mm-home__store-address {
  margin: 0 0 8px;
  font-size: 16.5px;
  line-height: 1.5;
}

.mm-home__store-maps {
  margin: 0 0 28px;
  color: var(--mm-muted);
  font-size: 14px;
}

.mm-home__store-maps strong {
  color: var(--mm-text);
  font-weight: 700;
}

.mm-home__hours {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-sm);
  background: var(--mm-paper);
}

.mm-home__hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
}

.mm-home__hours dt {
  font-weight: 400;
}

.mm-home__hours dd {
  font-weight: 700;
}

.mm-home__store-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mm-home__store-map {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--mm-line);
  background: #e7eade;
  color: #8d9287;
}

.mm-home__store-map .mm-home__icon {
  stroke-width: 1.4;
}

/* El iframe de Google trae su propio fondo; el gris de arriba queda de
   respaldo mientras carga (va con loading="lazy" porque el bloque 8 está
   muy abajo) y si el tercero no responde. */
.mm-home__store-map--embed {
  display: block;
  padding: 0;
}

.mm-home__store-map--embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

/* El botón fantasma del lienzo (.mmghost): acompaña al de WhatsApp sin
   competirle. */
.mm-home__btn--ghost,
.mm-home__btn--ghost:visited {
  border: 1px solid var(--mm-line);
  background: transparent;
  color: var(--mm-text);
}

.mm-home__btn--ghost:hover,
.mm-home__btn--ghost:focus-visible {
  border-color: var(--mm-ink);
  color: var(--mm-ink);
}

/* ── 9 · El pie del home (vive en .site-footer, fuera del <main>) ────────── */

body.home .site-footer .mm-home-footer {
  width: min(100%, 1360px);
  margin-inline: auto;
  padding: 56px 0 32px;
  color: #c6cbc0;
}

body.home .mm-home-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid #23231f;
}

body.home .site-footer .mm-home-footer__logo,
body.home .site-footer .mm-home-footer__logo:hover {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  color: var(--mm-paper);
  text-decoration: none;
}

body.home .mm-home-footer__logo img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: var(--mm-radius-sm);
  object-fit: contain;
}

body.home .mm-home-footer__wordmark {
  color: var(--mm-paper);
  font-size: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body.home .mm-home-footer__wordmark span {
  color: var(--mm-lime);
}

body.home .mm-home-footer__blurb {
  margin: 0 0 20px;
  max-width: 34ch;
  color: #8d9287;
  font-size: 14.5px;
  line-height: 1.6;
}

body.home .mm-home-footer__social {
  display: flex;
  gap: 11px;
}

body.home .site-footer .mm-home-footer__social-link,
body.home .site-footer .mm-home-footer__social-link:visited {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #23231f;
  border-radius: var(--mm-radius-sm);
  color: var(--mm-lime);
}

body.home .site-footer .mm-home-footer__social-link:hover,
body.home .site-footer .mm-home-footer__social-link:focus-visible {
  border-color: var(--mm-lime);
  color: var(--mm-lime);
}

body.home .mm-home-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
}

body.home .mm-home-footer__col .mm-home__eyebrow {
  margin-bottom: 5px;
}

body.home .site-footer .mm-home-footer__col a:not(.button):not(.components-button),
body.home .site-footer .mm-home-footer__col a:not(.button):not(.components-button):visited {
  color: #c6cbc0;
  text-decoration: none;
}

body.home .site-footer .mm-home-footer__col a:not(.button):not(.components-button):hover,
body.home .site-footer .mm-home-footer__col a:not(.button):not(.components-button):focus-visible {
  color: var(--mm-lime);
  text-decoration: none;
}

body.home .mm-home-footer__address {
  line-height: 1.5;
}

body.home .mm-home-footer__legal {
  margin: 24px 0 0;
  color: #6e7368;
  font-size: 13px;
}

/* ── Tablet: no hay artboard; se interpola con criterio ──────────────────── */

@media (max-width: 1100px) {
  .mm-home__chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mm-home__category-grid,
  .mm-home__product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-home__video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-home__video-media img {
    height: 360px;
  }

  .mm-home__title--hero {
    font-size: 52px;
  }

  body.home .mm-home-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.home .mm-home-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ── Tablet: el rango sin artboard (783–1100) ───────────────────────────── */

/* Ni Main.dc.html (escritorio) ni Movil.dc.html cubren este ancho, así que se
   interpola — y la tarjeta de la tienda es la única pieza que no aguanta la
   interpolación. En dos columnas, la de texto baja a ~370 px a 834: el título
   parte en cuatro líneas, las filas del horario se quiebran y los dos botones
   se aplastan («Cómo / llegar / con / Waze» en cuatro renglones). Se apila
   como en celular, pero conservando la tipografía de escritorio.
   El rango arranca en 783 a propósito: por debajo manda el bloque de celular. */
@media (min-width: 783px) and (max-width: 1100px) {
  .mm-home__store-card {
    grid-template-columns: 1fr;
  }

  .mm-home__store-map {
    order: -1;
    min-height: 340px;
    border-bottom: 1px solid var(--mm-line);
    border-left: 0;
  }

  .mm-home__store-map--embed iframe {
    height: 340px;
    min-height: 340px;
  }

  .mm-home__store-body {
    padding: 38px 36px 40px;
  }
}

/* ── Celular: Movil.dc.html (390) ────────────────────────────────────────── */

@media (max-width: 782px) {
  .mm-home__wrap {
    width: calc(100% - 36px);
  }

  /* compartido */
  .mm-home__eyebrow {
    font-size: 11px;
  }

  .mm-home__section-head {
    display: block;
    margin-bottom: 18px;
  }

  .mm-home__section-head .mm-home__eyebrow {
    margin-bottom: 10px;
  }

  .mm-home__title {
    font-size: 27px;
  }

  .mm-home__btn {
    min-height: 48px;
    justify-content: center;
  }

  /* 1 · cinta */
  .mm-home__strip-inner {
    justify-content: flex-start;
    gap: 9px;
    padding: 11px 0;
  }

  .mm-home__strip-item--compact {
    align-items: flex-start;
    font-size: 12.5px;
    line-height: 1.35;
  }

  .mm-home__strip-item--compact .mm-home__icon {
    margin-top: 1px;
  }

  /* 2 · héroe */
  .mm-home__hero {
    height: 560px;
  }

  .mm-home__hero-image {
    object-position: 66% center;
  }

  .mm-home__hero-scrim {
    background: linear-gradient(0deg, rgba(5, 5, 5, 0.97) 0%, rgba(5, 5, 5, 0.9) 34%, rgba(5, 5, 5, 0.5) 58%, rgba(5, 5, 5, 0.15) 100%);
  }

  .mm-home__hero-content .mm-home__wrap {
    padding-bottom: 18px;
  }

  .mm-home__hero-copy {
    margin-bottom: 18px;
  }

  .mm-home__hero-copy .mm-home__eyebrow {
    margin-bottom: 11px;
    font-size: 11px;
  }

  .mm-home__title--hero {
    margin-bottom: 12px;
    font-size: 36px;
    letter-spacing: -0.04em;
    line-height: 0.96;
  }

  .mm-home__hero-lead {
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.45;
  }

  .mm-home__hero-note {
    margin-top: 0;
    padding-left: 11px;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .mm-home__chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .mm-home__chip {
    padding: 12px 13px;
    font-size: 13.5px;
  }

  .mm-home__chip .mm-home__icon--arrow {
    width: 14px;
    height: 14px;
  }

  .mm-home__chip--lg-only {
    display: none;
  }

  /* 3 · puertas */
  .mm-home__categories .mm-home__wrap {
    padding-bottom: 34px;
  }

  .mm-home__category-grid {
    gap: 12px;
  }

  .mm-home__category-media {
    height: 118px;
  }

  .mm-home__category-media img {
    max-height: var(--mm-fit-sm, 96px);
  }

  .mm-home__category-body {
    padding: 11px 12px 13px;
  }

  .mm-home__category-body .mm-home__icon--arrow {
    display: none;
  }

  .mm-home__category-name {
    font-size: 13.5px;
    line-height: 1.2;
  }

  .mm-home__category-count {
    font-size: 11.5px;
  }

  /* 4 · instalación */
  .mm-home__installation .mm-home__wrap {
    padding-bottom: 34px;
  }

  .mm-home__installation-card {
    display: flex;
    flex-direction: column;
  }

  .mm-home__installation-media {
    order: -1;
    min-height: 0;
  }

  .mm-home__installation-media img {
    position: static;
    height: 190px;
  }

  .mm-home__installation-body {
    padding: 24px 20px 26px;
  }

  .mm-home__installation-body .mm-home__eyebrow {
    margin-bottom: 12px;
  }

  .mm-home__title--installation {
    margin-bottom: 14px;
    font-size: 27px;
  }

  .mm-home__installation-lead {
    margin-bottom: 20px;
    font-size: 14.5px;
    line-height: 1.5;
  }

  .mm-home__steps {
    gap: 11px;
    margin-bottom: 22px;
  }

  .mm-home__step {
    gap: 12px;
    font-size: 14.5px;
  }

  .mm-home__step-number {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    font-size: 12.5px;
  }

  .mm-home__btn--installation {
    width: 100%;
  }

  .mm-home__btn--installation .mm-home__icon--arrow {
    display: none;
  }

  /* 5 · marcas */
  .mm-home__brands .mm-home__wrap {
    padding-bottom: 34px;
  }

  .mm-home__brands-head {
    margin-bottom: 14px;
  }

  .mm-home__brand-grid {
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .mm-home__brand,
  .mm-home__brand:nth-child(4n),
  .mm-home__brand:nth-child(n + 5) {
    height: 62px;
    padding: 0 8px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius-sm);
    background: #fff;
  }

  .mm-home__brand img {
    max-height: var(--mm-logo-h-sm, 26px);
  }

  /* 6 · redes y video */
  .mm-home__social {
    padding: 32px 0 34px;
  }

  .mm-home__section-head--social {
    margin-bottom: 20px;
  }

  .mm-home__section-head--social .mm-home__eyebrow {
    margin-bottom: 12px;
  }

  .mm-home__social .mm-home__title {
    margin-bottom: 12px;
    font-size: 28px;
  }

  .mm-home__section-lead {
    margin-top: 0;
    font-size: 14.5px;
    line-height: 1.5;
  }

  .mm-home__video-grid {
    display: flex;
    gap: 12px;
    margin: 0 -18px 18px;
    padding: 0 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .mm-home__video {
    width: 168px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .mm-home__video-media img {
    width: 168px;
    height: 262px;
  }

  .mm-home__video-badge {
    top: 10px;
    left: 10px;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 10px;
  }

  .mm-home__video-badge .mm-home__icon--play {
    width: 11px;
    height: 11px;
  }

  .mm-home__video-title,
  .mm-home__video-link:last-child .mm-home__video-title {
    padding: 11px 12px 14px;
    font-size: 13px;
    line-height: 1.25;
  }

  /* 7 · listo para llevar hoy */
  .mm-home__featured .mm-home__wrap {
    padding: 34px 0;
  }

  .mm-home__product-grid {
    gap: 12px;
  }

  .mm-home__product:nth-child(n + 3) {
    display: none;
  }

  .mm-home__product-media {
    height: 148px;
    padding: 5px;
  }

  .mm-home__product-media img {
    max-height: 138px;
  }

  .mm-home__product-body {
    padding: 12px 12px 14px;
  }

  .mm-home__product-brand {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .mm-home__product-name {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.3;
  }

  .mm-home__product-price,
  .mm-home__product-price .amount,
  .mm-home__product-price .woocommerce-Price-amount {
    font-size: 16px;
  }

  /* 8 · la tienda */
  .mm-home__store .mm-home__wrap {
    padding-bottom: 34px;
  }

  .mm-home__store-card {
    display: flex;
    flex-direction: column;
  }

  .mm-home__store-map {
    order: -1;
    min-height: 150px;
    border-left: 0;
  }

  .mm-home__store-map .mm-home__icon {
    width: 30px;
    height: 30px;
  }

  /* Ahora que «Cómo llegar» abre Waze, en celular es el botón que MÁS sirve:
     abre la app con la ruta puesta. Por eso no se oculta —como sí hacía el
     artboard, que lo dibujaba yendo a un mapa— sino que los dos se apilan a
     ancho completo. Lado a lado a 390 no caben y parten el de WhatsApp. */
  .mm-home__store-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .mm-home__btn--ghost {
    justify-content: center;
  }

  /* El lienzo reservó 150 px para un pin dibujado. Un mapa de verdad a ese
     alto queda tapado por su propia tarjeta de información, así que en
     celular el panel del embebido sube a 190. */
  .mm-home__store-map--embed,
  .mm-home__store-map--embed iframe {
    min-height: 190px;
  }

  .mm-home__store-map--embed iframe {
    height: 190px;
  }

  .mm-home__store-body {
    padding: 24px 20px 26px;
  }

  .mm-home__store-body .mm-home__eyebrow {
    margin-bottom: 12px;
  }

  .mm-home__title--store {
    margin-bottom: 14px;
    font-size: 25px;
  }

  .mm-home__store-address {
    margin-bottom: 6px;
    font-size: 14.5px;
  }

  .mm-home__store-maps {
    margin-bottom: 20px;
    font-size: 12.5px;
  }

  .mm-home__hours {
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px 16px;
  }

  .mm-home__hours-row {
    font-size: 13px;
  }

  .mm-home__btn--store {
    width: 100%;
    justify-content: center;
  }

  /* 9 · pie */
  body.home .site-footer .mm-home-footer {
    padding: 30px 0 26px;
  }

  body.home .mm-home-footer__grid {
    display: block;
    padding-bottom: 0;
    border-bottom: 0;
  }

  body.home .site-footer .mm-home-footer__logo {
    gap: 10px;
    margin-bottom: 14px;
  }

  body.home .mm-home-footer__logo img {
    width: 34px;
    height: 34px;
    border-radius: 5px;
  }

  body.home .mm-home-footer__wordmark {
    font-size: 16px;
  }

  body.home .mm-home-footer__social {
    gap: 10px;
    margin-bottom: 20px;
  }

  body.home .mm-home-footer__social-link .mm-home__icon {
    width: 18px;
    height: 18px;
  }

  body.home .mm-home-footer__legal {
    margin-top: 0;
    font-size: 12px;
  }
}

/* ── Escritorio / celular: qué copia sale dónde ───────────────────────────── */

.mm-home__sm,
body.home .mm-home-footer .mm-home__sm {
  display: none;
}

@media (max-width: 782px) {
  .mm-home__lg,
  body.home .mm-home-footer .mm-home__lg {
    display: none;
  }

  .mm-home__sm,
  body.home .mm-home-footer .mm-home__sm {
    display: revert;
  }

  a.mm-home__sm,
  .mm-home__btn.mm-home__sm {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-home__video-grid {
    scroll-behavior: auto;
  }
}
