:root {
  --green: #1e5c38;
  --green-deep: #143f26;
  --yellow: #f6c31a;
  --yellow-deep: #e2ad08;
  --lime: #d8ef86;
  --cream: #fffaf0;
  --bean: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23143f26' stroke-opacity='.16' stroke-width='2'><ellipse cx='28' cy='34' rx='14' ry='20' transform='rotate(-28 28 34)'/><path d='M22 28c8 6 10 14 6 22'/><ellipse cx='86' cy='78' rx='13' ry='19' transform='rotate(24 86 78)'/><path d='M80 70c7 6 9 13 5 20'/></svg>");
  --stripe: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.045) 22px 23px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--green);
  color: var(--cream);
  font-family: "Poppins", sans-serif;
}

.carta {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--green);
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
  overflow-x: clip;
}

.tapa {
  position: relative;
  text-align: center;
  padding: 28px 20px 48px;
  color: var(--green-deep);
  background-color: var(--yellow);
  background-image: var(--bean);
  overflow: hidden;
}

.tapa:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 22px;
  background: radial-gradient(circle at 16px -2px, transparent 16px, var(--green) 17px) left bottom / 32px 22px repeat-x;
}

.logo {
  width: min(300px, 84%);
  height: auto;
  filter: drop-shadow(0 12px 10px rgba(70, 35, 0, .28));
}

.tapa p {
  margin: 18px 0 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
}

.tapa h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4.8rem, 20vw, 6rem);
  letter-spacing: .04em;
  line-height: .78;
}

.indice {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 14px 8px;
  background: var(--green);
  background-image: var(--stripe);
  position: sticky;
  top: 0;
  z-index: 3;
  scrollbar-width: none;
}

.indice::-webkit-scrollbar { display: none; }

.indice a {
  flex: 0 0 auto;
  color: var(--green-deep);
  background: var(--yellow);
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .75rem;
  font-weight: 600;
}

.indice a.activo { outline: 2px solid var(--cream); }

.seccion {
  position: relative;
  padding: 26px 22px 18px;
  scroll-margin-top: 58px;
}

.seccion.oscura {
  color: var(--cream);
  background-color: var(--green);
  background-image: var(--stripe);
}

.seccion.clara {
  color: var(--green-deep);
  background-color: var(--yellow);
  background-image: var(--bean);
}

.seccion.oscura + .seccion.clara:before,
.seccion.clara + .seccion.oscura:before,
.seccion.oscura + .almuerzo:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 18px;
  background: radial-gradient(circle at 16px 18px, transparent 16px, var(--yellow) 17px) left top / 32px 18px repeat-x;
}

.seccion.clara + .seccion.oscura:before {
  background: radial-gradient(circle at 16px 18px, transparent 16px, var(--green) 17px) left top / 32px 18px repeat-x;
}

.seccion h2 {
  margin: 4px 0 16px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.25;
}

.oscura h2 { color: var(--lime); }
.clara h2 { color: var(--green); }

.foto {
  margin: 22px 0 6px;
  display: flex;
  justify-content: center;
}

.foto img,
.foto-vacia {
  width: min(220px, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid rgba(255, 250, 240, .9);
  box-shadow: 0 0 0 3px rgba(20, 63, 38, .25);
}

.foto-vacia {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-size: .85rem;
  letter-spacing: .02em;
  border-style: dashed;
}

.oscura .foto-vacia { color: var(--lime); background: rgba(0, 0, 0, .12); }
.clara .foto-vacia { color: var(--green-deep); background: rgba(255, 255, 255, .28); }

.item { margin: 0 0 12px; }

.fila {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nombre { font-size: .95rem; font-weight: 500; }

.puntos {
  flex: 1;
  min-width: 18px;
  border-bottom: 1.5px dotted currentColor;
  opacity: .45;
  transform: translateY(-4px);
}

.precio { font-weight: 600; white-space: nowrap; }

.desc {
  margin: 1px 0 0;
  max-width: 34ch;
  font-size: .75rem;
  line-height: 1.35;
  opacity: .78;
}

.almuerzo {
  position: relative;
  margin: 0;
  padding: 36px 22px 28px;
  text-align: center;
  color: var(--cream);
  background: var(--green-deep);
  background-image: var(--stripe);
}

.almuerzo h2 {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.25;
  color: var(--yellow);
}

.almuerzo p {
  margin: 0 auto;
  max-width: 34ch;
  font-size: .92rem;
  line-height: 1.5;
}

.pie {
  padding: 8px 20px 36px;
  text-align: center;
  color: var(--green-deep);
  background: var(--yellow);
  background-image: var(--bean);
}

.pie .logo-mini {
  width: 190px;
  margin-top: 8px;
}

.pie p {
  margin: 0 auto 14px;
  max-width: 32ch;
  font-size: .78rem;
  line-height: 1.4;
}

.contacto { display: grid; gap: 8px; }

.contacto a {
  color: var(--cream);
  background: var(--green);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .9rem;
}

.subir {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(58px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green-deep);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(0,0,0,.28);
  cursor: pointer;
}

.impuestos {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--green-deep);
  color: var(--yellow);
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 -6px 16px rgba(0, 0, 0, .2);
}

@media (min-width: 960px) {
  .tapa {
    display: block;
    text-align: center;
    padding: 36px 48px 52px;
  }

  .logo { width: min(320px, 28vw); }

  .portada { text-align: center; }
  .tapa p { margin: 12px 0 0; font-size: 2.8rem; }
  .tapa h1 { font-size: 6rem; }

  .indice {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    padding: 18px 32px 14px;
  }

  .hojas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .hojas .seccion:before,
  .almuerzo:before { content: none; }

  .seccion { padding: 36px 40px 28px; }

  .almuerzo { padding: 48px 80px; }
  .almuerzo p { max-width: 52ch; font-size: 1.05rem; }

  .pie { padding: 28px 40px 48px; }
  .contacto {
    grid-auto-flow: column;
    justify-content: center;
  }
  .contacto a { min-width: 220px; }
}
