/* =====================================================================
   EL MASÓN · ESTILOS
   Mobile first: los estilos base son para celular; los @media de
   cada bloque agregan ajustes para tablet (≥768px) y desktop (≥1024px).

   ÍNDICE
   01. Variables (colores, tipografías)
   02. Base y utilidades
   03. Botones
   04. Header / navegación
   05. Hero
   06. Presentación
   07. Carta
   08. Favoritos
   09. Galería
   11. Eventos
   12. Reservas
   13. Ubicación
   14. Instagram
   15. Footer
   16. WhatsApp flotante
   17. Lightbox
   18. Animaciones
   ===================================================================== */


/* ---------- 01. VARIABLES ---------- */
:root {
  /* PALETA DE MARCA
     Principales: crema, bordó y blanco.
     Dorado: SOLO para detalles (etiquetas, estrellas, líneas finas). */
  --bordo: #7A1426;
  --bordo-deep: #5E0F1E;    /* bordó más profundo para footer y degradés */
  --crema: #FBF7EC;
  --blanco: #FFFFFF;
  --oro: #B08A4A;           /* detalles sobre fondos claros */
  --oro-light: #D4B57A;     /* detalles sobre fondos bordó */

  /* Texto (tonos del bordó, no negro) */
  --texto: #3A1C21;
  --texto-suave: #7A6266;
  --linea: rgba(122, 20, 38, .13);

  /* Tipografías */
  --f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --gutter: 20px;
  --max: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}


/* ---------- 02. BASE Y UTILIDADES ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  /* Evita que en el celu se pueda deslizar de costado (franja vacía a la derecha) */
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--texto);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; vertical-align: -.2em; }

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

.section { padding-block: 80px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--bordo); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

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

/* Encabezados de sección */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head--left { text-align: left; }
.section-head--light { color: var(--crema); }

.eyebrow {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--bordo);
  margin-bottom: 14px;
}
.eyebrow--gold, .section-head--light .eyebrow { color: var(--oro-light); }

.section-title {
  font-family: var(--f-serif);
  font-size: clamp(34px, 9vw, 60px);
  letter-spacing: -.01em;
}
.section-title em { font-style: italic; color: var(--bordo); }
.section-head--light .section-title em { color: var(--oro-light); }

.section-sub { margin: 12px 0 0; color: var(--texto-suave); }
.lead { font-size: 19px; line-height: 1.6; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
  color: var(--bordo); padding-block: 8px;
  border-bottom: 1px solid currentColor;
}
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 92px; }
  .section { padding-block: 110px; }
  .section-head { margin-bottom: 56px; }
}
@media (min-width: 1024px) {
  .section { padding-block: 130px; }
}


/* ---------- 03. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 42px; padding: 10px 20px; font-size: 12px; }
.btn--lg { min-height: 60px; padding: 18px 34px; font-size: 15px; }
.btn--block { width: 100%; }

.btn--light { background: var(--crema); color: var(--bordo); }
.btn--light:hover { background: #fff; }

.btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--bordo); border-color: #fff; }

.btn--dark { background: var(--bordo); color: #fff; }
.btn--dark:hover { background: var(--bordo-deep); box-shadow: 0 10px 24px -10px rgba(122,20,38,.6); }

.btn--outline-dark { border-color: var(--bordo); color: var(--bordo); }
.btn--outline-dark:hover { background: var(--bordo); color: #fff; }

.btn--light-bordo { background: var(--crema); color: var(--bordo); font-weight: 600; }
.btn--light-bordo:hover { background: var(--blanco); box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }



/* ---------- 04. HEADER / NAVEGACIÓN ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header::before { /* sombreado suave sobre el hero */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(45,8,15,.5), transparent);
  transition: opacity .4s;
}
/* Fondo al hacer scroll: va en un pseudo-elemento para que el blur
   no afecte al menú mobile (position: fixed) */
.header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(122, 20, 38, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  opacity: 0; transition: opacity .4s var(--ease);
}
.header.is-scrolled::after { opacity: 1; }
.header.is-scrolled::before { opacity: 0; }

.header__inner {
  height: 100%;
  max-width: 1360px; margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}

/* Logo completo (emblema + "El Masón"), tal cual es */
.brand { display: flex; align-items: center; margin-right: auto; position: relative; z-index: 2; }
.brand__logo { height: calc(var(--header-h) - 22px); width: auto; transition: height .4s var(--ease); }
.header.is-scrolled .brand__logo { height: calc(var(--header-h) - 28px); }

.header__cta { display: none; }

/* Hamburguesa */
.burger {
  position: relative; z-index: 2;
  width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-content: center; justify-items: end; gap: 5px;
}
.burger span {
  display: block; width: 22px; height: 1px; background: currentColor;
  transition: transform .35s var(--ease), opacity .25s, width .35s var(--ease);
}
.burger span:nth-child(2) { width: 15px; } /* raya del medio más corta: más delicado */
.burger:hover span:nth-child(2) { width: 22px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menú mobile: panel a pantalla completa */
.nav {
  position: fixed; inset: 0; z-index: 1;
  background: var(--bordo);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 10px) 36px 36px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.nav.is-open { opacity: 1; visibility: visible; }
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: block; padding: 13px 0;
  border-bottom: 1px solid rgba(251,247,236,.12);
  font-family: var(--f-serif); font-size: 24px; color: var(--crema); letter-spacing: .01em;
  transform: translateY(14px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), color .3s;
}
.nav.is-open .nav__link { transform: none; opacity: 1; }
.nav.is-open li:nth-child(2) .nav__link { transition-delay: .04s; }
.nav.is-open li:nth-child(3) .nav__link { transition-delay: .08s; }
.nav.is-open li:nth-child(4) .nav__link { transition-delay: .12s; }
.nav.is-open li:nth-child(5) .nav__link { transition-delay: .16s; }
.nav.is-open li:nth-child(6) .nav__link { transition-delay: .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--oro-light); }

.nav__mobile-extra { margin-top: 32px; display: grid; gap: 16px; }
.nav__mobile-extra .btn { min-height: 46px; padding-block: 10px; font-size: 12px; letter-spacing: .14em; }
.nav__ig {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: rgba(251,247,236,.7); font-size: 14px; letter-spacing: .04em;
}

@media (min-width: 1024px) {
  .burger, .nav__mobile-extra { display: none; }
  .header__cta { display: inline-flex; }
  .nav {
    position: static; inset: auto; background: none; padding: 0;
    opacity: 1; visibility: visible; flex-direction: row;
  }
  .nav__list { flex-direction: row; gap: 34px; }
  .nav__link {
    position: relative;
    font-family: var(--f-sans); font-size: 13px; font-weight: 500;
    letter-spacing: .18em; text-transform: uppercase; color: #fff;
    padding: 8px 0; opacity: 1; transform: none; border-bottom: 0;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--oro-light); transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease);
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
}


/* ---------- 05. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid; place-items: center;
  color: #fff; text-align: center;
  overflow: hidden;
  background: var(--bordo-deep);
}
.hero__media, .hero__overlay { position: absolute; inset: 0; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__img { animation: heroZoom 18s var(--ease) both; }
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.hero__media video.is-ready { opacity: 1; }
.hero__overlay {
  background:
    radial-gradient(ellipse at center, rgba(45,8,15,.25) 0%, rgba(45,8,15,.55) 70%),
    linear-gradient(to bottom, rgba(45,8,15,.35) 0%, rgba(45,8,15,.15) 40%, rgba(45,8,15,.8) 100%);
}

.hero__content {
  position: relative; z-index: 1;
  padding: calc(var(--header-h) + 20px) var(--gutter) 90px;
  max-width: 820px;
}
.hero__kicker {
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--oro-light); margin-bottom: 10px;
}
.hero__title {
  font-family: var(--f-serif);
  font-size: clamp(60px, 19vw, 150px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  font-weight: 400;
}
.hero__tagline {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(20px, 5.4vw, 28px);
  line-height: 1.4;
  margin: 22px auto 36px;
  color: rgba(255,255,255,.92);
}
.hero__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; margin-inline: auto; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 1;
  width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.6); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: scrollDot 2s infinite;
}

/* Entrada escalonada del contenido del hero */
.hero__content > * { animation: fadeUp 1s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .1s; }
.hero__content > :nth-child(3) { animation-delay: .2s; }
.hero__content > :nth-child(4) { animation-delay: .35s; }
.hero__content > :nth-child(5) { animation-delay: .5s; }

@media (min-width: 600px) {
  .hero__actions { flex-direction: row; max-width: none; justify-content: center; }
}


/* ---------- 06. PRESENTACIÓN ---------- */
.intro__grid { display: grid; gap: 56px; align-items: center; }
.intro__media { position: relative; padding-right: 22%; padding-bottom: 14%; }
.intro__img-main {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
}
.intro__img-small {
  position: absolute; right: 0; bottom: 0;
  width: 46%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--crema);
  box-shadow: 0 24px 50px -24px rgba(94,15,30,.5);
}
.intro__text .section-title { margin-bottom: 24px; }
.intro__text p:not(.eyebrow):not(.lead) { color: var(--texto-suave); }
.intro__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.intro__tags li {
  padding: 8px 16px; border: 1px solid var(--linea); border-radius: 999px;
  font-size: 13px; letter-spacing: .08em; color: var(--texto);
}

@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 1fr 1fr; gap: 90px; }
}


/* ---------- 07. CARTA ---------- */
.menu { background: var(--blanco); }

/* Filtros de categorías: carrusel horizontal en celular */
.menu__tabs-wrap {
  position: sticky; top: var(--header-h); z-index: 20;
  margin-inline: calc(var(--gutter) * -1);
  padding: 12px 0;
  background: var(--blanco);
}
.menu__tabs {
  display: flex; gap: 8px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.menu__tabs::-webkit-scrollbar { display: none; }
.menu__tab {
  flex: 0 0 auto; scroll-snap-align: start;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid rgba(122,20,38,.25); border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bordo);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.menu__tab:hover { border-color: var(--bordo); }
.menu__tab[aria-selected="true"] { background: var(--bordo); border-color: var(--bordo); color: #fff; }

@media (min-width: 900px) {
  .menu__tabs { flex-wrap: wrap; justify-content: center; }
}

/* Buscador de la carta */
.menu__search {
  position: relative;
  max-width: 520px; margin: 0 auto 6px;
}
.menu__search-icon {
  position: absolute; left: 18px; top: 50%; translate: 0 -50%;
  width: 20px; height: 20px; color: var(--bordo); opacity: .7; pointer-events: none;
}
.menu__search-input {
  width: 100%; min-height: 50px;
  padding: 12px 48px 12px 50px;
  border: 1px solid rgba(122,20,38,.22); border-radius: 999px;
  background: var(--crema);
  font: inherit; font-size: 16px; color: var(--texto); /* 16px: evita el zoom automático en iPhone */
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.menu__search-input::placeholder { color: var(--texto-suave); opacity: .8; }
.menu__search-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.menu__search-input:focus {
  outline: none; border-color: var(--bordo); background: var(--blanco);
  box-shadow: 0 0 0 4px rgba(122,20,38,.08);
}
.menu__search-clear {
  position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--bordo);
}
.menu__search-clear .icon { width: 18px; height: 18px; }
.menu__search-clear:hover { background: rgba(122,20,38,.07); }
.menu__empty { text-align: center; color: var(--texto-suave); padding: 32px 0; margin: 0; }

.menu__panel { margin-top: 28px; }
.menu__panel.is-changing { animation: fadeUp .5s var(--ease) both; }

/* Grupos y platos */
.menu__groups { display: grid; gap: 44px; }
.menu-group__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--bordo);
}
.menu-group__title { font-family: var(--f-serif); font-size: 28px; color: var(--bordo); }
.menu-group__sub {
  display: block; margin-top: 6px;
  font-family: var(--f-sans); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--texto-suave);
}
.menu-group__cols { display: flex; gap: 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); font-weight: 600; white-space: nowrap; }
.menu-group__cols span, .dish__prices span { width: 76px; text-align: right; }

.dish {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--linea);
}
.dish__body { flex: 1; min-width: 0; }
.dish__top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.dish__name { font-family: var(--f-sans); font-size: 17px; font-weight: 500; line-height: 1.35; }
.dish__price { font-weight: 600; color: var(--bordo); white-space: nowrap; font-size: 17px; }
.dish__prices { display: flex; gap: 12px; font-weight: 600; color: var(--bordo); white-space: nowrap; font-size: 16px; }
.dish__desc { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--texto-suave); }

.menu-group__note {
  margin-top: 18px; padding: 16px 18px;
  background: var(--crema); border-left: 3px solid var(--oro); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px; color: var(--texto-suave);
}

@media (max-width: 420px) {
  .menu-group__cols span, .dish__prices span { width: 66px; }
  .dish__prices, .menu-group__cols { gap: 6px; font-size: 15px; }
  .menu-group__cols { font-size: 10px; }
}
@media (min-width: 900px) {
  .menu__groups { grid-template-columns: 1fr 1fr; gap: 56px 64px; align-items: start; }
  .menu-group--wide { grid-column: 1 / -1; }
  .menu-group--wide .menu-group__items { columns: 2; column-gap: 64px; }
  .menu-group--wide .dish { break-inside: avoid; }
}


/* ---------- 08. FAVORITOS ---------- */
.favs { background: var(--bordo); color: var(--crema); overflow: hidden; }

/* Carrusel deslizable en celular, grilla en desktop */
.favs__track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 8px;
  scrollbar-width: none;
}
.favs__track::-webkit-scrollbar { display: none; }

.fav {
  position: relative; flex: 0 0 82%;
  scroll-snap-align: center;
  aspect-ratio: 3 / 4.3;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bordo-deep);
  isolation: isolate;
}
.fav img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.2s var(--ease);
}
.fav::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(50,8,17,.92) 0%, rgba(50,8,17,.45) 42%, rgba(50,8,17,0) 70%);
}
.fav:hover img { transform: scale(1.06); }
.fav__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px; }
.fav__num { font-family: var(--f-serif); font-style: italic; color: var(--oro-light); font-size: 15px; display: block; margin-bottom: 8px; }
.fav__name { font-family: var(--f-serif); font-size: 28px; line-height: 1.1; margin-bottom: 10px; }
.fav__desc { font-size: 15px; line-height: 1.5; color: rgba(251,247,236,.78); margin-bottom: 14px; }
.fav__price {
  display: inline-block; padding: 6px 14px; border: 1px solid rgba(212,181,122,.6); border-radius: 999px;
  color: var(--oro-light); font-weight: 500; letter-spacing: .06em;
}
.favs__foot { text-align: center; margin-top: 44px; }

@media (min-width: 768px) {
  .fav { flex-basis: 46%; }
}
@media (min-width: 1100px) {
  .favs__track {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start;
    max-width: 1360px; margin-inline: auto; overflow: visible;
  }
  /* Efecto escalonado: las tarjetas pares quedan más abajo (platos y tragos) */
  .fav:nth-child(even) { margin-top: 48px; }
  .favs__foot { margin-top: 96px; }
}


/* Pestañas Platos / Tragos */
.favs__switch {
  display: flex; justify-content: center; gap: 6px;
  width: max-content; margin: -12px auto 36px;
  padding: 5px; border-radius: 999px;
  border: 1px solid rgba(251,247,236,.25);
}
.favs__tab {
  min-width: 110px; min-height: 44px; padding: 8px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--crema);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.favs__tab:hover { color: var(--blanco); }
.favs__tab[aria-selected="true"] { background: var(--crema); color: var(--bordo); }
.fav--in { animation: fadeUp .6s var(--ease) both; }


/* ---------- 09. SHOWS Y EVENTOS ---------- */
.shows { background: var(--crema); }

.shows__video {
  position: relative; overflow: hidden;
  max-width: 980px; margin: 0 auto 44px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--bordo-deep);
  box-shadow: 0 40px 70px -45px rgba(94,15,30,.6);
}
.shows__video video { width: 100%; height: 100%; object-fit: cover; }
.shows__video::after { /* velo suave para que se lea el botón */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(45,8,15,.55), rgba(45,8,15,0) 55%);
  transition: opacity .4s;
}
.shows__play {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 1;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; border-radius: 999px;
  background: rgba(251,247,236,.95); color: var(--bordo);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s;
}
.shows__play:hover { transform: translateY(-2px); background: var(--blanco); }
.shows__play-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bordo); color: var(--crema);
}
.shows__play-icon .icon { width: 16px; height: 16px; margin-left: 2px; }
.shows__video.is-full::after, .shows__video.is-full .shows__play { opacity: 0; visibility: hidden; }

.shows__grid { display: grid; gap: 18px; }
.show {
  display: flex; flex-direction: column;
  background: var(--blanco); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--linea), 0 24px 48px -36px rgba(94,15,30,.4);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.show:hover { transform: translateY(-5px); box-shadow: 0 1px 0 var(--linea), 0 32px 56px -32px rgba(94,15,30,.5); }
.show__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bordo-deep); }
.show__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.show:hover .show__media img { transform: scale(1.05); }
.show__body { padding: 20px 22px 24px; border-top: 2px solid var(--oro); }
.show__title { font-family: var(--f-serif); font-size: 26px; color: var(--bordo); margin-bottom: 8px; }
.show__desc { margin: 0; color: var(--texto-suave); font-size: 15.5px; line-height: 1.55; }

.shows__cta { display: grid; gap: 12px; margin-top: 40px; justify-items: center; }
.shows__grid[hidden] + .shows__cta { margin-top: 0; }
.shows__cta .btn { width: 100%; max-width: 340px; }

@media (min-width: 768px) {
  .shows__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .shows__cta { grid-template-columns: auto auto; justify-content: center; }
  .shows__cta .btn { width: auto; }
  .shows__play { bottom: 26px; font-size: 13px; }
}

/* ---------- 11b. RESEÑAS (carrusel de citas) ---------- */
.reviews { position: relative; overflow: hidden; background: var(--blanco); color: var(--texto); }
.reviews.section { padding-block: 64px; }
.reviews .section-head { margin-bottom: 28px; }
.reviews .section-title { font-size: clamp(30px, 7.5vw, 46px); }
@media (min-width: 768px) { .reviews.section { padding-block: 90px; } }
.reviews__watermark {
  position: absolute; left: 50%; top: 52%; translate: -50% -50%;
  width: min(480px, 110vw); opacity: .07; pointer-events: none;
}
.reviews__inner { position: relative; max-width: 780px; }

.reviews__card { position: relative; text-align: center; padding-top: 30px; }
.reviews__quote {
  position: absolute; top: -22px; left: 50%; translate: -50% 0;
  font-family: var(--f-serif); font-size: 110px; line-height: 1;
  color: var(--oro); opacity: .45;
  pointer-events: none;
}

/* Todas las reseñas ocupan la misma celda: la altura la define la más larga */
.reviews__slider { display: grid; }
.rv {
  grid-area: 1 / 1;
  margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s;
}
.rv.is-active { opacity: 1; visibility: visible; transform: none; }

.stars { color: var(--oro); font-size: 16px; letter-spacing: 4px; line-height: 1; }
.stars__off { color: rgba(176,138,74,.25); }

.rv__text {
  margin: 16px 0 20px;
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(19px, 4.8vw, 26px);
  line-height: 1.5;
  color: var(--bordo);
  max-width: 640px;
}
.rv__author { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rv__author::before { content: ""; width: 36px; height: 1px; background: var(--oro); margin-bottom: 10px; }
.rv__name { font-size: 13px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--texto); }
.rv__src { font-size: 12px; letter-spacing: .1em; color: var(--texto-suave); }

/* Flechas y puntos */
.reviews__controls {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 28px;
}
.reviews__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(122,20,38,.3); color: var(--bordo);
  transition: background-color .3s, color .3s, border-color .3s;
}
.reviews__arrow:hover { background: var(--bordo); border-color: var(--bordo); color: var(--blanco); }
.reviews__dots { display: flex; justify-content: center; gap: 2px; }
.reviews__dot {
  width: 14px; height: 24px; display: grid; place-items: center;
}
.reviews__dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(122,20,38,.2); transition: background-color .3s, transform .3s;
}
.reviews__dot.is-active::before { background: var(--bordo); transform: scale(1.4); }

/* Puntaje de Google + link */
.reviews__bottom {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin-top: 36px; padding-top: 26px;
  border-top: 1px solid var(--linea);
}
.reviews__score { display: flex; align-items: center; gap: 14px; }
.reviews__num { font-family: var(--f-serif); font-size: 40px; line-height: 1; color: var(--bordo); }
.reviews__meta { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.reviews__meta small { font-size: 13px; letter-spacing: .06em; color: var(--texto-suave); }
.reviews__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bordo); padding-bottom: 6px; border-bottom: 1px solid var(--oro);
}
.reviews__link .icon { transition: transform .3s var(--ease); }
.reviews__link:hover .icon { transform: translateX(5px); }

@media (min-width: 768px) {
  .reviews__quote { font-size: 140px; top: -36px; }
  .reviews__bottom { flex-direction: row; justify-content: space-between; }
}


/* ---------- 12. RESERVAS ---------- */
.reserve {
  position: relative; overflow: hidden;
  padding-block: 100px;
  background: linear-gradient(180deg, var(--bordo) 0%, var(--bordo-deep) 100%);
  color: #fff; text-align: center;
}
.reserve__emblem {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(560px, 120vw); opacity: .07; pointer-events: none;
}
.reserve__inner { position: relative; }
.reserve__title {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(44px, 12vw, 86px); line-height: 1.05;
  margin-bottom: 18px;
}
.reserve__text { color: rgba(255,255,255,.82); margin-bottom: 34px; font-size: 18px; }
.reserve .btn--lg { width: 100%; max-width: 400px; }
.reserve__call {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 22px; color: rgba(255,255,255,.85); font-size: 16px;
}
.reserve__call:hover { color: #fff; }

@media (min-width: 768px) { .reserve { padding-block: 140px; } }


/* ---------- 13. UBICACIÓN ---------- */
.location__grid { display: grid; gap: 44px; }
.info-list { display: grid; gap: 26px; margin-bottom: 34px; }
.info-list li { display: flex; gap: 16px; }
.info-list .icon { width: 26px; height: 26px; color: var(--bordo); margin-top: 2px; }
.info-list h3 {
  font-family: var(--f-sans); font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--oro); margin-bottom: 6px;
}
.info-list p { margin: 0; font-size: 18px; }
.info-list a:hover { color: var(--bordo); }
.hours-row { display: flex; gap: 10px; flex-wrap: wrap; font-size: 18px; }
.hours-row strong { font-weight: 500; }
.location__actions { display: grid; gap: 12px; }
.location__map {
  border-radius: var(--radius); overflow: hidden;
  min-height: 340px; background: var(--crema);
  box-shadow: 0 30px 60px -40px rgba(94,15,30,.45);
}
.location__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: saturate(.85) contrast(1.02); }

@media (min-width: 600px) {
  .location__actions { grid-template-columns: auto auto; justify-content: start; }
}
@media (min-width: 900px) {
  .location__grid { grid-template-columns: 1fr 1.25fr; gap: 70px; align-items: stretch; }
  .location__map, .location__map iframe { min-height: 480px; }
}


/* ---------- 14. INSTAGRAM ---------- */
.insta { background: var(--blanco); text-align: center; }
.insta__inner { display: flex; flex-direction: column; align-items: center; }
.insta__icon { width: 44px; height: 44px; color: var(--bordo); margin-bottom: 18px; }
.insta__user {
  font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 6vw, 32px);
  color: var(--bordo); margin: 12px 0 28px;
  word-break: break-word;
}
.insta__user:hover { text-decoration: underline; text-underline-offset: 6px; }


/* ---------- 15. FOOTER ---------- */
.footer { background: var(--bordo-deep); color: rgba(251,247,236,.75); padding: 70px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer__grid { display: grid; gap: 36px; }
.footer__logo { width: 120px; }
.footer h3 {
  font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--crema); margin-bottom: 12px;
}
.footer p { margin: 0 0 6px; }
.footer a { display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.footer a:hover { color: var(--oro-light); }
.footer .hours-row { font-size: 15px; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; letter-spacing: .06em;
}
.footer__bottom p { margin: 0; }
.footer__credit a { color: var(--crema); border-bottom: 1px solid rgba(212,181,122,.5); padding-bottom: 1px; }
.footer__credit a:hover { color: var(--oro-light); border-color: var(--oro-light); }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}


/* ---------- 16. WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed; z-index: 90;
  right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #FFFFFF; /* verde oficial de WhatsApp */
  border: 0;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.35);
  transition: transform .3s var(--ease), opacity .4s, visibility .4s;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); background: #1EBE5A; }
.wa-float::before { /* pulso suave */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: pulse 2.6s infinite;
}
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: scale(.8); }

@media (min-width: 768px) {
  .wa-float { right: 28px; bottom: 28px; width: 62px; height: 62px; }
  .wa-float .icon { width: 30px; height: 30px; }
}


/* ---------- 16b. AJUSTES FINOS PARA CELULAR ---------- */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .section { padding-block: 68px; }
  .section-head { margin-bottom: 32px; }
  .lead { font-size: 18px; }

  /* Botones: que el texto no se parta en dos líneas */
  .btn { letter-spacing: .12em; padding-inline: 22px; }
  .btn--lg { font-size: 14px; padding: 16px 20px; letter-spacing: .1em; }

  /* Carta: nombres largos y dos precios */
  .dish { padding: 15px 0; }
  .dish__name { font-size: 16px; }
  .dish__price { font-size: 16px; }
  .menu-group__title { font-size: 25px; }

  /* Favoritos y reseñas */
  .fav { flex-basis: 86%; }
  .fav__name { font-size: 25px; }
  .reviews__arrow { width: 44px; height: 44px; }
  .reviews__controls { gap: 10px; }

  /* Reservas y ubicación */
  .reserve { padding-block: 80px; }
  .info-list p, .hours-row { font-size: 17px; }

  /* Footer: espacio para que el botón flotante no tape nada */
  .footer__bottom { padding-right: 64px; }
}

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .hero__title { font-size: 54px; }
  .reviews__dot { width: 12px; }
}


/* ---------- 18. ANIMACIONES ---------- */
/* Aparición al hacer scroll (la clase .is-visible la agrega main.js) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Las imágenes aparecen suavemente al terminar de cargar */
.js img.lazy-fade { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js img.lazy-fade.is-loaded { opacity: 1; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

/* Respeta la preferencia "reducir movimiento" del sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
