/* =========================================================
   La Carreta Restaurant
   Colores tomados del logo · una sola familia tipográfica
   ========================================================= */
:root {
  --red: #D4141C;
  --red-deep: #8E0E14;
  --green: #138A3B;
  --green-deep: #0C4A24;
  --white: #FFFFFF;
  --bone: #F6F3EE;
  --ink: #0C4A24;          /* texto: verde profundo del logo, no negro */
  --muted: #4A6655;
  --green-bg: #0F7A34;     /* verde de fondo (un punto más oscuro para que el texto blanco se lea bien) */
  --red-bg: #C8141B;       /* rojo de fondo */
  --on: #fff;              /* color del texto de botones con borde al pasar el mouse */

  --font: "Rubik", system-ui, sans-serif;

  /* escala tipográfica (títulos > subtítulos > cuerpo) */
  --fs-display: clamp(2.6rem, 1.6rem + 4.4vw, 5.25rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  --fs-lead: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  --space: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --radius: 14px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; font-optical-sizing: auto; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--space); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--green-deep); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

.tricolor { height: 6px; background: linear-gradient(90deg, var(--green) 0 33.33%, var(--white) 33.33% 66.66%, var(--red) 66.66% 100%); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1.0625rem/1 var(--font); text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: .95rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost, .btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover, .btn-outline:hover { background: var(--ink); color: var(--on); }
.btn-white { background: #fff; color: var(--red-deep); }
.btn-white:hover { background: var(--bone); }

/* ---------- Temas de sección (reparto 40% verde / 40% rojo / 20% blanco) ---------- */
.theme-green, .theme-red, .theme-reddeep { --ink: #fff; --muted: rgba(255, 255, 255, .86); color: var(--ink); }
.theme-green { background: var(--green-bg); --on: var(--green-bg); }
.theme-red { background: var(--red-bg); --on: var(--red-bg); }
.theme-reddeep { background: var(--red-deep); --on: var(--red-deep); }
.theme-red .btn-red { background: #fff; color: var(--red-bg); }
.theme-red .btn-red:hover { background: var(--bone); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(12, 74, 36, .1);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; position: relative; padding-block: .3rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--green); background: #fff; color: var(--green);
  font: 600 .875rem var(--font); cursor: pointer;
}
.lang:hover { background: var(--green); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.menu-toggle span:not(.sr) { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ---------- Hero: carrusel a pantalla completa ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: #000;
  height: calc(100svh - var(--header-h) - 6px); min-height: 560px; max-height: 980px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .62) 35%, rgba(0, 0, 0, .15) 70%, rgba(0, 0, 0, .05) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 30%);
}
.hero-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 3rem; }
.hero-logo { width: min(560px, 100%); margin-left: -1%; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.hero-lead { font-size: var(--fs-lead); max-width: 30ch; margin-top: 1.5rem; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero .btn-outline { --ink: #fff; --on: #000; }
.hero-nav { position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(1.1rem, 3vw, 2rem); display: flex; align-items: center; gap: 1rem; }
.hero-dots { display: flex; gap: .6rem; }
.hero-dot { width: 46px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-dot::before, .hero-dot i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.hero-dot::before { background: rgba(255, 255, 255, .4); }
.hero-dot i { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot[aria-selected="true"] i { transform: scaleX(1); }
.hero-dot.running i { transform: scaleX(0); animation: dotFill var(--dur, 6s) linear forwards; }
.hero.paused .hero-dot.running i { animation-play-state: paused; }
@keyframes dotFill { to { transform: scaleX(1); } }
.hero-pause { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero-pause svg { width: 16px; height: 16px; }
.hero-pause .i-play, .hero.paused .hero-pause .i-pause { display: none; }
.hero.paused .hero-pause .i-play { display: block; }
.wheel { color: var(--red); }

/* ---------- Historia ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.prose h2 { margin-bottom: 1.5rem; }
.prose p { max-width: 58ch; font-size: 1.125rem; }
.prose p + p { margin-top: 1.1rem; }
.history-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 4px solid #fff; }
.history-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Plato insignia ---------- */
.specialty { padding-block: var(--space); position: relative; overflow: hidden; }
.specialty-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.specialty-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 6px solid #fff; transform: rotate(-2deg); max-width: 440px; justify-self: center; }
.specialty-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tag { display: inline-block; font-weight: 600; background: #fff; color: var(--green-deep); padding: .35rem .9rem; border-radius: 999px; font-size: var(--fs-small); }
.specialty h2 { font-size: var(--fs-display); margin-top: 1.25rem; }
.specialty-text { font-size: var(--fs-lead); max-width: 40ch; margin-top: 1.25rem; margin-bottom: 2.25rem; opacity: .95; }

/* ---------- Encabezados de sección ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { font-size: var(--fs-lead); color: var(--muted); margin-top: 1rem; }

/* ---------- Favoritos ---------- */
.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.fav { margin: 0; }
.fav-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bone); }
.fav-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.fav:hover .fav-img img { transform: scale(1.04); }
.fav figcaption { padding-top: 1.1rem; }
.fav h3 { color: var(--ink); }
.fav p { color: var(--muted); margin-top: .4rem; max-width: 36ch; }

/* ---------- Especiales ---------- */
.specials { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.specials-grid { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.specials-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.specials-list li { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .25); }
.specials-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .25); }
.specials-list h3 { font-size: var(--fs-h3); }
.specials-list .when { color: var(--muted); font-size: var(--fs-small); margin-top: .3rem; }
.specials-list p:not(.when) { opacity: .92; }

/* ---------- Menú: platos y precios ---------- */
.menu .section-head { margin-inline: auto; text-align: center; }
.menu-tabs {
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  padding: .25rem .25rem 1rem; margin-inline: -.25rem;
  scroll-snap-type: x proximity;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs button {
  flex: none; scroll-snap-align: center;
  min-height: 44px; padding: 0 1.15rem; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .7); background: transparent; color: #fff;
  font: 600 1rem var(--font); cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.menu-tabs button:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.menu-tabs button[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--red-bg); }
.menu-tabs button:focus-visible { outline-color: #fff; }
/* en computadora todas las categorías a la vista, centradas; en celular se desliza */
@media (min-width: 861px) {
  .menu-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; padding-bottom: 1.5rem; }
}
.menu-board {
  --ink: var(--green-deep); --muted: #4A6655;
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .55);
}
.menu-cat h3 { font-size: var(--fs-h3); font-weight: 800; color: var(--red); }
.cat-note { color: var(--muted); margin-top: .4rem; }
/* columnas que fluyen de arriba abajo (como carta impresa): sin huecos entre platos con y sin descripción */
.dishes { list-style: none; margin: 1.25rem 0 0; padding: 0; columns: 2; column-gap: clamp(2.5rem, 6vw, 5rem); }
.dish { break-inside: avoid; padding-block: .95rem; border-bottom: 1px solid rgba(12, 74, 36, .1); }
.dish-top { display: flex; align-items: baseline; gap: .6rem; }
.dish h4 { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.dish .star { color: var(--red); }
.dish .dots { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted rgba(12, 74, 36, .3); transform: translateY(-.3em); }
.dish .price { font-weight: 800; font-size: 1.125rem; color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-desc { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; margin-top: .3rem; max-width: 52ch; }
.menu-info { margin: clamp(2rem, 4vw, 3rem) 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(12, 74, 36, .14); display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem 3rem; }
.menu-info dt { font-weight: 600; }
.menu-info dd { margin: .25rem 0 0; color: var(--muted); font-size: var(--fs-small); }
.menu-foot { margin-top: 1.25rem; color: var(--muted); font-size: var(--fs-small); }

/* ---------- Instalaciones ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 18vw, 230px); gap: clamp(.6rem, 1.2vw, 1rem); }
.m { padding: 0; border: 0; background: var(--bone); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.m img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.m:hover img { transform: scale(1.04); }
.m.wide { grid-column: span 2; grid-row: span 2; }
.m.tall { grid-row: span 2; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(12, 30, 18, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 10px; }
.lb-close, .lb-nav { position: fixed; border: 0; background: #fff; color: var(--green-deep); border-radius: 50%; width: 52px; height: 52px; font: 600 1.9rem/1 var(--font); cursor: pointer; display: grid; place-items: center; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- DoorDash ---------- */
.order { text-align: center; padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); position: relative; overflow: hidden; }
.order-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.25rem; }
.order h2 { font-size: var(--fs-display); max-width: 16ch; }
.order p { font-size: var(--fs-lead); max-width: 40ch; margin-bottom: 1rem; }
.wheel-order { position: absolute; width: clamp(320px, 45vw, 620px); height: auto; aspect-ratio: 1; right: -8%; top: 50%; transform: translateY(-50%); color: #fff; opacity: .1; }

/* ---------- Contacto ---------- */
.contact .split { align-items: stretch; }
.contact h2 { margin-bottom: 2rem; }
.info { margin: 0; display: grid; gap: 1.5rem; }
.info dt { font-weight: 600; color: var(--muted); font-size: var(--fs-small); }
.info dd { margin: .25rem 0 0; font-size: 1.125rem; }
.info dd a { color: var(--ink); font-weight: 600; text-decoration: none; }
.hours { border-collapse: collapse; }
.hours td { padding: .2rem 2rem .2rem 0; vertical-align: top; }
.hours td:last-child { font-variant-numeric: tabular-nums; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: rgba(255, 255, 255, .1); border: 4px solid #fff; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { color: #FBE9EA; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-brand img { width: 220px; background: #fff; padding: .9rem 1.1rem; border-radius: var(--radius); }
.footer-brand p { margin-top: 1rem; max-width: 30ch; opacity: .85; }
.footer-nav { display: grid; gap: .55rem; align-content: start; }
.footer-nav a, .footer-contact a { color: #fff; text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-contact { display: grid; gap: .55rem; align-content: start; }
.social { display: flex; gap: 1rem; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: 1.25rem; font-size: var(--fs-small); opacity: .75; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav {
    position: fixed; inset: calc(var(--header-h) + 6px) 0 auto 0;
    flex-direction: column; gap: 0; background: #fff; padding: .5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid rgba(12, 74, 36, .12);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid rgba(12, 74, 36, .08); }
  .nav a::after { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: flex; }
}
@media (max-width: 860px) {
  .split, .specialty-grid, .specials-grid { grid-template-columns: 1fr; }
  .hero { min-height: 600px; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .75) 32%, rgba(0, 0, 0, .2) 62%, rgba(0, 0, 0, 0) 78%),
      linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 18%);
  }
  .hero-content { justify-content: flex-end; text-align: center; align-items: center; padding-bottom: 5.5rem; }
  .hero-logo { width: min(420px, 92%); margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-nav { justify-content: center; }
  .specialty-copy { text-align: center; }
  .specialty-text { margin-inline: auto; }
  .fav-grid { grid-template-columns: 1fr 1fr; }
  .fav:nth-child(3) { grid-column: span 2; }
  .fav:nth-child(3) .fav-img { aspect-ratio: 16 / 10; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .m.tall { grid-row: span 1; }
  .m.wide { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .brand img { height: 42px; }
  .header-actions .btn { display: none; }
  .specials-list li { grid-template-columns: 1fr; gap: .4rem; }
  .dishes { columns: 1; }
  .menu-info { grid-template-columns: 1fr; }
  .fav-grid { grid-template-columns: 1fr; }
  .fav:nth-child(3) { grid-column: auto; }
  .fav:nth-child(3) .fav-img { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   ANIMACIONES
   Solo se activan si JS agrega .anim al <html> (y el usuario
   no pidió reducir movimiento). Sin JS todo se ve normal.
   ========================================================= */
:root { --ease: cubic-bezier(.2, .75, .2, 1); --ease-back: cubic-bezier(.34, 1.4, .5, 1); }

/* --- Header --- */
.site-header { transition: box-shadow .3s, background-color .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(12, 74, 36, .35); }
.anim .site-header .tricolor { transform-origin: left; animation: barIn 1s var(--ease) both; }
.anim .header-inner > * { animation: fadeDown .7s var(--ease) both; }
.anim .header-inner > :nth-child(2) { animation-delay: .1s; }
.anim .header-inner > :nth-child(3) { animation-delay: .2s; }
@keyframes barIn { from { transform: scaleX(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } }

/* --- Portada: entrada coreografiada --- */
.anim .hero-logo { animation: logoIn 1s var(--ease-back) .25s both; }
.anim .hero-lead { animation: riseIn .8s var(--ease) .6s both; }
.anim .hero-ctas > * { animation: riseIn .7s var(--ease) both; }
.anim .hero-ctas > :nth-child(1) { animation-delay: .75s; }
.anim .hero-ctas > :nth-child(2) { animation-delay: .85s; }
.anim .hero-slides { animation: heroIn 1.4s var(--ease) both; }
.anim .hero-slide.active img { animation: kenBurns 9s linear both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(24px) scale(.94) rotate(-2deg); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } }
@keyframes heroIn { from { opacity: 0; scale: 1.08; } }
@keyframes kenBurns { from { scale: 1; } to { scale: 1.08; } }

/* --- Aparición al hacer scroll --- */
.anim [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.anim [data-reveal="left"] { transform: translateX(-48px); }
.anim [data-reveal="right"] { transform: translateX(48px); }
.anim [data-reveal="zoom"] { transform: scale(.93); }
.anim [data-reveal="tilt"] { transform: rotate(5deg) scale(.9); transition-duration: 1.1s; transition-timing-function: var(--ease-back); }
.anim [data-reveal].in { opacity: 1; transform: none; }
.anim .specialty-photo[data-reveal].in { transform: rotate(-2deg); }

/* grupos que entran uno tras otro */
.anim [data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.anim [data-stagger="side"] > * { transform: translateX(-36px); }
.anim [data-stagger="zoom"] > * { transform: scale(.9); }
.anim [data-stagger].in > * { opacity: 1; transform: none; }
.anim [data-stagger].in > :nth-child(2) { transition-delay: .08s; }
.anim [data-stagger].in > :nth-child(3) { transition-delay: .16s; }
.anim [data-stagger].in > :nth-child(4) { transition-delay: .24s; }
.anim [data-stagger].in > :nth-child(5) { transition-delay: .32s; }
.anim [data-stagger].in > :nth-child(6) { transition-delay: .40s; }
.anim [data-stagger].in > :nth-child(7) { transition-delay: .48s; }
.anim [data-stagger].in > :nth-child(8) { transition-delay: .56s; }
.anim [data-stagger].in > :nth-child(9) { transition-delay: .64s; }
.anim [data-stagger].in > :nth-child(10) { transition-delay: .72s; }
/* la línea de cada especial se dibuja de izquierda a derecha */
.anim .specials-list li { border-top-color: transparent; position: relative; }
.anim .specials-list li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: rgba(255, 255, 255, .25); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.anim .specials-list.in li::before { transform: scaleX(1); }
.anim .specials-list.in li:nth-child(2)::before { transition-delay: .12s; }
.anim .specials-list.in li:nth-child(3)::before { transition-delay: .24s; }

/* --- Rueda de la banda DoorDash (gira con el scroll) --- */
.wheel-order { rotate: var(--spin2, 0deg); }

/* --- Microinteracciones --- */
.btn { transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(12, 74, 36, .55); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-red:hover { box-shadow: 0 12px 24px -12px rgba(212, 20, 28, .7); }
.lang { transition: background-color .2s, color .2s, transform .4s var(--ease-back); }
.lang:hover { transform: rotate(-12deg) scale(1.06); }
.fav-img { transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.fav:hover .fav-img { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(12, 74, 36, .5); }
.fav h3 { transition: color .25s; }
.fav:hover h3 { color: var(--red); }
.m { position: relative; }
.m::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 74, 36, .45)); opacity: 0; transition: opacity .4s; }
.m:hover::after, .m:focus-visible::after { opacity: 1; }
.specialty-photo { transition: transform .6s var(--ease-back); }
.anim .specialty-photo[data-reveal].in:hover { transform: rotate(0deg) scale(1.02); }

/* --- Menú: la categoría elegida entra suave --- */
.anim .menu-cat:not([hidden]) { animation: riseIn .5s var(--ease) both; }

/* --- Galería ampliada --- */
.lightbox[open] img { animation: lbIn .45s var(--ease) both; }
.lightbox[open]::backdrop { animation: fadeIn .35s ease both; }
.lb-close, .lb-nav { transition: transform .2s var(--ease); }
.lb-close:hover { transform: rotate(90deg); }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } }
@keyframes fadeIn { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .wheel-order { rotate: none; }
}
