/* =====================================================================
   TELOLOAPAN MEAT MARKET — Modern Mexican Grocery Experience
   Sistema de diseño "LA PLAZA" · v2 — rediseño premium del Home
   Colores derivados por muestreo directo del logotipo oficial.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------------- */
:root {
  /* Marca — muestreados del logo oficial */
  --tmm-red:        #D22838;
  --tmm-red-400:    #E84A58;
  --tmm-red-600:    #B81F2E;
  --tmm-red-700:    #961824;
  --tmm-green:      #1E8343;
  --tmm-green-400:  #35A75E;
  --tmm-green-600:  #186B37;
  --tmm-green-900:  #123D25;
  --tmm-amber:      #E8A33D;
  --tmm-amber-400:  #F2BC6A;
  --tmm-amber-600:  #C9862A;

  /* Superficies — crema cálido, nunca blanco puro */
  --surface:        #FDFAF6;
  --surface-2:      #F7F0E7;
  --surface-3:      #EFE3D5;
  --surface-card:   #FFFFFF;
  --surface-dark:   #14100D;
  --surface-dark-2: #0C0908;

  /* Texto — negro cálido, nunca negro puro */
  --ink:            #171310;
  --ink-2:          #5C5048;
  --ink-3:          #6E6157;   /* ≥ 4.5:1 sobre blanco y sobre crema (texto pequeño) */
  --ink-inv:        #FDF8F3;
  --ink-inv-2:      rgba(253, 248, 243, .74);
  --ink-inv-3:      rgba(253, 248, 243, .52);

  /* Semántica */
  --cta:            var(--tmm-red);
  --cta-hover:      var(--tmm-red-600);
  --line:           rgba(23, 19, 16, .10);
  --line-2:         rgba(23, 19, 16, .16);
  --line-strong:    rgba(23, 19, 16, .26);
  --line-inv:       rgba(253, 248, 243, .14);

  /* Tipografía */
  --font-display: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif:   "Fraunces", Georgia, "Times New Roman", serif;

  /* Escala tipográfica fluida — más presencia editorial */
  --fs-hero:  clamp(3rem, 1.1rem + 7.6vw, 7.25rem);
  --fs-h2:    clamp(2rem, 1.3rem + 2.9vw, 3.75rem);
  --fs-h3:    clamp(1.25rem, 1.05rem + .85vw, 1.75rem);
  --fs-lead:  clamp(1.05rem, .98rem + .5vw, 1.35rem);
  --fs-body:  1rem;
  --fs-sm:    .9rem;
  --fs-xs:    .8rem;
  --fs-2xs:   .72rem;

  /* Espaciado (base 8) */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;
  --section-y: clamp(4rem, 2.2rem + 7vw, 8.5rem);

  /* Formas */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 32px;  --r-pill: 999px;

  /* Sombras — cálidas, en capas */
  --sh-1: 0 1px 2px rgba(40,26,18,.05), 0 2px 8px rgba(40,26,18,.05);
  --sh-2: 0 2px 6px rgba(40,26,18,.05), 0 10px 26px rgba(40,26,18,.07);
  --sh-3: 0 6px 14px rgba(40,26,18,.08), 0 16px 32px rgba(40,26,18,.11);
  --sh-4: 0 10px 22px rgba(40,26,18,.11), 0 24px 48px rgba(40,26,18,.16);
  --sh-red: 0 8px 24px rgba(210,40,56,.30);
  --sh-green: 0 8px 24px rgba(30,131,67,.28);

  /* Movimiento */
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --container-narrow: 880px;
  --header-h: 78px;

  /* Textura de grano — SVG inline, sin petición externa */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------
   2. RESET Y BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  /* Ojo: NO poner overflow-x aquí. En la raíz, `clip`/`hidden` se propaga al
     viewport y deja la página sin scroll vertical. El recorte horizontal se
     hace en `body`, y la causa real del desbordamiento ya se corrigió
     limitando las animaciones laterales a pantallas anchas. */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: var(--tmm-red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--tmm-green);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.section--ink :focus-visible,
.hero :focus-visible,
.footer :focus-visible { outline-color: var(--tmm-amber); }

.skip-link {
  position: absolute; left: 8px; top: -70px; z-index: 2000;
  background: var(--tmm-green-900); color: #fff;
  padding: .75rem 1.25rem; border-radius: var(--r-sm); font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; }

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

/* ---------------------------------------------------------------------
   3. LAYOUT
   --------------------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: clamp(1.15rem, .5rem + 2.6vw, 2.75rem);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem); }
.section--cream { background: var(--surface-2); }
.section--dark  { background: var(--tmm-green-900); color: var(--ink-inv); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--ink   { background: var(--surface-dark); color: var(--ink-inv); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

/* Grano sutil sobre superficies oscuras */
.section--dark::before, .section--ink::before, .hero__grain, .footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--grain);
  background-size: 140px 140px;
  /* Sin mix-blend-mode: el modo de fusión obliga al navegador a releer y
     recomponer el fondo en cada repintado de una superficie enorme. */
  opacity: .05; pointer-events: none;
}
.section--dark > *, .section--ink > * { position: relative; z-index: 1; }

/* Encabezado de sección */
.sec-head { margin-bottom: clamp(2.25rem, 1rem + 3.4vw, 4rem); }
.sec-head--center { text-align: center; max-width: 780px; margin-inline: auto; }
.sec-head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-5); flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--tmm-red); margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; flex: none;
  background: var(--tmm-green); transform: rotate(45deg);
}
.eyebrow::after {
  content: ""; width: clamp(24px, 4vw, 52px); height: 1px; flex: none;
  background: currentColor; opacity: .35;
}
.sec-head--center .eyebrow { justify-content: center; }
.section--dark .eyebrow, .section--ink .eyebrow, .hero .eyebrow { color: var(--tmm-amber); }
.section--dark .eyebrow::before, .section--ink .eyebrow::before { background: var(--tmm-amber); }

.sec-title { font-size: var(--fs-h2); letter-spacing: -.032em; }
.sec-title em {
  font-family: var(--font-serif); font-style: normal; font-weight: 600;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  color: var(--tmm-red); letter-spacing: -.02em;
}
.section--dark .sec-title em, .section--ink .sec-title em { color: var(--tmm-amber); }

.sec-sub {
  font-size: var(--fs-lead); color: var(--ink-2);
  margin-top: var(--sp-4); max-width: 60ch; line-height: 1.6;
}
.sec-head--center .sec-sub { margin-inline: auto; }
.section--dark .sec-sub, .section--ink .sec-sub { color: var(--ink-inv-2); }

/* Rombo — firma del sistema, tomada del logo */
.diamond {
  display: inline-block; width: 10px; height: 10px;
  background: currentColor; transform: rotate(45deg);
}

/* Regla decorativa con rombo al centro */
.rule-diamond {
  display: flex; align-items: center; gap: .75rem;
  margin-block: var(--sp-5);
}
.rule-diamond::before, .rule-diamond::after {
  content: ""; height: 1px; flex: 1; background: var(--line-2);
}
.rule-diamond i {
  width: 8px; height: 8px; background: var(--tmm-red);
  transform: rotate(45deg); flex: none;
}

/* ---------------------------------------------------------------------
   4. BOTONES
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--cta);
  --btn-fg: #fff;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: .92rem;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  min-height: 54px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent;
  cursor: pointer; text-align: center;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease);
}
/* Brillo que barre el botón al pasar el cursor */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.24) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--sh-red); background: var(--cta-hover); }
.btn:active { transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }

.btn--green { --btn-bg: var(--tmm-green); }
.btn--green:hover { background: var(--tmm-green-600); box-shadow: var(--sh-green); }

.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--outline:hover {
  background: var(--ink); color: var(--surface);
  border-color: var(--ink); box-shadow: var(--sh-3);
}

.btn--light {
  --btn-bg: rgba(255,255,255,.16); --btn-fg: #fff;
  border-color: rgba(255,255,255,.48);
}
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: var(--sh-4); }

.btn--sm { padding: .62rem 1.15rem; min-height: 44px; font-size: .78rem; letter-spacing: .04em; }
.btn--block { width: 100%; }

/* Enlace con flecha */
.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: .88rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tmm-red); padding-block: .35rem;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { gap: 1rem; color: var(--tmm-red-700); }
.link-arrow svg { width: 17px; height: 17px; }
.section--dark .link-arrow, .section--ink .link-arrow { color: var(--tmm-amber); }

/* ---------------------------------------------------------------------
   5. HEADER
   --------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 900;
  /* Sin backdrop-filter: desenfocar el fondo obliga a re-renderizar toda la
     franja del header en cada fotograma sobre el hero animado. Un fondo casi
     opaco se ve prácticamente igual y no cuesta nada. */
  background: rgba(253,250,246,.94);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease), background-color .4s var(--ease),
              border-color .4s var(--ease);
}
.header.is-stuck {
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(40,26,18,.09);
  background: rgba(253,250,246,.985);
  border-bottom-color: var(--line);
}

/* Barra de utilidad — se colapsa al hacer scroll */
.utilbar {
  background: var(--tmm-green-900); color: var(--ink-inv-2);
  font-size: var(--fs-2xs);
  overflow: hidden;
}
/* La barra de utilidad NO se colapsa al hacer scroll.
   Colapsarla cambiaba la altura del header, lo que desplazaba 44 px toda la
   página e invalidaba el rasterizado del viewport completo: un tirón medido de
   203 ms justo al empezar a hacer scroll. Sin colapso baja a 39 ms.
   La sensación de "header compacto" se consigue igual con la escala del
   logotipo y el cambio de fondo y sombra, que son de compositor y no tocan
   el layout. */
.utilbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 40px; flex-wrap: wrap;
}
.utilbar__note { display: inline-flex; align-items: center; gap: .5rem; letter-spacing: .04em; }
.utilbar__note svg { width: 15px; height: 15px; color: var(--tmm-amber); }
.utilbar__right { display: flex; align-items: center; gap: var(--sp-4); }
.utilbar a { transition: color .2s var(--ease); }
.utilbar a:hover { color: #fff; }

/* Selector de idioma */
.lang {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--r-pill);
  overflow: hidden;
}
.lang__btn {
  padding: .22rem .7rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; color: var(--ink-inv-2);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang__btn[aria-pressed="true"] { background: var(--tmm-amber); color: var(--ink); }
.lang__btn:hover:not([aria-pressed="true"]) { background: rgba(255,255,255,.16); color: #fff; }

/* El header usa un contenedor más ancho que el resto del contenido: el logo
   va al extremo izquierdo y las acciones al derecho, mientras el contenido de
   las secciones sigue centrado a 1280px. */
.header > .container { max-width: var(--container-wide); }

/* Barra principal — se compacta al hacer scroll */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img {
  height: 46px; width: auto;
  transform-origin: left center;
  /* `transform` no provoca layout; `height` sí. */
  transition: transform .4s var(--ease);
}
.header.is-stuck .brand img { transform: scale(.84); }

.nav { display: none; }
.nav__list {
  display: flex; align-items: center; flex-wrap: nowrap;
  gap: clamp(.3rem, .1rem + .65vw, .95rem);
}
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .6rem .25rem; color: var(--ink);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: .1rem;
  width: 100%; height: 2px; background: var(--tmm-red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--tmm-red); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: none; align-items: center; gap: var(--sp-3); }

/* Botón hamburguesa */
.burger {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 48px; height: 48px; padding: 0 11px;
  border-radius: var(--r-sm); flex: none;
}
.burger span {
  display: block; height: 2.5px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .4s var(--ease), opacity .25s var(--ease), width .4s var(--ease);
}
.burger span:nth-child(2) { width: 70%; }
.burger:hover span:nth-child(2) { width: 100%; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Panel móvil */
.mobile-nav {
  position: fixed; inset: 0; z-index: 950;
  background: var(--surface);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 28px) 0 2rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .5s var(--ease-out), visibility .5s;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; letter-spacing: -.015em;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.mobile-nav__link:hover { color: var(--tmm-red); padding-left: 6px; }
.mobile-nav.is-open .mobile-nav__link {
  animation: mnav-in .55s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.mobile-nav__link svg { width: 20px; height: 20px; color: var(--tmm-red); }
@keyframes mnav-in { to { opacity: 1; transform: translateY(0); } }

.mobile-nav__actions { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.mobile-nav__foot {
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  font-size: var(--fs-sm); color: var(--ink-2);
}

body.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------------
   6. HERO — cinematográfico
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 980px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--surface-dark);
  isolation: isolate;
  padding-bottom: clamp(4.5rem, 3rem + 7vw, 9rem);
}

/* Tres capas: parallax → entrada → Ken Burns. Una transformación por capa. */
.hero__media {
  position: absolute; inset: -6% 0 -6% 0; z-index: -3;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
/* La entrada del hero es 100 % CSS: arranca sola al cargar la página.
   No depende de JavaScript, así que el hero nunca puede quedar invisible. */
.hero__zoom { width: 100%; height: 100%; }
.js-reveal .hero__zoom { animation: hero-media-in 1.9s var(--ease-out) both; }
@keyframes hero-media-in {
  from { opacity: 0; transform: scale(1.045); }
  to   { opacity: 1; transform: scale(1); }
}
.hero__zoom picture, .hero__zoom img { width: 100%; height: 100%; }
.hero__media img {
  object-fit: cover; object-position: center 55%;
  animation: ken-burns 34s var(--ease-in-out) infinite alternate;
  animation-play-state: var(--play-state, running);
}
@keyframes ken-burns {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to   { transform: scale(1.15) translate3d(-1.5%, -1.5%, 0); }
}

.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(12,9,8,.72) 0%, rgba(12,9,8,.18) 26%, rgba(12,9,8,.50) 62%, rgba(12,9,8,.96) 100%),
    linear-gradient(96deg, rgba(12,9,8,.88) 0%, rgba(12,9,8,.42) 46%, rgba(12,9,8,.05) 78%),
    radial-gradient(120% 85% at 8% 88%, rgba(150,24,36,.34) 0%, transparent 62%);
}
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: .05; }

/* Elementos decorativos flotantes */
.hero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__dot {
  position: absolute; display: block;
  background: var(--tmm-amber);
  transform: translateY(0) rotate(45deg);
  opacity: 0; border-radius: 2px;
  will-change: transform;
}
.js-reveal .hero__dot { animation: deco-in .9s var(--ease-out) forwards, float-dot 9s var(--ease-in-out) 1s infinite alternate; }
:root:not(.js-reveal) .hero__dot { opacity: .85; }
.hero__dot--1 { width: 13px; height: 13px; top: 24%; right: 13%; animation-delay: 1.1s, 2s; }
.hero__dot--2 { width: 8px;  height: 8px;  top: 62%; right: 24%; background: var(--tmm-red-400); animation-delay: 1.3s, 2.4s; }
.hero__dot--3 { width: 18px; height: 18px; top: 40%; right: 7%;  background: transparent; border: 2px solid rgba(232,163,61,.55); animation-delay: 1.5s, 2.8s; }
.hero__dot--4 { width: 6px;  height: 6px;  top: 78%; right: 39%; background: var(--tmm-green-400); animation-delay: 1.7s, 3.2s; }
@keyframes deco-in { to { opacity: .85; } }
/* Una sola propiedad `transform` por keyframe. Mezclar `transform` con las
   propiedades independientes `translate`/`rotate` impide que el compositor
   se haga cargo y empuja la animación al hilo principal. */
@keyframes float-dot {
  from { transform: translateY(0) rotate(45deg); }
  to   { transform: translateY(-16px) rotate(45deg); }
}
@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-18px); }
}

/* Línea vertical decorativa junto al contenido */
.hero__rule {
  position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(232,163,61,.55), transparent);
  transform-origin: top;
}
.js-reveal .hero__rule { animation: rule-in 1.4s var(--ease-out) .5s both; }
@keyframes rule-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero__inner { width: 100%; position: relative; z-index: 2; }
.hero__content { max-width: 900px; color: #fff; position: relative; padding-left: clamp(0px, 2vw, 34px); }

.hero__badge {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.30);
  padding: .55rem 1.15rem; border-radius: var(--r-pill);
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.hero__badge .diamond { color: var(--tmm-amber); width: 8px; height: 8px; }

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800; line-height: .86;
  letter-spacing: -.045em; color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,.4);
}
.hero__line { display: block; }
.hero__title em {
  display: block; font-style: normal;
  font-family: var(--font-serif);
  font-weight: 600; font-variation-settings: "SOFT" 80, "WONK" 1;
  color: var(--tmm-amber);
  letter-spacing: -.03em;
  line-height: .95;
}
.hero__text {
  font-size: var(--fs-lead); color: rgba(255,255,255,.88);
  max-width: 54ch; margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); line-height: 1.62;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
}

/* Entrada escalonada — sólo si el JS confirmó que puede animar */
.js-reveal .hero__anim {
  animation: hero-in 1s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.75rem; z-index: 2;
  transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .6rem;
  color: rgba(255,255,255,.66); font-size: .66rem;
  letter-spacing: .28em; text-transform: uppercase;
  transition: color .3s var(--ease);
}
.hero__scroll:hover { color: #fff; }
.hero__scroll::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), transparent);
  transform-origin: top;
  will-change: transform, opacity;
  animation: scroll-pulse 2.4s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: .2; transform: scaleY(.5); }
  50%     { opacity: 1;  transform: scaleY(1); }
}

/* ---------------------------------------------------------------------
   7. BARRA DE CONFIANZA — tarjeta flotante que monta sobre el hero
   --------------------------------------------------------------------- */
.trust {
  position: relative; z-index: 5;
  /* clamp() exige mínimo ≤ máximo; con negativos el mínimo es el más negativo. */
  margin-top: clamp(-5.5rem, -2rem - 3vw, -3rem);
  padding-bottom: var(--section-y);
  background: linear-gradient(180deg, transparent 0 50%, var(--surface) 50% 100%);
}
.trust__card {
  background: var(--surface-card);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-4);
  border: 1px solid var(--line);
  overflow: hidden;
}
.trust__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.trust__item {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) var(--sp-4);
  text-align: center; position: relative;
  transition: background-color .35s var(--ease);
}
.trust__item:hover { background: var(--surface-2); }
/* Separadores elegantes con rombo */
.trust__item + .trust__item::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--line-2);
}
.trust__item + .trust__item::after {
  content: ""; position: absolute; left: -3px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px;
  background: var(--tmm-amber); transform: rotate(45deg);
  opacity: 0; transition: opacity .4s var(--ease);
}
.trust__card.is-visible .trust__item + .trust__item::after { opacity: 1; }

.trust__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.9rem);
  line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.trust__item:hover .trust__num { color: var(--tmm-red); transform: translateY(-3px); }
.trust__num small { font-size: .45em; font-weight: 700; letter-spacing: -.02em; }
.trust__label {
  font-size: var(--fs-2xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); margin-top: .6rem; font-weight: 600;
}
.trust__rule {
  width: 26px; height: 2px; background: var(--tmm-red);
  margin: .85rem auto 0; border-radius: 2px;
  transform: scaleX(0); transition: transform .5s var(--ease) var(--rd, 0ms);
}
.trust__card.is-visible .trust__rule { transform: scaleX(1); }

/* ---------------------------------------------------------------------
   8. ESPECIALES — composición editorial
   --------------------------------------------------------------------- */
.specials__meta {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(30,131,67,.10); color: var(--tmm-green-600);
  font-family: var(--font-display); font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .5rem 1.05rem; border-radius: var(--r-pill);
  margin-top: var(--sp-4);
  border: 1px solid rgba(30,131,67,.2);
}
.specials__meta svg { width: 15px; height: 15px; }

.deals {
  display: grid; gap: clamp(.75rem, .4rem + 1vw, 1.35rem);
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
}

.deal {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out),
              border-color .45s var(--ease);
}
.deal:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-4);
  border-color: transparent;
}
.deal__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--surface-3);
}
.deal__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.deal:hover .deal__media img { transform: scale(1.09); }
/* Velo que aparece al pasar el cursor */
.deal__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12,9,8,.45) 100%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.deal:hover .deal__media::after { opacity: 1; }

.deal__badge {
  position: absolute; top: .85rem; left: .85rem; z-index: 2;
  background: var(--tmm-red); color: #fff;
  font-family: var(--font-display); font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: var(--r-pill);
  box-shadow: 0 4px 14px rgba(150,24,36,.35);
  transition: transform .4s var(--ease);
}
.deal:hover .deal__badge { transform: translateY(-2px) scale(1.04); }
.deal__badge--green { background: var(--tmm-green); box-shadow: 0 4px 14px rgba(24,107,55,.35); }
.deal__badge--amber { background: var(--tmm-amber); color: var(--ink); box-shadow: 0 4px 14px rgba(201,134,42,.35); }

.deal__body {
  padding: clamp(.9rem, .7rem + .6vw, 1.35rem);
  display: flex; flex-direction: column; flex: 1; gap: .35rem;
}
.deal__dept {
  font-size: .66rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}
.deal__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.08rem; line-height: 1.2; letter-spacing: -.02em;
  transition: color .3s var(--ease);
}
.deal:hover .deal__name { color: var(--tmm-red); }
.deal__unit { font-size: var(--fs-2xs); color: var(--ink-2); }

.deal__price {
  display: flex; align-items: baseline; gap: .55rem;
  margin-top: auto; padding-top: .75rem; flex-wrap: wrap;
}
.deal__now {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.85rem, 1.5rem + 1.2vw, 2.35rem);
  line-height: .95; color: var(--tmm-red);
  font-variant-numeric: tabular-nums; letter-spacing: -.045em;
}
.deal__was {
  font-size: .95rem; color: var(--ink-3);
  text-decoration: line-through; font-variant-numeric: tabular-nums;
}

/* — Tarjeta protagonista — */
.deal--hero .deal__media { aspect-ratio: 16 / 11; }
.deal--hero .deal__body { padding: clamp(1.25rem, 1rem + 1.4vw, 2.25rem); gap: .5rem; }
.deal--hero .deal__name {
  font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.4rem);
  line-height: 1.05; letter-spacing: -.035em;
}
.deal--hero .deal__dept { font-size: .72rem; color: var(--tmm-red); }
.deal--hero .deal__now { font-size: clamp(2.6rem, 1.9rem + 2.8vw, 4rem); }
.deal--hero .deal__was { font-size: 1.25rem; }
.deal--hero .deal__unit { font-size: var(--fs-sm); }
.deal--hero .deal__badge {
  font-size: .74rem; padding: .5rem 1rem;
  top: 1.1rem; left: 1.1rem;
}

/* — Bloque promocional — */
.deal--promo {
  background: var(--tmm-green-900); color: #fff;
  border-color: transparent; overflow: hidden;
}
.deal--promo::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); background-size: 140px;
  opacity: .06; pointer-events: none;
}
.deal--promo::after {
  content: ""; position: absolute; right: -30px; bottom: -30px;
  width: 130px; height: 130px; border: 1px solid rgba(232,163,61,.28);
  transform: rotate(45deg); pointer-events: none;
  transition: transform .8s var(--ease-out);
}
.deal--promo:hover::after { transform: rotate(75deg) scale(1.08); }
.deal--promo .deal__body { justify-content: center; padding: clamp(1.35rem, 1rem + 1.6vw, 2.25rem); position: relative; z-index: 1; }
.deal--promo .deal__name { color: #fff; font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem); line-height: 1.15; }
.deal--promo:hover .deal__name { color: #fff; }
.deal--promo .deal__dept { color: var(--tmm-amber); }
.deal--promo p { color: var(--ink-inv-2); font-size: var(--fs-sm); margin-top: .35rem; line-height: 1.55; }

.specials__note {
  margin-top: var(--sp-5); font-size: var(--fs-2xs);
  color: var(--ink-3); text-align: center; max-width: 68ch;
  margin-inline: auto; line-height: 1.6;
}

/* ---------------------------------------------------------------------
   9. DEPARTAMENTOS — retícula tipo revista
   --------------------------------------------------------------------- */
.depts {
  display: grid; gap: clamp(.75rem, .4rem + 1vw, 1.35rem);
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
}
.dept {
  position: relative; display: block;
  border-radius: var(--r-lg); overflow: hidden;
  min-height: 250px; isolation: isolate;
  background: var(--surface-3);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.dept:hover, .dept:focus-visible { transform: translateY(-7px); box-shadow: var(--sh-4); }
.dept img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.dept:hover img, .dept:focus-visible img { transform: scale(1.09); }
.dept::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,9,8,.02) 0%, rgba(12,9,8,.34) 48%, rgba(10,7,6,.92) 100%);
  transition: background .5s var(--ease);
}
.dept:hover::after, .dept:focus-visible::after {
  background: linear-gradient(180deg, rgba(12,9,8,.14) 0%, rgba(12,9,8,.5) 45%, rgba(10,7,6,.97) 100%);
}

.dept__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1.1rem, .9rem + .9vw, 1.85rem); color: #fff;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.dept__text { min-width: 0; }
.dept__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  letter-spacing: -.028em; color: #fff;
  transition: transform .45s var(--ease-out);
}
.dept__desc {
  font-size: var(--fs-sm); color: rgba(255,255,255,.86);
  margin-top: .4rem; line-height: 1.5;
  display: grid; grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .5s var(--ease-out), opacity .4s var(--ease);
}
.dept__desc > span { overflow: hidden; }
.dept:hover .dept__desc, .dept:focus-visible .dept__desc { grid-template-rows: 1fr; opacity: 1; }

/* Flecha que aparece al pasar el cursor */
.dept__go {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.34);
  color: #fff;
  opacity: 0; transform: translateX(-10px) scale(.85);
  transition: opacity .45s var(--ease), transform .45s var(--ease-out),
              background-color .3s var(--ease);
}
.dept:hover .dept__go, .dept:focus-visible .dept__go { opacity: 1; transform: none; }
.dept:hover .dept__go { background: var(--tmm-red); border-color: var(--tmm-red); }
.dept__go svg { width: 19px; height: 19px; }

/* Etiqueta del departamento protagonista */
.dept__flag {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  font-family: var(--font-display); font-size: .66rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  background: var(--tmm-red); color: #fff;
  padding: .4rem .85rem; border-radius: var(--r-pill);
  box-shadow: 0 4px 14px rgba(150,24,36,.4);
}

/* ---------------------------------------------------------------------
   10. CARNICERÍA — sección cinematográfica
   --------------------------------------------------------------------- */
.meat { position: relative; overflow: hidden; background: var(--surface-dark); }
.meat::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -18vw; top: -12vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(150,24,36,.30) 0%, transparent 68%);
}
.meat__grid {
  display: grid; gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  align-items: center; position: relative; z-index: 1;
}
.meat__media { position: relative; }
.meat__frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-4);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.meat__frame img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.meat__media:hover .meat__frame img { transform: scale(1.05); }
/* Marco decorativo desplazado */
.meat__media::before {
  content: ""; position: absolute; inset: -14px -14px 26px 26px;
  border: 1px solid rgba(232,163,61,.34);
  border-radius: var(--r-lg); pointer-events: none; z-index: -1;
}
.meat__stamp {
  position: absolute; right: clamp(-14px, -1vw, -6px); bottom: -26px;
  width: clamp(130px, 13vw, 200px); height: auto; z-index: 2;
  will-change: transform;
  /* Sin drop-shadow: recalcular la sombra de un PNG en cada fotograma de la
     animación es caro. El personaje ya destaca sobre el fondo oscuro. */
  animation: float 7s var(--ease-in-out) infinite alternate;
  animation-play-state: var(--play-state, running);
}

.meat__quote {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.6rem);
  line-height: 1.18; letter-spacing: -.03em;
  color: #fff; margin-block: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.meat__quote::before { content: "“"; color: var(--tmm-amber); }
.meat__quote::after  { content: "”"; color: var(--tmm-amber); }

.meat__list { display: grid; gap: var(--sp-4); margin-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.meat__list li {
  display: flex; align-items: flex-start; gap: .9rem;
  color: var(--ink-inv-2); font-size: var(--fs-sm); line-height: 1.6;
  padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-inv);
  transition: color .3s var(--ease), padding-left .35s var(--ease);
}
.meat__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.meat__list li:hover { color: #fff; padding-left: 6px; }
.meat__list .diamond {
  color: var(--tmm-amber); margin-top: .5rem; flex: none;
  width: 8px; height: 8px; transition: transform .35s var(--ease);
}
.meat__list li:hover .diamond { transform: rotate(135deg) scale(1.25); }
.meat__list strong { color: #fff; font-weight: 700; }

/* Entrada escalonada de la lista */
.js-reveal .meat__list li { opacity: 0; transform: translateY(14px); }
@media (min-width: 1024px) {
  .js-reveal .meat__list li { transform: translateX(-18px); }
}
.js-reveal .meat__list.is-visible li {
  animation: slide-in .7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes slide-in { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   11. TIENDAS / LOCALIZADOR
   --------------------------------------------------------------------- */
.locator__tools { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.search { position: relative; display: flex; gap: var(--sp-2); }
.search__field { position: relative; flex: 1; }
.search__field svg {
  position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--ink-3); pointer-events: none;
  transition: color .25s var(--ease);
}
.search__field:focus-within svg { color: var(--tmm-green); }
.search input {
  width: 100%; min-height: 58px;
  padding: .9rem 1.25rem .9rem 3.2rem;
  background: var(--surface-card);
  border: 2px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.search input:focus {
  outline: none; border-color: var(--tmm-green);
  box-shadow: 0 0 0 4px rgba(30,131,67,.14);
}
.search input::placeholder { color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  padding: .6rem 1.15rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-2); color: var(--ink-2);
  background: transparent; white-space: nowrap;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--tmm-green); color: var(--tmm-green); transform: translateY(-2px); }
.chip[aria-pressed="true"] {
  background: var(--tmm-green); border-color: var(--tmm-green); color: #fff;
  box-shadow: var(--sh-green);
}

.locator__layout { display: grid; gap: var(--sp-5); }

.map-wrap {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-3); box-shadow: var(--sh-3);
  min-height: 340px; border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.stores { display: grid; gap: var(--sp-3); }
.store {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.store:hover { border-color: var(--tmm-green); box-shadow: var(--sh-2); transform: translateY(-3px); }
.store.is-hidden { display: none; }

.store__top { display: flex; align-items: flex-start; gap: var(--sp-3); }
.store__num {
  flex: none; width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--tmm-red); color: #fff;
  border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.store:hover .store__num { transform: rotate(-6deg) scale(1.05); background: var(--tmm-green); }
.store__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.store__city {
  font-size: var(--fs-2xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--tmm-green); font-weight: 700; margin-top: .2rem;
}
.store__addr { font-size: var(--fs-sm); color: var(--ink-2); margin-top: .5rem; line-height: 1.5; font-style: normal; }
.store__hours {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-2xs); color: var(--ink-2); margin-top: .5rem;
}
.store__hours svg { width: 14px; height: 14px; color: var(--tmm-green); }
.store__actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); flex-wrap: wrap; }
.store__actions .btn { flex: 1 1 132px; }

.locator__empty {
  display: none; text-align: center; padding: var(--sp-7) var(--sp-4);
  color: var(--ink-2); background: var(--surface-card);
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
}
.locator__empty.is-visible { display: block; }

/* ---------------------------------------------------------------------
   12. NOSOTROS
   --------------------------------------------------------------------- */
.story__grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.story__media { position: relative; }
.story__media img {
  width: 100%; border-radius: var(--r-lg);
  aspect-ratio: 3 / 4; object-fit: cover; box-shadow: var(--sh-3);
}
.story__media::after {
  content: ""; position: absolute; inset: 20px -18px -18px 20px;
  border: 1px solid rgba(210,40,56,.28); border-radius: var(--r-lg);
  z-index: -1; pointer-events: none;
}
.story__lead {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.25rem, 1.05rem + 1.1vw, 1.85rem);
  line-height: 1.35; letter-spacing: -.02em;
  color: var(--ink); margin-block: var(--sp-4);
}
.story__body p { color: var(--ink-2); margin-top: var(--sp-4); line-height: 1.72; }

.mv { display: grid; gap: var(--sp-4); margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.mv__card {
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-top: 4px solid var(--tmm-red);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.mv__card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.mv__card:nth-child(2) { border-top-color: var(--tmm-green); }
.mv__label {
  font-family: var(--font-display); font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: var(--sp-3);
}
.mv__text {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.1rem, 1rem + .75vw, 1.45rem);
  line-height: 1.42; letter-spacing: -.015em;
}

/* Valores */
.values { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.value {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease-out);
}
.value:hover {
  background: rgba(255,255,255,.085);
  border-color: rgba(232,163,61,.5);
  transform: translateY(-6px);
}
.value__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(232,163,61,.14); color: var(--tmm-amber);
  margin-bottom: var(--sp-4);
  transition: transform .4s var(--ease-out), background-color .3s var(--ease);
}
.value:hover .value__icon { transform: rotate(-8deg) scale(1.08); background: rgba(232,163,61,.24); }
.value__icon svg { width: 23px; height: 23px; }
.value__name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: #fff; margin-bottom: .5rem; }
.value__text { font-size: var(--fs-sm); color: var(--ink-inv-2); line-height: 1.62; }

/* ---------------------------------------------------------------------
   13. COMUNIDAD
   --------------------------------------------------------------------- */
.events { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.event {
  display: flex; flex-direction: column;
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.event:hover { transform: translateY(-7px); box-shadow: var(--sh-4); }
.event__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.event__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.event:hover .event__media img { transform: scale(1.07); }
.event__date {
  position: absolute; top: .85rem; left: .85rem;
  background: var(--surface-card); border-radius: var(--r-sm);
  padding: .5rem .75rem; text-align: center; box-shadow: var(--sh-2);
  min-width: 60px;
}
.event__day {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.35rem; line-height: 1; color: var(--tmm-red);
  font-variant-numeric: tabular-nums;
}
.event__mon { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.event__body { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.event__place {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tmm-green);
}
.event__place svg { width: 14px; height: 14px; }
.event__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.025em; }
.event__text { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.62; }

/* ---------------------------------------------------------------------
   14. NEWSLETTER
   --------------------------------------------------------------------- */
.news { position: relative; overflow: hidden; background: var(--tmm-red); color: #fff; }
.news::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.16) 0, transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(0,0,0,.20) 0, transparent 46%);
  pointer-events: none;
}
.news::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); background-size: 140px;
  opacity: .06;
}
.news__inner { position: relative; z-index: 1; text-align: center; max-width: 740px; margin-inline: auto; }
.news h2 { color: #fff; font-size: var(--fs-h2); letter-spacing: -.032em; }
.news p { color: rgba(255,255,255,.9); margin-top: var(--sp-4); font-size: var(--fs-lead); }
.news .eyebrow { color: #fff; justify-content: center; }
.news .eyebrow::before { background: #fff; }

.news__form { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-6); justify-content: center; }
.news__form input {
  flex: 1 1 290px; min-height: 58px;
  padding: 1rem 1.6rem; border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.16); color: #fff;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.news__form input::placeholder { color: rgba(255,255,255,.72); }
.news__form input:focus {
  outline: none; background: rgba(255,255,255,.2);
  border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}
.news__form .btn { --btn-bg: #fff; --btn-fg: var(--tmm-red); flex: 0 1 auto; }
.news__form .btn:hover { background: var(--ink); color: #fff; box-shadow: var(--sh-4); }
.news__note { font-size: var(--fs-2xs); color: rgba(255,255,255,.76); margin-top: var(--sp-4); }

/* ---------------------------------------------------------------------
   15. ATENCIÓN AL CLIENTE
   --------------------------------------------------------------------- */
.help__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
.help__ways { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.way {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.way:hover { border-color: var(--tmm-green); transform: translateX(5px); box-shadow: var(--sh-2); }
.way__icon {
  flex: none; width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(30,131,67,.1); color: var(--tmm-green);
  transition: transform .35s var(--ease-out);
}
.way:hover .way__icon { transform: scale(1.08) rotate(-6deg); }
.way__icon svg { width: 22px; height: 22px; }
.way__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.way__desc { display: block; font-size: var(--fs-sm); color: var(--ink-2); }

/* Formulario */
.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: .45rem; }
.field label {
  font-family: var(--font-display); font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.field input, .field textarea {
  width: 100%; padding: .95rem 1.15rem; min-height: 54px;
  background: var(--surface-card);
  border: 2px solid var(--line-2);
  border-radius: var(--r-md);
  font-size: 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 145px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--tmm-green);
  box-shadow: 0 0 0 4px rgba(30,131,67,.14);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--tmm-red); }
.field__hint { font-size: var(--fs-2xs); color: var(--ink-3); }

.form__status {
  display: none; align-items: center; gap: .6rem;
  padding: .95rem 1.15rem; border-radius: var(--r-md);
  background: rgba(30,131,67,.1); color: var(--tmm-green-600);
  font-size: var(--fs-sm); font-weight: 600;
}
.form__status.is-visible { display: flex; animation: pop-in .45s var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.form__status svg { width: 18px; height: 18px; flex: none; }

/* FAQ */
.faq { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
.faq__item {
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq__item.is-open { border-color: var(--line-2); box-shadow: var(--sh-1); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); width: 100%; text-align: left;
  padding: var(--sp-4); min-height: 62px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.faq__q:hover { color: var(--tmm-red); background: var(--surface-2); }
.faq__q svg { width: 20px; height: 20px; flex: none; color: var(--tmm-red); transition: transform .4s var(--ease); }
.faq__q[aria-expanded="true"] svg { transform: rotate(135deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 var(--sp-4) var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }

/* ---------------------------------------------------------------------
   16. EMPLEOS
   --------------------------------------------------------------------- */
.jobs__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
.jobs__media { position: relative; }
.jobs__media img {
  width: 100%; border-radius: var(--r-lg);
  aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--sh-4);
}
.roles { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-5); }
.role {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  padding: .55rem 1.05rem; font-size: var(--fs-sm);
  color: var(--ink-inv-2);
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease);
}
.role:hover {
  background: rgba(232,163,61,.16); border-color: var(--tmm-amber);
  color: #fff; transform: translateY(-3px);
}
.role .diamond { width: 7px; height: 7px; color: var(--tmm-amber); }

/* ---------------------------------------------------------------------
   17. FOOTER
   --------------------------------------------------------------------- */
.footer {
  background: var(--surface-dark-2); color: var(--ink-inv-2);
  padding-top: var(--sp-8); position: relative; overflow: hidden;
}
.footer > * { position: relative; z-index: 1; }
.footer__grid { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer__brand img { height: 62px; width: auto; margin-bottom: var(--sp-4); }
.footer__tag {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 1.2rem; color: #fff; line-height: 1.35;
  margin-bottom: var(--sp-4);
}
.footer__desc { font-size: var(--fs-sm); line-height: 1.7; max-width: 42ch; }

.footer__col h3 {
  font-family: var(--font-display); font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: #fff;
  margin-bottom: var(--sp-4);
}
.footer__list { display: grid; gap: .75rem; }
.footer__list a {
  font-size: var(--fs-sm); color: var(--ink-inv-2);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.footer__list a:hover { color: var(--tmm-amber); padding-left: 6px; }

.social { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.social a {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--ink-inv-2);
  transition: all .3s var(--ease);
}
.social a:hover { background: var(--tmm-red); border-color: var(--tmm-red); color: #fff; transform: translateY(-4px); }
.social svg { width: 19px; height: 19px; }

.pay { margin-top: var(--sp-5); }
.pay__label { font-size: var(--fs-2xs); color: var(--ink-inv-3); margin-bottom: var(--sp-3); }
.pay__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pay__item {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  padding: .38rem .75rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--ink-inv-2);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--sp-4);
  font-size: var(--fs-2xs);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer__legal a { transition: color .25s var(--ease); }
.footer__legal a:hover { color: var(--tmm-amber); }

/* ---------------------------------------------------------------------
   18. ANIMACIONES DE ENTRADA
   --------------------------------------------------------------------- */
/* El contenido sólo se oculta si el JS confirmó que puede animarlo.
   Sin JS, o si IntersectionObserver falla, todo permanece visible. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal [data-reveal="scale"] { transform: scale(.94); }
.js-reveal [data-reveal="fade"]  { transform: none; }

/* Los desplazamientos laterales sólo se usan cuando hay margen de sobra.
   En pantallas estrechas provocarían un desbordamiento horizontal
   transitorio mientras el elemento entra, así que allí se anima en vertical
   (que además es más ligero en móvil). */
@media (min-width: 1024px) {
  .js-reveal [data-reveal="left"]  { transform: translateX(-40px); }
  .js-reveal [data-reveal="right"] { transform: translateX(40px); }
}

.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }


/* ---------------------------------------------------------------------
   18b. LLAMADA RÁPIDA — sólo móvil
   Botón flotante + hoja inferior para elegir tienda y llamar.
   Sólo se animan `transform` y `opacity` (compositor); nada que toque
   el layout, para no repetir el problema de rendimiento del header.
   --------------------------------------------------------------------- */
.call-fab {
  position: fixed; z-index: 810;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: .55rem;
  min-height: 52px; padding: 0 1.25rem;
  border-radius: var(--r-pill);
  background: var(--tmm-green); color: #fff;
  font-family: var(--font-display); font-weight: 700;
  font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(24,107,55,.42), 0 2px 6px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              visibility .35s, background-color .25s var(--ease);
}
.call-fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.call-fab:active { transform: scale(.96); }
.call-fab svg { width: 20px; height: 20px; flex: none; }

/* La hoja inferior */
.call-sheet {
  padding: 0; border: 0; background: transparent;
  max-width: 100%; max-height: 100%;
  width: 100%; height: 100%;
  margin: 0; inset: 0;
  overflow: hidden;
}
.call-sheet::backdrop { background: rgba(12,9,8,.55); }

.call-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: .75rem clamp(1rem, .6rem + 2vw, 1.5rem)
           calc(1.25rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(0,0,0,.3);
  transform: translateY(100%);
  transition: transform .38s var(--ease-out);
}
.call-sheet[open] .call-sheet__panel { transform: translateY(0); }
.call-sheet.is-closing .call-sheet__panel { transform: translateY(100%); }

.call-sheet__grip {
  display: block; width: 42px; height: 4px; border-radius: 2px;
  background: var(--line-strong); margin: 0 auto .85rem;
}

.call-sheet__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-4);
}
.call-sheet__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; letter-spacing: -.025em;
}
.call-sheet__sub { font-size: var(--fs-xs); color: var(--ink-2); margin-top: .25rem; }
.call-sheet__close {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.call-sheet__close:hover { background: var(--surface-3); color: var(--ink); }
.call-sheet__close svg { width: 19px; height: 19px; }

.call-sheet__chips {
  display: flex; gap: .4rem; margin-bottom: var(--sp-4);
  overflow-x: auto; padding-bottom: .25rem;
  scrollbar-width: none;
}
.call-sheet__chips::-webkit-scrollbar { display: none; }
.call-sheet__chips .chip { font-size: .78rem; padding: .45rem .9rem; }

.call-sheet__list { display: grid; gap: .5rem; }

.call-store.is-hidden { display: none; }
.call-store__link {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem;
  min-height: 68px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease), background-color .2s var(--ease),
              transform .2s var(--ease);
}
.call-store__link:active { transform: scale(.985); background: var(--surface-2); }
.call-store__link:hover { border-color: var(--tmm-green); }

.call-store__num {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--tmm-red); color: #fff;
  border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.call-store__body { min-width: 0; flex: 1; }
.call-store__city {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: .95rem; letter-spacing: -.01em;
}
.call-store__addr {
  display: block; font-size: var(--fs-2xs); color: var(--ink-2);
  margin-top: .1rem; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.call-store__tel {
  display: block; font-size: var(--fs-2xs); font-weight: 700;
  color: var(--tmm-green); margin-top: .15rem;
  font-variant-numeric: tabular-nums;
}
.call-store__go {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(30,131,67,.12); color: var(--tmm-green);
}
.call-store__go svg { width: 18px; height: 18px; }

.call-sheet__empty {
  text-align: center; padding: var(--sp-6) var(--sp-4);
  color: var(--ink-2); font-size: var(--fs-sm);
}

/* Sólo en móvil y tablet: en escritorio el localizador ya está a la vista */
@media (max-width: 1023px) {
  .call-fab { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .call-sheet__panel { transition: none; }
}

/* Botón volver arriba */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 800;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tmm-green-900); color: #fff;
  box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              visibility .35s, background-color .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--tmm-red); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------------
   19. RESPONSIVE — mobile first
   --------------------------------------------------------------------- */

/* ≥ 480px */
@media (min-width: 480px) {
  .deals { grid-template-columns: repeat(2, 1fr); }
  .depts { grid-template-columns: repeat(2, 1fr); }
  .deal--hero  { grid-column: span 2; }
  .deal--promo { grid-column: span 2; }
  .dept--hero  { grid-column: span 2; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .search { flex-wrap: nowrap; }
}

/* ≥ 600px */
@media (min-width: 600px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ≥ 768px */
@media (min-width: 768px) {
  .hero__scroll { display: flex; }
  .mv { grid-template-columns: 1fr 1fr; }
  .locator__tools { grid-template-columns: minmax(280px, 430px) 1fr; align-items: center; }
  .help__grid { grid-template-columns: 1fr 1.12fr; align-items: start; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .story__grid { grid-template-columns: .82fr 1.18fr; }

  .deals { grid-template-columns: repeat(3, 1fr); }
  .depts { grid-template-columns: repeat(3, 1fr); }
  .deal--hero { grid-column: span 2; grid-row: span 2; }
  .deal--promo { grid-column: span 1; }
  .dept--hero { grid-column: span 2; grid-row: span 2; }
  .dept--wide { grid-column: span 2; }
  .dept { min-height: 265px; }
}

/* ≥ 1024px */
@media (min-width: 1024px) {
  :root { --header-h: 92px; }
  .brand img { height: 54px; }

  .deals { grid-template-columns: repeat(4, 1fr); }
  .depts { grid-template-columns: repeat(4, 1fr); }

  .meat__grid { grid-template-columns: 1.02fr .98fr; }
  .jobs__grid { grid-template-columns: 1.05fr .95fr; }
  .locator__layout { grid-template-columns: 1.02fr .98fr; align-items: start; }
  .map-wrap { position: sticky; top: calc(var(--header-h) + 24px); min-height: 640px; }
  .map-wrap iframe { min-height: 640px; }
  .stores { max-height: 640px; overflow-y: auto; padding-right: .5rem; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .to-top { right: 1.75rem; bottom: 1.75rem; }
  .dept { min-height: 285px; }
}

/* ≥ 1200px — la navegación completa sólo aparece cuando cabe sin comprimirse.
   Por debajo se usa el menú lateral, que a esos anchos es mejor experiencia
   que siete enlaces apretados contra dos botones. */
@media (min-width: 1200px) {
  .nav { display: block; flex: 0 0 auto; }
  .nav-actions { display: flex; }
  .burger { display: none; }
  /* A este ancho sólo cabe cómodamente el CTA principal. */
  .nav-actions .btn--outline { display: none; }
}

/* ≥ 1280px */
@media (min-width: 1280px) {
  .dept { min-height: 300px; }
}

/* ≥ 1400px — ya caben los dos CTA del header */
@media (min-width: 1400px) {
  .nav-actions .btn--outline { display: inline-flex; }
}

/* Scrollbar del listado de tiendas */
.stores::-webkit-scrollbar { width: 8px; }
.stores::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 4px; }
.stores::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.stores::-webkit-scrollbar-thumb:hover { background: var(--tmm-green); }

/* El botón de "volver arriba" se apila encima del de llamada en móvil.
   Va aquí, después de los bloques responsive, porque la definición base de
   `.to-top` aparece más abajo en el archivo y sobrescribiría esta regla. */
@media (max-width: 1023px) {
  .to-top { bottom: calc(1rem + 62px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------------------
   20. PREFERENCIAS DE MOVIMIENTO / IMPRESIÓN
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__media img { animation: none; transform: none; }
  .hero__anim { opacity: 1 !important; }
  .hero__dot, .meat__stamp { animation: none; opacity: .85; }
  .meat__list li { opacity: 1 !important; transform: none !important; }
  .hero__media, .meat__frame { transform: none !important; }
}

@media print {
  .header, .mobile-nav, .to-top, .news, .hero__scroll, .hero__deco { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
  .hero { min-height: auto; }
}
