/* ---------- Base común (se usa igual en todas las páginas) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; top: 0; padding: 10px 14px; z-index: 100; background: #000; color: #fff; }
.saltar:focus { left: 8px; top: 8px; }
.form__error:empty { display: none; }
[hidden] { display: none !important; }

/* Botón flotante de WhatsApp con menú */
.wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: 10px; transition: transform .3s ease, opacity .3s ease; }
.wa.oculto { transform: translateY(110px); opacity: 0; pointer-events: none; }
.wa__boton { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #1F8A4C; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .2s ease; }
.wa__boton:hover { transform: scale(1.06); }
.wa__boton:active { transform: scale(.95); }
.wa__boton .ico { width: 30px; height: 30px; }
.wa__menu { display: grid; gap: 6px; min-width: 230px; padding: 8px; border-radius: 16px; background: #fff; color: #1d1d1f; box-shadow: 0 14px 40px rgba(0,0,0,.25);
  transform-origin: bottom right; transform: scale(.85) translateY(10px); opacity: 0; visibility: hidden; transition: transform .22s ease, opacity .22s ease, visibility 0s .22s; }
.wa.abierto .wa__menu { transform: none; opacity: 1; visibility: visible; transition: transform .22s ease, opacity .22s ease; }
.wa__menu p { font-size: .8125rem; color: #555; padding: 6px 10px 2px; }
.wa__menu a { display: flex; align-items: center; min-height: 46px; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; background: #F1F4F2; }
.wa__menu a:hover, .wa__menu a:focus-visible { background: #DCF1E3; }

/* Movimiento al hacer scroll: solo si la persona no pidió reducirlo */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js [data-reveal].visto { opacity: 1; transform: none; }
  .js [data-cascada] > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-cascada].visto > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* ---------- Perro Motion ---------- */
:root {
  --rojo: #C1121F; --rojo-osc: #8E0D17; --crema: #FFF4E0; --mostaza: #F4C25B; --tinta: #1B1414; --gris: #5E5050;
  --display: "Bowlby One", Impact, sans-serif; --texto: "Figtree", system-ui, sans-serif;
  --max: 1140px; --g: 18px;
}
body { background: var(--crema); color: var(--tinta); font: 400 1.0625rem/1.6 var(--texto); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; }
:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 3px; border-radius: 6px; }
.titulo { font-size: clamp(2.4rem, 11vw, 4.4rem); color: var(--rojo); letter-spacing: -.01em; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent; font: 800 1.02rem/1.2 var(--texto); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s; }
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(1px) scale(.98); }
.boton--crema { background: var(--crema); color: var(--rojo); box-shadow: 0 6px 0 var(--rojo-osc); }
.boton--crema:hover { box-shadow: 0 8px 0 var(--rojo-osc); }
.boton--linea { border-color: rgba(255,244,224,.7); color: var(--crema); }
.boton--linea:hover { background: rgba(255,244,224,.1); }
.boton--rojo { background: var(--rojo); color: var(--crema); box-shadow: 0 5px 0 var(--rojo-osc); }
.boton--borde { border-color: var(--tinta); color: var(--tinta); }
.enlace { color: var(--rojo); font-weight: 800; text-underline-offset: 5px; }

.cabecera { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--g); }
.marca { font: 400 1.35rem/1 var(--display); color: var(--crema); text-decoration: none; letter-spacing: -.01em; }
.marca span, .pie__marca span { color: var(--mostaza); margin-left: .15em; }
.cabecera__ig { width: 44px; height: 44px; display: grid; place-items: center; color: var(--crema); border-radius: 50%; border: 2px solid rgba(255,244,224,.5); }

/* Portada */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--rojo); color: var(--crema); padding: 86px var(--g) 40px; display: grid; gap: 30px; }
.lluvia { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__texto { display: grid; gap: 14px; justify-items: start; }
.hero__sello { font-weight: 800; font-size: .92rem; background: rgba(0,0,0,.18); padding: 6px 14px; border-radius: 999px; }
.hero__titulo { display: grid; }
.hero__grande { font-size: clamp(3.4rem, 16.5vw, 9.6rem); line-height: .9; letter-spacing: -.03em; color: var(--crema); text-shadow: 0 6px 0 var(--rojo-osc); }
.hero__chico { font: 800 clamp(1.5rem, 6.4vw, 2.6rem)/1.1 var(--texto); color: var(--mostaza); margin-top: 8px; }
.hero__sub { max-width: 30em; color: #FFE7DE; }
.hero__acciones { display: grid; gap: 10px; width: 100%; max-width: 380px; margin-top: 4px; }
.hero__abierto { font-weight: 700; font-size: .95rem; color: #FFE7DE; }
.hero__abierto.abierto--si { color: #fff; }
.hero__abierto.abierto--si::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #7CF29C; margin-right: 8px; box-shadow: 0 0 0 4px rgba(124,242,156,.25); }
.hero__foto { margin: 0 auto; width: min(80vw, 360px); transform: rotate(3deg); background: #fff; padding: 10px 10px 34px; border-radius: 6px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.hero__foto img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 2px; }

.cuadros { height: 30px; background: conic-gradient(var(--tinta) 25%, #fff 0 50%, var(--tinta) 0 75%, #fff 0) 0 0 / 30px 30px; }

.cinta { background: var(--tinta); color: var(--crema); overflow: hidden; padding: 14px 0; }
.cinta__pista { display: flex; width: max-content; gap: 0; font: 400 1.3rem/1 var(--display); white-space: nowrap; }
.cinta__pista span { display: inline-flex; align-items: center; }
.cinta__pista span::after { content: ""; width: 26px; height: 9px; border-radius: 9px; background: var(--mostaza); margin: 0 22px; transform: rotate(-12deg); }

/* Carta */
.carta { max-width: var(--max); margin: 0 auto; padding: 64px var(--g); }
.carta__cab { display: grid; gap: 8px; margin-bottom: 24px; }
.carta__cab p { color: var(--gris); }
.carta__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plato { position: relative; background: #fff; border: 2px solid var(--tinta); border-radius: 18px; padding: 18px 18px 16px; display: grid; gap: 4px; box-shadow: 5px 5px 0 var(--tinta); transition: transform .2s ease, box-shadow .2s ease; }
.plato:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--rojo); }
.plato__grupo { font-size: .82rem; font-weight: 800; color: var(--rojo); }
.plato__nombre { font-size: 1.55rem; }
.plato__detalle { color: var(--gris); }
.plato__precio { margin-top: 6px; }
.plato .consultar { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--rojo); text-decoration: none; border-bottom: 2px dotted var(--rojo); }
.plato .precio { font: 400 1.4rem var(--display); color: var(--rojo); }

/* Fotos */
.fotos { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) 64px; }
.fotos .titulo { margin-bottom: 20px; }
.fotos__grilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fotos__grilla li { border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; border: 2px solid var(--tinta); }
.fotos__grilla li.ancho { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.fotos__grilla img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.fotos__grilla li:hover img { transform: scale(1.05); }

/* El local */
.local { background: var(--tinta); color: var(--crema); padding: 0 0 56px; display: grid; gap: 24px; }
.local__foto { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 30px solid; border-image: conic-gradient(var(--tinta) 25%, #fff 0 50%, var(--tinta) 0 75%, #fff 0) 30; }
.local__foto img { width: 100%; height: 100%; object-fit: cover; }
.local__texto { padding: 0 var(--g); display: grid; gap: 12px; max-width: 560px; }
.local .titulo { color: var(--mostaza); }
.local .enlace { color: var(--mostaza); }

/* Visita */
.visita { max-width: var(--max); margin: 0 auto; padding: 64px var(--g) 72px; display: grid; gap: 24px; }
.visita__info { display: grid; gap: 16px; align-content: start; }
address { font-style: normal; font-size: 1.15rem; font-weight: 600; }
.horarios { width: 100%; border-collapse: collapse; }
.horarios th, .horarios td { text-align: left; padding: 11px 0; border-bottom: 2px dashed rgba(27,20,20,.2); font-weight: 400; }
.horarios td { text-align: right; }
.horarios .hoy th, .horarios .hoy td { color: var(--rojo); font-weight: 800; }
.hoy__marca { font-size: .72rem; background: var(--rojo); color: var(--crema); border-radius: 999px; padding: 1px 9px; margin-left: 4px; vertical-align: 2px; font-weight: 800; }
.abierto { color: var(--gris); }
.abierto--si { color: #11733A; font-weight: 800; }
.visita__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visita__acciones .boton { padding: 12px 8px; }
.visita__mapa { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; border: 2px solid var(--tinta); box-shadow: 5px 5px 0 var(--tinta); }
.visita__mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

.pie { background: var(--rojo); color: var(--crema); text-align: center; padding: 40px var(--g) 110px; display: grid; gap: 4px; }
.pie__marca { font: 400 2rem/1 var(--display); margin-bottom: 8px; }
.pie a { color: var(--crema); text-underline-offset: 4px; }
.pie__brito { margin-top: 12px; font-size: .88rem; }

.wa__boton { background: var(--mostaza); color: var(--tinta); box-shadow: 0 6px 0 #B8741F, 0 12px 24px rgba(0,0,0,.25); }

@media (prefers-reduced-motion: no-preference) {
  .hero__grande { animation: caer .9s cubic-bezier(.2,1.4,.4,1) both; }
  .hero__chico { animation: entrar .7s .35s ease both; }
  .hero__sello, .hero__sub, .hero__acciones, .hero__abierto { animation: entrar .7s .5s ease both; }
  .hero__foto { animation: foto 1s .3s cubic-bezier(.2,1.2,.4,1) both; }
  .hero__foto:hover { transform: rotate(0deg) scale(1.02); transition: transform .4s ease; }
  .cinta__pista { animation: correr 26s linear infinite; }
  @keyframes caer { from { opacity: 0; transform: translateY(-60px) rotate(-4deg); } }
  @keyframes entrar { from { opacity: 0; transform: translateY(14px); } }
  @keyframes foto { from { opacity: 0; transform: rotate(14deg) translateY(40px) scale(.9); } }
  @keyframes correr { to { transform: translateX(-50%); } }
  .js .plato { transition: opacity .5s ease, transform .5s cubic-bezier(.2,1.3,.4,1), box-shadow .2s ease; }
  .js .local__foto[data-reveal] img { transform: scale(1.12); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
  .js .local__foto[data-reveal].visto img { transform: none; }
}

@media (min-width: 860px) {
  :root { --g: 40px; }
  .hero { grid-template-columns: 1.3fr 1fr; align-items: center; min-height: min(92vh, 820px); padding: 110px max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))) 70px; }
  .hero__acciones { grid-auto-flow: column; width: auto; max-width: none; }
  .hero__foto { width: 400px; }
  .carta__lista { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .fotos__grilla { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .fotos__grilla li.ancho { grid-column: span 2; aspect-ratio: auto; }
  .local { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 0; }
  .local__foto { aspect-ratio: 4 / 3.2; border-bottom: 0; border-right: 30px solid; }
  .local__texto { padding: 40px var(--g) 40px 0; }
  .visita { grid-template-columns: 1fr 1.3fr; }
  .visita__mapa { aspect-ratio: auto; min-height: 400px; }
  .pie { padding-bottom: 48px; }
}
