/* Plantilla «Flor Brava» (spec 0019): la carta abierta, vestida con el local remodelado:
   fachada azul con marcos rojos y el letrero blanco, muros de estuco
   y el estallido de flamas del mural.
   Antes: la carta abierta. Tres paneles de papel con sus dobleces
   (títulos en Lora cursiva roja sobre filete, renglones en Lato) y la contraportada de cuadros
   turquesa con recuadros blancos, como el menú impreso. Sin JavaScript. */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/lora-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/lora-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lato-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lato-400-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/lato-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/lato-900-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  /* The facade's blue: bars, titles, line drawings and the medallion */
  --cobalt: #2a49b8;
  --cobalt-night: #1b2c55;
  --red: #dd310a;
  --pink-pop: #ffb7dd;
  --teal: #4fada9;
  --yellow: #f9e073;
  --sky: #85b5f9;
  /* El local remodelado */
  --facade: #2a49b8;
  --frame: #e1251b;
  --stucco: light-dark(#fbf8f2, #141c33);
  /* El papel cambia con el modo; la barra y los cuadros son de marca */
  --paper: light-dark(#ffffff, #141c33);
  --panel: light-dark(#ffffff, #18223f);
  --ink: light-dark(#1f2a44, #eef1fa);
  --ink-soft: light-dark(#4a5672, #b8c1db);
  --script: light-dark(#dd310a, #ff7a59);
  --fold: light-dark(#cfd6e6, #2c3b68);
  --line-art: light-dark(#2a49b8, #85b5f9);
  --font-script: "Lora", "Iowan Old Style", Georgia, serif;
  --font-sans: "Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
/* «Siempre claro» (the default): white paper, like the printed menu */
:root[data-theme="light"] {
  color-scheme: light;
}
@supports not (color: light-dark(white, black)) {
  :root {
    --paper: #ffffff;
    --panel: #ffffff;
    --ink: #1f2a44;
    --ink-soft: #4a5672;
    --script: #dd310a;
    --fold: #cfd6e6;
    --line-art: #2a49b8;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--stucco);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--pink-pop);
  color: var(--cobalt-night);
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
h2,
h3 {
  line-height: 1.1;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 6px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.wrap {
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--cobalt-night);
  font-weight: 700;
}
.skip:focus {
  top: 1rem;
}
.preview-bar {
  padding: 0.6rem 1rem;
  background: var(--yellow);
  color: #3d2c00;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}
.script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--script);
}

/* Píldoras, como las fichas de la paleta */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}
.pill:hover {
  transform: translateY(-1px);
}
.pill-pink {
  background: var(--pink-pop);
  color: var(--cobalt-night);
}
.pill-red {
  background: var(--red);
  color: #fff;
}
.pill-cobalt {
  background: var(--cobalt);
  color: #fff;
}

/* --- Barra --------------------------------------------------------------------------------- */

/* La fachada: azul con el marco rojo de las ventanas */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--facade);
  border-bottom: 5px solid var(--frame);
  color: #fff;
}
.bar :focus-visible {
  outline-color: var(--yellow);
}
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
/* El letrero: placa blanca con letras negras colgando de su brazo rojo */
.logo {
  display: flex;
}
.letrero {
  position: relative;
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1.5px #1c1c1c,
    0 6px 12px -6px rgb(0 0 0 / 0.45);
  rotate: -1.5deg;
}
.letrero-logo {
  display: block;
  height: 2.2rem;
  aspect-ratio: 674 / 478;
  background: #1c1c1c;
  -webkit-mask: url("img/logo-vertical.svg") center / contain no-repeat;
  mask: url("img/logo-vertical.svg") center / contain no-repeat;
}
.bar-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  font-weight: 700;
}
.bar-nav a:not(.pill) {
  text-decoration: none;
}
.bar-nav a:not(.pill):hover {
  text-decoration: underline;
}
@media (max-width: 34rem) {
  .bar-nav a:not(.pill) {
    display: none;
  }
}

/* --- La carta abierta ---------------------------------------------------------------------- */

.carta {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
.carta-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.tagline {
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  color: var(--line-art);
}
.secciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.05rem;
}
.secciones a {
  color: var(--script);
  text-decoration-color: transparent;
}
.secciones a:hover {
  text-decoration-color: currentColor;
}

/* Los paneles: columnas con filete de doblez, como la carta abierta */
.paneles {
  position: relative;
  columns: 1;
  column-gap: clamp(3rem, 6vw, 5.5rem);
  column-rule: 1px solid var(--fold);
}
@media (min-width: 44rem) {
  .paneles { columns: 2; }
}
@media (min-width: 66rem) {
  .paneles { columns: 3; }
}
.sec {
  break-inside: avoid;
}
.sec {
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
}
.sec h3 {
  padding-bottom: 0.45rem;
  margin-bottom: 0.9rem;
  border-bottom: 1.5px solid var(--script);
  font-size: clamp(1.85rem, 3vw, 2.25rem);
}
.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.item-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.item-name {
  flex: 1;
  font-size: 1.15rem;
}
.price {
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.item-row .price {
  font-size: 1.15rem;
}
.item-desc {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.45;
}
/* Each size on its own line, its price in the same right-hand column as single prices */
.variants {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0 0 0 1rem;
  display: grid;
  gap: 0.1rem;
}
.variants li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
}
.variants .price {
  color: var(--ink);
  font-size: 1.15rem;
}

/* Ilustraciones de línea donde la carta tiene aire */
.ill {
  display: grid;
  place-items: center;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
.ill-art {
  width: min(45%, 12rem);
  aspect-ratio: 1;
  background: var(--line-art);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.ill-art.espresso { --m: url("img/espresso.svg"); }
.ill-art.chemex { --m: url("img/chemex.svg"); }
.ill-art.copa { --m: url("img/copa.svg"); }

/* El escudo como sello al pie del último panel */
/* The note and the seal close the open menu on one line, like its printed foot */
.carta-pie {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.sello img {
  width: 6.5rem;
  rotate: -8deg;
  opacity: light-dark(1, 0.9);
}
.note {
  padding-bottom: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* --- Contraportada: cuadros turquesa con recuadros blancos --------------------------------- */

/* La contraportada: muro blanco; el primer recuadro va al centro como el medallón del mural,
   con su estallido de flamas de colores alrededor */
.contra {
  /* the burst paints behind the panels, inside this section */
  isolation: isolate;
  overflow-x: clip;
  padding-block: clamp(3rem, 7vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--fold);
}
.contra-grid {
  display: grid;
  gap: clamp(5rem, 12vw, 9rem);
  justify-items: center;
}
.contra-grid > * {
  width: min(100%, 40rem);
}

/* Los puntos: el medallón del mural (cobalto con aro dorado y el milagrito) con su estallido de
   flamas, junto a la tarjeta */
.puntos {
  display: grid;
  justify-items: center;
  gap: clamp(7rem, 22vw, 9rem);
  padding-top: clamp(6rem, 20vw, 8rem);
}
/* The points come first, right under the bar */
.inicio {
  isolation: isolate;
  overflow-x: clip;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.inicio .puntos {
  width: min(100%, 64rem);
  margin-inline: auto;
}
.inicio + .carta {
  border-top: 1px solid var(--fold);
}
@media (min-width: 56rem) {
  .puntos {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding-top: 0;
    padding-left: 6rem;
  }
}
.medallon {
  position: relative;
  width: clamp(9.5rem, 30vw, 14rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--facade);
  box-shadow: 0 0 0 clamp(6px, 1vw, 9px) #f6b81c;
}
.medallon::before {
  content: "";
  position: absolute;
  z-index: -1;
  /* the burst's empty centre is 35 % of its width: this inset fits it to the medallion */
  inset: -82%;
  background: url("img/flamas-medallon.svg") center / contain no-repeat;
}
.medallon img {
  position: absolute;
  inset: 15%;
  width: 70%;
  height: auto;
}
.puntos .panel {
  width: min(100%, 40rem);
}
/* The panel's action sits centred, like the medallion's axis */
.panel .pill {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}
.panel .fine {
  text-align: center;
}
.panel {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 2rem;
  background: var(--panel);
  box-shadow: 0 18px 40px -18px rgb(27 44 85 / 0.55);
}
.panel h2 {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
}
.lead {
  margin-top: 0.75rem;
  max-width: 40ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.canjes {
  margin-block: 1.5rem 1.75rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--script);
}
.canjes .price {
  font-weight: 700;
  color: var(--script);
}
.fine {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.foto {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 1.25rem;
  margin-bottom: 1.5rem;
}
.datos {
  display: grid;
  gap: 1rem;
  margin-block: 1.5rem 1.75rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--script);
}
.datos dt {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--line-art);
}
.datos a {
  font-weight: 700;
}

/* --- Pie ------------------------------------------------------------------------------------- */

/* El pie es otra vez la fachada: azul, con el marco rojo arriba */
.pie {
  background: var(--facade);
  border-top: 5px solid var(--frame);
  color: #fff;
  padding-block: 1.5rem;
  font-size: 0.95rem;
}
.pie :focus-visible {
  outline-color: var(--yellow);
}
.pie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.pie-firma {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pie-logo {
  display: block;
  height: 1.35rem;
  aspect-ratio: 947 / 157;
  background: #fff;
  -webkit-mask: url("img/logo-horizontal.svg") center / contain no-repeat;
  mask: url("img/logo-horizontal.svg") center / contain no-repeat;
}
.redes {
  display: flex;
  gap: 1.25rem;
  font-weight: 700;
}
.staff {
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill { transition: none; }
}
