/* =========================================================================
   MAIER — Landing de marca
   - Clases con prefijo "mx-" y resets acotados con :where() para que pueda
     convivir con un tema de WordPress sin choques de estilos.
   - Mejora progresiva: animaciones por scroll (CSS scroll-driven), View
     Transitions y Popover API se usan solo donde el navegador las soporta.
   ========================================================================= */

/* Fuente de respaldo con métricas ajustadas a Montserrat: evita saltos de layout (CLS) */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  size-adjust: 113.4%;
  ascent-override: 85.4%;
  descent-override: 22.2%;
  line-gap-override: 0%;
}

:root {
  /* Marca */
  --mx-navy: #00297a;          /* color exacto del logo oficial */
  --mx-navy-800: #00205f;
  --mx-navy-900: #04153d;
  --mx-orange: #f4661b;
  --mx-orange-700: #c94a0a;    /* naranja accesible para texto chico sobre blanco */
  --mx-orange-300: #ff8a4c;    /* naranja accesible para texto chico sobre navy */

  /* Neutros */
  --mx-ink: #0b1531;
  --mx-muted: #59627e;
  --mx-line: #e3e7ef;
  --mx-paper: #fff;
  --mx-mist: #f2f5fa;

  /* Tintes por categoría (las fotos sobre blanco se funden con multiply) */
  --mx-tint-cafe: #f3ede4;
  --mx-tint-limpieza: #e7edf7;
  --mx-tint-cocina: #ececf0;
  --mx-tint-clima: #fbeadf;

  --mx-font: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;

  /* Escala tipográfica fluida */
  --mx-step--1: clamp(.8rem, .78rem + .1vw, .875rem);
  --mx-step-1: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  --mx-step-2: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  --mx-step-3: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  --mx-step-4: clamp(2.6rem, 1.2rem + 5.8vw, 6.6rem);

  --mx-container: 1320px;
  --mx-gutter: clamp(16px, 3.5vw, 40px);
  --mx-section: clamp(88px, 5rem + 6vw, 168px);
  --mx-header-h: 72px;
  --mx-r-sm: 12px;
  --mx-r: 20px;
  --mx-r-lg: 28px;
  --mx-r-xl: 36px;

  --mx-ease: cubic-bezier(.22, 1, .36, 1);
  --mx-shadow: 0 1px 2px rgb(11 21 49 / .04), 0 16px 40px -18px rgb(11 21 49 / .22);
}

/* ---------- Reset acotado ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mx-header-h) + 16px);
  scrollbar-gutter: stable;
}
.mx {
  margin: 0;
  font-family: var(--mx-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mx-ink);
  background: var(--mx-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
.mx *, .mx *::before, .mx *::after { box-sizing: border-box; }
.mx :where(h1, h2, h3, p, figure, ul, ol) { margin: 0; }
.mx :where(ul, ol) { padding: 0; list-style: none; }
.mx :where(img, picture, svg) { display: block; max-width: 100%; }
.mx :where(img) { height: auto; }
.mx :where(a) { color: inherit; text-decoration: none; }
.mx :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mx :where(h1, h2, h3) { text-wrap: balance; }
.mx :where(p) { text-wrap: pretty; }
.mx :focus-visible { outline: 3px solid var(--mx-orange); outline-offset: 3px; }
.mx ::selection { background: var(--mx-orange); color: #fff; }

.mx-sprite { position: absolute; }
.mx-container { width: min(100% - var(--mx-gutter) * 2, var(--mx-container)); margin-inline: auto; }
.mx-i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.mx-skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--mx-navy); color: #fff; font-weight: 700;
  translate: 0 -200%; transition: translate .2s;
}
.mx-skip:focus { translate: 0 0; }

/* ---------- Tipografía ---------- */
.mx-eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mx-navy);
}
.mx-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--mx-orange); }
.mx-eyebrow--light { color: #fff; }

.mx-h2 {
  font-size: var(--mx-step-3);
  font-weight: 800; line-height: 1.04; letter-spacing: -.03em;
  color: var(--mx-navy);
}
.mx-h2 em { font-style: normal; color: var(--mx-orange); }
.mx-h2--light { color: #fff; }

/* Caja naranja: recurso gráfico central de las piezas Maier */
.mx-mark {
  display: inline-block;
  padding: .02em .24em .06em;
  border-radius: .14em;
  background: var(--mx-orange); color: #fff;
}

.mx-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.mx-head .mx-h2 { margin-top: 18px; }
.mx-head__text { margin-top: 18px; max-width: 36rem; font-size: 1.08rem; color: var(--mx-muted); }
.mx-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }

/* ---------- Botones ---------- */
.mx-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.6em;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem; line-height: 1.1; white-space: nowrap;
  transition: background-color .3s var(--mx-ease), color .3s var(--mx-ease), border-color .3s var(--mx-ease), translate .3s var(--mx-ease), box-shadow .3s var(--mx-ease);
}
.mx-btn .mx-i { transition: translate .3s var(--mx-ease); }
.mx-btn:hover .mx-i { translate: 3px 0; }
.mx-btn--sm { padding: .8em 1.25em; font-size: .88rem; }
.mx-btn--lg { padding: 1.15em 1.9em; font-size: 1rem; }
.mx-btn--primary { background: var(--mx-navy); color: #fff; box-shadow: 0 14px 28px -14px rgb(0 41 122 / .8); }
.mx-btn--primary:hover { background: var(--mx-navy-800); translate: 0 -2px; }
.mx-btn--ghost { color: var(--mx-navy); box-shadow: inset 0 0 0 1.5px var(--mx-line); }
.mx-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--mx-navy); }
.mx-btn--light { background: #fff; color: var(--mx-navy); box-shadow: 0 18px 36px -18px rgb(0 0 0 / .6); }
.mx-btn--light:hover { background: #fff3ec; translate: 0 -2px; }

.mx-btn--click { margin-right: 14px; }
.mx-btn__cursor {
  position: absolute; right: -20px; bottom: -18px;
  width: 38px; height: 38px; color: var(--mx-ink);
  pointer-events: none;
  transition: translate .35s var(--mx-ease), scale .35s var(--mx-ease);
}
.mx-btn--click:hover .mx-btn__cursor { translate: -4px -4px; scale: .9; }

.mx-round {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  color: var(--mx-navy); background: #fff; box-shadow: inset 0 0 0 1.5px var(--mx-line);
  transition: background-color .25s, color .25s, box-shadow .25s, opacity .25s;
}
.mx-round:hover:not(:disabled) { background: var(--mx-navy); color: #fff; box-shadow: none; }
.mx-round:disabled { opacity: .35; cursor: default; }

/* ---------- Header ---------- */
.mx-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--mx-header-h);
  background: rgb(255 255 255 / .78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: translate .5s var(--mx-ease), border-color .3s, background-color .3s;
}
.mx-header.is-scrolled { border-color: var(--mx-line); background: rgb(255 255 255 / .9); }
.mx-header.is-hidden { translate: 0 -100%; }
.mx-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.mx-header__logo img { height: 20px; width: auto; }

.mx-nav { margin-left: auto; }
.mx-nav ul { display: flex; gap: 4px; }
.mx-nav a {
  display: block; padding: 9px 15px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--mx-ink);
  transition: background-color .25s, color .25s;
}
.mx-nav a:hover { background: var(--mx-mist); }
.mx-nav a[aria-current="true"] { background: var(--mx-mist); color: var(--mx-navy); }

.mx-menu-btn {
  display: none; place-items: center;
  width: 46px; height: 46px; margin-left: auto; border-radius: 50%;
  color: var(--mx-navy); box-shadow: inset 0 0 0 1.5px var(--mx-line);
}
.mx-menu-btn .mx-i { width: 22px; height: 22px; }
.mx-menu-btn--light { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .25); }

.mx-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--mx-orange);
  transform-origin: 0 50%; scale: 0 1;
}
@supports (animation-timeline: scroll()) {
  .mx-progress { animation: mx-progress linear both; animation-timeline: scroll(root block); }
}
@keyframes mx-progress { to { scale: 1 1; } }

@media (max-width: 880px) {
  .mx-nav, .mx-header__cta { display: none; }
  .mx-menu-btn { display: inline-grid; }
}

/* ---------- Menú móvil (popover) ---------- */
.mx-menu {
  position: fixed; inset: 0;
  width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 14px var(--mx-gutter) 32px; border: 0;
  background: var(--mx-navy); color: #fff;
  opacity: 0; translate: 0 -16px;
  transition: opacity .35s var(--mx-ease), translate .5s var(--mx-ease), overlay .5s allow-discrete, display .5s allow-discrete;
}
.mx-menu:popover-open { display: flex; flex-direction: column; opacity: 1; translate: 0 0; }
@starting-style { .mx-menu:popover-open { opacity: 0; translate: 0 -16px; } }
.mx-menu::backdrop { background: transparent; }
.mx-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.mx-menu__top img { height: 20px; width: auto; }
.mx-menu__list { margin-top: 48px; counter-reset: none; }
.mx-menu__list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / .14);
  font-size: clamp(2rem, 8vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
}
.mx-menu__list span { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--mx-orange-300); }
.mx-menu__claim { margin-top: auto; color: rgb(255 255 255 / .7); }

/* ---------- Hero ---------- */
.mx-hero {
  position: relative;
  padding: calc(var(--mx-header-h) + clamp(28px, 6vw, 80px)) 0 clamp(64px, 9vw, 120px);
  background: radial-gradient(60% 55% at 88% 20%, #e9eefa 0%, rgb(233 238 250 / 0) 70%), var(--mx-paper);
  overflow: clip;
}
.mx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.mx-hero__title {
  margin: 22px 0 26px;
  font-size: clamp(2.4rem, 1rem + 4.9vw, 4.6rem);
  font-weight: 900; line-height: 1; letter-spacing: -.025em; text-transform: uppercase;
  color: var(--mx-navy);
}
.mx-hero__title > span { display: block; }
.mx-hero__title .mx-mark { margin-top: .12em; }
.mx-hero__lead { max-width: 33rem; font-size: var(--mx-step-1); line-height: 1.55; color: var(--mx-muted); }
.mx-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 36px; }

.mx-hero__scroll {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(40px, 6vw, 72px);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mx-muted);
}
.mx-hero__scroll .mx-i {
  width: 40px; height: 40px; padding: 10px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--mx-line); color: var(--mx-navy);
  animation: mx-nudge 2.4s var(--mx-ease) infinite;
}
@keyframes mx-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }

.mx-hero__media { position: relative; isolation: isolate; width: 100%; max-width: 560px; justify-self: end; }
.mx-hero__media::before {
  content: ""; position: absolute; z-index: -1;
  inset: 14% -7% -6% 18%;
  background: var(--mx-navy); border-radius: var(--mx-r-xl);
}
.mx-hero__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 707 / 800; border-radius: var(--mx-r-xl);
  background: var(--mx-mist);
  box-shadow: 0 40px 80px -40px rgb(0 41 122 / .45);
}
.mx-hero__frame picture, .mx-hero__frame img { width: 100%; height: 100%; }
.mx-hero__frame img { object-fit: cover; }
.mx-hero__lambda {
  position: absolute; right: -9%; bottom: 4%;
  width: 24%; height: 24%;
  fill: none; stroke: rgb(255 255 255 / .35); stroke-width: 1.5;
  pointer-events: none;
}

@media (max-width: 960px) {
  .mx-hero__grid { grid-template-columns: 1fr; }
  .mx-hero__media { justify-self: center; max-width: 480px; margin-right: 6%; }
  .mx-hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .mx-hero__media { margin-right: 0; width: calc(100% - 12px); justify-self: start; }
  .mx-hero__media::before { inset: 16% -12px -12px 24%; border-radius: var(--mx-r-lg); }
  .mx-hero__frame { border-radius: var(--mx-r-lg); }
  .mx-hero__lambda { display: none; }
  .mx-hero__actions .mx-btn { flex: 1 1 auto; }
}

/* ---------- Marquee ---------- */
.mx-marquee { overflow: clip; padding-block: 20px; background: var(--mx-navy); color: #fff; }
.mx-marquee__track { display: flex; width: max-content; animation: mx-marquee 38s linear infinite; }
.mx-marquee__list { display: flex; flex: none; }
.mx-marquee__list li {
  display: flex; align-items: center;
  font-size: clamp(1rem, .85rem + .6vw, 1.35rem); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.mx-marquee__list li::after {
  content: ""; width: 14px; height: 14px; margin-inline: clamp(22px, 3vw, 40px);
  background: var(--mx-orange);
  clip-path: polygon(0 100%, 37% 0, 63% 0, 100% 100%, 74% 100%, 50% 35%, 26% 100%);
}
@keyframes mx-marquee { to { translate: -50% 0; } }

/* ---------- Secciones ---------- */
.mx-section { position: relative; padding-block: var(--mx-section); }
.mx-section--tight-end { padding-bottom: 0; }
.mx-section--mist { background: var(--mx-mist); }
.mx-section--navy { background: var(--mx-navy); color: #fff; overflow: clip; }

/* ---------- La marca ---------- */
.mx-manifesto { overflow: clip; }
.mx-manifesto__lambda {
  position: absolute; left: -8%; top: -10%;
  width: min(60vw, 640px); height: min(60vw, 640px);
  fill: none; stroke: rgb(0 41 122 / .07); stroke-width: .8;
  pointer-events: none;
}
.mx-manifesto__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(48px, 6vw, 88px);
}
.mx-manifesto__title {
  margin-top: 20px;
  font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.025em;
  color: var(--mx-navy);
}
.mx-manifesto__title em { font-style: normal; color: var(--mx-orange); }
.mx-manifesto__text p { font-size: 1.05rem; color: var(--mx-muted); }
.mx-manifesto__text p + p { margin-top: 16px; }

@media (max-width: 1024px) {
  .mx-manifesto__grid { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Bento ---------- */
.mx-bento {
  display: grid; gap: clamp(12px, 1.4vw, 20px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, auto);
  grid-template-areas: "a a a b b b" "c c d d e e";
}
.mx-bento__a { grid-area: a; }
.mx-bento__b { grid-area: b; }
.mx-bento__c { grid-area: c; }
.mx-bento__d { grid-area: d; }
.mx-bento__e { grid-area: e; }

.mx-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 32px;
  padding: clamp(22px, 2.2vw, 32px);
  border-radius: var(--mx-r-lg);
}
.mx-card__content { position: relative; z-index: 1; margin-top: auto; }
.mx-card h3 { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.mx-card p { margin-top: 10px; max-width: 30ch; font-size: .98rem; line-height: 1.5; }
.mx-card__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; }
.mx-card__icon .mx-i { width: 26px; height: 26px; }

.mx-card--navy { background: var(--mx-navy); color: #fff; }
.mx-card--navy .mx-card__icon { background: rgb(255 255 255 / .1); color: #fff; }
.mx-card--navy p { color: rgb(255 255 255 / .78); }
.mx-card__lambda {
  position: absolute; right: -6%; bottom: -30%; z-index: 0;
  height: 120%; aspect-ratio: 1;
  fill: none; stroke: rgb(255 255 255 / .12); stroke-width: 1.2;
}

.mx-card--sand { background: var(--mx-tint-cafe); color: var(--mx-navy); }
.mx-card--sand .mx-card__icon { background: #fff; color: var(--mx-navy); }
.mx-card--sand p, .mx-card--white p { color: var(--mx-muted); }

.mx-card--orange { background: var(--mx-orange); color: var(--mx-navy-900); }
.mx-card--orange .mx-card__icon { background: var(--mx-navy-900); color: var(--mx-orange); }
.mx-card--orange p { color: var(--mx-navy-900); }

.mx-card--white { background: #fff; color: var(--mx-navy); box-shadow: inset 0 0 0 1px var(--mx-line); }
.mx-card--white .mx-card__icon { background: var(--mx-mist); color: var(--mx-navy); }

@media (max-width: 900px) {
  .mx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); grid-template-areas: "a a" "b c" "d e"; }
}
@media (max-width: 600px) {
  .mx-bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e"; grid-auto-rows: auto; }
  .mx-card { min-height: 200px; }
}

/* ---------- Categorías ---------- */
.mx-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mx-cat {
  position: relative; overflow: hidden;
  display: block; height: 100%;
  padding: 30px 28px 34px;
  border-radius: var(--mx-r-lg);
  background: #fff; box-shadow: inset 0 0 0 1px var(--mx-line);
  transition: translate .4s var(--mx-ease), box-shadow .4s var(--mx-ease);
}
.mx-cat:hover { translate: 0 -4px; box-shadow: var(--mx-shadow); }
.mx-cat__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 44px;
  border-radius: 18px; background: var(--mx-mist); color: var(--mx-navy);
  transition: background-color .3s, color .3s;
}
.mx-cat:hover .mx-cat__icon { background: var(--mx-navy); color: #fff; }
.mx-cat__icon .mx-i { width: 34px; height: 34px; stroke-width: 1.5; }
.mx-cat h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; color: var(--mx-navy); }
.mx-cat p { margin-top: 10px; font-size: .95rem; color: var(--mx-muted); }
.mx-cat__num {
  position: absolute; top: 26px; right: 26px;
  font-size: .85rem; font-weight: 800; letter-spacing: .1em; color: var(--mx-orange-700);
}
.mx-cat::after {
  content: ""; position: absolute; left: 28px; bottom: 0;
  width: 40px; height: 4px; border-radius: 4px 4px 0 0;
  background: var(--mx-orange); transition: width .5s var(--mx-ease);
}
.mx-cat:hover::after { width: calc(100% - 56px); }

@media (max-width: 1024px) { .mx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .mx-cats { grid-template-columns: 1fr; gap: 14px; }
  .mx-cat { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 22px 22px 26px; }
  .mx-cat__icon { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
  .mx-cat__icon .mx-i { width: 30px; height: 30px; }
  .mx-cat h3 { padding-right: 2rem; }
  .mx-cat p { margin-top: 4px; }
  .mx-cat__num { top: 20px; right: 20px; }
  .mx-cat::after { left: 22px; }
}

/* ---------- Destacados ---------- */
.mx-seg {
  position: relative; display: inline-flex; max-width: 100%;
  padding: 5px; border-radius: 999px;
  background: var(--mx-mist);
  overflow-x: auto; scrollbar-width: none;
}
.mx-seg::-webkit-scrollbar { display: none; }
.mx-seg button {
  position: relative; z-index: 1; flex: none;
  padding: 11px 18px; border-radius: 999px;
  font-size: .9rem; font-weight: 700; color: var(--mx-ink);
  transition: color .35s var(--mx-ease);
}
.mx-seg button[aria-pressed="true"] { color: #fff; }
.mx-seg:not(.is-ready) button[aria-pressed="true"] { background: var(--mx-navy); }
.mx-seg__indicator {
  position: absolute; top: 5px; bottom: 5px; left: 0;
  width: var(--w, 0); translate: var(--x, 0) 0;
  border-radius: 999px; background: var(--mx-navy);
  transition: translate .5s var(--mx-ease), width .5s var(--mx-ease);
}

.mx-rail__track {
  --gap: clamp(14px, 1.6vw, 24px);
  --peek: 3.35;
  --bleed: max(var(--mx-gutter), calc((var(--mx-vw, 100vw) - var(--mx-container)) / 2));
  display: flex; gap: var(--gap);
  margin-inline: calc(-1 * var(--bleed)); padding: 8px var(--bleed) 32px;
  scroll-padding-inline: var(--bleed);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.mx-rail__track::-webkit-scrollbar { display: none; }
.mx-js .mx-rail__track { cursor: grab; }
.mx-rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.mx-rail__track.is-dragging .mx-product { pointer-events: none; }

.mx-product { flex: 0 0 calc((100% - var(--gap) * 3) / var(--peek)); scroll-snap-align: start; }
.mx-product[hidden] { display: none; }
.mx-product__media {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 5 / 6; border-radius: var(--mx-r-lg);
  background: var(--tint, var(--mx-mist));
}
.mx-product[data-cat="cafe"] { --tint: var(--mx-tint-cafe); }
.mx-product[data-cat="limpieza"] { --tint: var(--mx-tint-limpieza); }
.mx-product[data-cat="cocina"] { --tint: var(--mx-tint-cocina); }
.mx-product[data-cat="clima"] { --tint: var(--mx-tint-clima); }
.mx-product__media picture, .mx-product__media img { width: 100%; height: 100%; }
.mx-product__media img { object-fit: contain; padding: 6% 8% 9%; mix-blend-mode: multiply; transition: scale .9s var(--mx-ease); }
.mx-product:hover .mx-product__media img { scale: 1.05; }
.mx-product__cat {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  padding: 7px 12px; border-radius: 999px;
  background: rgb(255 255 255 / .75);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-navy);
}
.mx-product__body { padding: 20px 4px 0; }
.mx-product__type { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mx-muted); }
.mx-product__name { margin-top: 6px; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.7rem); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; color: var(--mx-navy); }
.mx-product__line { margin-top: 6px; font-size: .95rem; color: var(--mx-muted); }

.mx-rail__controls { display: flex; align-items: center; gap: 14px; }
.mx-rail__count { font-size: .95rem; font-weight: 800; letter-spacing: .08em; white-space: nowrap; color: var(--mx-muted); font-variant-numeric: tabular-nums; }
.mx-rail__count [data-rail-current] { color: var(--mx-navy); }
.mx-rail__bar { position: relative; flex: 1; height: 2px; margin-right: 10px; border-radius: 2px; background: var(--mx-line); overflow: hidden; }
.mx-rail__bar i { position: absolute; inset-block: 0; left: 0; width: var(--w, 30%); translate: var(--x, 0) 0; border-radius: inherit; background: var(--mx-navy); }

@media (max-width: 1023px) { .mx-rail__track { --peek: 2.3; } }
@media (max-width: 640px) {
  .mx-rail__track { --gap: 14px; --peek: 1.3; }
  .mx-head--split .mx-seg { margin-inline: calc(-1 * var(--mx-gutter)); padding-inline: var(--mx-gutter); border-radius: 0; background: none; max-width: none; width: calc(100% + var(--mx-gutter) * 2); }
  .mx-head--split .mx-seg button { box-shadow: inset 0 0 0 1.5px var(--mx-line); margin-right: 6px; }
  .mx-head--split .mx-seg button[aria-pressed="true"] { box-shadow: none; }
  .mx-rail__bar { margin-right: 0; }
  .mx-round { width: 46px; height: 46px; }
}

/* View Transitions al filtrar */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--mx-ease); }

/* ---------- Dónde comprar ---------- */
.mx-seg--paper { background: #fff; box-shadow: inset 0 0 0 1px var(--mx-line); }
.mx-seg button[aria-selected="true"] { color: #fff; }
.mx-seg:not(.is-ready) button[aria-selected="true"] { background: var(--mx-navy); }

.mx-buy[hidden] { display: none; }
.mx-buy + .mx-buy { margin-top: 20px; }
.mx-stores { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.mx-store {
  display: flex; flex-direction: column; height: 100%;
  padding: 12px 12px 18px;
  border-radius: var(--mx-r-lg);
  background: #fff; box-shadow: inset 0 0 0 1px var(--mx-line);
  transition: translate .4s var(--mx-ease), box-shadow .4s var(--mx-ease);
}
a.mx-store:hover { translate: 0 -4px; box-shadow: var(--mx-shadow); }
.mx-store__logo { display: grid; place-items: center; height: clamp(112px, 11vw, 148px); padding-inline: 12px; }
.mx-store__logo img { width: auto; max-width: 100%; height: var(--h, 32px); object-fit: contain; }
.mx-store__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding: 14px 8px 0;
  border-top: 1px solid var(--mx-line);
  font-size: .88rem; font-weight: 700; color: var(--mx-navy);
}
.mx-store__meta .mx-i { width: 1.1em; height: 1.1em; color: var(--mx-orange-700); transition: rotate .4s var(--mx-ease); }
.mx-store:hover .mx-store__meta .mx-i { rotate: 45deg; }

.mx-soon {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--mx-r-lg);
  background: #fff; box-shadow: inset 0 0 0 1px var(--mx-line);
}
.mx-soon__tag {
  padding: 7px 12px; border-radius: 999px;
  background: var(--mx-tint-clima);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-orange-700);
}
.mx-soon h3 { margin-top: 18px; font-size: var(--mx-step-2); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; color: var(--mx-navy); }
.mx-soon p { margin-top: 10px; max-width: 34rem; color: var(--mx-muted); }

@media (max-width: 1100px) { .mx-stores { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .mx-stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-stores > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mx-store__logo { height: 104px; }
  .mx-store { padding-inline: 8px; }
  .mx-store__meta { padding-inline: 2px; font-size: .72rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
}

/* ---------- Cierre ---------- */
.mx-closing { position: relative; overflow: clip; padding-block: clamp(88px, 12vw, 160px); background: var(--mx-navy); color: #fff; text-align: center; }
.mx-closing__lambda {
  position: absolute; left: 50%; bottom: -30%; translate: -50% 0;
  width: min(90vw, 900px); height: min(90vw, 900px);
  fill: rgb(255 255 255 / .045); pointer-events: none;
}
.mx-closing__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.mx-closing__title {
  display: flex; flex-direction: column; align-items: center; gap: .1em;
  margin: 22px 0 44px;
  font-size: clamp(2.6rem, 1.2rem + 5.5vw, 5.4rem);
  font-weight: 900; line-height: 1; letter-spacing: -.025em; text-transform: uppercase;
}

/* ---------- Footer ---------- */
.mx-footer { padding: clamp(56px, 7vw, 88px) 0 28px; background: var(--mx-navy-900); color: rgb(255 255 255 / .72); font-size: .95rem; }
.mx-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.mx-footer__logo { width: auto; height: 26px; }
.mx-footer__brand p { margin-top: 20px; max-width: 22rem; }
.mx-footer__col h2 { margin-bottom: 18px; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.mx-footer__col li + li { margin-top: 10px; }
.mx-footer__col a { transition: color .2s; }
.mx-footer__col a:hover { color: #fff; }
.mx-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / .12);
  font-size: .85rem; color: rgb(255 255 255 / .55);
}
@media (max-width: 880px) {
  .mx-footer__grid { grid-template-columns: 1fr 1fr; }
  .mx-footer__brand { grid-column: 1 / -1; }
}

/* =========================================================================
   Movimiento (solo si el usuario no pidió reducirlo)
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada del hero al cargar */
  .mx-intro { animation: mx-fade-up 1s var(--mx-ease) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }

  /* Aparición de secciones con scroll-driven animations */
  @supports (animation-timeline: view()) {
    [data-reveal] {
      animation: mx-reveal var(--mx-ease) both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }

  /* Respaldo con IntersectionObserver (lo activa main.js si no hay scroll-driven) */
  .mx-io [data-reveal] { opacity: 0; translate: 0 40px; transition: opacity .9s var(--mx-ease), translate 1s var(--mx-ease); transition-delay: var(--d, 0ms); }
  .mx-io [data-reveal].is-in { opacity: 1; translate: 0 0; }
}

@keyframes mx-fade-up { from { opacity: 0; transform: translateY(24px); } }
@keyframes mx-reveal { from { opacity: 0; translate: 0 48px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mx-marquee__track, .mx-hero__scroll .mx-i { animation: none; }
  ::view-transition-group(*) { animation: none; }
}
