/* =====================================================================
   TELOLOAPAN MEAT MARKET — Propuesta de Rediseño
   Sistema de diseño "LA PLAZA"
   Colores derivados por muestreo directo del logotipo oficial.
   ===================================================================== */

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

  /* Superficies — crema cálido, nunca blanco puro */
  --surface:        #FDF8F3;
  --surface-2:      #F6EDE3;
  --surface-3:      #EDE0D2;
  --surface-card:   #FFFFFF;
  --surface-dark:   #14100D;

  /* Texto — negro cálido, nunca negro puro */
  --ink:            #1A1512;
  --ink-2:          #5C5048;
  --ink-3:          #7A6C61;
  --ink-inv:        #FDF8F3;
  --ink-inv-2:      rgba(253, 248, 243, .74);

  /* Semántica */
  --cta:            var(--tmm-red);
  --cta-hover:      var(--tmm-red-600);
  --line:           rgba(26, 21, 18, .12);
  --line-strong:    rgba(26, 21, 18, .24);

  /* 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 */
  --fs-hero:  clamp(2.75rem, 1.6rem + 5.2vw, 6rem);
  --fs-h1:    clamp(2.1rem, 1.4rem + 3vw, 3.75rem);
  --fs-h2:    clamp(1.75rem, 1.25rem + 2.1vw, 2.85rem);
  --fs-h3:    clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
  --fs-lead:  clamp(1.05rem, .98rem + .45vw, 1.3rem);
  --fs-body:  1rem;
  --fs-sm:    .9rem;
  --fs-xs:    .8rem;

  /* 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(3.5rem, 2rem + 6vw, 7rem);

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

  /* Sombras */
  --sh-1: 0 1px 2px rgba(26,21,18,.06), 0 2px 8px rgba(26,21,18,.05);
  --sh-2: 0 4px 12px rgba(26,21,18,.08), 0 12px 28px rgba(26,21,18,.07);
  --sh-3: 0 10px 24px rgba(26,21,18,.10), 0 24px 56px rgba(26,21,18,.12);
  --sh-red: 0 6px 20px rgba(210,40,56,.28);

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

  /* Layout */
  --container: 1280px;
  --container-narrow: 880px;
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

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

/* Accesibilidad — foco visible en toda la interfaz */
:focus-visible {
  outline: 3px solid var(--tmm-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.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(1rem, .5rem + 2.5vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.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; }

/* Encabezado de sección */
.sec-head { margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.sec-head--center { text-align: center; max-width: 760px; 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: .55rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tmm-red); margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; flex: none;
  background: var(--tmm-green); transform: rotate(45deg);
}
.section--dark .eyebrow, .section--ink .eyebrow { color: var(--tmm-amber); }
.section--dark .eyebrow::before, .section--ink .eyebrow::before { background: var(--tmm-amber); }

.sec-title { font-size: var(--fs-h2); }
.sec-sub {
  font-size: var(--fs-lead); color: var(--ink-2);
  margin-top: var(--sp-4); max-width: 62ch; 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); }

/* ---------------------------------------------------------------------
   4. BOTONES
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--cta);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 1rem 1.75rem;
  min-height: 52px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent;
  cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-red); background: var(--cta-hover); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--green { --btn-bg: var(--tmm-green); }
.btn--green:hover { background: var(--tmm-green-600); box-shadow: 0 6px 20px rgba(30,131,67,.3); }

.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-2);
}

.btn--light {
  --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: var(--sh-3); }

.btn--sm { padding: .6rem 1.1rem; min-height: 44px; font-size: .8rem; }
.btn--block { width: 100%; }

/* Enlace con flecha */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: .9rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--tmm-red); padding-block: .35rem;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.link-arrow:hover { gap: .9rem; 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;
  background: rgba(253,248,243,.90);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.header.is-stuck { box-shadow: var(--sh-2); background: rgba(253,248,243,.97); }

/* Barra de utilidad */
.utilbar {
  background: var(--tmm-green-900); color: var(--ink-inv-2);
  font-size: var(--fs-xs);
}
.utilbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 38px; flex-wrap: wrap;
}
.utilbar__note { display: inline-flex; align-items: center; gap: .5rem; }
.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: .2rem .65rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; color: var(--ink-inv-2);
  transition: background-color .2s var(--ease), color .2s 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,.14); color: #fff; }

/* Barra principal */
.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; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(.4rem, .1rem + .9vw, 1.4rem); }
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600; font-size: .88rem;
  letter-spacing: .03em; text-transform: uppercase;
  padding: .55rem .25rem; color: var(--ink);
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: .15rem;
  width: 100%; height: 2px; background: var(--tmm-red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s 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 .35s var(--ease), opacity .2s var(--ease), width .35s var(--ease);
}
.burger span:nth-child(2) { width: 72%; }
.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) + 24px) 0 2rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .45s var(--ease-out), visibility .45s;
  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.35rem; letter-spacing: -.01em;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px);
}
.mobile-nav.is-open .mobile-nav__link {
  animation: mnav-in .5s 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
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--surface-dark);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  transform: scale(1.06);
  animation: hero-zoom 14s var(--ease-out) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }

.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,16,13,.62) 0%, rgba(20,16,13,.12) 32%, rgba(20,16,13,.55) 68%, rgba(20,16,13,.93) 100%),
    linear-gradient(85deg, rgba(20,16,13,.75) 0%, rgba(20,16,13,.15) 62%);
}

.hero__inner { padding-block: clamp(3rem, 2rem + 5vw, 6rem); width: 100%; }
.hero__content { max-width: 780px; color: #fff; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: .5rem 1rem; border-radius: var(--r-pill);
  margin-bottom: var(--sp-5);
}
.hero__badge .diamond { color: var(--tmm-amber); width: 8px; height: 8px; }

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800; line-height: .92;
  letter-spacing: -.035em; color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero__title em {
  display: block; font-style: normal;
  font-family: var(--font-serif);
  font-weight: 600; font-variation-settings: "SOFT" 60, "WONK" 1;
  color: var(--tmm-amber);
  letter-spacing: -.02em;
}
.hero__text {
  font-size: var(--fs-lead); color: rgba(255,255,255,.9);
  max-width: 56ch; margin-top: var(--sp-5); line-height: 1.6;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.7); font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
  animation: scroll-pulse 2.2s var(--ease) infinite;
}
@keyframes scroll-pulse { 0%,100% { opacity: .25; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------------------------------------------------------------------
   7. BARRA DE CONFIANZA
   --------------------------------------------------------------------- */
.trust { background: var(--tmm-green-900); color: var(--ink-inv); }
.trust__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(255,255,255,.14);
}
.trust__item {
  background: var(--tmm-green-900);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem) var(--sp-4);
  text-align: center;
}
.trust__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1; color: var(--tmm-amber);
  font-variant-numeric: tabular-nums;
}
.trust__label {
  font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-inv-2); margin-top: .5rem;
}

/* ---------------------------------------------------------------------
   8. ESPECIALES
   --------------------------------------------------------------------- */
.specials__meta {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--tmm-green); color: #fff;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem 1rem; border-radius: var(--r-pill);
  margin-top: var(--sp-4);
}
.specials__meta svg { width: 15px; height: 15px; }

.deals {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.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 .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.deal:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  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 .6s var(--ease-out);
}
.deal:hover .deal__media img { transform: scale(1.07); }

.deal__badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  background: var(--tmm-red); color: #fff;
  font-family: var(--font-display); font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: var(--r-sm);
  box-shadow: var(--sh-1);
}
.deal__badge--green { background: var(--tmm-green); }
.deal__badge--amber { background: var(--tmm-amber); color: var(--ink); }

.deal__body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.deal__dept {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.deal__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em;
}
.deal__unit { font-size: var(--fs-xs); color: var(--ink-2); }

.deal__price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.deal__now {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.75rem; line-height: 1; color: var(--tmm-red);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.deal__was {
  font-size: .95rem; color: var(--ink-3);
  text-decoration: line-through; font-variant-numeric: tabular-nums;
}

/* Tarjeta promocional destacada */
.deal--feature {
  grid-column: span 2; background: var(--tmm-green-900); color: #fff;
  border-color: transparent;
}
.deal--feature .deal__body { justify-content: center; padding: var(--sp-6); }
.deal--feature .deal__name { color: #fff; font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); }
.deal--feature .deal__dept { color: var(--tmm-amber); }
.deal--feature p { color: var(--ink-inv-2); font-size: var(--fs-sm); }

/* ---------------------------------------------------------------------
   9. DEPARTAMENTOS
   --------------------------------------------------------------------- */
.depts {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.dept {
  position: relative; display: block;
  border-radius: var(--r-lg); overflow: hidden;
  min-height: 260px; isolation: isolate;
  background: var(--surface-3);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.dept:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.dept img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.dept:hover img { transform: scale(1.08); }
.dept::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,61,37,.05) 0%, rgba(18,61,37,.30) 45%, rgba(10,28,18,.92) 100%);
  transition: background .4s var(--ease);
}
.dept:hover::after {
  background: linear-gradient(180deg, rgba(18,61,37,.12) 0%, rgba(18,61,37,.45) 45%, rgba(10,28,18,.96) 100%);
}
.dept__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-5); color: #fff;
}
.dept__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.4rem; letter-spacing: -.015em; color: #fff;
}
.dept__desc {
  font-size: var(--fs-sm); color: rgba(255,255,255,.85);
  margin-top: .35rem; line-height: 1.5;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .45s var(--ease), opacity .35s var(--ease), margin .45s var(--ease);
}
.dept:hover .dept__desc, .dept:focus-visible .dept__desc { max-height: 6rem; opacity: 1; }

.dept--wide { grid-column: span 2; }

/* ---------------------------------------------------------------------
   10. CARNICERÍA — SECCIÓN DESTACADA
   --------------------------------------------------------------------- */
.meat { position: relative; overflow: hidden; }
.meat__grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.meat__media { position: relative; }
.meat__media img {
  width: 100%; border-radius: var(--r-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
  box-shadow: var(--sh-3);
}
.meat__stamp {
  position: absolute; right: -12px; bottom: -18px;
  width: clamp(110px, 9vw, 150px); height: auto;
  border-radius: 0; box-shadow: none; aspect-ratio: auto;
}
.meat__quote {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.25; letter-spacing: -.02em;
  color: #fff; margin-block: var(--sp-5);
}
.meat__quote::before { content: "“"; color: var(--tmm-amber); }
.meat__quote::after  { content: "”"; color: var(--tmm-amber); }

.meat__list { display: grid; gap: var(--sp-3); margin-block: var(--sp-5); }
.meat__list li {
  display: flex; align-items: flex-start; gap: .75rem;
  color: var(--ink-inv-2); font-size: var(--fs-sm); line-height: 1.55;
}
.meat__list .diamond { color: var(--tmm-amber); margin-top: .5rem; flex: none; width: 8px; height: 8px; }
.meat__list strong { color: #fff; font-weight: 700; }

/* ---------------------------------------------------------------------
   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: 1rem; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--ink-3); pointer-events: none;
}
.search input {
  width: 100%; min-height: 56px;
  padding: .9rem 1rem .9rem 3rem;
  background: var(--surface-card);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s 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: .55rem 1.05rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); color: var(--ink-2);
  background: transparent; white-space: nowrap;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--tmm-green); color: var(--tmm-green); }
.chip[aria-pressed="true"] {
  background: var(--tmm-green); border-color: var(--tmm-green); color: #fff;
}

.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-2);
  min-height: 320px; border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

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

.store__top { display: flex; align-items: flex-start; gap: var(--sp-3); }
.store__num {
  flex: none; width: 46px; height: 46px;
  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.05rem;
  font-variant-numeric: tabular-nums;
}
.store__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: -.01em;
}
.store__city {
  font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--tmm-green); font-weight: 700; margin-top: .15rem;
}
.store__addr { font-size: var(--fs-sm); color: var(--ink-2); margin-top: .5rem; line-height: 1.5; }
.store__hours {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-xs); 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 130px; }

.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, 4rem); align-items: center; }
.story__media img {
  width: 100%; border-radius: var(--r-lg);
  aspect-ratio: 3 / 4; object-fit: cover; box-shadow: var(--sh-3);
}
.story__lead {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + 1vw, 1.7rem);
  line-height: 1.4; letter-spacing: -.015em;
  color: var(--ink); margin-block: var(--sp-4);
}
.story__body p { color: var(--ink-2); margin-top: var(--sp-4); line-height: 1.7; }

.mv { display: grid; gap: var(--sp-4); margin-top: var(--sp-7); }
.mv__card {
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-top: 4px solid var(--tmm-red);
}
.mv__card:nth-child(2) { border-top-color: var(--tmm-green); }
.mv__label {
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .16em; 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 + .7vw, 1.4rem);
  line-height: 1.4; letter-spacing: -.01em;
}

/* Valores */
.values {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.value {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.value:hover {
  background: rgba(255,255,255,.09);
  border-color: var(--tmm-amber);
  transform: translateY(-4px);
}
.value__icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(232,163,61,.16); color: var(--tmm-amber);
  margin-bottom: var(--sp-4);
}
.value__icon svg { width: 22px; height: 22px; }
.value__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; color: #fff; margin-bottom: .5rem;
}
.value__text { font-size: var(--fs-sm); color: var(--ink-inv-2); line-height: 1.6; }

/* ---------------------------------------------------------------------
   13. COMUNIDAD
   --------------------------------------------------------------------- */
.events { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(280px, 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 .35s var(--ease), box-shadow .35s var(--ease);
}
.event:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.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 .6s var(--ease-out); }
.event:hover .event__media img { transform: scale(1.06); }
.event__date {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--surface-card); border-radius: var(--r-sm);
  padding: .45rem .7rem; text-align: center; box-shadow: var(--sh-1);
  min-width: 58px;
}
.event__day {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; line-height: 1; color: var(--tmm-red);
  font-variant-numeric: tabular-nums;
}
.event__mon {
  display: block; font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.event__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.event__place {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
  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.25rem; letter-spacing: -.015em; }
.event__text { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }

/* ---------------------------------------------------------------------
   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 12% 22%, rgba(255,255,255,.14) 0, transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(0,0,0,.18) 0, transparent 45%);
  pointer-events: none;
}
.news__inner { position: relative; text-align: center; max-width: 720px; margin-inline: auto; }
.news h2 { color: #fff; font-size: var(--fs-h2); }
.news p { color: rgba(255,255,255,.88); margin-top: var(--sp-4); font-size: var(--fs-lead); }
.news .eyebrow { color: #fff; }
.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 280px; min-height: 56px;
  padding: 1rem 1.5rem; border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.12); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.news__form input::placeholder { color: rgba(255,255,255,.7); }
.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-3); }
.news__note { font-size: var(--fs-xs); color: rgba(255,255,255,.75); margin-top: var(--sp-4); }

/* ---------------------------------------------------------------------
   15. ATENCIÓN AL CLIENTE
   --------------------------------------------------------------------- */
.help__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }

.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 .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.way:hover { border-color: var(--tmm-green); transform: translateX(4px); box-shadow: var(--sh-1); }
.way__icon {
  flex: none; width: 46px; height: 46px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(30,131,67,.1); color: var(--tmm-green);
}
.way__icon svg { width: 22px; height: 22px; }
.way__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.way__desc { 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-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.field input, .field textarea {
  width: 100%; padding: .9rem 1.1rem;
  min-height: 52px;
  background: var(--surface-card);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  font-size: 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 140px; 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-xs); color: var(--ink-3); }

.form__status {
  display: none; align-items: center; gap: .6rem;
  padding: .9rem 1.1rem; 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; }
.form__status svg { width: 18px; height: 18px; flex: none; }

/* FAQ */
.faq { display: grid; gap: var(--sp-2); margin-top: var(--sp-6); }
.faq__item {
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.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: 60px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  transition: color .25s var(--ease), background-color .25s 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 .35s var(--ease);
}
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s 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, 4rem); align-items: center; }
.jobs__media img {
  width: 100%; border-radius: var(--r-lg);
  aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--sh-3);
}
.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,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-pill);
  padding: .5rem 1rem; font-size: var(--fs-sm);
  color: var(--ink-inv-2);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.role:hover { background: rgba(232,163,61,.16); border-color: var(--tmm-amber); color: #fff; }
.role .diamond { width: 7px; height: 7px; color: var(--tmm-amber); }

/* ---------------------------------------------------------------------
   17. FOOTER
   --------------------------------------------------------------------- */
.footer { background: var(--surface-dark); color: var(--ink-inv-2); padding-top: var(--sp-8); }
.footer__grid {
  display: grid; gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
.footer__brand img { height: 58px; width: auto; margin-bottom: var(--sp-4); }
.footer__tag {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 1.15rem; 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-xs); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  margin-bottom: var(--sp-4);
}
.footer__list { display: grid; gap: .7rem; }
.footer__list a {
  font-size: var(--fs-sm); color: var(--ink-inv-2);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer__list a:hover { color: var(--tmm-amber); padding-left: 5px; }

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

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

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  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-xs);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer__legal a { transition: color .2s 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(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ---------------------------------------------------------------------
   19. RESPONSIVE — mobile first
   --------------------------------------------------------------------- */
@media (min-width: 560px) {
  .deals { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .search { flex-wrap: nowrap; }
}

@media (min-width: 768px) {
  .hero__scroll { display: flex; }
  .mv { grid-template-columns: 1fr 1fr; }
  .locator__tools { grid-template-columns: minmax(280px, 420px) 1fr; align-items: center; }
  .help__grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .story__grid { grid-template-columns: .85fr 1.15fr; }
}

@media (min-width: 1024px) {
  :root { --header-h: 88px; }
  .nav { display: block; }
  .nav-actions { display: flex; }
  .burger { display: none; }
  .brand img { height: 54px; }

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

@media (min-width: 1280px) {
  .deal--feature { grid-column: span 2; }
}

/* 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); }

/* ---------------------------------------------------------------------
   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; transform: none; }
  .hero__media img { animation: none; transform: none; }
}

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