/* Eliora Café & Cocina — estilos
   Estructura y recorrido tomados de Humaya (menú en 3 niveles, portada con zoom al hacer scroll,
   páginas de Restaurante con foto a pantalla completa); identidad 100 % Eliora. */

:root {
  --verde: #3A5B40;
  --verde-hondo: #24392A;
  /* Blanco en lugar del crema (D-48, elección de Eduardo 2026-11-17). Se conservan los
     nombres: --crema es el claro sobre fondo oscuro y --papel el fondo de página. */
  --crema: #FFFFFF;
  --papel: #FFFFFF;
  --claro: #EFF2EE;   /* secciones y recuadros de foto que antes eran crema */
  --terracota: #C2603F;
  --tinta: #2A3D2F;
  --tinta-suave: #5C6B5E;
  --linea: rgba(42, 61, 47, 0.16);

  /* Tipografía de la marca (tomada de su carta impresa) */
  --display: "Playfair Display", "Georgia", serif;
  --serif: "Cormorant Garamond", "Garamond", serif;
  --sans: "Questrial", "Century Gothic", sans-serif;
  --text: "Quicksand", "Century Gothic", sans-serif;
  font-variant-numeric: lining-nums;

  --stripe: 30px;
  --bar-h: 68px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--text);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Rayas del toldo: mismo patrón en portada, telón de transición y pie */
.stripes {
  background: repeating-linear-gradient(90deg, var(--verde) 0 var(--stripe), var(--crema) var(--stripe) calc(var(--stripe) * 2));
}

.scallop {
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--stripe) / 2) no-repeat,
    radial-gradient(circle calc(var(--stripe) / 2) at 50% 0, #000 98%, transparent 100%) bottom left / var(--stripe) calc(var(--stripe) / 2) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--stripe) / 2) no-repeat,
    radial-gradient(circle calc(var(--stripe) / 2) at 50% 0, #000 98%, transparent 100%) bottom left / var(--stripe) calc(var(--stripe) / 2) repeat-x;
}

/* ---------- Logo (máscara: se pinta del color que toque) ---------- */

.logo-mark {
  display: block;
  width: 112px;
  aspect-ratio: 890 / 347;
  background: currentColor;
  -webkit-mask: url("../img/logo.png?v=2") center / contain no-repeat;
  mask: url("../img/logo.png?v=2") center / contain no-repeat;
}

/* ---------- Telón de transición entre páginas ---------- */

.curtain {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: calc(100% + var(--stripe));
  pointer-events: none;
  filter: drop-shadow(0 12px 16px rgba(20, 32, 24, 0.35));
}

.curtain__cloth {
  position: absolute;
  inset: 0;
}

.curtain__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(56vw, 300px);
  padding: 22px 30px;
  border-radius: 6px;
  background: var(--verde-hondo);
  color: var(--crema);
  transform: translate(-50%, -50%);
}

.curtain__logo .logo-mark {
  width: 100%;
}

html:not(.js) .curtain {
  display: none;
}

/* ---------- Barra superior (como Humaya: navegación centrada con el logo al medio) ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: calc(var(--bar-h) + var(--safe-t));
  padding: var(--safe-t) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--crema);
  transition: background-color 400ms var(--ease-out), box-shadow 400ms;
}

.bar.is-solid,
.bar--solid {
  background: var(--verde);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.bar__logo {
  grid-column: 2;
  display: block;
  text-decoration: none;
}

.bar__logo .logo-mark {
  width: 118px;
}

.bar__nav {
  display: none;
  align-items: center;
  gap: 34px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bar__nav a,
.bar__nav button {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: none;
  text-decoration: none;
  letter-spacing: inherit;
  text-transform: inherit;
}

.bar__nav a::after,
.bar__nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 450ms var(--ease-out);
}

@media (hover: hover) {
  .bar__nav a:hover::after,
  .bar__nav button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.bar__nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.bar__nav--left {
  grid-column: 1;
  justify-self: end;
  margin-right: 44px;
}

.bar__nav--right {
  grid-column: 3;
  justify-self: start;
  margin-left: 44px;
}

.bar__end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Punto fijo del color del texto (D-35): lleno si está abierto, anillo vacío si está cerrado */
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
}

.status:not(.is-open) {
  opacity: 0.72;
}

.status.is-open::before {
  background: currentColor;
}

.burger {
  grid-column: 1;
  justify-self: start;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 0;
  background: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
}

.bar__back {
  grid-column: 1;
  justify-self: start;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Submenú Restaurante */
.drop {
  position: relative;
}

.drop > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.drop__flecha {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 240ms var(--ease-out);
}

.drop > button[aria-expanded="true"] .drop__flecha {
  transform: rotate(180deg);
}

.drop__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 230px;
  padding: 10px;
  border-radius: 4px;
  background: var(--papel);
  color: var(--tinta);
  box-shadow: 0 18px 40px -12px rgba(20, 32, 24, 0.45);
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
}

.drop__panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.drop__panel a::after {
  display: none;
}

@media (hover: hover) {
  .drop__panel a:hover {
    background: rgba(58, 91, 64, 0.08);
  }
}

@media (min-width: 960px) {
  .bar__nav {
    display: flex;
  }

  .burger {
    display: none;
  }

  .bar__end .status {
    position: absolute;
    right: var(--gutter);
    top: calc(var(--safe-t) + (var(--bar-h) - 30px) / 2);
  }
}

@media (max-width: 959px) {
  .bar__end .status {
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.03em;
  }

  .bar__back {
    font-size: 13px;
    letter-spacing: 0.05em;
  }
}

/* Celulares angostos: el logo cede un poco para que nada se le pegue */
@media (max-width: 380px) {
  .bar__logo .logo-mark {
    width: 100px;
  }

  .bar__end .status {
    font-size: 11.5px;
    letter-spacing: 0.01em;
  }
}

/* Menú móvil a pantalla completa */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: calc(var(--bar-h) + var(--safe-t)) var(--gutter) calc(32px + var(--safe-b));
  background: var(--verde-hondo);
  color: var(--crema);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}

.mnav a {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.2;
  text-decoration: none;
}

.mnav small {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.mnav .mnav__sub {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
}

.mnav__close {
  position: absolute;
  top: calc(var(--safe-t) + 12px);
  left: var(--gutter);
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--crema);
}

.mnav__close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* ---------- Botones: marco doble, como el filete de una carta impresa ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 32px;
  border: 1px solid currentColor;
  outline: 1px solid currentColor;
  outline-offset: -5px;
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 350ms var(--ease-out), color 350ms var(--ease-out), outline-offset 350ms var(--ease-out);
  user-select: none;
  -webkit-user-select: none;
}

.btn:active {
  outline-offset: -3px;
}

.btn:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
}

.btn--line-light {
  color: var(--crema);
}

.btn--line,
.btn--dark {
  color: var(--verde);
}

@media (hover: hover) {
  .btn--line-light:hover {
    background: var(--crema);
    color: var(--verde-hondo);
    outline-color: var(--verde-hondo);
  }

  .btn--line:hover,
  .btn--dark:hover {
    background: var(--verde);
    color: var(--crema);
    outline-color: var(--crema);
  }
}

/* ---------- Portada (HOME) ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  background: var(--verde-hondo);
  color: var(--crema);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pasarela de la portada: las fotos se relevan con un fundido (js/site.js). */
.hero__foto {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1600ms ease-in-out;
}

.hero__foto.is-activa {
  opacity: 1;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 38, 28, 0.45) 0%, rgba(24, 38, 28, 0) 26%),
    radial-gradient(ellipse at 50% 62%, rgba(24, 38, 28, 0.55), rgba(24, 38, 28, 0.15) 70%);
}

.hero__copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 0 var(--gutter);
  text-align: center;
}

.hero__copy .logo-mark {
  width: min(74vw, 520px);
  color: var(--crema);
}

.hero__lema {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
}

.hero__copy .btn {
  margin-top: 18px;
}

.awning {
  position: absolute;
  inset: calc(var(--bar-h) + var(--safe-t)) 0 auto 0;
  z-index: 5;
  height: calc(100% - var(--bar-h) - var(--safe-t));
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(20, 32, 24, 0.35));
}

.awning__cloth {
  position: absolute;
  inset: 0;
}

.awning__cloth::after,
.curtain__cloth::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 35%, rgba(0, 0, 0, 0.14));
}

/* ---------- Frase que se entinta ---------- */

.manifesto {
  padding: clamp(110px, 18vw, 220px) var(--gutter);
}

.manifesto__text {
  max-width: 19ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 7.4vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--verde);
}

.manifesto__text .w {
  opacity: 0.15;
}

/* ---------- Secciones con foto a todo lo ancho (historia y páginas de Restaurante) ---------- */

.feature {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--bar-h) + 56px) var(--gutter) 72px;
  color: var(--crema);
  background: var(--verde-hondo);
  overflow: hidden;
  isolation: isolate;
}

.feature__bg {
  position: absolute;
  inset: -8% 0;
  z-index: -1;
}

.feature__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(24, 38, 28, 0.86) 0%, rgba(24, 38, 28, 0.55) 48%, rgba(24, 38, 28, 0.1) 100%);
}

@media (max-width: 959px) {
  .feature::after {
    background: linear-gradient(180deg, rgba(24, 38, 28, 0.2) 0%, rgba(24, 38, 28, 0.88) 60%);
  }

  .feature {
    align-items: end;
  }
}

.feature__body {
  max-width: 540px;
  margin-left: clamp(0px, 5vw, 80px);
}

.feature__title {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.feature__body p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.6;
}

.feature__body .btn {
  margin-top: 16px;
}

.feature__note {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px !important;
}

.tag-example {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  background: var(--terracota);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Favoritos ---------- */

.favs {
  background: var(--verde);
  color: var(--crema);
}

.favs__pin {
  padding: 84px 0 92px;
  overflow: hidden;
}

.favs__head {
  padding: 0 var(--gutter);
  margin-bottom: 34px;
}

.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.05;
}

.favs__hint {
  margin: 8px 0 0;
  opacity: 0.75;
}

.favs__track {
  display: flex;
  gap: 18px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.favs__track::-webkit-scrollbar {
  display: none;
}

.fav {
  flex: 0 0 auto;
  width: min(70vw, 320px);
  scroll-snap-align: start;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}

.fav__img {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--verde-hondo);
}

.fav__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

@media (hover: hover) {
  .fav:hover .fav__img img {
    transform: scale(1.06);
  }
}

.fav__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.fav__name {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.2;
}

.fav__price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .favs__pin {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }

  .favs__track {
    width: max-content;
    overflow: visible;
    scroll-snap-type: none;
    gap: 28px;
    padding-right: 30vw;
  }

  .fav {
    width: clamp(240px, min(22vw, 44vh), 330px);
  }
}

/* ---------- Visítanos ---------- */

.visita {
  display: grid;
  background: var(--claro);
}

.visita__card {
  padding: 72px var(--gutter);
}

.visita__card .h2 {
  color: var(--verde);
}

.visita__status {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--terracota);
}

.visita__status.is-open {
  color: var(--verde);
}

.visita__data {
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
}

.visita__data div {
  display: grid;
  gap: 2px;
}

.visita__data dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--verde);
}

.visita__data dd {
  margin: 0;
}

.visita__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.visita__map {
  min-height: 340px;
}

.visita__map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  filter: saturate(0.6) sepia(0.12);
}

@media (min-width: 960px) {
  .visita {
    grid-template-columns: 1fr 1fr;
  }

  .visita__card {
    padding: 96px clamp(32px, 7vw, 120px);
  }
}

/* ---------- Menú: índice (nivel 1) ---------- */

.page {
  padding: calc(var(--bar-h) + var(--safe-t) + 48px) var(--gutter) 96px;
  max-width: 1180px;
  margin: 0 auto;
}

.page__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--terracota);
}

.page__lead {
  margin: 0 0 36px;
  color: var(--tinta-suave);
}

.menus {
  display: grid;
  gap: 22px;
}

.menu-card {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  min-height: clamp(260px, 42vw, 420px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: 6px;
  overflow: hidden;
  color: var(--crema);
  text-decoration: none;
  isolation: isolate;
}

.menu-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-out);
}

.menu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(24, 38, 28, 0.8), rgba(24, 38, 28, 0.15));
}

.menu-card h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.05;
}

.menu-card p {
  margin: 0 0 8px;
  font-size: 18px;
}

.menu-card .btn {
  pointer-events: none;
}

@media (hover: hover) {
  .menu-card:hover img {
    transform: scale(1.05);
  }

  .menu-card:hover .btn {
    background: var(--crema);
    color: var(--verde-hondo);
  }
}

/* ---------- Menú: mosaico de categorías (nivel 2) ---------- */

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  padding: 22px 24px;
  border-radius: 6px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-out);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(24, 38, 28, 0) 40%, rgba(24, 38, 28, 0.78));
}

/* Menús y categorías sin foto todavía: fondo de marca con filete doble, como la carta impresa */
.menu-card--sinfoto,
.tile--sinfoto {
  background: var(--verde-hondo);
  box-shadow: inset 0 0 0 10px var(--verde-hondo), inset 0 0 0 11px rgba(255, 255, 255, 0.28), inset 0 0 0 14px var(--verde-hondo), inset 0 0 0 15px rgba(255, 255, 255, 0.28);
}

.menu-card--sinfoto::after,
.tile--sinfoto::after {
  content: none;
}

.tile--sinfoto {
  aspect-ratio: auto;
  min-height: 104px;
  align-items: center;
  padding: 22px 30px;
}

@media (min-width: 640px) {
  .tile--sinfoto {
    min-height: 150px;
  }
}

.tile span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

@media (hover: hover) {
  .tile:hover img {
    transform: scale(1.06);
  }
}

.back {
  display: inline-flex;
  margin-top: 48px;
}

/* ---------- Menú: categoría (nivel 3) — tarjetas como Humaya ---------- */

.cat-note {
  margin: -20px 0 28px;
  color: var(--tinta-suave);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 22px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.card__img {
  display: block;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--claro);
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1000ms var(--ease-out);
}

@media (hover: hover) {
  .card:hover .card__img img {
    transform: scale(1.05);
  }
}

.card__name {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.3;
  color: var(--tinta);
}

.card__desc {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tinta-suave);
}

.card__price {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--verde);
}

/* Precio y etiqueta en una línea: la etiqueta a la derecha. Si el precio es largo
   («Copa $230 · Botella $1,299»), la etiqueta baja y sigue a la derecha. */
.card__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 8px;
}

.card__pie .card__price {
  margin-top: 0;
}

/* Etiqueta (D-44): listón terracota con muesca, como el banderín de una etiqueta de precio. */
.card__badge {
  display: inline-block;
  margin-left: auto;
  padding: 4px 10px 4px 15px;
  background: var(--terracota);
  color: var(--crema);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
}

/* Sin foto: el texto ocupa la tarjeta, como en Humaya */
.card--text {
  padding: 22px 0 0;
  border-top: 1px solid var(--linea);
}

.card--text .card__name {
  margin-top: 0;
}

.cat-extras {
  margin: 36px 0 0;
  color: var(--tinta-suave);
}

/* ---------- Hoja de detalle ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
  justify-items: center;
  visibility: hidden;
}

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(24, 36, 27, 0.55);
  opacity: 0;
}

.sheet__panel {
  position: relative;
  width: min(100%, 560px);
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--papel);
  border-radius: 10px 10px 0 0;
  padding-bottom: calc(24px + var(--safe-b));
  touch-action: pan-y;
}

@media (min-width: 960px) {
  .sheet {
    align-items: center;
  }

  .sheet__panel {
    border-radius: 8px;
  }

  .sheet__grab {
    display: none;
  }
}

.sheet__grab {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
}

.sheet__x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.sheet__x svg {
  width: 18px;
  height: 18px;
  stroke: var(--tinta);
  stroke-width: 2;
  stroke-linecap: round;
}

.item__photo {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  max-height: 46svh;
  overflow: hidden;
  background: var(--verde);
}

.item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Platillo sin foto: no se dibuja recuadro; solo el espacio del botón de cerrar. */
.item__photo--none {
  aspect-ratio: auto;
  height: 52px;
  background: none;
}

.item__body {
  padding: 22px 24px 4px;
}

.item__cat {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracota);
}

.item__name {
  margin: 6px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  color: var(--verde);
}

.item__desc {
  margin: 10px 0 0;
  color: var(--tinta-suave);
}

.item__price {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  color: var(--verde);
}

/* ---------- Pie: franja de horarios con patrón (como Humaya) ---------- */

.hours {
  position: relative;
  padding: 96px var(--gutter) 64px;
  background-color: var(--verde-hondo);
  color: var(--crema);
  text-align: center;
  overflow: hidden;
}

.hours__valance {
  position: absolute;
  inset: 0 0 auto 0;
  height: 44px;
}

.hours__pattern {
  position: absolute;
  inset: 44px 0 0 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 46h34v16a17 17 0 0 1-34 0z'/><path d='M54 50h5a7 7 0 0 1 0 14h-6'/><path d='M30 38c0-5 4-5 4-10M42 38c0-5 4-5 4-10'/><path d='M118 34c10-14 34-14 44 0-6 10-38 10-44 0z'/><path d='M126 34c2-6 4-9 7-11M140 26v-6M154 34c-2-6-4-9-7-11'/><path d='M74 122c8-22 30-22 38 0'/><path d='M80 118c4-8 22-8 26 0M86 112l4-10M100 112l-4-10'/><path d='M168 104c14-4 24 6 20 20-12 2-22-6-20-20z'/><path d='M170 106c6 6 10 12 16 16'/><circle cx='30' cy='128' r='10'/><path d='M24 128h12M30 122v12'/></svg>");
  background-size: 220px 160px;
}

.hours__inner {
  position: relative;
}

.hours h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hours p {
  margin: 0 0 8px;
  font-size: 17px;
}

.hours__dias:not(:first-of-type) {
  margin-top: 18px;
}

.hours__addr {
  max-width: 44ch;
  margin: 18px auto 0 !important;
  opacity: 0.85;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding: 22px var(--gutter) calc(22px + var(--safe-b));
  background: var(--verde);
  color: var(--crema);
  font-family: var(--sans);
  font-size: 14px;
}

.foot a {
  text-decoration: none;
}

@media (hover: hover) {
  .foot a:hover {
    text-decoration: underline;
  }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  .awning,
  .curtain {
    display: none;
  }

  .manifesto__text .w {
    opacity: 1;
  }
}

/* ---------- Botón flotante «Reservar» (solo celular y tableta) ---------- */

.reservar-flotante {
  display: none;
}

@media (max-width: 959px) {
  .reservar-flotante {
    position: fixed;
    right: 16px;
    bottom: calc(16px + var(--safe-b));
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px 0 16px;
    border: 0;
    border-radius: 999px;
    /* Opción B (D-62): redondo, con ícono y en terracota, para no confundirse con los botones de
       las tarjetas. Un tono más oscuro que --terracota: el blanco encima da 4.9:1 (AA). */
    background: #B4553A;
    color: #FFFFFF;
    font-family: var(--text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 26px rgba(120, 50, 25, 0.35);
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 700ms var(--ease-out), visibility 0s linear 700ms;
  }

  /* Aparece con un desvanecido (D-63). */
  .reservar-flotante.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 700ms var(--ease-out), visibility 0s;
  }

  /* Siempre a la vista: el pie, que es lo último de cada página, deja espacio abajo para que el
     botón no tape sus enlaces. */
  .con-reservar .foot {
    padding-bottom: calc(80px + var(--safe-b));
  }

  .reservar-flotante svg {
    flex: none;
  }

  .reservar-flotante:focus-visible {
    outline: 2px solid var(--verde);
    outline-offset: 3px;
  }

  body.is-locked .reservar-flotante {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reservar-flotante,
  .reservar-flotante.is-visible {
    transition: none;
  }
}
