/* El Chili Negro - estilos
   Paleta tomada del Manual de Identidad Visual.
   Tema: oscuro fijo (Alebrije + Charro Negro son la base de la marca).
   Formas: botones y pills = pill completo, contenedores = 20px, polaroids = 6px. */

:root {
  /* Paleta principal */
  --cempasuchil: #eb5c1d;
  --alebrije: #472156;
  --charro: #0e0b10;
  /* Paleta secundaria */
  --chilito: #e62e32;
  --tortilla: #f6ac04;
  --catrina: #e2176e;
  --tequilana: #177388;
  --calavera: #f4edea;
  --agave: #93c13c;

  --bg: #1a0f20;
  --bg-deep: #120a16;
  --surface: #2a1634;
  --text: var(--calavera);
  --text-muted: #cdbfd3;
  --accent: var(--cempasuchil);
  --accent-hover: #ff6d2c;

  --font-display: "Anton", "Impact", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --radius: 20px;
  --radius-photo: 6px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Capas */
  --z-nav: 20;
  --z-grain: 30;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Grano sutil, fijo y sin eventos para no afectar el scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--charro); padding: 8px 16px; border-radius: 999px; z-index: 100;
}
.skip:focus { left: 16px; }

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

:focus-visible { outline: 3px solid var(--tortilla); outline-offset: 3px; border-radius: 4px; }

/* ---------- Logo (PNG transparente usado como máscara para colorearlo) ---------- */
.logo {
  display: inline-block;
  aspect-ratio: 692 / 361;
  background: var(--calavera);
  -webkit-mask: url("../assets/logo.png") center / contain no-repeat;
          mask: url("../assets/logo.png") center / contain no-repeat;
}
.logo--sm { width: 92px; }
.logo--hero { width: min(100%, 440px); }
.logo--ink { width: 130px; background: var(--charro); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font: 600 1.05rem/1 var(--font-cond);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn i { font-size: 1.2em; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--accent); color: var(--charro); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(244, 237, 234, 0.5); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--sm { padding: 0.65em 1.15em; font-size: 0.95rem; }

.pill {
  display: inline-block;
  padding: 0.35em 1em;
  border-radius: 999px;
  background: var(--agave);
  color: var(--charro);
  font: 400 clamp(1rem, 2vw, 1.35rem)/1.1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  font: 600 0.95rem/1 var(--font-cond);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tortilla);
  margin-bottom: 1rem;
}

.section-title {
  font: 400 clamp(2.4rem, 6vw, 4.2rem)/1.02 var(--font-display);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-title--left { text-align: left; margin-bottom: 2rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(26, 15, 32, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(244, 237, 234, 0.08);
}
.nav__inner {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { display: flex; }
.nav__right { display: flex; align-items: center; gap: 0.9rem; }
.nav__social { display: flex; gap: 0.35rem; }
.nav__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(244, 237, 234, 0.1);
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.nav__social a:hover { background: var(--accent); color: var(--charro); transform: translateY(-2px); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font: 600 1.05rem/1 var(--font-cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: 160px 0 64px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 60%, rgba(235, 92, 29, 0.22), transparent 70%),
    var(--alebrije);
  overflow: hidden;
}
.hero__inner {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero__logo { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.hero__title {
  font: 400 clamp(2rem, 4.2vw, 3.4rem)/1.05 var(--font-display);
  text-transform: uppercase;
  color: var(--tortilla);
  margin-bottom: 1rem;
}
.hero__sub { max-width: 44ch; color: var(--text-muted); font-size: 1.15rem; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Papel picado: banderines geométricos con la paleta secundaria */
.picado {
  position: absolute; top: 68px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 1%;
  pointer-events: none;
}
.picado::before {
  content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px;
  background: rgba(244, 237, 234, 0.35);
}
.picado span {
  width: 6.4%; aspect-ratio: 4 / 5;
  margin-top: 6px;
  transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 88% 100%, 75% 82%, 62% 100%, 50% 82%, 38% 100%, 25% 82%, 12% 100%, 0 82%);
  -webkit-mask: radial-gradient(circle at 50% 42%, transparent 16%, #000 17%);
          mask: radial-gradient(circle at 50% 42%, transparent 16%, #000 17%);
  opacity: 0.9;
}
.picado span:nth-child(6n+1) { background: var(--tortilla); }
.picado span:nth-child(6n+2) { background: var(--catrina); }
.picado span:nth-child(6n+3) { background: var(--tequilana); }
.picado span:nth-child(6n+4) { background: var(--cempasuchil); }
.picado span:nth-child(6n+5) { background: var(--agave); }
.picado span:nth-child(6n)   { background: var(--chilito); }

/* ---------- Polaroid (motivo del brandbook) ---------- */
.polaroid {
  margin: 0;
  background: var(--calavera);
  padding: 12px 12px 14px;
  border-radius: var(--radius-photo);
  box-shadow: 0 24px 50px -18px rgba(8, 3, 12, 0.7);
  transition: transform 0.5s var(--ease);
}
.polaroid figcaption { display: flex; justify-content: center; padding-top: 14px; }
/* Calavera del hero */
.hero__art { justify-self: end; width: 100%; max-width: min(440px, (100dvh - 190px) * 0.83); }
.calavera { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 24px 40px rgba(8, 3, 12, 0.45)); }
.calavera__ring, .calavera__crown, .calavera__head { transform-box: fill-box; }
.calavera__ring { transform-origin: 50% 50%; }
.calavera__crown { transform-origin: 50% 100%; }
.calavera__head { transform-origin: 50% 60%; transition: transform 0.6s var(--ease); }

/* Lluvia de pétalos de cempasúchil al cargar */
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.petal {
  position: absolute; top: -40px;
  width: var(--s); height: calc(var(--s) * 1.35);
  background: radial-gradient(circle at 30% 30%, var(--c2), var(--c1) 70%);
  border-radius: 0 70% 0 70%;
  opacity: 0;
  animation: petal-fall var(--d) var(--delay) cubic-bezier(0.37, 0, 0.63, 1) forwards;
}
.petal--flor {
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, var(--c2) 0 28%, var(--c1) 30% 100%);
  -webkit-mask: repeating-conic-gradient(#000 0 14deg, rgba(0,0,0,.6) 14deg 22deg);
          mask: repeating-conic-gradient(#000 0 14deg, rgba(0,0,0,.6) 14deg 22deg);
}
@keyframes petal-fall {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  8%   { opacity: 1; }
  25%  { transform: translate(var(--sx), 28vh) rotate(calc(var(--r) * 0.25)); }
  50%  { transform: translate(calc(var(--sx) * -1), 55vh) rotate(calc(var(--r) * 0.5)); }
  75%  { transform: translate(var(--sx), 82vh) rotate(calc(var(--r) * 0.75)); opacity: 1; }
  100% { opacity: 0; transform: translate(0, 108vh) rotate(var(--r)); }
}
.hero__art:hover .calavera__head { transform: rotate(-3deg) scale(1.02); }

/* Espacio reservado para fotos reales */
.photo-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--surface), var(--bg-deep));
  color: rgba(244, 237, 234, 0.45);
  overflow: hidden;
}
.photo-slot i { font-size: 2.6rem; }
.photo-slot::after {
  content: attr(data-slot);
  position: absolute; bottom: 10px; left: 12px; right: 12px;
  font: 500 0.85rem/1.2 var(--font-cond);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(244, 237, 234, 0.55);
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot:has(img)::after, .photo-slot:has(img) i { display: none; }

/* ---------- Origen ---------- */
.origin { padding: clamp(5rem, 12vw, 9rem) 0; background: var(--bg-deep); }
.origin__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.origin__copy .origin__text + .origin__text { margin-top: 1.25rem; }
.origin__photo { transform: rotate(-2.5deg); width: 100%; max-width: 460px; justify-self: center; }
.origin__photo.reveal.is-visible { transform: rotate(-2.5deg); }
.origin__photo .photo-slot { aspect-ratio: 16 / 10; }
.origin__photo img { object-position: center top; }
.origin__caption {
  justify-content: center;
  font: 400 1.6rem/1 var(--font-display);
  text-transform: uppercase;
  color: var(--alebrije);
  padding-top: 14px;
}
.origin__flags { grid-column: 1 / -1; }
.origin__title {
  font: 400 clamp(3.2rem, 10vw, 7.5rem)/0.95 var(--font-display);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.origin__text { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; color: var(--text-muted); max-width: 60ch; }
.origin__text strong { color: var(--text); font-weight: 600; }
.origin__flags { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.origin__flag {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  font: 500 1.1rem/1.35 var(--font-cond);
}
.origin__flag i { font-size: 2rem; flex: none; }
.origin__flag--mx { background: rgba(235, 92, 29, 0.14); color: #ffb48f; }
.origin__flag--pe { background: rgba(130, 70, 160, 0.25); color: #dcc2ea; }

/* ---------- Experiencia (bento) ---------- */
.experience { padding: clamp(5rem, 10vw, 8rem) 0; }
.bento {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--charro);
  overflow: hidden;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.tile h3 { font: 400 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-display); text-transform: uppercase; margin-bottom: 0.6rem; }
.tile p { font-weight: 500; max-width: 36ch; }
.tile__icon { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 3rem; opacity: 0.85; }
.tile--orange { background: var(--cempasuchil); grid-row: span 2; }
.tile--pink { background: var(--catrina); color: var(--calavera); }
.tile--yellow { background: var(--tortilla); grid-column: span 2; }
/* Bloques con foto + color de marca */
.tile--media, .tile--split { padding: 0; justify-content: stretch; }
.tile__media { position: relative; overflow: hidden; background: var(--bg); }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__body { position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); }
.tile--media .tile__media { flex: 1; min-height: 240px; }
.tile--split { display: grid; grid-template-columns: 1fr 1fr; }
.tile--split .tile__body { display: flex; flex-direction: column; justify-content: flex-end; }
.tile--split .tile__icon { top: clamp(1.5rem, 3vw, 2.25rem); right: auto; left: clamp(1.5rem, 3vw, 2.25rem); }
.tile--split .tile__media { min-height: 260px; }
.tile--photo { padding: 0; color: var(--calavera); }
.tile--photo .photo-slot { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.tile--photo .photo-slot::after { display: none; }
.tile__overlay {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(to top, rgba(14, 11, 16, 0.85), transparent);
}

/* ---------- Carta ---------- */
.menu { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--bg-deep); }
.menu__notice {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: -1.5rem auto 2rem;
  color: var(--tortilla);
  font: 500 1rem/1.3 var(--font-cond);
  text-align: center;
}
.tabs {
  display: flex; gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.tab {
  padding: 0.6em 1.3em;
  border-radius: 999px;
  border: 2px solid rgba(244, 237, 234, 0.2);
  background: transparent;
  color: var(--text-muted);
  font: 600 1rem/1 var(--font-cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.tab:hover { border-color: var(--text); color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--charro); }
.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.menu__grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.dish {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  animation: dish-in 0.6s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms);
}
.dish__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.dish__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.dish:hover .dish__photo img { transform: scale(1.06); }
.dish__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 1.15rem 1.35rem 1.4rem;
}
.dish__name { font: 400 1.55rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.dish__price { font: 400 1.3rem/1.2 var(--font-display); color: var(--tortilla); }
.dish__desc { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.98rem; line-height: 1.5; }
@keyframes dish-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Galería ---------- */
.gallery { padding: clamp(5rem, 10vw, 8rem) 0; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.gallery__grid .polaroid:nth-child(1) { grid-column: 1 / span 3; transform: rotate(-2deg); }
.gallery__grid .polaroid:nth-child(2) { grid-column: 4 / span 3; transform: rotate(1.5deg); margin-top: 3rem; }
.gallery__grid .polaroid:nth-child(3) { grid-column: 1 / span 2; transform: rotate(2deg); }
.gallery__grid .polaroid:nth-child(4) { grid-column: 3 / span 2; transform: rotate(-1.5deg); margin-top: 2rem; }
.gallery__grid .polaroid:nth-child(5) { grid-column: 5 / span 2; transform: rotate(2.5deg); }
.gallery__grid .polaroid:hover { transform: rotate(0) scale(1.03); }
.gallery__grid .photo-slot { aspect-ratio: 4 / 3; }
.gallery__grid .polaroid:nth-child(n+3) .photo-slot { aspect-ratio: 1; }

/* ---------- Reseñas ---------- */
.reviews {
  padding: clamp(5rem, 10vw, 7rem) 0;
  background: var(--cempasuchil);
  color: var(--charro);
  text-align: center;
}
.reviews { position: relative; overflow: hidden; }
.reviews__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.reviews__title { font: 400 clamp(2.4rem, 6vw, 4.2rem)/1 var(--font-display); text-transform: uppercase; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* Estrellas decorativas flotando */
.reviews__stars i { position: absolute; color: var(--tortilla); opacity: 0.55; font-size: 2.4rem; }
.reviews__stars i:nth-child(1) { top: 8%; left: 6%; font-size: 3.2rem; }
.reviews__stars i:nth-child(2) { top: 18%; right: 8%; }
.reviews__stars i:nth-child(3) { bottom: 12%; left: 10%; font-size: 1.8rem; }
.reviews__stars i:nth-child(4) { bottom: 22%; right: 5%; font-size: 3.6rem; color: var(--alebrije); opacity: 0.35; }
.reviews__stars i:nth-child(5) { top: 45%; left: 2%; font-size: 1.5rem; color: var(--alebrije); opacity: 0.35; }
.reviews__stars i:nth-child(6) { top: 6%; right: 30%; font-size: 1.6rem; }

/* Tarjetas de reseña */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  text-align: left;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.review {
  margin: 0;
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.6rem 1.6rem 1.4rem;
  background: var(--calavera);
  color: var(--charro);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(70, 20, 0, 0.6);
  transform: rotate(var(--tilt));
  transition: transform 0.5s var(--ease);
}
.review:hover { transform: rotate(0deg) translateY(-6px); }
.review__stars { display: flex; gap: 2px; color: var(--tortilla); font-size: 1.35rem; }
.review__stars .is-off { color: #d9cfd0; }
.review__text { margin: 0; flex: 1; font-size: 1.08rem; line-height: 1.55; font-weight: 500; }
.review__author { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid rgba(14, 11, 16, 0.1); }
.review__author strong { display: block; font: 600 1.1rem/1.1 var(--font-cond); text-transform: uppercase; letter-spacing: 0.03em; }
.review__author small { display: block; font-size: 0.85rem; color: #6b5f6e; }
.review__avatar {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: var(--calavera);
  font: 400 1.2rem/1 var(--font-display);
}
.review__g { margin-left: auto; font-size: 1.5rem; color: #6b5f6e; }

/* Llamado a dejar reseña */
.reviews__cta { display: flex; flex-direction: column; align-items: center; }
.reviews__question { font: 400 clamp(1.8rem, 4vw, 2.6rem)/1 var(--font-display); text-transform: uppercase; margin-bottom: 0.75rem; }
.reviews__text { max-width: 46ch; font-size: 1.15rem; font-weight: 500; margin-bottom: 1.5rem; }
.reviews__pick { font: 600 1rem/1.3 var(--font-cond); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.85rem; }
.reviews__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.reviews .btn--primary { background: var(--charro); color: var(--calavera); }
.reviews .btn--primary:hover { background: var(--alebrije); }
.reviews__nfc {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(14, 11, 16, 0.12);
  font: 600 1.02rem/1.3 var(--font-cond);
  letter-spacing: 0.02em;
}
.reviews__nfc i { font-size: 1.5rem; }

/* ---------- Visítanos ---------- */
.visit { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--bg-deep); }
.visit__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit__list { margin: 0 0 2rem; display: grid; gap: 1.5rem; }
.visit__list dt {
  display: flex; align-items: center; gap: 0.5rem;
  font: 600 0.95rem/1 var(--font-cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.visit__list dd { margin: 0; font-size: 1.15rem; }
.visit__list dd small { display: block; color: var(--text-muted); font-size: 0.95rem; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.visit__lead { color: var(--text-muted); font-size: 1.1rem; margin: -1rem 0 1.25rem; }
.tabs--left { justify-content: flex-start; margin-bottom: 2rem; }
.tab i { font-size: 1.1em; vertical-align: -2px; }
.visit__list a { color: var(--tortilla); text-underline-offset: 3px; }
.visit__list a:hover { color: var(--text); }

/* Delivery */
.delivery { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid rgba(244, 237, 234, 0.12); }
.delivery__title { display: flex; align-items: center; gap: 0.5rem; font: 600 1.1rem/1.2 var(--font-cond); letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 1rem; }
.delivery__title i { font-size: 1.5rem; color: var(--accent); }
.delivery__apps { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.delivery__app {
  padding: 0.7em 1.4em;
  border-radius: 999px;
  font: 700 1.1rem/1 var(--font-body);
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s var(--ease), filter 0.3s;
}
.delivery__app:hover { transform: translateY(-2px); filter: brightness(1.08); }
.delivery__app--rappi { background: #ff441f; }
.delivery__app--pedidosya { background: #ea004b; }
.visit__map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--surface); }
.visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: saturate(0.85); }

/* ---------- Footer ---------- */
.footer { padding: clamp(4rem, 8vw, 6rem) 0 2rem; background: var(--alebrije); }
.footer__motto {
  font: 400 clamp(2.2rem, 7vw, 5rem)/1 var(--font-display);
  text-transform: uppercase;
  color: var(--tortilla);
  margin-bottom: 3rem;
}
.footer__motto span { color: var(--calavera); }
.footer__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 237, 234, 0.15);
}
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(244, 237, 234, 0.1);
  font-size: 1.35rem;
  text-decoration: none;
  transition: background-color 0.25s, transform 0.25s var(--ease);
}
.footer__social a:hover { background: var(--accent); color: var(--charro); transform: translateY(-2px); }
.footer__legal { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Animaciones de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .gallery__grid .polaroid.reveal.is-visible { transform: var(--rot, none); }
  .gallery__grid .polaroid.reveal.is-visible:hover { transform: rotate(0) scale(1.03); }
  .review.reveal { transform: translateY(28px) rotate(var(--tilt)); }
  .review.reveal.is-visible { transform: rotate(var(--tilt)); }
  .review.reveal.is-visible:hover { transform: rotate(0deg) translateY(-6px); }
  .review.reveal:nth-child(2) { transition-delay: 0.1s; }
  .review.reveal:nth-child(3) { transition-delay: 0.2s; }
  .reviews__stars i { animation: twinkle 3.5s ease-in-out infinite alternate; }
  .reviews__stars i:nth-child(even) { animation-delay: -1.7s; }

  .hero__copy > * { animation: rise 0.9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.22s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.32s; }
  .hero__art { animation: pop 1.1s 0.2s var(--ease) both; }
  .calavera { animation: bob 6s ease-in-out 1.3s infinite alternate; }
  .calavera__ring { animation: spin 50s linear infinite; }
  .calavera__ring--rev { animation-duration: 80s; animation-direction: reverse; }
  .calavera__crown { animation: crown 4.5s ease-in-out infinite alternate; }
  .calavera__glow { animation: glow 2.6s ease-in-out infinite; }
  .picado span { animation: sway 4s ease-in-out infinite alternate; }
  .picado span:nth-child(even) { animation-delay: -2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.85) rotate(-8deg); } }
@keyframes bob { to { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes crown { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes twinkle { from { transform: translateY(0) rotate(-10deg) scale(0.9); } to { transform: translateY(-14px) rotate(12deg) scale(1.08); } }
@keyframes glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

/* Las polaroids de la galería mantienen su inclinación tras aparecer */
.gallery__grid .polaroid:nth-child(1) { --rot: rotate(-2deg); }
.gallery__grid .polaroid:nth-child(2) { --rot: rotate(1.5deg); }
.gallery__grid .polaroid:nth-child(3) { --rot: rotate(2deg); }
.gallery__grid .polaroid:nth-child(4) { --rot: rotate(-1.5deg); }
.gallery__grid .polaroid:nth-child(5) { --rot: rotate(2.5deg); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero { padding-top: 150px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 360px; }
  .menu__grid, .menu__grid[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--orange { grid-row: auto; grid-column: span 2; }
  .tile--yellow { grid-column: span 2; }
  .tile--orange.tile--media .tile__media { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
  .visit__inner { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; max-width: 480px; }
  .origin__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .logo--hero { width: min(100%, 320px); }
  .logo--sm { width: 76px; }
  .nav__right { gap: 0.5rem; }
  .nav__social { gap: 0.2rem; }
  .nav__social a { width: 34px; height: 34px; font-size: 1.15rem; background: none; }
  .origin__flags { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile--orange, .tile--yellow { grid-column: auto; }
  .tile--split { grid-template-columns: 1fr; }
  .tile--split .tile__media { order: -1; min-height: 220px; }
  .tile--split .tile__body { padding-top: 4.5rem; }
  .menu__grid, .menu__grid[data-count="4"] { grid-template-columns: 1fr; }  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid .polaroid:nth-child(n) { grid-column: span 1; margin-top: 0; }
  .gallery__grid .polaroid:nth-child(1) { grid-column: span 2; }
  .picado span { width: 12%; }
  .picado span:nth-child(n+9) { display: none; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
