/* ═══════════════════════════════════════════════════════════
   TABERNA BIRJILANDA
   1. Tokens y base        5. Carta
   2. Cabecera y nav       6. Galería y lightbox
   3. Pie de página        7. Reservas · Contacto · Legal
   4. Inicio · Restaurante 8. Utilidades y responsive
   ═══════════════════════════════════════════════════════════ */

/* ── 1. TOKENS Y BASE ─────────────────────────────────────── */
:root {
  --green:      #14301E;
  --green-dark: #0F2417;
  --ink:        #1A1A1A;
  --ink-soft:   #55534E;
  --white:      #FFFFFF;
  --soft:       #F7F5F1;
  --soft-hover: #EFECE5;
  --border:     #E4E0D8;
  --border-hd:  #DEDAD2;
  --wrap:       1140px;
  --serif:      Georgia, "Times New Roman", Times, serif;
  --sans:       Arial, Helvetica, sans-serif;
  --ease:       cubic-bezier(.22, 1, .36, 1);
}

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

html {
  /* Quita el zoom por doble toque (mantiene el zoom con dos dedos) */
  touch-action: manipulation;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a, button, summary, label, input, select, textarea { touch-action: manipulation; }

a { color: var(--green); text-decoration: none; }
a:hover { color: #0C0C0C; text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: normal; }

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
main { flex: 1; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green); color: var(--white); padding: 12px 18px; font-size: 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Imágenes con proporción reservada */
.media { display: block; width: 100%; overflow: hidden; background: var(--soft); }
.media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--hero    { height: clamp(300px, 56vh, 480px); }
.media--sobre   { height: 300px; }
.media--sala    { height: 320px; }
.media--cat     { height: 190px; }
.media--galhome { height: 210px; }
.media--gal     { height: 230px; }
.media--mem     { height: 200px; }

/* Botones (mismos estilos que el diseño original) */
.btn {
  display: inline-block;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--sans);
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: #0C0C0C; color: var(--white); }

.btn--outline { border-color: var(--green); color: var(--green); padding: 13px 24px; background: transparent; }
.btn--outline:hover { background: var(--green); color: var(--white); }

.btn--white { background: var(--white); color: var(--green); }
.btn--white:hover { background: var(--soft-hover); color: var(--green); }

.btn--ghost { border-color: var(--white); color: var(--white); padding: 13px 24px; background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--green); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ── 2. CABECERA Y NAVEGACIÓN ─────────────────────────────── */
.topbar { background: var(--green-dark); color: var(--white); }
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 20px; padding-top: 7px; padding-bottom: 7px; font-size: 13px;
}
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--white); }

.langs { display: flex; align-items: center; gap: 6px; }
.lang {
  display: inline-block; padding: 3px 8px;
  font-size: 12px; font-weight: bold; letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.5);
  color: var(--white); background: transparent;
  font-family: var(--sans); cursor: pointer;
}
.lang:hover { text-decoration: none; }
.lang[aria-current="true"] { color: var(--green-dark); background: var(--white); }

.masthead { border-bottom: 1px solid var(--border-hd); background: var(--white); }
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--green); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; display: block; }
.brand__name { font-family: var(--serif); font-size: 22px; font-weight: bold; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 18px; min-width: 0; }
.nav__link {
  font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap; flex: 0 0 auto;
  color: var(--ink); font-weight: normal;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--green); text-decoration: none; }
.nav__link.is-active { color: var(--green); font-weight: bold; border-bottom-color: var(--green); }
.nav__cta { padding: 11px 18px; font-size: 13px; }

/* Acciones de cabecera en movil: llamar + menu */
.masthead__actions { display: none; align-items: center; gap: 8px; }

.mcall {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 auto;
  border: 1px solid var(--green); color: var(--green); background: var(--white);
  border-radius: 2px;
  transition: background .25s ease, color .25s ease, transform .18s ease;
}
.mcall:hover { background: var(--green); color: var(--white); text-decoration: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  background: var(--white); border: 1px solid var(--green); color: var(--green);
  padding: 9px 14px; font-size: 15px; font-family: var(--sans); border-radius: 2px; cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .18s ease;
}
.nav-toggle[aria-expanded="true"] { background: var(--green); color: var(--white); }

/* Icono de tres rayas que se convierte en aspa */
.burger { position: relative; display: block; width: 17px; height: 13px; flex: 0 0 auto; }
.burger i {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .34s var(--ease), opacity .2s ease;
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 5.5px; }
.burger i:nth-child(3) { top: 11px; }
[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Menu desplegable animado */
.nav-mobile {
  display: block; background: var(--soft);
  max-height: 0; opacity: 0; overflow: hidden; border-top: 0 solid var(--border-hd);
  /* visibility oculta evita que los enlaces sean tabulables con el menú cerrado */
  visibility: hidden;
  transition: max-height .44s var(--ease), opacity .3s ease,
              border-top-width .3s, visibility 0s linear .44s;
}
.nav-mobile.is-open {
  max-height: 640px; opacity: 1; border-top-width: 1px; visibility: visible;
  transition: max-height .44s var(--ease), opacity .3s ease,
              border-top-width .3s, visibility 0s;
}
.nav-mobile__link {
  display: block; padding: 15px 20px; border-bottom: 1px solid var(--border);
  font-size: 16px; color: var(--ink);
  opacity: 0; transform: translateY(-10px);
  transition: opacity .34s ease, transform .34s var(--ease), background .2s ease;
}
.nav-mobile.is-open .nav-mobile__link { opacity: 1; transform: none; }
.nav-mobile.is-open .nav-mobile__link:nth-child(1) { transition-delay: .05s; }
.nav-mobile.is-open .nav-mobile__link:nth-child(2) { transition-delay: .09s; }
.nav-mobile.is-open .nav-mobile__link:nth-child(3) { transition-delay: .13s; }
.nav-mobile.is-open .nav-mobile__link:nth-child(4) { transition-delay: .17s; }
.nav-mobile.is-open .nav-mobile__link:nth-child(5) { transition-delay: .21s; }
.nav-mobile.is-open .nav-mobile__link:nth-child(6) { transition-delay: .25s; }
.nav-mobile__link:hover { background: var(--soft-hover); text-decoration: none; }
.nav-mobile__link:active { background: var(--soft-hover); }
.nav-mobile__link.is-active { font-weight: bold; color: var(--green); box-shadow: inset 3px 0 0 var(--green); }
.nav-mobile__actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 20px 18px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .34s ease .28s, transform .34s var(--ease) .28s;
}
.nav-mobile.is-open .nav-mobile__actions { opacity: 1; transform: none; }

@media (max-width: 1099px) {
  .nav { display: none; }
  .masthead__actions { display: flex; }

  /* Cabecera fija al hacer scroll */
  .masthead {
    position: sticky; top: 0; z-index: 60;
    transition: box-shadow .3s ease;
  }
  .masthead__inner { transition: padding .3s var(--ease); }
  .brand__name { transition: font-size .3s var(--ease); }
  .masthead.is-stuck { box-shadow: 0 2px 16px rgba(12, 18, 14, .14); }
  .masthead.is-stuck .masthead__inner { padding-top: 9px; padding-bottom: 9px; }
  .masthead.is-stuck .brand__name { font-size: 18px; }
}

/* ── 3. PIE DE PÁGINA ─────────────────────────────────────── */
.footer { background: var(--green); color: var(--white); }
.footer a { color: var(--white); }
.footer a:hover { color: var(--white); }
.footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px;
  padding-top: 40px; padding-bottom: 26px;
}
.footer__brand { margin: 0 0 10px; font-family: var(--serif); font-size: 21px; }
.footer__t {
  margin: 0 0 10px; font-size: 14px; font-weight: bold;
  text-transform: uppercase; letter-spacing: .06em;
}
.footer p { margin: 0 0 6px; font-size: 15px; }
.footer p:last-child { margin-bottom: 0; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.28); }
.footer__bar-inner {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; font-size: 14px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.brk { word-break: break-word; }

/* ── 4. SECCIONES GENERALES ───────────────────────────────── */
.page[hidden] { display: none; }

.section { padding-top: 52px; padding-bottom: 52px; }
.section--tight { padding-top: 44px; padding-bottom: 44px; }
.section--soft { background: var(--soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); color: var(--green); }
.h2--sm { font-size: clamp(24px, 3vw, 32px); }
.rule { width: 60px; height: 3px; background: var(--green); margin-bottom: 24px; }
.rule--tight { margin-bottom: 18px; }
.lead { margin: 0 0 28px; max-width: 720px; }

.grid { display: grid; gap: 32px; align-items: start; }
.grid--2   { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3   { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid--3w  { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.grid--gal { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid--center { align-items: center; }

/* Hero de inicio */
.hero { position: relative; background: var(--green); }
.hero__media { position: relative; height: clamp(300px, 56vh, 480px); overflow: hidden; }
.hero__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__veil { position: absolute; inset: 0; background: rgba(10,20,14,.58); }
.hero__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px 20px;
}
.hero__tagline { margin: 0 0 10px; color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .18em; }
.hero__title { margin: 0 0 12px; color: var(--white); font-size: clamp(30px, 5vw, 52px); line-height: 1.1; }
.hero__desc { margin: 0 0 22px; color: var(--white); font-size: clamp(16px, 1.6vw, 20px); max-width: 640px; }

.hero__strip { background: var(--green); color: var(--white); }
.hero__strip-inner {
  display: flex; flex-wrap: wrap; gap: 8px 30px;
  padding-top: 14px; padding-bottom: 14px; font-size: 14px;
}
.hero__strip a { color: var(--white); }

/* Tarjetas de categoría de carta (inicio) */
.cat-card { background: var(--white); border: 1px solid var(--border); }
.cat-card__body { padding: 18px 20px 22px; }
.cat-card__t { margin: 0 0 10px; font-size: 21px; color: var(--green); }
.cat-table { width: 100%; border-collapse: collapse; }
.cat-table td { padding: 5px 0; font-size: 15px; }
.cat-table td:last-child { text-align: right; color: var(--ink-soft); white-space: nowrap; }

/* Franja de reserva */
.cta-band { background: var(--green); color: var(--white); }
.cta-band .h2 { color: var(--white); }
.cta-band p { margin: 0; color: var(--white); }
.cta-band__inner { padding-top: 46px; padding-bottom: 46px; }

/* Tablas de datos */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border); vertical-align: top; width: 130px; font-weight: bold;
}
.data-table td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table--contact th { width: 120px; padding-top: 11px; padding-bottom: 11px; }
.data-table--contact td { padding-top: 11px; padding-bottom: 11px; }

.map-frame { border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-frame--tall iframe { height: 380px; }

/* El mapa no se carga hasta que se pide: sin cookies de terceros al entrar */
.map-frame--idle { background: var(--soft); }
.map-load {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; width: 100%; height: 320px; padding: 24px;
  background: none; border: 0; cursor: pointer; font-family: var(--sans);
  color: var(--green); text-align: center;
  transition: background .25s ease;
}
.map-frame--tall .map-load { height: 380px; }
.map-load:hover { background: var(--soft-hover); }
.map-load__t {
  font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--green); border-radius: 2px; padding: 13px 24px;
}
.map-load:hover .map-load__t { background: var(--green); color: var(--white); }
.map-load__n { font-size: 13px; color: var(--ink-soft); max-width: 34ch; line-height: 1.5; }

/* Encabezado de página interior */
.page-head { background: var(--soft); border-bottom: 1px solid var(--border); }
.page-head__inner { padding-top: 34px; padding-bottom: 34px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); color: var(--green); }
.crumbs { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* Restaurante */
.card { border: 1px solid var(--border); padding: 20px; }
.card__t { margin: 0 0 8px; font-size: 19px; color: var(--green); }
.card p { margin: 0; }

.memory {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px; align-items: start;
  background: var(--white); border: 1px solid var(--border); padding: 20px; margin-bottom: 16px;
}
.memory__meta { margin: 0 0 6px; font-size: 14px; color: var(--ink-soft); }
.memory__t { margin: 0 0 8px; font-size: 20px; color: var(--green); }

.quote { margin: 0; border: 1px solid var(--border); padding: 20px; }
.quote p { margin: 0 0 12px; }
.quote footer { font-size: 14px; color: var(--ink-soft); }

/* ── 5. CARTA ─────────────────────────────────────────────── */
.carta-wrap { max-width: 900px; margin: 0 auto; padding: 44px 20px; }
.carta__intro { margin: 0 0 34px; }
.carta__cat { margin-bottom: 40px; }
.carta__cat-t {
  margin: 0 0 4px; font-size: clamp(21px, 2.4vw, 27px); color: var(--green);
  text-transform: uppercase; letter-spacing: .04em;
}
.carta__cat-rule { height: 2px; background: var(--green); margin-bottom: 4px; }
/* Platos y vinos: lista limpia, sin columna de precio */
.dishes { list-style: none; margin: 0; padding: 0; }
.dish { padding: 15px 0; border-bottom: 1px solid var(--border); }
.dish:last-child { border-bottom: 0; }
.dish__n { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: bold; line-height: 1.35; }
.dish__d { margin: 3px 0 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }

.carta__note { margin: 0 0 34px; font-size: 14px; color: var(--ink-soft); }
.carta__note--prices {
  margin: 26px 0 34px; padding: 14px 16px;
  background: var(--soft); border-left: 3px solid var(--green); font-size: 14.5px;
}

.carta__block { margin: 44px 0 34px; }
.carta__block .lead { margin-bottom: 26px; }

.panel__sub { margin: 20px 0 8px; font-size: 17px; color: var(--green); }
.panel--agua { margin-bottom: 8px; }

/* Listado de platos en las tarjetas de inicio */
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { padding: 6px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border-bottom: 0; }

.panel { border: 1px solid var(--border); background: var(--soft); padding: 22px; }
.panel__t { margin: 0 0 10px; font-size: 20px; color: var(--green); }
.panel p { margin: 0 0 18px; }
.panel p:last-child { margin-bottom: 0; }

/* ── 6. GALERÍA Y LIGHTBOX ────────────────────────────────── */
.gal-fig { margin: 0; }
.gal-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: zoom-in; text-align: left;
}
.gal-btn .media > img { transition: transform .4s ease, filter .3s ease; }
.gal-btn:hover .media > img,
.gal-btn:focus-visible .media > img { transform: scale(1.04); filter: brightness(.9); }
.gal-cap { font-size: 14px; color: var(--ink-soft); padding-top: 8px; }

.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 18, 14, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 60px clamp(12px, 6vw, 90px);
}
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; max-width: 100%; }
.lb__fig img {
  max-width: 100%; width: auto; height: auto; object-fit: contain;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px); /* la barra del navegador móvil no descuadra la foto */
}
.lb__cap { display: flex; gap: 12px; align-items: baseline; color: rgba(255,255,255,.88); font-size: 15px; }
.lb__idx { color: rgba(255,255,255,.5); font-size: 13px; }
.lb__btn {
  position: absolute; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.75); font-family: var(--sans); line-height: 1;
}
.lb__btn:hover { color: var(--white); }
.lb__close { top: 14px; right: 18px; font-size: 34px; padding: 6px 12px; }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); font-size: 46px; padding: 10px 16px; }
.lb__prev { left: max(6px, 1.5vw); }
.lb__next { right: max(6px, 1.5vw); }
body.is-lb-open { overflow: hidden; }

/* ── 7. RESERVAS · CONTACTO ───────────────────────────────── */
.box { border: 1px solid var(--border); padding: 26px; }
.box__t { margin: 0 0 10px; font-size: 22px; color: var(--green); }
.box p { margin: 0 0 18px; }
.box__big { font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); }
.box__big--sm { font-size: clamp(20px, 2.4vw, 24px); }

.mt-lg { margin-top: 34px; }
.mt-md { margin-top: 28px; }
.mt-sm { margin-top: 26px; }
.mb-lg { margin-bottom: 38px; }

/* ── 8. UTILIDADES ────────────────────────────────────────── */
.u-mb-0  { margin-bottom: 0; }
.u-mb-16 { margin-bottom: 16px; }
.u-mb-22 { margin-bottom: 22px; }
.u-mb-24 { margin-bottom: 24px; }
.u-mb-26 { margin-bottom: 26px; }
.u-mb-30 { margin-bottom: 30px; }
.u-narrow { max-width: 720px; }

@media (max-width: 560px) {
  .nav-mobile__actions { grid-template-columns: 1fr; }
  .footer__bar-inner { justify-content: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   9. ANIMACIONES  (se activan desde main.js solo en movil)
   ═══════════════════════════════════════════════════════════ */

/* Entradas al aparecer en pantalla.
   Solo esconden en movil: si se gira a horizontal nada se queda invisible. */
@media (max-width: 1099px) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .62s var(--ease), transform .62s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  [data-reveal="left"]  { transform: translateX(-22px); }
  [data-reveal="right"] { transform: translateX(22px); }
  [data-reveal="zoom"]  { transform: scale(.94); }
  [data-reveal].is-in   { opacity: 1; transform: none; }
}

/* Cambio de apartado */
.page.is-entering { animation: pageIn .46s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Fotos que aparecen al terminar de cargar */
.img-fade { opacity: 0; transition: opacity .55s ease; }
.img-fade.is-loaded { opacity: 1; }

/* Visor de fotos */
.lb { animation: lbFade .26s ease both; }
.lb__fig img { animation: lbZoom .36s var(--ease) both; }
.lb__cap { animation: lbFade .4s ease .1s both; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbZoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

@keyframes heroIn   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Respuesta al toque */
@media (hover: none) {
  .btn:active      { transform: scale(.97); }
  .mcall:active,
  .nav-toggle:active { transform: scale(.94); }
  .gal-btn:active .media > img { transform: scale(1.05); filter: brightness(.9); }
  .lang:active     { transform: scale(.92); }
}

/* ═══════════════════════════════════════════════════════════
   10. MOVIL
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1099px) {
  /* Entrada del hero, escalonada */
  .hero__tagline      { animation: heroIn .75s var(--ease) .10s both; }
  .hero__title        { animation: heroIn .75s var(--ease) .22s both; }
  .hero__desc         { animation: heroIn .75s var(--ease) .34s both; }
  .hero .btn-row      { animation: heroIn .75s var(--ease) .46s both; }
  .hero__media > img  { animation: kenburns 16s ease-out both; }
}

@media (max-width: 767px) {
  /* — Barra superior compacta: telefono e idiomas en una sola fila — */
  .topbar__inner { gap: 6px 12px; padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
  .topbar__addr  { display: none; }
  .topbar__tel   { font-weight: bold; letter-spacing: .01em; }
  .lang {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 34px; min-width: 38px; padding: 4px 9px;
  }

  /* — Cabecera — */
  .masthead__inner { padding-top: 11px; padding-bottom: 11px; gap: 12px; }
  .brand__name { font-size: 19px; }

  /* — Hero — en vertical la foto es apaisada, así que se recorta por arriba
       para que se vea la terraza y no el balcón del piso de encima — */
  .hero__media { height: min(66svh, 520px); }
  .hero__media > img {
    position: absolute; left: 0; top: -22%;
    width: 100%; height: 130%;
    object-position: center center;
  }
  .hero__body  { padding: 26px 22px; }
  .hero__tagline { font-size: 11.5px; letter-spacing: .16em; margin-bottom: 14px; }
  .hero__title { font-size: clamp(30px, 9vw, 40px); margin-bottom: 14px; }
  .hero__desc  { font-size: 16px; line-height: 1.5; margin-bottom: 26px; }
  .hero__strip-inner { flex-direction: column; gap: 4px; font-size: 13.5px; padding-top: 12px; padding-bottom: 12px; }

  /* — Botones a ancho completo — */
  .btn {
    padding: 15px 22px; min-height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: .35em; /* flex se come el espacio entre "Llamar" y el teléfono */
  }
  .btn--outline, .btn--ghost { padding: 14px 22px; }
  .btn-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .page .btn { width: 100%; }
  .hero .btn-row { width: 100%; max-width: 300px; margin: 0 auto; }

  /* — Ritmo de las secciones — */
  .section        { padding-top: 40px; padding-bottom: 40px; }
  .section--tight { padding-top: 34px; padding-bottom: 34px; }
  .cta-band__inner { padding-top: 38px; padding-bottom: 38px; }
  .page-head__inner { padding-top: 26px; padding-bottom: 26px; }
  .carta-wrap { padding: 34px 20px; }
  .grid { gap: 26px; }
  .h2 { font-size: 26px; }
  .rule { margin-bottom: 20px; }
  .lead { margin-bottom: 24px; }

  /* — Carta: que el precio no se pegue al nombre — */
  .carta__cat { margin-bottom: 32px; }
  .carta__cat-t { font-size: 20px; }
  .dish { padding: 13px 0; }
  .dish__n { font-size: 16px; }
  .dish__d { font-size: 14.5px; margin-top: 2px; }
  .carta__block { margin: 34px 0 26px; }
  .carta__note--prices { padding: 13px 14px; font-size: 14px; }
  .cat-list li { padding: 7px 0; }

  /* — Tarjetas de categoria — */
  .media--cat { height: 170px; }
  .cat-card__t { font-size: 20px; }

  /* — Galeria a dos columnas — */
  .grid--gal { grid-template-columns: 1fr 1fr; gap: 10px; }
  .media--gal, .media--galhome { height: 148px; }
  .gal-cap { font-size: 12.5px; padding-top: 6px; line-height: 1.35; }

  /* — Restaurante — */
  .media--sala  { height: 240px; }
  .media--sobre { height: 230px; }
  .memory { padding: 16px; gap: 16px; }
  .media--mem { height: 180px; }
  .card { padding: 18px; }
  .box  { padding: 20px; }
  .panel { padding: 18px; }

  /* — Visor de fotos: sin flechas (se pasa deslizando) y foto a toda pantalla — */
  .lb {
    padding: 56px 12px 84px;
    background: rgba(10, 14, 11, .97);
    overscroll-behavior: contain;
  }
  .lb__prev, .lb__next { display: none; }
  .lb__fig img { max-height: calc(100dvh - 200px); }
  .lb__close {
    top: 10px; right: 10px; width: 44px; height: 44px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; border-radius: 50%;
    background: rgba(255, 255, 255, .13); color: #FFFFFF;
  }
  .lb__cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    justify-content: center; flex-wrap: wrap; gap: 4px 12px;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(10, 14, 11, .97), rgba(10, 14, 11, 0));
    font-size: 15px; text-align: center;
  }

  /* — Mapa — */
  .map-frame iframe, .map-frame--tall iframe { height: 280px; }
  .map-load, .map-frame--tall .map-load { height: 280px; }

  /* — Pie — */
  .footer__grid { gap: 26px; padding-top: 32px; }

  /* — Enlaces sueltos: area de toque comoda con el dedo — */
  .topbar__tel { display: inline-flex; align-items: center; min-height: 34px; }
  .brand { padding: 4px 0; }
  .crumbs a,
  .data-table td a,
  .footer__legal a { display: inline-block; padding: 6px 0; }
  .footer__grid p a { display: inline-block; padding: 7px 0; }
  .footer__grid p { margin-bottom: 0; }
  .info__stack a { padding: 4px 0; }
  .hero__strip a,
  .box__big a,
  .carta-wrap > p > a { display: inline-block; padding: 5px 0; }
}

@media (max-width: 520px) {
  /* El texto "Menu" pasa a ser solo lectura para lectores de pantalla */
  .nav-toggle__t {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .nav-toggle { padding: 9px 12px; }
  .data-table th, .data-table--contact th { width: 104px; padding-right: 10px; font-size: 14.5px; }
}

@media (max-width: 359px) {
  .grid--gal { grid-template-columns: 1fr; }
  .media--gal, .media--galhome { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-delay: 0ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .img-fade { opacity: 1 !important; }
  .hero__media > img { animation: none !important; }
}

@media print {
  .topbar, .masthead, .nav-mobile, .hero__body, .map-frame, .lb, .footer__bar { display: none !important; }
  body { font-size: 12pt; }
  .page[hidden] { display: none; }
  a { color: #000; }
}
