@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Shrikhand";
  src: url("fonts/shrikhand.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --verde: #0f6b4f;
  --amarillo: #f6b917;
  --rojo: #c92a32;
  --azul: #1b2a4a;
  --blanco: #fdfdf8;
  --margen: clamp(16px, 5vw, 72px);
  --espacio: clamp(56px, 8vw, 112px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  scrollbar-color: var(--amarillo) var(--azul);
}

body {
  margin: 0;
  background: var(--verde);
  color: var(--blanco);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

::selection {
  background: var(--amarillo);
  color: var(--azul);
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

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

h1,
h2 {
  margin: 0;
  font-family: "Shrikhand", Georgia, serif;
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: clamp(52px, 8vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.04;
}

p {
  margin: 0;
}

.saltar {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--amarillo);
  color: var(--azul);
  font-weight: 700;
}

.saltar:focus {
  top: 16px;
}

.hule {
  background: var(--verde) url("img/hule-verde.svg") repeat;
}

.cenefa {
  height: 96px;
  background: var(--blanco) url("img/cenefa.svg") repeat-x center;
}

.solo-movil {
  display: none;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 160ms ease-out;
}

.boton:hover {
  filter: brightness(1.06);
}

.boton svg {
  flex: none;
}

.boton-amarillo {
  background: var(--amarillo);
  color: var(--azul);
}

.boton-blanco {
  background: var(--blanco);
  color: var(--azul);
}

.botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.encabezado {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 16px var(--margen);
}

.marca {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  text-decoration: none;
}

.marca img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.nombre-corto {
  display: none;
}

.navegacion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-weight: 600;
}

.idioma {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  border: 2px solid var(--blanco);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.navegacion a:not(.idioma) {
  padding: 8px 0;
}

.dividido {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.foto {
  flex: 1 1 480px;
  min-width: 0;
  min-height: 420px;
  overflow: hidden;
}

.foto img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-foto {
  position: relative;
}

.texto {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: var(--espacio) var(--margen);
}

.hero-texto {
  gap: 28px;
}

.bajada {
  max-width: 30ch;
  font-size: clamp(20px, 2vw, 24px);
}

.calificacion {
  font-weight: 700;
}

.medida {
  max-width: 38ch;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-foto img {
    animation: servir 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes servir {
    from {
      transform: scale(1.06);
    }
  }
}

.menu {
  padding: var(--espacio) var(--margen);
  background: var(--amarillo);
  color: var(--azul);
}

.menu-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 48px clamp(32px, 6vw, 88px);
}

.carta {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.carta h3 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.3;
}

.carta ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid var(--azul);
}

.carta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 2px solid var(--azul);
}

.precio {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gallo-pinto {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding: 60px 28px 28px;
  background: var(--azul);
  color: var(--blanco);
}

.gallo-pinto::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 32px;
  background: var(--blanco) url("img/cenefa.svg") repeat-x center / auto 32px;
}

.gallo-nombre {
  color: var(--amarillo);
  font-family: "Shrikhand", Georgia, serif;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
}

.gallo-precio {
  font-family: "Shrikhand", Georgia, serif;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  white-space: nowrap;
}

.gallo-nota {
  grid-column: 1 / -1;
  max-width: 40ch;
}

.estrellas {
  position: relative;
  display: inline-block;
  line-height: 0;
  white-space: nowrap;
  vertical-align: middle;
}

.estrellas svg {
  width: 22px;
  height: 22px;
  margin-right: 2px;
  fill: currentColor;
}

.estrellas svg:last-child {
  margin-right: 0;
}

.estrellas-base {
  display: inline-block;
  color: rgba(253, 253, 248, 0.35);
}

.estrellas-llenas {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--amarillo);
}

.estrellas-grandes {
  margin-top: 16px;
}

.estrellas-grandes svg {
  width: 36px;
  height: 36px;
  margin-right: 4px;
}

.calificacion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.nota-menu {
  font-weight: 600;
}

.platos {
  flex: 1 1 520px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.platos figure {
  margin: 0;
}

.platos figure:first-child,
.platos figure:last-child {
  grid-column: 1 / -1;
}

.platos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.platos figure:first-child img,
.platos figure:last-child img {
  aspect-ratio: 4 / 3;
}

.platos figcaption {
  margin-top: 8px;
  font-weight: 700;
}

.lugar {
  padding-bottom: var(--espacio);
  background: var(--azul);
}

.lugar-marco {
  overflow: hidden;
}

.lugar-foto {
  width: 100%;
  height: auto;
}

.lugar-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px var(--margen) 0;
}

.lugar-panel p {
  max-width: 38ch;
  font-size: clamp(19px, 1.8vw, 22px);
}

.lugar-datos {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid rgba(253, 253, 248, 0.35);
}

.lugar-datos li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-top: 2px solid rgba(253, 253, 248, 0.35);
  font-weight: 600;
}

.lugar-datos svg {
  flex: none;
  margin-top: 1px;
  color: var(--amarillo);
}

.lugar-panel .boton {
  align-self: flex-start;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .lugar-panel {
    width: min(640px, 100% - 2 * var(--margen));
    margin: calc(-1 * clamp(160px, 16vw, 240px)) 0 0 var(--margen);
    padding: clamp(32px, 4vw, 48px);
    background: var(--azul);
  }
}

@media (min-width: 1024px) {
  .lugar-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "titulo datos"
      "texto boton";
    align-items: start;
    gap: 20px clamp(32px, 4vw, 56px);
    width: min(1120px, 100% - 2 * var(--margen));
  }

  .lugar-panel h2 {
    grid-area: titulo;
  }

  .lugar-panel p {
    grid-area: texto;
  }

  .lugar-datos {
    grid-area: datos;
  }

  .lugar-panel .boton {
    grid-area: boton;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .lugar-foto {
      animation: acercar linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }

    @keyframes acercar {
      from {
        transform: scale(1.08);
      }
    }
  }
}

.resenas {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
  padding: var(--espacio) var(--margen);
  background: var(--rojo);
}

.resenas-arriba {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px clamp(32px, 6vw, 96px);
}

.nota {
  flex: 1 1 300px;
  min-width: 0;
}

.nota h2 {
  margin-bottom: 16px;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.08;
}

.nota-numero {
  font-family: "Shrikhand", Georgia, serif;
  font-size: clamp(96px, 14vw, 192px);
  line-height: 1;
}

.nota-detalle {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
}

.nota-idioma {
  margin-top: 12px;
  font-size: 16px;
}

.resenas figure,
.resenas blockquote {
  margin: 0;
}

.resenas blockquote p + p {
  margin-top: 12px;
}

.resena-destacada {
  position: relative;
  flex: 2 1 520px;
  min-width: 0;
  padding-top: clamp(72px, 8vw, 104px);
}

.comillas {
  position: absolute;
  top: 0;
  left: -6px;
  color: var(--amarillo);
  font-family: "Shrikhand", Georgia, serif;
  font-size: clamp(160px, 18vw, 240px);
  line-height: 0.9;
  pointer-events: none;
}

.resena-destacada blockquote {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: pretty;
}

.resena-destacada figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 28px;
  font-size: 20px;
  font-weight: 700;
}

.resenas-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px clamp(32px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.resenas-lista figure {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding-top: 24px;
  border-top: 2px solid rgba(253, 253, 248, 0.5);
}

.resenas-lista figcaption {
  margin-top: auto;
  font-weight: 700;
}

.todas {
  align-self: flex-start;
  font-weight: 700;
}

.llegar .foto {
  flex-basis: 420px;
}

.pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 32px var(--margen);
  background: var(--azul);
}

.pie strong {
  font-weight: 700;
}

.barra-acciones {
  display: none;
}

@media (max-width: 767px) {
  body {
    font-size: 17px;
    line-height: 1.5;
    padding-bottom: 84px;
  }

  .marca img {
    width: 48px;
    height: 48px;
  }

  .nombre-largo,
  .navegacion a:not(.idioma) {
    display: none;
  }

  .nombre-corto {
    display: inline;
  }

  .encabezado {
    padding-block: 12px;
  }

  .cenefa {
    height: 48px;
    background-size: auto 48px;
  }

  .solo-movil {
    display: block;
    flex: 0 0 100%;
    order: 2;
  }

  .hero-foto {
    flex: 0 0 100%;
    order: 1;
    min-height: 0;
  }

  .hero-foto img {
    height: 300px;
    min-height: 0;
  }

  .hero-texto {
    flex: 0 0 100%;
    order: 3;
    gap: 12px;
    padding-block: 24px 40px;
  }

  .hero-texto .botones {
    display: none;
  }

  .foto,
  .foto img {
    min-height: 300px;
  }

  .llegar .foto,
  .llegar .texto,
  .texto,
  .carta,
  .platos,
  .nota,
  .opiniones {
    flex-basis: 100%;
  }

  .barra-acciones {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    background: var(--azul);
  }

  .barra-acciones .boton {
    padding: 0 12px;
    font-size: 17px;
  }
}
