/* ============================================================================
   PISCOLABIS DANY & MELO — Barrial, Gáldar, Gran Canaria
   Oscuro apetitoso: carbón cálido, naranja fuego, mostaza. Las fotos mandan.
   ============================================================================ */

/* ─────────────────────────── 1. TOKENS ─────────────────────────── */
:root {
  --bg:      #14100D;
  --bg-2:    #1C1714;
  --bg-3:    #26201B;
  --bg-4:    #322A23;

  --cream:   #F8F2E7;
  --cream-2: #D6C9B8;
  --muted:   #9C8E7E;

  --fire:    #FF5A1F;
  --fire-2:  #FF8A3D;
  --gold:    #F5B301;
  --green:   #46C46B;

  --line:    rgba(248,242,231,.12);
  --line-2:  rgba(248,242,231,.07);

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease:    cubic-bezier(.16, 1, .3, 1);
  --bounce:  cubic-bezier(.34, 1.4, .5, 1);

  --wrap:    1240px;
  --pad:     clamp(1.15rem, 4vw, 3rem);
  --nav-h:   64px;
  --bgt-stage-h: 190px;   /* alto de la hamburguesa en móvil; lo usan el
                             escenario y el hueco que le reserva el grid */
  --r:       16px;
  --r-sm:    10px;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px;              /* hueco para la barra del carrito */
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .98; letter-spacing: -.03em; text-wrap: balance; }

::selection { background: var(--fire); color: #fff; }
:focus-visible { outline: 3px solid var(--fire-2); outline-offset: 3px; border-radius: 6px; }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; border-radius: var(--r-sm);
  background: var(--fire); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Grano cálido sobre todo, muy sutil */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─────────────────────────── 3. SPLASH ─────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 1.5rem;
  animation: splashSafety .01s 4.5s forwards;      /* red de seguridad CSS */
}
.splash.is-out {
  opacity: 0; pointer-events: none;
  transition: opacity .55s ease .1s;
}
@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }
.splash-logo {
  width: clamp(110px, 26vw, 160px); height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,90,31,.25), 0 20px 60px rgba(0,0,0,.6);
  animation: splashPop .8s var(--bounce) both;
}
@keyframes splashPop { from { opacity: 0; transform: scale(.82); } }
.splash-bar {
  width: min(200px, 46vw); height: 3px; border-radius: 3px;
  background: rgba(248,242,231,.14); overflow: hidden;
}
.splash-bar i {
  display: block; height: 100%; width: 100%;
  background: var(--fire);
  transform: scaleX(0); transform-origin: 0 50%;
  animation: splashBar 1.5s var(--ease) forwards;
}
@keyframes splashBar { to { transform: scaleX(1); } }

/* ─────────────────────────── 4. NAV ─────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 700;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--pad);
  background: rgba(20,16,13,.82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(20,16,13,.94); }

.nav-logo { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.nav-logo img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.nav-name {
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -.02em; white-space: nowrap;
}
.nav-name i { font-style: normal; color: var(--fire); }

.nav-links { display: none; gap: .3rem; }
.nav-links a {
  padding: .5rem .85rem; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--cream-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { background: var(--bg-3); color: var(--cream); }

.nav-tel {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  /* 44px de alto mínimo: es el botón de llamar y en el móvil se falla al
     pulsarlo si es más bajo */
  min-height: 44px; min-width: 44px;
  padding: .55rem 1rem; border-radius: 999px;
  background: var(--fire); color: #fff;
  font-weight: 700; font-size: .9rem; white-space: nowrap;
  transition: transform .2s var(--bounce), background .2s ease;
}
.nav-tel:hover, .nav-tel:focus-visible { background: var(--fire-2); transform: translateY(-2px); }
.nav-tel span { display: none; }

/* ─────────────────────────── 5. PIEZAS COMUNES ─────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--fire { color: var(--fire-2); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: 0 0 8px; }
.is-open .dot { background: var(--green); animation: pulse 2.4s infinite; }
.is-closed .dot { background: var(--fire); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(70,196,107,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(70,196,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(70,196,107,0); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-align: center;
  transition: transform .22s var(--bounce), background .2s ease, box-shadow .25s ease, color .2s ease;
}
.btn--sm { padding: .65rem 1.1rem; font-size: .88rem; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--fire {
  background: var(--fire); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255,90,31,.7);
}
.btn--fire:hover, .btn--fire:focus-visible {
  background: var(--fire-2); transform: translateY(-3px);
  box-shadow: 0 16px 40px -12px rgba(255,90,31,.85);
}
.btn--ghost {
  background: transparent; color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--bg-3); transform: translateY(-2px); }
.btn--wa { background: #25D366; color: #06301A; width: 100%; }
.btn--wa:hover, .btn--wa:focus-visible { background: #3ae07a; transform: translateY(-2px); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.section { padding: clamp(3.5rem, 9vw, 7rem) var(--pad); }
.section-head { max-width: var(--wrap); margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.section-head .eyebrow { margin-bottom: .9rem; }
.section-title {
  font-size: clamp(2.1rem, 6.2vw, 4.2rem);
  margin-bottom: .9rem;
}
.section-title em { font-style: normal; color: var(--fire); }
.section-note { color: var(--cream-2); max-width: 54ch; font-size: 1.02rem; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ─────────────────────────── 6. HERO ───────────────────────────
   Las fotos son verticales de móvil. En móvil van a sangre (encajan);
   en escritorio se muestran en un panel vertical a la derecha, para no
   recortarlas en apaisado y acabar enseñando la mesa en vez de la comida.
   ─────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%;
  filter: contrast(1.05) saturate(1.05) brightness(.95);
  /* Zoom para que mande la hamburguesa y no el fondo de la mesa */
  transform: scale(1.28);
  transform-origin: 50% 74%;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,13,.7) 0%, rgba(20,16,13,.15) 26%, rgba(20,16,13,.55) 48%, rgba(20,16,13,.88) 76%, var(--bg) 100%),
    radial-gradient(85% 45% at 30% 82%, rgba(20,16,13,.88), transparent 74%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) var(--pad) clamp(2.5rem, 6vw, 4rem);
}
.hero-title {
  font-size: clamp(2.7rem, 9.5vw, 6.4rem);
  margin: 1rem 0 1.2rem;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero-title em { font-style: normal; color: var(--fire); }
.hero-lead { max-width: 46ch; color: var(--cream-2); font-size: clamp(1rem, 2.2vw, 1.16rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.8rem 0 2rem; }
.hero-cta .btn { flex: 1 1 auto; min-width: 180px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-facts li {
  display: flex; align-items: baseline; gap: .45rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: rgba(38,32,27,.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .88rem;
}
.hero-facts strong { font-family: var(--display); font-weight: 800; font-size: 1.02rem; }
.hero-facts span { color: var(--muted); }

/* ──────────────── 7. LA BURGUER DE TUS GUSTOS ────────────────
   Configurador paso a paso. Los precios NO viven aquí: están en los
   data-price de cada input del HTML. */
.bgt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.bgt-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: 1fr;
  /* Fila 1 reservada para la hamburguesa. Ella abarca las tres filas
     (ver .bgt-stage) para tener recorrido y poder quedarse pegada: un
     elemento sticky solo se mueve dentro de su propia celda. */
  grid-template-rows: var(--bgt-stage-h) auto auto;
  align-items: start;
}

/* --- Pasos --- */
.bgt-steps { grid-row: 2; display: grid; gap: clamp(.9rem, 2.2vw, 1.3rem); }
.bgt-step {
  border: 0; margin: 0;
  padding: clamp(1.1rem, 2.8vw, 1.6rem);
  border-radius: var(--r);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* El float es lo que hace que <legend> se comporte como un bloque normal
   en todos los navegadores; sin él se mete dentro del borde del fieldset. */
.bgt-legend {
  float: left; width: 100%; padding: 0; margin: 0 0 .9rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--cream);
}
.bgt-legend b {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--fire); color: #fff;
  font-size: .85rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.bgt-legend span {
  font-family: var(--body); font-weight: 500;
  font-size: .82rem; color: var(--muted); margin-left: auto;
}
.bgt-fields, .bgt-opts { clear: both; }

.bgt-opts {
  display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
.bgt-opts--wide { grid-template-columns: 1fr; }

/* ── El escenario: la hamburguesa dibujándose ── */
.bgt-side { display: contents; }
.bgt-stage {
  /* Abarca todo el grid pero se queda con su altura, arriba: así tiene
     recorrido de sobra para seguirte mientras eliges. */
  grid-row: 1 / -1; align-self: start;
  position: sticky; top: var(--nav-h); z-index: 4;
  border-radius: var(--r);
  background: radial-gradient(78% 66% at 50% 26%, var(--bg-4), var(--bg-2) 72%);
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: var(--bgt-stage-h); padding: 1rem 1rem 1.4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  overflow: hidden;
}
.bgt-stage-glow {
  position: absolute; left: 50%; bottom: 6%; translate: -50% 0;
  width: 76%; height: 58%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,90,31,.22), transparent 72%);
  filter: blur(26px); pointer-events: none;
}
.bgt-stage-plate {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: min(300px, 76%); height: 22px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.55), transparent 70%);
  pointer-events: none;
}
/* Altura FIJA, no mínima: es lo que permite que fitStack encoja la torre
   cuando crece. Con min-height el hueco crecía con ella y nunca escalaba. */
.bgt-stack-wrap {
  position: relative; z-index: 2;
  width: min(230px, 62%); height: 148px;
  display: flex; align-items: flex-end; justify-content: center;
}
.bgt-stack {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 100%;   /* también gobierna la propiedad `scale` */
  /* Sin transición aquí: al reescalar en cada render la transición se
     reiniciaba sin llegar a aplicarse y la torre nunca encogía. La gracia
     visual la ponen las capas al caer, no el reajuste de la torre. */
}
.bgt-layer { width: 100%; display: block; }
.bgt-layer + .bgt-layer { margin-top: -7px; }
.bgt-layer svg { width: 100%; height: auto; display: block;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); }
.bgt-layer.is-drop { animation: capaCae .5s var(--bounce) both; }
@keyframes capaCae {
  0%   { opacity: 0; transform: translateY(-70px) scaleX(1.12) scaleY(.72); }
  55%  { opacity: 1; transform: translateY(0) scaleX(1.08) scaleY(.9); }
  78%  { transform: translateY(0) scaleX(.97) scaleY(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.bgt-stage-hint {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%;
  color: var(--muted); font-size: .9rem; z-index: 3; text-align: center;
}
.bgt-stage-hint[hidden] { display: none; }
/* Las papas no van dentro del pan: se ven al lado del plato */
.bgt-fries {
  position: absolute; right: 12px; bottom: 16px; z-index: 3;
  display: flex; align-items: flex-end; gap: 3px;
  animation: capaCae .5s var(--bounce) both;
}
.bgt-fries[hidden] { display: none; }
.bgt-fries i {
  display: block; width: 7px; border-radius: 2px;
  background: linear-gradient(180deg, #F2C24B, #D89A2E);
}
.bgt-fries i:nth-child(1) { height: 30px; }
.bgt-fries i:nth-child(2) { height: 42px; }
.bgt-fries i:nth-child(3) { height: 26px; rotate: 8deg; }
.bgt-fries i:nth-child(4) { height: 38px; }
.bgt-fries i:nth-child(5) { height: 22px; rotate: -6deg; }

.bgt-opt {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  padding: .75rem .9rem; border-radius: var(--r-sm);
  background: var(--bg-3); color: var(--cream);
  font-size: .92rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer; user-select: none;
  transition: transform .18s var(--bounce), background .18s ease, box-shadow .18s ease;
}
/* El input real sigue ahí: teclado y lectores de pantalla funcionan solos */
.bgt-opt input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; margin: 0; pointer-events: none;
}

/* Las opciones con cantidad son botón: pulsar otra vez suma otra unidad.
   El recuadro lo pone .bgt-opt y el relleno el botón de dentro. */
.bgt-opt[data-bgt-item] { padding: 0; }
.bgt-opt-main {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .75rem .9rem;
  background: none; border: 0; color: inherit;
  font: inherit; font-size: .92rem; font-weight: 500;
  text-align: left; cursor: pointer;
}
.bgt-opt-x {
  flex: 0 0 auto; margin-left: auto;
  font-size: .74rem; font-weight: 800; line-height: 1;
  padding: .2rem .4rem; border-radius: 999px;
  background: var(--fire); color: #fff;
}
.bgt-opt-x[hidden] { display: none; }
.bgt-opt-less {
  position: absolute; top: -8px; right: -8px; z-index: 3;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--bg-4); color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px rgba(0,0,0,.45);
  font-size: 1.05rem; line-height: 1;
  display: grid; place-items: center;
  transition: background .16s ease, color .16s ease, transform .16s var(--bounce);
}
.bgt-opt-less[hidden] { display: none; }
.bgt-opt-less:hover, .bgt-opt-less:focus-visible {
  background: var(--fire); color: #fff; transform: scale(1.12);
}

.bgt-opt-n { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.bgt-opt-n::before {
  content: ""; flex: 0 0 auto;
  width: 15px; height: 15px; border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px var(--muted);
  transition: background .18s ease, box-shadow .18s ease;
}
.bgt-opt--radio .bgt-opt-n::before { border-radius: 50%; }
.bgt-opt-p {
  flex: 0 0 auto;
  font-size: .8rem; font-weight: 700; color: var(--fire-2); white-space: nowrap;
}
.bgt-opt:hover {
  background: var(--bg-4); transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255,90,31,.4);
}
.bgt-opt:focus-within { box-shadow: inset 0 0 0 2px var(--fire); }
.bgt-opt.is-on {
  background: rgba(255,90,31,.15);
  box-shadow: inset 0 0 0 1.5px var(--fire);
}
.bgt-opt.is-on .bgt-opt-n::before {
  background: var(--fire) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.6 4.6L19 7'/></svg>") center / 11px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--fire);
}
.bgt-opt.is-on .bgt-opt-p { color: var(--cream); }
.bgt-opt.is-hit { animation: hit .35s var(--bounce); }
@keyframes hit { 40% { background: var(--fire); } }

/* --- Resumen --- */
.bgt-summary {
  grid-row: 3;
  border-radius: var(--r);
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(1.2rem, 3vw, 1.7rem);
  display: flex; flex-direction: column; gap: .9rem;
}
.bgt-sum-h {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--cream);
}
.bgt-sum-list { display: grid; gap: .1rem; margin: 0; }
.bgt-sum-list dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-top: .7rem;
}
.bgt-sum-list dt:first-child { margin-top: 0; }
.bgt-sum-list dd { margin: 0; color: var(--cream-2); font-size: .95rem; line-height: 1.45; }
/* Una línea por ingrediente, con su precio a la derecha, como un ticket */
.bgt-sum-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
}
.bgt-sum-row i { font-style: normal; min-width: 0; }
.bgt-sum-row b {
  flex: 0 0 auto; font-weight: 700; font-size: .88rem;
  color: var(--cream); font-variant-numeric: tabular-nums;
}
.bgt-sum-empty { color: var(--muted); font-size: .93rem; line-height: 1.5; }

/* Lo que no suma se ve de un vistazo */
.is-free { color: var(--green) !important; }
.bgt-legend span.is-spent { color: var(--fire-2); }

.bgt-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: .9rem; border-top: 1px solid var(--line);
  color: var(--cream-2); font-size: .95rem;
}
.bgt-total b {
  font-family: var(--display); font-weight: 800; font-size: 1.9rem;
  color: var(--cream); letter-spacing: -.02em;
}
.bgt-total b.is-bump { animation: bump .4s var(--bounce); }
@keyframes bump { 40% { transform: scale(1.16); } }

.bgt-reset {
  color: var(--muted); font-size: .85rem; text-decoration: underline;
  text-underline-offset: 3px; padding: .55rem .2rem;
}
.bgt-reset:hover, .bgt-reset:focus-visible { color: var(--cream); }

/* --- Compartir --- */
.bgt-share {
  display: grid; gap: .6rem;
  padding-top: .9rem; border-top: 1px solid var(--line);
}
.bgt-share-lbl {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fire-2);
}
.bgt-share-input {
  width: 100%; padding: .75rem .9rem;
  border: 0; border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--cream);
  font: inherit; font-size: .95rem;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow .2s ease;
}
.bgt-share-input::placeholder { color: var(--muted); }
.bgt-share-input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--fire); }
.bgt-share-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.bgt-share-row .btn { flex: 1 1 auto; }
.btn--wa.btn--sm { width: auto; }
.bgt-share-hint { color: var(--muted); font-size: .82rem; line-height: 1.45; }

/* --- Modo "te han mandado una" --- */
.bgt-shared {
  max-width: var(--wrap); margin: 0 auto clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: var(--r);
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px rgba(255,90,31,.35);
  text-align: center;
  animation: againIn .6s var(--bounce) both;
}
.bgt-shared[hidden] { display: none; }
.bgt-shared-kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fire-2);
}
.bgt-shared-name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.2rem, 3.4vw, 1.7rem);
  letter-spacing: -.02em; line-height: 1.15;
  margin-top: .2rem;
}
.bgt-shared-cta {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin-top: 1rem;
}
.bgt-shared-cta .btn { flex: 0 1 auto; }

/* ─────────────────────────── 8. CARTA ─────────────────────────── */
.carta { background: var(--bg-2); }
.carta-aviso {
  margin-top: 1rem; display: inline-block;
  padding: .5rem .9rem; border-radius: var(--r-sm);
  background: rgba(245,179,1,.1); color: var(--gold);
  font-size: .84rem; box-shadow: inset 0 0 0 1px rgba(245,179,1,.25);
}

/* Maquetación en columnas (masonry), no en grid: cada tarjeta mide lo que
   mide su contenido. Con grid todas las de una fila se estiraban a la altura
   de la más alta y el sobrante quedaba como un pastillón negro debajo de las
   cortas (Perritos junto a Hamburguesas Top: casi 1000 px de nada). */
.menu {
  max-width: var(--wrap); margin: 0 auto;
  column-gap: clamp(1rem, 2.5vw, 1.5rem);
}
.mcat {
  border-radius: var(--r); overflow: hidden;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
  display: flex; flex-direction: column;
  /* En multicolumna el hueco entre tarjetas es margen, no gap */
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  -webkit-column-break-inside: avoid;   /* Safari antiguo */
  break-inside: avoid;
}
.mcat-photo { overflow: hidden; background: var(--bg-4); }
.mcat-photo img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  filter: contrast(1.05) saturate(1.08) brightness(.95);
  transition: transform .7s var(--ease);
}
.mcat:hover .mcat-photo img { transform: scale(1.05); }
.mcat-body { padding: clamp(1.1rem, 2.6vw, 1.6rem); display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.mcat h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.mcat-note { color: var(--muted); font-size: .92rem; margin-bottom: .5rem; }

.mlist { display: grid; gap: .3rem; }
.mitem {
  width: 100%; display: grid;
  grid-template-columns: 1fr auto; grid-template-areas: "n p" "d p";
  gap: 0 .8rem; align-items: center;
  padding: .7rem 2.6rem .7rem .8rem; border-radius: var(--r-sm);
  text-align: left; position: relative;
  transition: background .18s ease, transform .18s var(--bounce);
}
.mitem::after {
  content: "+"; position: absolute; right: .7rem; top: 50%; translate: 0 -50%;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--fire); color: #fff;
  display: grid; place-items: center; font-weight: 700; line-height: 1;
  opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .2s var(--bounce);
}
.mitem:hover, .mitem:focus-visible { background: var(--bg-4); }
.mitem:hover::after, .mitem:focus-visible::after { opacity: 1; transform: scale(1); }
.mitem.is-hit { background: rgba(255,90,31,.18); }

.mitem-n { grid-area: n; font-weight: 700; }
.mitem-d { grid-area: d; color: var(--muted); font-size: .87rem; }
.mitem-p {
  grid-area: p; font-family: var(--display); font-weight: 700;
  color: var(--cream); white-space: nowrap;
}

/* ── Extras de los bocadillos ──────────────────────────────────────
   Reutilizan las clases .bgt-opt* del configurador para que se vean y se
   usen igual; aquí solo se aprieta la caja, porque en escritorio esta
   tarjeta es una de las tres columnas de la carta y no un panel entero. */
.bex {
  margin-top: .6rem; padding-top: .9rem;
  border-top: 1px solid var(--line-2);
  display: grid; gap: .45rem;
}
.bex-for { font-size: .84rem; color: var(--muted); }
.bex.is-ready .bex-for { color: var(--fire-2); font-weight: 700; }
.bex-group {
  margin-top: .35rem;
  font-family: var(--display); font-weight: 700;
  font-size: 1rem; color: var(--cream);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem;
}
.bex-group span {
  font-family: var(--body); font-weight: 500;
  font-size: .78rem; color: var(--muted); margin-left: auto;
}
.bex-opts { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.bex-opts .bgt-opt { padding: 0; }
/* 44px de alto mínimo: son botones de dedo, no de ratón */
.bex-opts .bgt-opt-main { padding: .6rem .7rem; min-height: 44px; font-size: .86rem; gap: .4rem; }
.bex-opts .bgt-opt-n { gap: .45rem; }
.bex-opts .bgt-opt-n::before { width: 13px; height: 13px; }
.bex-opts .bgt-opt-p { font-size: .74rem; }

/* ─────────────────────────── 9. REPARTO ─────────────────────────── */
.reparto { background: var(--bg); }
.rep-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}
.rep-copy .section-title { margin-top: .9rem; }
.rep-copy .section-note { margin-bottom: 1.6rem; }

.rep-facts { display: grid; gap: .6rem; }
.rep-facts li {
  padding: 1.1rem 1.3rem; border-radius: var(--r);
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; gap: .25rem; align-content: start;
}
.rep-facts span { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rep-facts b { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }
.rep-facts i { font-style: normal; color: var(--muted); font-size: .85rem; font-weight: 400; }

.rep-photo { border-radius: var(--r); overflow: hidden; }
.rep-photo img {
  width: 100%; height: 100%; min-height: 240px; object-fit: cover; object-position: 50% 48%;
  filter: contrast(1.06) saturate(1.05) brightness(.94);
}

/* ─────────────────────────── 10. DÓNDE ─────────────────────────── */
.local { background: var(--bg-2); }
.local-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; gap: clamp(.8rem, 2vw, 1.2rem); grid-template-columns: 1fr;
}
.lcard {
  padding: clamp(1.3rem, 3vw, 1.9rem); border-radius: var(--r);
  background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; gap: .7rem; align-content: start;
}
.lcard-lbl { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lcard-big { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.lcard-link { color: var(--fire-2); font-weight: 700; justify-self: start; padding: .4rem 0; }
.lcard-link:hover { text-decoration: underline; }
.lcard-tel {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.2rem);
  letter-spacing: -.03em; color: var(--fire); justify-self: start;
}
.lcard-tel:hover { color: var(--fire-2); }
.lcard-note { color: var(--muted); font-size: .9rem; }
.lcard-live { display: flex; align-items: center; gap: .5rem; color: var(--cream-2); font-size: .9rem; }

.hours th, .hours td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
.hours th { color: var(--muted); font-weight: 500; width: 58%; }

/* ─────────────────────────── 11. FOOTER ─────────────────────────── */
.footer { padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 2.5rem; background: var(--bg); }
.foot-grid {
  max-width: var(--wrap); margin: 0 auto 1.6rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  color: var(--muted); font-size: .9rem;
}
.foot-h { color: var(--cream); font-weight: 700; margin-bottom: .4rem; }
/* Los enlaces del pie (teléfono y cómo llegar) medían 18 px de alto: en el
   móvil se falla al pulsarlos. El relleno los sube a una zona pulsable digna. */
.foot-grid a { display: inline-block; padding: .35rem 0; }
.foot-grid a:hover { color: var(--fire-2); }
.foot-legal {
  max-width: var(--wrap); margin: 0 auto; padding-top: 1.4rem;
  border-top: 1px solid var(--line-2); color: var(--muted); font-size: .84rem;
}

/* ─────────────────────────── 12. CARRITO ─────────────────────────── */
.cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  padding: 0 var(--pad) max(.8rem, env(safe-area-inset-bottom));
  pointer-events: none;
}
.cart[hidden] { display: none; }

.cart-bar {
  pointer-events: auto;
  width: 100%; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem; border-radius: 999px;
  background: var(--fire); color: #fff;
  box-shadow: 0 16px 44px -12px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.1);
  transition: transform .25s var(--bounce), background .2s ease;
}
.cart-bar:hover { background: var(--fire-2); transform: translateY(-3px); }
.cart-bag { position: relative; display: grid; place-items: center; flex: 0 0 auto; }
.cart-bag i {
  position: absolute; top: -7px; right: -9px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--bg); color: var(--cream);
  font-style: normal; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}
.cart-bar-txt { font-weight: 700; }
.cart-bar-total { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.cart-bar-caret { font-size: .7rem; opacity: .8; transition: transform .3s var(--ease); }
.cart.is-open .cart-bar-caret { transform: rotate(180deg); }
.cart-bar.is-bump { animation: bump .45s var(--bounce); }

.cart-panel {
  pointer-events: auto;
  width: 100%; max-width: 520px; margin: 0 auto .6rem;
  border-radius: var(--r);
  background: var(--bg-2);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.9), inset 0 0 0 1px var(--line);
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height .4s var(--ease), opacity .3s ease;
}
.cart.is-open .cart-panel { max-height: min(66vh, 560px); opacity: 1; }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem .6rem;
}
.cart-head p { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.cart-close { font-size: 1.7rem; line-height: 1; color: var(--muted); padding: 0 .3rem; }
.cart-close:hover { color: var(--cream); }

.cart-list { padding: 0 1.2rem; max-height: 32vh; overflow-y: auto; overflow-x: hidden; display: grid; gap: .2rem; }
.cart-line {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line-2);
}
.cart-line-n { font-weight: 700; font-size: .96rem; }
.cart-line-note { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; }
.cart-line-p { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.cart-qty { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.cart-qty button {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-4); color: var(--cream);
  display: grid; place-items: center; font-weight: 700; line-height: 1;
  transition: background .18s ease, color .18s ease;
}
.cart-qty button:hover { background: var(--fire); color: #fff; }
.cart-qty span { min-width: 1.4em; text-align: center; font-weight: 700; }
.cart-empty { color: var(--muted); padding: .5rem 0 1rem; }

.cart-min {
  margin: .7rem 1.2rem 0; padding: .6rem .8rem; border-radius: var(--r-sm);
  background: rgba(245,179,1,.1); color: var(--gold);
  font-size: .85rem; box-shadow: inset 0 0 0 1px rgba(245,179,1,.25);
}
.cart-min[hidden] { display: none; }

.cart-foot { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .7rem; }
.cart-sum { display: flex; align-items: baseline; justify-content: space-between; }
.cart-sum span { color: var(--cream-2); }
.cart-sum b { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
.cart-clear { color: var(--muted); font-size: .86rem; justify-self: center; }
.cart-clear:hover { color: var(--fire); }
.cart-legal { color: var(--muted); font-size: .78rem; text-align: center; line-height: 1.45; }

/* ─────────────────────────── 13. TOAST ─────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 900;
  padding: .7rem 1.2rem; border-radius: 999px;
  background: var(--bg-4); color: var(--cream);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.8), inset 0 0 0 1px var(--line);
  font-size: .9rem; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .25s ease, transform .35s var(--bounce);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ─────────────────────────── 14. RESPONSIVE ─────────────────────────── */
@media (min-width: 540px) {
  .nav-tel span { display: inline; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .rep-facts { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .menu { columns: 2; }
  .local-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }

  /* Hero partido: texto a la izquierda, foto vertical entera a la derecha */
  .hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; }
  .hero-photo { position: relative; inset: auto; grid-column: 2; grid-row: 1; }
  .hero-photo img { object-position: 50% 58%; transform: none; }
  .hero-photo::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(20,16,13,.55) 16%, transparent 46%),
      linear-gradient(180deg, rgba(20,16,13,.5) 0%, transparent 22%, transparent 72%, var(--bg) 100%);
  }
  .hero-inner {
    grid-column: 1; grid-row: 1;
    max-width: none; align-self: center;
    padding-left: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
    padding-right: 2rem;
  }
  .hero-title { font-size: clamp(3rem, 5.4vw, 5.2rem); }
  .hero-cta .btn { flex: 0 1 auto; }

  /* En escritorio, la hamburguesa y el resumen viajan juntos y pegados
     mientras se recorren los pasos */
  /* Aquí manda .bgt-side, así que se deshacen las filas del móvil */
  .bgt-grid { grid-template-columns: 1.5fr 1fr; grid-template-rows: auto; }
  .bgt-steps { grid-row: auto; }

  .bgt-side {
    display: grid; gap: clamp(.9rem, 2vw, 1.2rem);
    /* minmax(0, 1fr) y no 1fr a secas: un 1fr conserva un mínimo por
       contenido, y por eso la fila del resumen crecía hasta salirse del
       tope y acababa montándose sobre la carta al hacer scroll. */
    grid-template-rows: auto minmax(0, 1fr);
    position: sticky; top: calc(var(--nav-h) + 1rem);
    max-height: calc(100vh - var(--nav-h) - 2.5rem);
  }
  /* relative, no static: el brillo, el plato y las papas van dentro y
     necesitan que el escenario siga siendo su marco de referencia */
  .bgt-stage {
    position: relative; top: auto;
    grid-row: auto; align-self: auto;
    min-height: 300px;
  }
  .bgt-stack-wrap { width: min(260px, 70%); height: 230px; }
  /* min-height:0 deja que la fila encoja; sin él el scroll no llega a activarse */
  .bgt-summary { grid-row: auto; min-height: 0; overflow: auto; }
  .rep-inner { grid-template-columns: 1.15fr .85fr; }
  .rep-copy { grid-column: 1; grid-row: 1; }
  .rep-facts { grid-column: 1; grid-row: 2; grid-template-columns: repeat(3, 1fr); }
  .rep-photo { grid-column: 2; grid-row: 1 / span 2; }
  body { padding-bottom: 96px; }
}

@media (min-width: 1280px) {
  .menu { columns: 3; }
}

/* ─────────────────────────── 15. REDUCED MOTION ───────────────────────────
   Solo lo intrusivo. Hovers, reveals y el configurador siguen vivos:
   Windows trae `reduce` activado de fábrica en muchos equipos.
   ───────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none !important; }
  [data-parallax] { transform: scale(1.06) !important; }
  .mapa-pin::before { animation: none; opacity: .5; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   17. RESEÑAS QUE PASAN DE LADO A LADO
   ═══════════════════════════════════════════════════════════════════════════ */
.resenas {
  background: var(--bg);
  padding-inline: 0;                       /* las filas van a sangre */
  overflow: hidden;
}
.res-head {
  max-width: var(--wrap);
  margin: 0 auto clamp(1.8rem, 4vw, 2.8rem);
  padding-inline: var(--pad);
}
.res-star { color: var(--gold); margin-left: .1em; }
.res-aviso {
  margin-top: 1rem; display: inline-block;
  padding: .5rem .9rem; border-radius: var(--r-sm);
  background: rgba(245,179,1,.1); color: var(--gold);
  font-size: .84rem; box-shadow: inset 0 0 0 1px rgba(245,179,1,.25);
}

.res-rows { display: grid; gap: .9rem; }
.res-row {
  overflow: hidden;
  /* Se desvanecen por los lados en vez de cortarse en seco */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.res-track {
  display: flex; gap: .9rem; width: max-content;
  animation: resSlide 62s linear infinite;
}
.res-row--back .res-track { animation-direction: reverse; animation-duration: 74s; }
@keyframes resSlide { to { transform: translate3d(-50%, 0, 0); } }

/* Al pasar por encima se para, para poder leerla */
.res-row:hover .res-track,
.res-row:focus-within .res-track { animation-play-state: paused; }

/* No la apagamos con reduced-motion: solo la calmamos mucho.
   Windows trae `reduce` activado de fábrica en muchos equipos y la sección
   se quedaría muerta. */
@media (prefers-reduced-motion: reduce) {
  .res-track { animation-duration: 200s; }
  .res-row--back .res-track { animation-duration: 240s; }
}

.res {
  flex: 0 0 auto;
  width: min(330px, 76vw);
  padding: 1.2rem 1.3rem;
  border-radius: var(--r);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; gap: .5rem; align-content: start;
}
.res-stars { color: var(--gold); font-size: .92rem; letter-spacing: .12em; }
.res-txt { color: var(--cream-2); font-size: .95rem; line-height: 1.5; }
.res-who { color: var(--muted); font-size: .84rem; font-weight: 700; }

/* Enlace a la ficha real de Google + fecha de cada reseña */
.res-link {
  display: inline-block; margin-top: 1rem;
  color: var(--fire-2); font-weight: 700; font-size: .95rem;
}
.res-link:hover, .res-link:focus-visible { text-decoration: underline; }
.res-who span { color: var(--muted); font-weight: 400; }

/* Aviso en vivo de si se está repartiendo a esta hora */
.rep-live {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 1.1rem 0 .2rem;
  padding: .5rem .9rem; border-radius: 999px;
  background: var(--bg-3); color: var(--cream-2);
  font-size: .88rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.rep-live .dot { background: var(--muted); }
.rep-live.is-on { color: var(--cream); }
.rep-live.is-on .dot { background: var(--green); animation: pulse 2.4s infinite; }
.cart-min--rep { color: var(--fire-2); }

/* ═══════════════════════════════════════════════════════════════════════════
   17b. MAPA
   ═══════════════════════════════════════════════════════════════════════════ */
.mapa { background: var(--bg-2); }
.mapa-wrap {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  border-radius: var(--r); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px rgba(0,0,0,.45);
}
.mapa-copy {
  position: relative; z-index: 3;
  padding: clamp(1.4rem, 5vw, 3.2rem);
  margin-top: -1px;   /* el texto se solapa al velo, sin costura */
}
.mapa-dir {
  color: var(--cream-2); font-size: 1.05rem; line-height: 1.5; margin-top: .7rem;
}
.mapa-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.mapa-caja {
  position: relative; display: block;
  background: var(--bg-3);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
/* El mosaico es cuadrado y la caja no: se centra y se recorta arriba y abajo */
.mapa-mosaico {
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 100%; aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  /* Teñido cálido: el mapa nace en tonos claros y así entra en la casa */
  filter: sepia(.42) saturate(1.25) hue-rotate(-12deg) contrast(1.06) brightness(.82);
  transition: filter .5s var(--ease), scale .8s var(--ease);
}
.mapa-mosaico img { width: 100%; height: 100%; display: block; }

/* Velo para que el texto de abajo se lea sobre el mapa */
.mapa-velo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg-2) 0%, rgba(28,23,20,.85) 26%, rgba(28,23,20,0) 58%),
    radial-gradient(70% 50% at 50% 40%, transparent 40%, rgba(20,16,13,.5) 100%);
}

.mapa-pin {
  position: absolute; left: 46.79%; top: 52.07%; z-index: 3;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--fire);
  box-shadow: 0 0 0 4px rgba(255,90,31,.35), 0 3px 10px rgba(0,0,0,.6);
}
.mapa-pin::after {          /* corazón blanco */
  content: ""; position: absolute; inset: 6px;
  border-radius: 50%; background: #fff;
}
.mapa-pin::before {         /* onda que late */
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid var(--fire);
  animation: mapaLatido 2.4s var(--ease) infinite;
}
@keyframes mapaLatido {
  0%   { opacity: .85; transform: scale(.6); }
  70%  { opacity: 0;   transform: scale(2.6); }
  100% { opacity: 0;   transform: scale(2.6); }
}
.mapa-pin b {
  position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 0;
  padding: .38rem .7rem; border-radius: 999px;
  background: var(--fire); color: #fff;
  font-family: var(--display); font-size: .8rem; font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
}
.mapa-pin b::after {        /* pico del bocadillo */
  content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0;
  border: 6px solid transparent; border-top-color: var(--fire);
}

.mapa-credito {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  padding: .22rem .55rem; border-radius: 999px;
  background: rgba(20,16,13,.7); color: var(--cream-2);
  font-size: .7rem; letter-spacing: .02em;
}
.mapa-caja:hover .mapa-mosaico,
.mapa-caja:focus-visible .mapa-mosaico {
  filter: sepia(.2) saturate(1.15) hue-rotate(-8deg) contrast(1.06) brightness(.95);
  scale: 1.04;
}

/* La media query del mapa va AQUÍ, pegada a su bloque, y no arriba con las
   demás: el bloque .mapa está más abajo en el archivo y, a igual
   especificidad, gana la última regla. Puesta arriba no hacía nada. */
@media (min-width: 960px) {
  .mapa-caja { aspect-ratio: 21 / 9; }
  .mapa-copy {
    position: absolute; inset: 0; z-index: 3; margin-top: 0;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 50%;
    padding: clamp(2rem, 4vw, 3.5rem);
  }
  .mapa-velo {
    background:
      linear-gradient(to right, var(--bg-2) 4%, rgba(28,23,20,.9) 32%, rgba(28,23,20,0) 66%),
      linear-gradient(to top, rgba(20,16,13,.5) 0%, transparent 40%);
  }
  /* Para que el local no quede tapado por el texto se agranda y desplaza el
     MOSAICO ENTERO, nunca el marcador solo: el punto tiene que seguir cayendo
     donde está el local de verdad. */
  .mapa-mosaico { width: 132%; left: 4%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   18. "¿LO DE SIEMPRE?"
   ═══════════════════════════════════════════════════════════════════════════ */
.again {
  padding: 0 var(--pad);
  margin: clamp(1.2rem, 3vw, 2rem) 0 0;
}
.again[hidden] { display: none; }
.again-inner {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  border-radius: var(--r);
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px rgba(255,90,31,.35);
  animation: againIn .6s var(--bounce) both;
}
@keyframes againIn { from { opacity: 0; transform: translateY(-12px); } }
.again-txt { flex: 1 1 260px; min-width: 0; }
.again-lbl {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fire-2); margin-bottom: .15rem;
}
.again-items { font-weight: 700; font-size: 1.02rem; }
.again .btn b { font-weight: 800; }
.again-x {
  position: absolute; top: .5rem; right: .7rem;
  font-size: 1.5rem; line-height: 1; color: var(--muted); padding: .2rem .3rem;
}
.again-x:hover { color: var(--cream); }

/* ═══════════════════════════════════════════════════════════════════════════
   20. SELLO DE FOTOS REALES
   ═══════════════════════════════════════════════════════════════════════════ */
.real-badge {
  display: inline-flex; align-items: flex-start; gap: .55rem;
  margin-top: 1rem; padding: .6rem .95rem;
  border-radius: var(--r-sm);
  background: rgba(70,196,107,.09); color: #8FE0A6;
  font-size: .86rem; line-height: 1.45;
  box-shadow: inset 0 0 0 1px rgba(70,196,107,.25);
  max-width: 56ch;
}
.real-badge svg { flex: 0 0 auto; margin-top: .12rem; }
