/* ==========================================================================
   Restaurante Danielito · estilos
   Paleta tomada de la tarjeta del local: rojo Danielito, amarillo plátano,
   verde del logo y un negro cálido.
   ========================================================================== */

:root {
  --ink: #120c0a;
  --ink-2: #1c1411;
  --ink-3: #2a1f1a;
  --cream: #fff6e8;
  --cream-2: #f7e8cf;
  --red: #d62718;
  --red-hover: #b01e12;
  --plantain: #f4b63a;
  --plantain-2: #ffd27a;
  --leaf: #3f8f3a;
  --muted: #c4b4a4;
  --muted-ink: #6b5a4c;
  --line: rgba(255, 246, 232, 0.12);

  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 72px;
  --s-8: 112px;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--plantain);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--plantain);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* Grano sutil sobre secciones oscuras */
.grain {
  position: relative;
  isolation: isolate;
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plantain);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(63, 143, 58, 0.25);
}

.eyebrow-red {
  color: var(--red);
}

.eyebrow-ink {
  color: var(--ink);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--s-6);
}

.section-head h2,
.about-copy h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  margin-top: var(--s-2);
}

.about-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.h2-line {
  display: block;
}

body.nav-locked {
  overflow: hidden;
}

.section-lead {
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(214, 39, 24, 0.8);
}

.btn-primary:hover {
  background: var(--red-hover);
}

.btn-ghost {
  border-color: rgba(255, 246, 232, 0.35);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--plantain);
  color: var(--plantain);
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-ink:hover {
  background: var(--ink-3);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  background: rgba(18, 12, 10, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}

.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: none;
}

.brand-word {
  width: 156px;
  height: auto;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav-links {
  display: flex;
  gap: var(--s-1);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: var(--cream);
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--plantain);
  background: rgba(255, 246, 232, 0.06);
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-8);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(214, 39, 24, 0.28), transparent 70%),
    radial-gradient(45% 55% at 5% 100%, rgba(244, 182, 58, 0.14), transparent 70%),
    var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: var(--s-6);
}

.hero h1 {
  margin-top: var(--s-3);
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--plantain);
  display: inline-block;
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.12em;
  border-radius: 99px;
  background: var(--red);
  transform-origin: left;
  animation: underline 0.9s 0.4s var(--ease) both;
}

@keyframes underline {
  from {
    transform: scaleX(0);
  }
}

.lead {
  margin-top: var(--s-4);
  max-width: 520px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.hero-facts strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
}

.hero-facts span {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Pila de fotos */
.hero-media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 560px;
  width: 100%;
  justify-self: end;
}

.stack-card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--ink-3);
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-front {
  width: 70%;
  aspect-ratio: 5 / 6.4;
  left: 12%;
  top: 4%;
  z-index: 2;
  transform: rotate(-3deg);
  border: 6px solid var(--cream);
  animation: float-in 1s var(--ease) both;
}

.stack-back {
  width: 52%;
  aspect-ratio: 4 / 5;
  right: 0;
  top: 0;
  z-index: 1;
  transform: rotate(7deg);
  animation: float-in 1s 0.15s var(--ease) both;
}

.stack-mini {
  width: 36%;
  aspect-ratio: 1;
  left: 0;
  bottom: 0;
  z-index: 3;
  transform: rotate(-9deg);
  border: 5px solid var(--plantain);
  animation: float-in 1s 0.3s var(--ease) both;
}

.stack-front img {
  object-position: 50% 60%;
}

.stack-mini img {
  object-position: 50% 45%;
}

@keyframes float-in {
  from {
    opacity: 0;
    translate: 0 40px;
  }
}

.price-sticker {
  position: absolute;
  z-index: 4;
  right: 4%;
  bottom: 8%;
  display: grid;
  place-items: center;
  align-content: center;
  width: clamp(104px, 22%, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--plantain);
  color: var(--ink);
  text-align: center;
  transform: rotate(10deg);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
  animation: pop 0.7s 0.8s var(--ease) both;
}

.price-sticker span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 80%;
}

.price-sticker strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.4;
  }
}

/* ---------- Cinta ---------- */
.ribbon-wrap {
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 24px 0;
  margin: -46px 0 -24px;
}

.ribbon {
  overflow: hidden;
  background: var(--red);
  color: #fff;
  padding: 14px 0;
  transform: rotate(-1.2deg);
  margin: 0 -20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.ribbon-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
  padding-inline: 22px;
  display: inline-flex;
  align-items: center;
  gap: 44px;
}

.ribbon-track span::after {
  content: "✦";
  color: var(--plantain);
  font-size: 0.9rem;
  margin-right: -22px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Menú ---------- */
.menu-section {
  padding: var(--s-8) 0;
  background: var(--ink-2);
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin-bottom: var(--s-5);
  border-radius: 999px;
  background: rgba(255, 246, 232, 0.06);
  border: 1px solid var(--line);
}

.tab {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 1rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}

.tab:hover {
  color: var(--cream);
}

.tab[aria-selected="true"] {
  background: var(--plantain);
  color: var(--ink);
}

.tabpanel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.tabpanel[hidden] {
  display: none;
}

.tabpanel.is-entering .dish {
  animation: card-in 0.5s var(--ease) both;
}

.tabpanel.is-entering .dish:nth-child(2) {
  animation-delay: 0.06s;
}

.tabpanel.is-entering .dish:nth-child(3) {
  animation-delay: 0.12s;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.dish {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-3);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.dish:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 182, 58, 0.45);
  box-shadow: var(--shadow);
}

.dish-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2f241e;
}

.dish-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transition: transform 0.6s var(--ease);
}

.dish:hover .dish-media img {
  transform: scale(1.05);
}

.rank {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 12, 10, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dish-star .rank {
  background: var(--red);
  color: #fff;
}

.dish-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
  padding: var(--s-4);
}

.dish-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-2);
}

.dish h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.price {
  flex: none;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--plantain);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.4;
}

.dish p {
  color: var(--muted);
  font-size: 1rem;
}

.dish-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-4);
  margin-top: auto;
  padding-top: var(--s-2);
}

.dish-order,
.dish-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.dish-order {
  color: var(--plantain);
}

.dish-order span[aria-hidden] {
  transition: transform 0.25s var(--ease);
}

.dish-order:hover span[aria-hidden] {
  transform: translateX(4px);
}

.dish-more {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(196, 180, 164, 0.4);
}

.dish-more:hover {
  color: var(--cream);
}

/* ---------- Nosotros ---------- */
.about {
  padding: var(--s-8) 0;
  background: var(--cream);
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s-7);
  align-items: center;
  margin-bottom: var(--s-7);
}

.about-mascot {
  position: relative;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.mascot-card {
  aspect-ratio: 1;
  border-radius: 36px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    var(--red);
  transform: rotate(-5deg);
  box-shadow: 0 30px 60px -25px rgba(176, 30, 18, 0.7);
  display: grid;
  place-items: center;
}

.mascot-card img {
  width: 82%;
  transform: rotate(5deg);
}

.mascot-badge {
  position: absolute;
  right: -10px;
  bottom: -18px;
  display: grid;
  place-items: center;
  align-content: center;
  width: 124px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--plantain);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  transform: rotate(8deg);
  border: 5px solid var(--cream);
}

.mascot-badge span {
  font-size: 0.875rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.about-copy > p {
  margin-top: var(--s-4);
  font-size: 1.125rem;
  color: var(--muted-ink);
  max-width: 560px;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.services li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: var(--s-3);
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(18, 12, 10, 0.08);
}

.services .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(214, 39, 24, 0.1);
  color: var(--red);
}

.services li:last-child .icon {
  background: rgba(63, 143, 58, 0.12);
  color: var(--leaf);
}

.services strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.3;
}

.services span {
  display: block;
  font-size: 0.9375rem;
  color: var(--muted-ink);
  line-height: 1.4;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, 170px);
  grid-template-areas:
    "cocina seco plato desayuno"
    "cocina seco plato desayuno"
    "cocina casa casa tigrillo"
    "cocina casa casa tigrillo";
  gap: var(--s-3);
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-2);
}

.g-cocina { grid-area: cocina; }
.g-seco { grid-area: seco; }
.g-plato { grid-area: plato; }
.g-desayuno { grid-area: desayuno; }
.g-casa { grid-area: casa; }
.g-tigrillo { grid-area: tigrillo; }

.g-seco img { object-position: 50% 80%; }
.g-plato img { object-position: 50% 85%; }
.g-tigrillo img { object-position: 50% 30%; }

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.g-item:hover img {
  transform: scale(1.06);
}

.g-item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 12, 10, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
}

.g-item figcaption a {
  display: inline-block;
  min-height: 24px;
  padding: 3px 0;
  text-decoration: none;
}

.g-item figcaption a:hover {
  color: var(--plantain);
}

/* ---------- CTA ---------- */
.cta-band {
  background:
    radial-gradient(40% 120% at 100% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    var(--plantain);
  color: var(--ink);
  padding: var(--s-7) 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.cta-inner h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  margin-top: var(--s-1);
}

.cta-inner p:not(.eyebrow) {
  margin-top: var(--s-2);
  max-width: 560px;
  font-size: 1.125rem;
  color: #3a2a1c;
}

/* ---------- Visítanos ---------- */
.visit {
  padding: var(--s-8) 0;
  background: var(--cream);
  color: var(--ink);
}

.visit-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-5);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(18, 12, 10, 0.08);
  box-shadow: 0 20px 40px -30px rgba(18, 12, 10, 0.35);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  margin-bottom: var(--s-1);
}

.info-icon .icon {
  width: 24px;
  height: 24px;
}

.info-card h3 {
  font-size: 1.375rem;
}

.info-card p {
  color: var(--ink);
}

.muted {
  color: var(--muted-ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: auto;
  font-weight: 700;
  color: var(--red-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hours {
  margin: 0;
  display: grid;
  gap: var(--s-2);
  width: 100%;
}

.hours div {
  display: flex;
  flex-direction: column;
  padding-bottom: var(--s-2);
  border-bottom: 1px dashed rgba(18, 12, 10, 0.15);
}

.hours div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hours dt {
  color: var(--muted-ink);
  font-size: 0.9375rem;
}

.hours dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(63, 143, 58, 0.14);
  color: #2b6a27;
}

.phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.phone:hover {
  color: var(--red);
}

.info-card .btn {
  margin-top: auto;
}

.map-wrap {
  margin-top: var(--s-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 30px 60px -35px rgba(18, 12, 10, 0.45);
  background: var(--cream-2);
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  filter: saturate(0.85) contrast(1.02);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  padding: var(--s-7) 0 var(--s-5);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  width: 180px;
}

.footer-brand p {
  margin-top: var(--s-3);
  max-width: 360px;
}

.footer-title {
  font-size: 1.125rem;
  color: var(--cream);
  margin-bottom: var(--s-3);
}

.footer-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-bottom a:hover {
  color: var(--plantain);
}

.socials {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.social {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 246, 232, 0.35);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.social:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  padding-top: var(--s-4);
  font-size: 0.9375rem;
}

.footer-bottom a {
  display: inline-block;
  min-height: 24px;
  padding: 2px 0;
  color: var(--cream);
  text-underline-offset: 3px;
}

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1f9d55;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.wa-float .icon {
  width: 30px;
  height: 30px;
}

.wa-float.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }

  .hero-media {
    justify-self: center;
    max-width: 480px;
  }

  .tabpanel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .about-mascot {
    max-width: 300px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-template-areas:
      "cocina seco"
      "cocina plato"
      "casa casa"
      "desayuno tigrillo";
    grid-auto-rows: auto;
  }

  .g-item {
    aspect-ratio: 4 / 5;
  }

  .g-cocina {
    aspect-ratio: auto;
  }

  .g-casa {
    aspect-ratio: 16 / 10;
  }

  .visit-cards {
    grid-template-columns: 1fr 1fr;
  }

  .visit-cards .info-card:last-child {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 246, 232, 0.06);
    color: var(--cream);
    cursor: pointer;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), background-color 0.2s;
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bars::before {
    top: -6px;
  }

  .nav-toggle-bars::after {
    top: 6px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-panel {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
    padding: var(--s-4) 20px var(--s-5);
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s;
  }

  .nav-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }

  .site-header.menu-open {
    background: var(--ink);
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: flex;
    min-height: 56px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-links a:hover {
    background: transparent;
  }

  .nav-cta {
    min-height: 52px;
  }

  .wa-float {
    display: grid;
  }
}

@media (max-width: 639px) {
  body {
    font-size: 1rem;
  }

  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding: calc(var(--header-h) + var(--s-5)) 0 var(--s-7);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-facts {
    display: grid;
    gap: 0;
    padding-top: 0;
  }

  .hero-facts li {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-facts li:last-child {
    border-bottom: 0;
  }

  .hero-facts strong {
    font-size: 1.125rem;
  }

  .hero-facts span {
    text-align: right;
  }

  .hero-media {
    width: 92%;
  }

  .brand-word {
    width: 128px;
  }

  .menu-section,
  .about,
  .visit {
    padding: var(--s-7) 0;
  }

  .section-head {
    margin-bottom: var(--s-5);
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border-radius: 18px;
  }

  .tab {
    padding: 0 6px;
    font-size: 0.875rem;
    border-radius: 13px;
    white-space: normal;
    line-height: 1.15;
  }

  .tabpanel {
    grid-template-columns: 1fr;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .gallery {
    gap: var(--s-2);
  }

  .g-item figcaption {
    left: 8px;
    bottom: 8px;
    font-size: 0.8125rem;
    padding: 4px 10px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-inner .btn {
    width: 100%;
  }

  .visit-cards {
    grid-template-columns: 1fr;
  }

  .visit-cards .info-card:last-child {
    grid-column: auto;
  }

  .info-card {
    padding: var(--s-4);
  }

  .map-wrap iframe {
    height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    padding-bottom: 88px;
  }

  .wa-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .wa-float .icon {
    width: 26px;
    height: 26px;
  }

  .ribbon-track span {
    font-size: 1.0625rem;
  }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .ribbon-track {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
