/* =========================================================================
   SEÑOR TACOS — Hoja de estilos principal
   Paleta extraída directamente de la carta / papel picado de las imágenes.
   ========================================================================= */

:root {
  /* Colores de marca (extraídos de la carta) */
  --crema:        #FBEFCF;
  --crema-2:      #F6E4BE;
  --crema-osc:    #EFD8A8;
  --rojo:         #C8382E;
  --rojo-vivo:    #E22A20;
  --rojo-osc:     #8E241C;
  --verde:        #2E5E3A;
  --verde-osc:    #234A2E;
  --oro:          #F0B417;
  --oro-osc:      #D9970C;
  --cafe:         #3A2317;
  --cafe-2:       #5A3A26;

  /* Papel picado */
  --pp-rosa:   #E84A8A;
  --pp-naranja:#F0872A;
  --pp-verde:  #4FB050;
  --pp-teal:   #24A6A0;
  --pp-azul:   #2E86C1;
  --pp-morado: #8E4FA8;
  --pp-rojo:   #D9342B;
  --pp-oro:    #F2B417;

  --sombra-s: 0 4px 14px rgba(58, 35, 23, .12);
  --sombra-m: 0 12px 34px rgba(58, 35, 23, .18);
  --sombra-l: 0 26px 60px rgba(58, 35, 23, .28);

  --fuente-display: "Rye", "Bitter", Georgia, serif;
  --fuente-titulo:  "Bitter", Georgia, serif;
  --fuente-texto:   "Nunito", system-ui, -apple-system, sans-serif;

  --radio: 18px;
  --nav-h: 74px;
  --max: 1200px;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--fuente-texto);
  color: var(--cafe);
  background: var(--crema);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(240,180,23,.10), transparent 30%),
    radial-gradient(circle at 88% 72%, rgba(200,56,46,.08), transparent 32%);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }

.contenedor { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; }
.seccion { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }

/* Texturas / papel */
.papel {
  background:
    repeating-linear-gradient(0deg, rgba(90,58,38,.015) 0 2px, transparent 2px 4px),
    var(--crema);
}

/* ---------- Papel picado (banderines colgados con caída) ---------- */
.papel-picado {
  position: relative; width: 100%; display: block; overflow: hidden;
  background: transparent;
}
.pp-string {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  overflow: visible; z-index: 0; pointer-events: none;
}
.pp-flag {
  position: absolute; transform-origin: top center; z-index: 1;
  filter: drop-shadow(0 7px 6px rgba(0,0,0,.18));
}
.pp-flag svg {
  width: 100%; height: 100%; display: block; transform-origin: top center;
  animation: ppsway 4.5s ease-in-out infinite;
}
@keyframes ppsway {
  0%,100% { transform: rotate(-1.6deg); }
  50%     { transform: rotate( 1.6deg); }
}

/* =========================================================================
   PRELOADER
   ========================================================================= */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-content: center; justify-items: center; gap: 1.4rem;
  background:
    radial-gradient(circle at 50% 40%, #fff7e2, var(--crema) 60%);
  transition: opacity .7s ease, visibility .7s ease;
}
#preloader.oculto { opacity: 0; visibility: hidden; }
.pre-taco {
  height: 150px; position: relative;
  animation: pre-bote 1.1s ease-in-out infinite;
  filter: drop-shadow(0 14px 14px rgba(58,35,23,.28));
}
.pre-taco img { height: 150px; width: auto; display: block; }
@keyframes pre-bote {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50%     { transform: translateY(-16px) rotate(4deg); }
}
.pre-titulo {
  font-family: var(--fuente-display); font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--rojo); letter-spacing: 1px; text-align: center;
}
.pre-barra {
  width: 220px; height: 10px; border-radius: 999px;
  background: var(--crema-osc); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.15);
}
.pre-barra span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--oro), var(--rojo));
  border-radius: 999px; transition: width .2s ease;
}
.pre-tip { font-size: .85rem; color: var(--cafe-2); letter-spacing: 3px; text-transform: uppercase; }
.pre-llamas { display: flex; gap: .4rem; }
.pre-llamas i {
  width: 12px; height: 24px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(var(--oro), var(--rojo-vivo));
  animation: flamear .8s ease-in-out infinite;
}
.pre-llamas i:nth-child(2){ animation-delay:.12s }
.pre-llamas i:nth-child(3){ animation-delay:.24s }
.pre-llamas i:nth-child(4){ animation-delay:.36s }
@keyframes flamear { 0%,100%{ transform: scaleY(.7) } 50%{ transform: scaleY(1.25) } }

/* =========================================================================
   NAVEGACIÓN
   ========================================================================= */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
#nav.flotante {
  background: rgba(251, 239, 207, .72);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 6px 26px rgba(58,35,23,.14);
  border-bottom: 1px solid rgba(255,255,255,.5);
}
.nav-in { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.nav-marca { display: flex; align-items: center; gap: .55rem; font-family: var(--fuente-display); color: var(--rojo); font-size: 1.35rem; letter-spacing: .5px; }
.nav-logo { width: 40px; height: auto; display: block; filter: drop-shadow(0 3px 4px rgba(58,35,23,.25)); transition: transform .3s ease; }
.nav-marca:hover .nav-logo { transform: rotate(-8deg) scale(1.08); }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  position: relative; padding: .5rem .8rem; font-weight: 700; font-size: .93rem;
  color: var(--cafe); border-radius: 10px; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px;
  background: var(--rojo); border-radius: 3px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover, .nav-links a.activo { color: var(--rojo); }
.nav-links a.activo::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--rojo); color: #fff !important; padding: .55rem 1.1rem !important;
  border-radius: 999px; box-shadow: var(--sombra-s);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--rojo-osc); }
.nav-cart { position: relative; }
.nav-cart .contador {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  background: var(--oro); color: var(--cafe); font-size: .72rem; font-weight: 800;
  border-radius: 999px; display: grid; place-content: center; padding: 0 5px;
  transform: scale(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.nav-cart.tiene .contador { transform: scale(1); }

/* Hamburguesa */
.nav-burger { display: none; width: 44px; height: 44px; }
.nav-burger svg { width: 34px; height: 34px; }
.nav-burger .linea { stroke: var(--rojo); stroke-width: 3.4; stroke-linecap: round; transition: .4s ease; transform-origin: center; }
.nav-burger.abierto .l1 { transform: translateY(8px) rotate(45deg); }
.nav-burger.abierto .l2 { opacity: 0; }
.nav-burger.abierto .l3 { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
#hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding-top: var(--nav-h); overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 10%, #fff6df 0%, var(--crema) 45%, var(--crema-2) 100%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid {
  position: relative; z-index: 2;
  width: min(100% - 2.4rem, var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center;
}
.hero-txt { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(46,94,58,.12); color: var(--verde); font-weight: 800;
  padding: .4rem 1rem; border-radius: 999px; font-size: .8rem; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.hero-h1 {
  font-family: var(--fuente-display);
  font-size: clamp(3rem, 9vw, 6rem); line-height: .92; margin: 0 0 .3rem;
  color: var(--cafe);
}
.hero-h1 .l-rojo { color: var(--rojo); display: block; -webkit-text-stroke: 1px rgba(0,0,0,.06); }
.hero-tagline {
  font-family: var(--fuente-titulo); font-style: italic; font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: var(--verde); min-height: 2.2em; margin: .4rem 0 1.4rem;
}
.hero-tagline .cursor { color: var(--rojo); animation: parpadeo 1s steps(2) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.hero-datos { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.8rem; font-weight: 700; }
.hero-datos span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  --b: var(--rojo);
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--b); color: #fff; font-weight: 800; letter-spacing: .3px;
  padding: .95rem 1.7rem; border-radius: 999px; font-size: 1rem;
  box-shadow: var(--sombra-m); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--sombra-l); }
.btn:active { transform: translateY(-1px) scale(.99); }
.btn--verde { --b: var(--verde); }
.btn--oro   { --b: var(--oro); color: var(--cafe); }
.btn--linea { background: transparent; color: var(--rojo); box-shadow: none; border: 2.5px solid var(--rojo); }
.btn--linea:hover { background: var(--rojo); color: #fff; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.5); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.5); opacity: 0; } }

/* Mascota / plato 3D */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-mascota {
  width: min(74%, 400px); height: auto; filter: drop-shadow(0 26px 30px rgba(58,35,23,.32));
  transform: rotate(-3deg); will-change: transform;
  animation: flotar 5s ease-in-out infinite;
}
@keyframes flotar { 0%,100%{ transform: translateY(0) rotate(-3deg);} 50%{ transform: translateY(-18px) rotate(-1deg);} }
.hero-disco {
  position: absolute; inset: 0; margin: auto; width: 82%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, rgba(240,180,23,.35), transparent 62%);
  border-radius: 50%; animation: girar 26s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
.hero-chip {
  position: absolute; background: #fff; color: var(--cafe); font-weight: 800; font-size: .82rem;
  padding: .5rem .9rem; border-radius: 999px; box-shadow: var(--sombra-m); display: flex; gap: .4rem; align-items: center;
}
.hero-chip.c1 { top: 8%; left: -4%; animation: flotar 4s ease-in-out infinite; }
.hero-chip.c2 { bottom: 10%; right: -2%; animation: flotar 5.5s ease-in-out infinite .6s; }
.hero-chip b { color: var(--rojo); }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: .3rem; color: var(--cafe-2); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; }
.scroll-cue .rueda { width: 24px; height: 40px; border: 2.5px solid var(--cafe-2); border-radius: 14px; position: relative; }
.scroll-cue .rueda::after { content:""; position:absolute; top:7px; left:50%; transform:translateX(-50%); width:5px; height:8px; border-radius:3px; background: var(--rojo); animation: rodar 1.6s ease infinite; }
@keyframes rodar { 0%{opacity:0; top:6px} 40%{opacity:1} 100%{opacity:0; top:20px} }

/* =========================================================================
   TÍTULOS DE SECCIÓN
   ========================================================================= */
.titulo-sec { text-align: center; margin-bottom: 2.6rem; }
.titulo-sec .kicker {
  display: inline-block; color: var(--verde); font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; font-size: .82rem; margin-bottom: .5rem;
}
.titulo-sec h2 {
  font-family: var(--fuente-display); font-size: clamp(2.1rem, 6vw, 3.4rem);
  color: var(--rojo); margin: 0; line-height: 1;
}
.titulo-sec p { max-width: 620px; margin: .8rem auto 0; color: var(--cafe-2); }
.adorno-chiles { font-size: 1.4rem; letter-spacing: .3rem; }

/* =========================================================================
   MENÚ
   ========================================================================= */
#menu { background: linear-gradient(var(--crema), var(--crema-2)); }
.menu-filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.4rem; }
.filtro {
  padding: .55rem 1.15rem; border-radius: 999px; font-weight: 800; font-size: .9rem;
  background: #fff; color: var(--cafe-2); box-shadow: var(--sombra-s);
  border: 2px solid transparent; transition: .25s ease;
}
.filtro:hover { transform: translateY(-2px); color: var(--rojo); }
.filtro.activo { background: var(--rojo); color: #fff; border-color: var(--rojo-osc); }

.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff; border-radius: var(--radio); overflow: hidden;
  box-shadow: var(--sombra-s); position: relative;
  transform-style: preserve-3d; transition: box-shadow .3s ease, transform .1s ease;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--sombra-l); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--crema-osc); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-media.sin-foto { display: grid; place-content: center; background:
  radial-gradient(circle at 50% 35%, #fff2cf, var(--crema-osc)); }
.card-media.sin-foto .emoji { font-size: 3.6rem; filter: drop-shadow(0 6px 8px rgba(0,0,0,.15)); transform: translateZ(30px); }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: .35rem; z-index: 3; }
.badge {
  font-size: .68rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px; color: #fff; box-shadow: var(--sombra-s);
  backdrop-filter: blur(2px);
}
.badge.vendido { background: var(--rojo); }
.badge.diario  { background: var(--verde); }
.badge.finde   { background: var(--pp-morado); }
.badge.viernes { background: var(--oro); color: var(--cafe); }
.badge.nuevo   { background: var(--pp-teal); }

.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.card-nombre { font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.14rem; color: var(--cafe); line-height: 1.15; }
.card-en { font-size: .78rem; color: var(--cafe-2); font-style: italic; font-weight: 600; }
.card-precio { font-family: var(--fuente-titulo); font-weight: 800; color: var(--rojo); font-size: 1.25rem; white-space: nowrap; }
.card-precio .sig { font-size: .8em; vertical-align: .12em; }
.card-desc { font-size: .88rem; color: var(--cafe-2); flex: 1; }
.card-pie { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .4rem; }
.spice { display: inline-flex; gap: 2px; font-size: .95rem; }
.spice i { filter: grayscale(1) opacity(.35); transition: .2s; }
.spice i.on { filter: none; }
.btn-add {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--verde); color: #fff;
  font-weight: 800; font-size: .85rem; padding: .5rem .9rem; border-radius: 999px;
  box-shadow: var(--sombra-s); transition: .2s ease;
}
.btn-add:hover { background: var(--verde-osc); transform: translateY(-2px); }
.btn-add:active { transform: scale(.94); }
.btn-add .mas { font-size: 1.1rem; line-height: 0; }

/* nota comida corrida */
.menu-nota {
  margin-top: 2rem; text-align: center; background: rgba(46,94,58,.08);
  border: 1.5px dashed var(--verde); border-radius: var(--radio); padding: 1rem 1.3rem;
  color: var(--verde-osc); font-weight: 700;
}

/* Salsas */
.salsas { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; }
.salsa {
  background: #fff; border-radius: var(--radio); padding: 1.2rem 1.3rem; box-shadow: var(--sombra-s);
  border-left: 6px solid var(--rojo); transition: transform .25s;
}
.salsa:hover { transform: translateY(-4px); }
.salsa h4 { margin: 0 0 .2rem; font-family: var(--fuente-titulo); font-size: 1.15rem; }
.salsa .nivel { font-size: 1rem; }
.salsa small { color: var(--cafe-2); }

/* =========================================================================
   PREPARACIÓN (timeline)
   ========================================================================= */
#preparacion { background:
  linear-gradient(var(--verde-osc), #1c3d25); color: #fff8e8; overflow: hidden; }
#preparacion .titulo-sec h2 { color: var(--oro); }
#preparacion .titulo-sec .kicker { color: #cfe6d0; }
#preparacion .titulo-sec p { color: #e6dcc2; }
.timeline-wrap { position: relative; }
.timeline-track { display: flex; gap: 1.4rem; overflow-x: auto; padding: 1rem .2rem 2rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.timeline-track::-webkit-scrollbar { height: 8px; }
.timeline-track::-webkit-scrollbar-thumb { background: var(--oro); border-radius: 8px; }
.paso {
  scroll-snap-align: center; flex: 0 0 clamp(240px, 78vw, 320px);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radio); padding: 1.6rem; backdrop-filter: blur(3px);
  position: relative; transition: transform .3s ease, background .3s;
}
.paso:hover { transform: translateY(-6px); background: rgba(255,255,255,.11); }
.paso .num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-content: center;
  font-family: var(--fuente-display); font-size: 1.5rem; color: var(--cafe);
  background: var(--oro); box-shadow: 0 8px 18px rgba(0,0,0,.3); margin-bottom: .9rem;
}
.paso .icono { font-size: 2.2rem; margin-bottom: .4rem; }
.paso h3 { margin: 0 0 .4rem; font-family: var(--fuente-titulo); color: var(--oro); }
.paso p { margin: 0; color: #e9dfc8; font-size: .92rem; }
.timeline-hint { text-align: center; color: #cfe6d0; font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; margin-top: .4rem; }

/* =========================================================================
   HISTORIA
   ========================================================================= */
#historia .hist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; }
.hist-media { position: relative; }
.hist-media img { border-radius: 22px; box-shadow: var(--sombra-l); transform: rotate(2deg); }
.hist-sello {
  position: absolute; bottom: -22px; left: -22px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--rojo); color: #fff; display: grid; place-content: center; text-align: center;
  font-family: var(--fuente-display); line-height: 1.05; box-shadow: var(--sombra-m);
  transform: rotate(-8deg); padding: 1rem; font-size: .95rem;
  border: 3px dashed rgba(255,255,255,.5);
}
.hist-txt h2 { font-family: var(--fuente-display); color: var(--rojo); font-size: clamp(2rem,5vw,3rem); margin: 0 0 1rem; }
.hist-txt .linea { overflow: hidden; }
.hist-valores { display: flex; gap: 1.6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hist-valores div { display: grid; }
.hist-valores b { font-family: var(--fuente-display); color: var(--rojo); font-size: 2rem; }
.hist-valores span { font-size: .82rem; color: var(--cafe-2); font-weight: 700; }

/* =========================================================================
   TESTIMONIOS
   ========================================================================= */
#testimonios { background: linear-gradient(var(--crema-2), var(--crema)); }
.tst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.4rem; }
.tst {
  background: #fff; border-radius: var(--radio); padding: 1.6rem; box-shadow: var(--sombra-s);
  position: relative; transition: transform .3s ease, box-shadow .3s;
}
.tst:hover { transform: translateY(-6px); box-shadow: var(--sombra-m); }
.tst::before { content: "“"; position: absolute; top: -6px; right: 18px; font-family: var(--fuente-display); font-size: 4rem; color: var(--oro); opacity: .5; }
.tst .estrellas { color: var(--oro); letter-spacing: 2px; margin-bottom: .6rem; }
.tst p { margin: 0 0 1rem; font-style: italic; color: var(--cafe); }
.tst .autor { display: flex; align-items: center; gap: .7rem; }
.tst .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; font-weight: 800; color: #fff; font-size: 1.05rem; }
.tst .autor b { display: block; }
.tst .autor small { color: var(--cafe-2); }

/* =========================================================================
   LOCALIZADOR
   ========================================================================= */
#ubicacion .ubi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.ubi-mapa {
  border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-m); position: relative; min-height: 340px;
  background:
    linear-gradient(135deg, #dfeede, #cfe3d8);
}
.ubi-mapa .calles { position: absolute; inset: 0; opacity: .5; }
.ubi-mapa .pin {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%,-100%);
  font-size: 3rem; filter: drop-shadow(0 8px 6px rgba(0,0,0,.3)); animation: pin-bote 1.6s ease-in-out infinite;
}
@keyframes pin-bote { 0%,100%{ transform: translate(-50%,-100%) } 50%{ transform: translate(-50%,-118%) } }
.ubi-mapa .pin-sombra { position: absolute; top: 46%; left: 50%; width: 30px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.25); transform: translate(-50%,-50%); }
.ubi-mapa .abrir-mapa { position: absolute; bottom: 14px; right: 14px; }
.ubi-info { background: #fff; border-radius: var(--radio); padding: 1.8rem; box-shadow: var(--sombra-s); display: flex; flex-direction: column; gap: 1rem; }
.ubi-estado { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; padding: .4rem .9rem; border-radius: 999px; width: fit-content; }
.ubi-estado.abierto { background: rgba(46,94,58,.14); color: var(--verde); }
.ubi-estado.cerrado { background: rgba(200,56,46,.14); color: var(--rojo); }
.ubi-estado .punto { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: latido 1.4s ease infinite; }
@keyframes latido { 0%,100%{ transform: scale(1); opacity: 1 } 50%{ transform: scale(1.5); opacity: .5 } }
.ubi-dato { display: flex; gap: .8rem; align-items: flex-start; }
.ubi-dato .ic { font-size: 1.4rem; }
.ubi-horario { width: 100%; border-collapse: collapse; }
.ubi-horario td { padding: .35rem 0; border-bottom: 1px dashed var(--crema-osc); font-size: .92rem; }
.ubi-horario tr.hoy td { font-weight: 800; color: var(--rojo); }
.ubi-horario td:last-child { text-align: right; }

/* =========================================================================
   RESERVAS / PEDIDO
   ========================================================================= */
#reservar { background: linear-gradient(var(--crema), #fff4da); }
.form-card { max-width: 760px; margin-inline: auto; background: #fff; border-radius: 24px; box-shadow: var(--sombra-l); overflow: hidden; }
.form-pasos { display: flex; background: var(--crema-2); }
.form-pasos .fp { flex: 1; text-align: center; padding: 1rem .5rem; font-weight: 800; color: var(--cafe-2); font-size: .85rem; position: relative; transition: .3s; }
.form-pasos .fp .n { display: inline-grid; place-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--cafe-2); margin-right: .4rem; box-shadow: var(--sombra-s); transition:.3s; }
.form-pasos .fp.activo { color: var(--rojo); }
.form-pasos .fp.activo .n, .form-pasos .fp.hecho .n { background: var(--rojo); color: #fff; }
.form-pasos .fp.hecho { color: var(--verde); }
.form-body { padding: 2rem clamp(1.2rem, 4vw, 2.4rem); }
.form-panel { display: none; animation: aparecer .4s ease; }
.form-panel.activo { display: block; }
@keyframes aparecer { from { opacity: 0; transform: translateY(12px);} to { opacity:1; transform: none; } }
.campo { margin-bottom: 1.1rem; }
.campo label { display: block; font-weight: 800; margin-bottom: .4rem; font-size: .9rem; }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: .8rem .9rem; border-radius: 12px; border: 2px solid var(--crema-osc);
  font-family: inherit; font-size: 1rem; background: var(--crema); color: var(--cafe); transition: border .2s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--rojo); background: #fff; }
.campo.error input, .campo.error select { border-color: var(--rojo-vivo); background: #fff0ee; }
.campo .msg-error { color: var(--rojo-vivo); font-size: .8rem; font-weight: 700; margin-top: .3rem; display: none; }
.campo.error .msg-error { display: block; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stepper { display: inline-flex; align-items: center; gap: .2rem; background: var(--crema); border-radius: 12px; padding: .3rem; border: 2px solid var(--crema-osc); }
.stepper button { width: 42px; height: 42px; border-radius: 9px; background: var(--rojo); color: #fff; font-size: 1.3rem; font-weight: 800; display: grid; place-content: center; transition: .15s; }
.stepper button:hover { background: var(--rojo-osc); }
.stepper button:disabled { background: var(--crema-osc); color: var(--cafe-2); cursor: not-allowed; }
.stepper .val { min-width: 54px; text-align: center; font-weight: 800; font-size: 1.3rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-op { padding: .55rem 1rem; border-radius: 999px; background: var(--crema); border: 2px solid var(--crema-osc); font-weight: 700; transition: .2s; }
.chip-op.sel { background: var(--rojo); color: #fff; border-color: var(--rojo-osc); }
.form-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.resumen { background: var(--crema); border-radius: 14px; padding: 1.2rem; margin-bottom: 1rem; }
.resumen div { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px dashed var(--crema-osc); }
.resumen div:last-child { border: none; }
.resumen b { color: var(--rojo); }

.form-exito { text-align: center; padding: 3rem 1.5rem; display: none; }
.form-exito.activo { display: block; animation: aparecer .5s ease; }
.check-anim { width: 96px; height: 96px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--verde); display: grid; place-content: center; box-shadow: var(--sombra-m); animation: pop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { from { transform: scale(0) } to { transform: scale(1) } }
.check-anim svg { width: 52px; height: 52px; }
.check-anim path { stroke: #fff; stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: dibujar .5s .3s ease forwards; }
@keyframes dibujar { to { stroke-dashoffset: 0; } }

/* =========================================================================
   FOOTER
   ========================================================================= */
#footer { background: var(--cafe); color: #f3e6d0; padding-top: 3.5rem; position: relative; }
.foot-mascota {
  position: absolute; top: -96px; right: 6%; width: 130px; height: auto; z-index: 2;
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.35));
  animation: flotar 5s ease-in-out infinite; pointer-events: none;
}

/* Mascota asomándose junto a un título de sección */
.titulo-con-peek { position: relative; }
.peek-mascota {
  position: absolute; right: 4%; bottom: -6px; width: 108px; height: auto; z-index: 3;
  transform: rotate(8deg); transform-origin: bottom center;
  filter: drop-shadow(0 10px 10px rgba(58,35,23,.28));
  animation: peek-asoma 4.5s ease-in-out infinite; pointer-events: none;
}
@keyframes peek-asoma {
  0%,100% { transform: rotate(8deg) translateY(4px); }
  50%     { transform: rotate(3deg) translateY(-4px); }
}
@media (max-width: 860px) {
  .foot-mascota { width: 96px; top: -70px; right: 4%; }
  .peek-mascota { display: none; }
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 2.5rem; }
.foot-col h4 { font-family: var(--fuente-titulo); color: var(--oro); margin: 0 0 1rem; font-size: 1.05rem; }
.foot-marca { font-family: var(--fuente-display); color: #fff; font-size: 1.7rem; margin-bottom: .6rem; }
.foot-col a { display: block; padding: .28rem 0; color: #e0d0b6; transition: .2s; }
.foot-col a:hover { color: var(--oro); padding-left: 6px; }
.news { display: flex; gap: .5rem; margin-top: .6rem; }
.news input { flex: 1; padding: .7rem .8rem; border-radius: 10px; border: none; font-family: inherit; }
.news button { background: var(--rojo); color: #fff; padding: 0 1rem; border-radius: 10px; font-weight: 800; transition: .2s; }
.news button:hover { background: var(--rojo-vivo); }
.news.ok input { border: 2px solid var(--verde); }
.social { display: flex; gap: .7rem; margin-top: 1rem; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-content: center; font-size: 1.2rem; position: relative; overflow: hidden; transition: .3s; }
.social a:hover { background: var(--rojo); transform: translateY(-4px) rotate(6deg); }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; text-align: center; font-size: .85rem; color: #cbb99c; }
.foot-base .bigote { color: var(--oro); }

/* =========================================================================
   TOAST
   ========================================================================= */
#toasts { position: fixed; bottom: 22px; right: 22px; z-index: 1200; display: flex; flex-direction: column; gap: .7rem; }
.toast {
  background: #fff; color: var(--cafe); border-radius: 14px; padding: .9rem 1.1rem; box-shadow: var(--sombra-l);
  display: flex; align-items: center; gap: .8rem; min-width: 260px; max-width: 340px;
  border-left: 5px solid var(--verde); transform: translateX(120%); animation: toast-in .4s forwards;
  position: relative; overflow: hidden;
}
@keyframes toast-in { to { transform: translateX(0); } }
.toast.saliendo { animation: toast-out .4s forwards; }
@keyframes toast-out { to { transform: translateX(140%); opacity: 0; } }
.toast .ic { font-size: 1.5rem; }
.toast b { display: block; }
.toast small { color: var(--cafe-2); }
.toast .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--verde); width: 100%; animation: prog 3s linear forwards; }
@keyframes prog { to { width: 0; } }

/* =========================================================================
   Botón audio
   ========================================================================= */
#audio-btn {
  position: fixed; bottom: 22px; left: 22px; z-index: 1100; width: 52px; height: 52px; border-radius: 50%;
  background: var(--rojo); color: #fff; box-shadow: var(--sombra-m); display: grid; place-content: center; font-size: 1.3rem;
  transition: transform .25s;
}
#audio-btn:hover { transform: scale(1.08); }
#audio-btn.on { background: var(--verde); }

/* =========================================================================
   Animaciones de aparición (IntersectionObserver)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.dentro { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s } .reveal.d2 { transition-delay: .2s } .reveal.d3 { transition-delay: .3s } .reveal.d4 { transition-delay: .4s }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-mascota, .hero-disco, .pre-taco, .pin, .hero-chip, .pp-flag svg,
  .foot-mascota, .peek-mascota { animation: none !important; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-txt { margin-inline: auto; }
  .hero-eyebrow, .hero-acciones, .hero-datos { justify-content: center; }
  .hero-visual { order: -1; }
  #historia .hist-grid, #ubicacion .ubi-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(251,239,207,.97); backdrop-filter: blur(14px); padding: 1rem 1.4rem 1.6rem;
    box-shadow: var(--sombra-m); gap: .2rem; transform: translateY(-140%); transition: transform .4s cubic-bezier(.5,0,0,1);
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.abierto { transform: translateY(0); }
  .nav-links a { padding: .9rem 1rem; border-bottom: 1px solid var(--crema-osc); }
  .nav-links a::after { display: none; }
  .nav-burger { display: grid; place-content: center; }
  .nav-desktop-only { display: none; }
  .fila { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-pasos .fp .txt { display: none; }
  #toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
}
