/* =========================================================
   Restaurante El Hogar · Mula
   Identidad: azul marino #222C4D · blanco roto #F7F2E8 · crema #FBEEDC
   Acento dorado #C9A24A (solo líneas finas, iconos, botón secundario)
   ========================================================= */

:root {
  --navy: #222C4D;
  --bg: #F7F2E8;
  --cream: #FBEEDC;
  --gold: #C9A24A;
  --white: #FFFFFF;

  --ink: var(--navy);
  --muted: rgba(34, 44, 77, 0.72);
  --soft: rgba(34, 44, 77, 0.55);
  --line: rgba(34, 44, 77, 0.14);
  --gold-line: rgba(201, 162, 74, 0.6);

  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --header-h: 72px;
  --section-y: clamp(4rem, 9vw, 7rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

h2 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }

p { margin: 0; }

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

address { font-style: normal; }

figure { margin: 0; }

button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section-y); }

.section-cream { background: var(--cream); }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Detalles de marca ---------- */
.logo-white { filter: brightness(0) invert(1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.gold-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin-top: 1.25rem;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head .eyebrow { justify-content: center; }
.section-head .gold-rule { margin-inline: auto; }

.divider {
  border: 0;
  height: 1px;
  width: min(72%, 720px);
  margin: 0 auto;
  background: var(--gold-line);
  position: relative;
}

.divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--bg);
  border: 1px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Marco fino dorado para fotos y mapa */
.frame { position: relative; }

.frame::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 162, 74, 0.75);
  pointer-events: none;
  z-index: 2;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-lg { padding: 1.05rem 2rem; font-size: 0.875rem; }
.btn-sm { padding: 0.7rem 1.25rem; font-size: 0.75rem; }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.btn-navy:hover { filter: brightness(1.18); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
}

/* El fondo con blur va en un pseudoelemento: si el backdrop-filter se aplica
   a la propia cabecera, ésta se convierte en contenedor del panel de menú
   fijo y el panel queda recortado a la altura de la cabecera. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(34, 44, 77, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 74, 0.25);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 0;
}

.site-header.is-scrolled::before,
body.nav-open .site-header::before { opacity: 1; }

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.brand-logo { width: 40px; height: 40px; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

/* Navegación móvil: panel a pantalla completa */
.nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: var(--header-h) var(--pad) 2rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
  z-index: 1;
}

body.nav-open .nav {
  transform: none;
  visibility: visible;
  transition: transform 0.45s var(--ease), visibility 0s;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.nav-list a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 2rem;
  color: var(--white);
  position: relative;
  padding-bottom: 2px;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }

.nav-toggle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* En pantallas anchas encuadra la sombrilla y el rótulo, no la pared de arriba */
  object-position: center 74%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: rgba(34, 44, 77, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(96px, 22vw, 136px);
  height: auto;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.7rem, 9vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 14ch;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.7);
  animation: nudge 2.2s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* Entrada suave del texto del hero */
.hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero-logo { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.25s; }
.hero-sub { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.55s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- Nuestra cocina / Eventos (dos columnas con foto) ---------- */
.cocina-grid,
.eventos-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cocina-photo,
.eventos-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
}

.eventos-photo { aspect-ratio: 1 / 1; }

.cocina-photo img,
.eventos-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.cocina-photo:hover img,
.eventos-photo:hover img { transform: scale(1.02); filter: brightness(0.94); }

.cocina-text .lead,
.eventos-text .lead { margin-top: 1.5rem; }

.facts {
  margin-top: 2.25rem;
  display: grid;
  gap: 0;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--gold-line);
  font-weight: 500;
  font-size: 0.95rem;
}

.facts li:last-child { border-bottom: 1px solid var(--gold-line); }

.facts svg { color: var(--gold); flex: none; }

.facts-inline { margin-top: 1.75rem; }

.eventos-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.eventos-note a {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--gold-line);
}
.eventos-note a:hover { border-bottom-color: var(--gold); }

.eventos-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.eventos-cta svg { flex: none; }

/* ---------- Momentos ---------- */
.cards {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--cream);
  border: 1px solid rgba(201, 162, 74, 0.25);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card:hover { transform: translateY(-3px); border-color: rgba(201, 162, 74, 0.7); }

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.card:hover .card-media img { transform: scale(1.02); filter: brightness(0.9); }

.card-body { padding: 1.5rem 1.5rem 1.75rem; }

.card-body h3 { font-size: 1.65rem; margin-bottom: 0.5rem; }

.card-body p { color: var(--muted); font-size: 0.95rem; }

/* ---------- La carta: pestañas ---------- */
.menu-tabs-wrap {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  border-bottom: 1px solid var(--gold-line);
  /* En móvil los chips se desplazan en horizontal */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
}

.menu-tabs-wrap::-webkit-scrollbar { display: none; }

.menu-tabs {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  min-width: 100%;
}

.menu-tab {
  position: relative;
  flex: none;
  padding: 0.7rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.menu-tab::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

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

.menu-tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 500;
}

.menu-tab[aria-selected="true"]::after { transform: scaleX(1); }

/* Sin JavaScript se ven todos los bloques, uno detrás de otro */
.menu-tabs-wrap { display: none; }
.menu-panel + .menu-panel { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.js-tabs .menu-tabs-wrap { display: block; }
.js-tabs .menu-panel { display: none; }
.js-tabs .menu-panel.is-active { display: block; }
.js-tabs .menu-panel + .menu-panel { margin-top: 0; }

/* ---------- La carta: bloques ---------- */
.menu-panel {
  border: 1px solid var(--gold-line);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: rgba(246, 218, 179, 0.18);
}

.menu-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.menu-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto 0;
}

.menu-grid {
  display: grid;
  gap: 2.25rem;
}

.menu-grid-single { max-width: 620px; margin-inline: auto; }

.menu-group h4 {
  font-size: 1.5rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: 0.75rem;
}

.menu-subhead { margin-top: 2rem; }

.menu-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  margin: -0.25rem 0 0.75rem;
}

.menu-note-center {
  margin: -1rem auto clamp(1.75rem, 4vw, 2.25rem);
  max-width: 44ch;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
}

.menu-note-block {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-line);
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

.menu-list li { padding: 0.45rem 0; }

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.menu-name { font-weight: 500; }

.menu-dots {
  flex: 1;
  min-width: 1rem;
  border-bottom: 1px dotted rgba(34, 44, 77, 0.35);
  transform: translateY(-4px);
}

.menu-price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
}

.menu-price-market {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--muted);
}

.menu-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.menu-alergenos {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--soft);
}

.menu-ingredients {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.menu-ingredients strong { color: var(--ink); font-weight: 500; }

/* Bloque de marisco con un único precio "según mercado" */
.menu-market {
  margin-top: 0.75rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--gold-line);
}

.menu-market-list {
  display: grid;
  gap: 0.3rem;
  font-weight: 500;
}

.menu-market-list li {
  padding: 0 0 0 1rem;
  position: relative;
}

.menu-market-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.menu-market .menu-price-market {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--gold-line);
  text-align: right;
}

.menu-cta { margin-top: 1.5rem; text-align: center; }

.menu-footnote {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

/* ---------- Menú del día ---------- */
.daily {
  margin-top: clamp(2rem, 5vw, 3rem);
  background: var(--cream);
  border: 1px solid var(--gold-line);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* En pantallas estrechas el título se apila y el separador desaparece,
   para que ningún "·" quede al final de una línea. */
.daily-sep {
  display: none;
  color: var(--gold);
  padding-inline: 0.25rem;
}

.daily-title { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; }

.daily-price { display: block; white-space: nowrap; }

.daily .gold-rule { margin-top: 1.25rem; }

.daily-text {
  margin-top: 1.25rem;
  max-width: 56ch;
  color: var(--muted);
}

.daily-options {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.daily-options strong {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.daily-order {
  margin-top: 1.5rem;
  font-weight: 500;
}

.daily-order a { border-bottom: 1px solid var(--gold-line); }
.daily-order a:hover { border-bottom-color: var(--gold); }

.daily-weekend {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--soft);
}

/* ---------- Reservas ---------- */
.reservas {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reservas .lead { margin-top: 1.5rem; max-width: 44ch; }

.reviews-link { margin-top: 1.25rem; font-size: 0.9rem; }

.reviews-link a {
  color: var(--muted);
  border-bottom: 1px solid var(--gold-line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.reviews-link a:hover { color: var(--ink); border-bottom-color: var(--gold); }

.reservas-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
}

.reservas-actions .btn { width: 100%; }

.btn-with-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.btn-note {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 22ch;
  text-align: center;
  line-height: 1.5;
}

/* ---------- Nuestro equipo ---------- */
.equipo-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  overflow: hidden;
  background: var(--navy);
}

.equipo-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.equipo-hero figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(4rem, 12vw, 7rem) var(--pad) clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(to top, rgba(34, 44, 77, 0.9) 0%, rgba(34, 44, 77, 0.55) 55%, rgba(34, 44, 77, 0) 100%);
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.equipo-hero blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1.15;
  max-width: 22ch;
}

.equipo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
}

.photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.photo:hover img { transform: scale(1.02); filter: brightness(0.92); }

/* ---------- Dónde estamos ---------- */
.donde-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.hours caption {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.6rem;
}

.hours th,
.hours td {
  padding: 0.85rem 0;
  border-top: 1px solid var(--gold-line);
  vertical-align: top;
}

.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 1px solid var(--gold-line); }

.hours th { text-align: left; font-weight: 500; padding-right: 1rem; }

.hours td {
  text-align: right;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  white-space: nowrap;
}

.contact-list {
  margin: 2rem 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li { display: flex; align-items: center; gap: 0.8rem; }

.contact-list svg { color: var(--gold); flex: none; }

.contact-list a { font-weight: 500; border-bottom: 1px solid var(--gold-line); }
.contact-list a:hover { border-bottom-color: var(--gold); }

.donde-map {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}

.donde-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.8);
}

/* Mapa diferido: no se carga nada de Google hasta que se pulsa el botón */
.map-box {
  width: 100%;
  height: 100%;
  min-height: 300px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(201, 162, 74, 0.06) 0 12px, transparent 12px 24px),
    var(--cream);
}

.map-box svg { color: var(--gold); }

.map-address {
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.3;
}

.map-note {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--soft);
  max-width: 34ch;
  line-height: 1.5;
}

/* ---------- Instagram ---------- */
.section-instagram h2 {
  font-size: clamp(1.7rem, 7vw, 3.5rem);
  overflow-wrap: anywhere;
}

.ig-link {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  transition: color 0.25s var(--ease);
}

.ig-link:hover { color: var(--gold); }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.4rem, 1.2vw, 0.75rem);
}

.ig-grid a {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
  display: block;
}

.ig-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.ig-grid a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(34, 44, 77, 0);
  transition: background-color 0.4s var(--ease);
}

.ig-grid a:hover img { transform: scale(1.02); }
.ig-grid a:hover::after { background: rgba(34, 44, 77, 0.18); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: clamp(3rem, 7vw, 5rem) 0 0;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
}

.footer-brand img { width: 64px; height: 64px; }

.footer-tagline {
  margin-top: 1.1rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(201, 162, 74, 0.5);
  display: inline-block;
}

.footer-col p,
.footer-col address { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }

.footer-col > a {
  display: block;
  margin-top: 0.4rem;
  width: fit-content;
  font-weight: 500;
  border-bottom: 1px solid rgba(201, 162, 74, 0.6);
  overflow-wrap: anywhere;
}

.footer-col > a:hover { border-bottom-color: var(--gold); }

.footer-note {
  margin-top: 0.75rem;
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

/* Pastillas apiladas: en móvil ocupan el ancho y van centradas */
.social {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
}

.social a {
  min-height: 44px;
  padding: 0.35rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid rgba(201, 162, 74, 0.6);
  border-radius: 999px;
  color: var(--white);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.social svg { flex: none; }

.social-name { font-size: 0.8125rem; font-weight: 500; overflow-wrap: break-word; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  padding-bottom: calc(1.5rem + 4.25rem); /* espacio para el botón flotante en móvil */
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-legal a:hover { color: var(--white); border-bottom-color: var(--gold); }

/* ---------- Botón flotante "Reservar" (solo móvil) ---------- */
.fab-reserve {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(34, 44, 77, 0.18);
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.fab-reserve.is-visible { transform: none; opacity: 1; }

body.nav-open .fab-reserve { opacity: 0; pointer-events: none; }

/* ---------- Páginas legales ---------- */
.legal {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 5rem));
  padding-bottom: var(--section-y);
}

.legal-inner { max-width: 760px; margin-inline: auto; }

.legal h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -0.01em;
}

.legal .gold-rule { margin-bottom: 2.5rem; }

.legal h2 {
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}

.legal p, .legal li { color: var(--muted); }

.legal p + p { margin-top: 0.9rem; }

.legal ul {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.5rem;
}

.legal ul li { padding-left: 1.25rem; position: relative; }

.legal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.legal dl {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0;
}

.legal dl div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--gold-line);
}

.legal dl div:last-child { border-bottom: 1px solid var(--gold-line); }

.legal dt {
  font-weight: 500;
  color: var(--ink);
  min-width: 13rem;
}

.legal dd { margin: 0; color: var(--muted); }

.legal a { color: var(--ink); border-bottom: 1px solid var(--gold-line); }
.legal a:hover { border-bottom-color: var(--gold); }

.legal-updated {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-line);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--soft);
}

/* En las páginas legales la cabecera siempre lleva fondo */
.site-header.is-solid::before { opacity: 1; }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1.1rem 1rem 1.1rem 0;
    border-bottom: 1px solid var(--gold-line);
  }
  .facts-inline { grid-template-columns: 1fr; }
  .facts-inline li { flex-direction: row; align-items: center; gap: 0.9rem; }
  .social a { justify-content: flex-start; padding-left: 0.85rem; }
  .reservas-actions { max-width: 420px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .equipo-hero { aspect-ratio: 16 / 10; }
  .equipo-hero img { object-position: center 70%; }
}

@media (min-width: 768px) {
  .fab-reserve { display: none; }
  .footer-bottom { padding-bottom: 1.5rem; }
  .ig-grid { grid-template-columns: repeat(6, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); column-gap: 3.5rem; }
  .menu-grid-single { grid-template-columns: 1fr; }

  .daily-sep { display: inline; }
  .daily-price { display: inline; }
  .daily-options { flex-direction: row; gap: 2rem; }

  .reservas-actions {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    max-width: none;
    flex-wrap: wrap;
  }
  .reservas-actions .btn { width: auto; }
}

@media (min-width: 900px) {
  .cocina-grid { grid-template-columns: 5fr 6fr; }
  .donde-grid { grid-template-columns: 5fr 6fr; }
  .donde-map { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .equipo-hero { aspect-ratio: 21 / 9; }

  /* En Eventos la foto va a la derecha, alternando con "Nuestra cocina" */
  .eventos-grid { grid-template-columns: 6fr 5fr; }
  .eventos-photo { order: 2; }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1.25fr 1fr 1.15fr 1.4fr; gap: 2.5rem; }
}

/* Con seis enlaces, la barra horizontal necesita ~1100 px para no apretarse */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }

  .nav {
    position: static;
    inset: auto;
    background: transparent;
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav-list { flex-direction: row; gap: 1.4rem; }

  .nav-list a {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .nav-cta { padding: 0.7rem 1.3rem; }

  /* Ya no hace falta desplazamiento horizontal en las pestañas */
  .menu-tabs-wrap { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .menu-tabs { width: 100%; justify-content: center; }
}

@media (min-width: 1240px) {
  .nav { gap: 2.25rem; }
  .nav-list { gap: 2rem; }
}

/* ---------- Accesibilidad ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content > * { animation: none; opacity: 1; transform: none; }
  .hero-scroll { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
