/* =========================================================
   PAN Y SAL — Cocina mediterránea en València
   Maqueta one-page · mobile-first
   Breakpoints: base ≤640 · tablet 641–1024 · desktop ≥1025
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Paleta derivada del logo (naranja #FF6C22 + cian #07ACD8) */
  --base: #E7F7FC;      /* fondo: tinte muy claro del cian            */
  --cream: #FFF3EA;     /* interiores y tarjetas: tinte del naranja   */
  --sea: #07ACD8;       /* PRINCIPAL · cian del logo                  */
  --orange: #FF6C22;    /* SECUNDARIO · naranja del logo              */
  --blue: #0A6F8C;      /* cian profundo: texto, botones, bloques     */
  --blue-deep: #06485C; /* petróleo: contornos y texto sobre naranja  */
  --yellow: #FFB37E;    /* ACENTO · naranja claro (antes amarillo)    */
  --sand: #FFD2B3;      /* marco de pizarra: naranja pálido           */
  --soft: #8FDCF0;      /* marco de pizarra: cian pálido              */
  --ink: #0B2F3B;       /* tinta: texto de La Carta                   */
  --white: #FFFFFF;

  /* Titulares: serif ultranegra de remates redondos, como el logo */
  --f-display: "Corben", "Cooper Black", Georgia, serif;
  --f-accent: "Corben", "Cooper Black", Georgia, serif;
  /* Apoyo: grotesca redondeada para botones, etiquetas y cuerpo */
  --f-heavy: "Nunito", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 68px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* ola: trazo (línea ondulada) y relleno */
  --wave-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 24'%3E%3Cpath d='M0 12 C20 0 20 0 40 12 S60 24 80 12' fill='none' stroke='black' stroke-width='4.5'/%3E%3C/svg%3E");
  --rombo-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 18'%3E%3Cpath d='M18 2 L25 9 L18 16 L11 9Z' fill='black'/%3E%3C/svg%3E");
  --zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'%3E%3Cpath d='M0 0 H28 L14 14Z' fill='black'/%3E%3C/svg%3E");
  --wave-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 24'%3E%3Cpath d='M0 0 H80 V12 C60 24 60 24 40 12 S20 0 0 12 Z' fill='black'/%3E%3C/svg%3E");
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
/* Escala general de la web: todo un 15 % más pequeño en ordenador.
   Para volver al tamaño original, borra esta regla o pon 1. */
@media (min-width: 1025px) {
  html { zoom: .85; }
}
body {
  margin: 0;
  background: var(--base);
  color: var(--blue-deep);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.section--blue :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible { outline-color: var(--yellow); }

/* Texto solo para lectores de pantalla */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--white); padding: .75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id], #reservar { scroll-margin-top: calc(var(--header-h) + 12px); }

.section--base { background: var(--base); }
.section--blue { background: var(--blue); color: var(--cream); }

/* Titular naranja tipo rótulo: sin contorno, con sombra desplazada */
.t-orange {
  color: var(--orange);
  text-shadow: .05em .05em 0 var(--sea);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.15rem;
  border: 2px solid currentColor;
  background: transparent;
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .03em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--outline { color: var(--blue); }
.btn--outline:hover, .btn--outline[aria-current="true"] { background: var(--blue); color: var(--cream); border-color: var(--blue); }

/* naranja con texto en tinta (crema o amarillo sobre naranja no se leen) */
.btn--solid-orange { background: var(--orange); color: var(--blue-deep); border-color: var(--blue-deep); }
.btn--solid-orange:hover { background: var(--blue-deep); color: var(--orange); }

.btn--solid-yellow { background: var(--yellow); color: var(--blue-deep); border-color: var(--yellow); }
.btn--solid-yellow:hover { background: var(--blue-deep); color: var(--yellow); border-color: var(--blue-deep); }

.btn--box {
  width: 100%;
  min-height: 64px;
  color: var(--blue);
  font-size: .9rem;
}
.btn--box:hover { background: var(--blue); color: var(--cream); border-color: var(--blue); }
.btn--box-orange { background: var(--orange); color: var(--blue-deep); border-color: var(--blue-deep); }
.btn--box-orange:hover,
.btn--box-orange[aria-pressed="true"] { background: var(--blue-deep); color: var(--orange); border-color: var(--blue-deep); }

/* ---------- Tipos editoriales ---------- */
.wordmark {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: .86;
  letter-spacing: .005em;
  font-size: clamp(3rem, 14vw, 9rem); /* respaldo si JS no ajusta */
  color: var(--wm-fg);
  /* efecto "inline": hueco del color de fondo + contorno desplazado */
  text-shadow:
    .028em .028em 0 var(--wm-bg),
    .05em .05em 0 var(--wm-sh);
  padding-bottom: .06em;
}
.wordmark--blue  { --wm-fg: var(--blue);  --wm-bg: var(--base); --wm-sh: var(--blue); }
.wordmark--cream { --wm-fg: var(--cream); --wm-bg: var(--blue); --wm-sh: var(--orange); }
.wordmark { font-weight: 700; }
/* Hero: letra azul con borde y banda crema, y contorno desplazado
   en un naranja más brillante y algo más grueso que el resto */
.wordmark--hero {
  --wm-fg: var(--blue); --wm-bg: var(--cream); --wm-sh: var(--orange);
  -webkit-text-stroke: .014em var(--cream);
  paint-order: stroke fill;
  text-shadow:
    .03em .03em 0 var(--wm-bg),
    .062em .062em 0 var(--wm-sh);
}

.accent {
  font-family: var(--f-accent);
  font-size: clamp(1.05rem, 3.8vw, 1.45rem);
  line-height: 1.2;
  color: var(--blue);
}
.accent--blue { color: var(--blue); }
.section-head--light .accent { color: var(--orange); }

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
}

/* ---------- Ola marina (separador propio) ---------- */
.wave {
  height: 22px;
  width: 100%;
  background: currentColor;
  -webkit-mask: var(--wave-line) repeat-x 0 50% / 72px 22px;
          mask: var(--wave-line) repeat-x 0 50% / 72px 22px;
  animation: wave-drift 6s linear infinite;
}
.wave--blue   { color: var(--blue); }
.wave--cream  { color: var(--cream); }
.wave--orange { color: var(--orange); }
.wave--yellow { color: var(--yellow); }
.wave--top { margin-bottom: clamp(2rem, 6vw, 4rem); }

@keyframes wave-drift {
  to { -webkit-mask-position: 72px 50%; mask-position: 72px 50%; }
}

/* =========================================================
   CABECERA
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--base);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 0 var(--blue); }
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  isolation: isolate;
}
.logo__img {
  height: 40px;
  width: auto;
}
.logo__sun {
  position: absolute;
  left: -14px; top: 50%;
  width: 64px; height: 64px;
  translate: 0 -50%;
  color: var(--white);
  z-index: -1;
  animation: spin 24s linear infinite;
}
.logo__text {
  font-family: var(--f-accent);
  font-size: 2rem;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -.01em;
  -webkit-text-stroke: 1.5px var(--blue-deep);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--blue-deep);
}

.nav { display: none; }

/* Hamburguesa */
.burger {
  position: relative;
  width: 48px; height: 48px;
  border: 2px solid var(--blue);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 5px;
  transition: background-color .25s ease;
}
.burger__bar {
  display: block;
  width: 24px; height: 3px;
  background: var(--blue);
  transition: transform .35s var(--ease), opacity .2s ease, background-color .25s ease;
}
.burger[aria-expanded="true"] { background: var(--blue); }
.burger[aria-expanded="true"] .burger__bar { background: var(--cream); }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--blue);
  color: var(--cream);
  padding: 2rem var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .5s var(--ease), visibility 0s linear .5s;
}
.mobile-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .5s var(--ease), visibility 0s;
}
.mobile-menu__list li {
  border-bottom: 2px solid rgba(255, 243, 234, .25);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s var(--ease);
}
.mobile-menu.is-open .mobile-menu__list li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(1) { transition-delay: .10s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) { transition-delay: .16s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) { transition-delay: .22s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) { transition-delay: .28s; }
.mobile-menu__list a {
  display: block;
  padding: .35rem 0;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 8.5vw, 3.2rem);
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s ease, padding-left .3s var(--ease);
}
.mobile-menu__list a:hover, .mobile-menu__list a:focus-visible { color: var(--orange); padding-left: .5rem; }
.mobile-menu__cta { min-height: 56px; font-size: 1rem; }
.mobile-menu__note { font-family: var(--f-accent); font-size: 1.15rem; color: var(--orange); }
.mobile-menu__wave { margin-top: auto; }

/* =========================================================
   1. HERO (portada: logo grande + botones recuadrados)
   ========================================================= */
.hero { padding: 2.5rem 0 3.5rem; position: relative; }
.hero__container { max-width: 1180px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "logo"
    "buttons"
    "intro";
  gap: 1.75rem;
}
.hero__logo { grid-area: logo; }
.hero__logo img { width: min(100%, 420px); height: auto; }
.hero__buttons { grid-area: buttons; }
.hero__subtitle { grid-area: sub; }
.hero__intro { grid-area: intro; }

.hero__subtitle {
  font-family: var(--f-heavy);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--blue);
  font-size: clamp(1.5rem, 6.4vw, 2.3rem);
  line-height: 1.05;
  max-width: 16ch;
}
.hero__intro {
  color: var(--blue);
  font-weight: 500;
  font-size: clamp(1.02rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  max-width: 48ch;
}
.hero__buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

/* Portada nueva: bloque azul con el gran PAN Y SAL a todo el ancho */
.hero.hero--wordmark {
  background: var(--base);
  padding: clamp(4.5rem, 11vw, 9.5rem) 0 clamp(4.5rem, 10vw, 8.5rem);
}
.hero__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
/* Frase bajo el logo: centrada al ancho del logo, entre rombos */
.hero__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.6rem, 2vw, 1.25rem);
  margin: 0;
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: clamp(.95rem, 2.4vw, 1.5rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--blue);
}
.hero__tagline-rombos {
  flex-shrink: 0;
  width: clamp(36px, 5vw, 58px);
  height: auto;
  aspect-ratio: 120 / 44;
  color: var(--orange);
}
.hero__wordmark img {
  display: block;
  width: 100%;
  max-width: min(860px, 100%);
  height: auto;
  margin-inline: auto;
}

/* Ola rellena del color claro que abre "Cómo funciona" */
.wave--fill-top {
  height: 24px;
  color: var(--base);
  -webkit-mask: var(--wave-fill) repeat-x 0 0 / 80px 24px;
          mask: var(--wave-fill) repeat-x 0 0 / 80px 24px;
  animation: wave-drift 6s linear infinite;
}

/* Sello giratorio */
.seal {
  position: absolute;
  width: clamp(84px, 22vw, 168px);
  aspect-ratio: 1;
  pointer-events: none;
}
.seal__ring { width: 100%; height: 100%; animation: spin 22s linear infinite; overflow: visible; }
.seal__ring text {
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 1px;
  fill: currentColor;
}
.seal__sun {
  position: absolute;
  inset: 30%;
  width: 40%; height: 40%;
  color: var(--sun, currentColor);
  animation: spin 14s linear infinite reverse;
}
.seal--hero {
  color: var(--blue);
  --sun: var(--orange);
  right: 0;
  top: 0;
  width: clamp(76px, 16vw, 140px);
  translate: 0 -100%;
}
.seal--photo {
  color: var(--white);
  right: 6%;
  top: 8%;
}

@keyframes spin { to { rotate: 360deg; } }

/* =========================================================
   2. BANDA MARQUEE
   ========================================================= */
.marquee {
  overflow: hidden;
  background: var(--sea);
  border-top: 4px solid var(--orange);
  border-bottom: 4px solid var(--orange);
  padding-block: clamp(1.25rem, 3.2vw, 2.6rem);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
  flex-shrink: 0;
}
.marquee__word.t-orange { text-shadow: .05em .05em 0 var(--blue-deep); }
.marquee__word {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: .01em;
  padding: .3em .05em .1em 0;     /* aire arriba para la tilde de la Á */
}
.marquee__ride {
  position: relative;
  display: inline-block;
  padding: 1.25rem 1.75rem .5rem;
  flex-shrink: 0;
}
.marquee__vespa {
  width: auto;
  height: clamp(64px, 8.5vw, 112px);
  animation: bob 1.6s ease-in-out infinite;
}
.marquee__rombos {
  width: clamp(70px, 11vw, 140px);
  height: auto;
  aspect-ratio: 120 / 44;
  color: var(--cream);
  flex-shrink: 0;
  animation: bob 2.2s ease-in-out infinite;
}
.cloud {
  position: absolute;
  width: clamp(48px, 8vw, 96px);
  aspect-ratio: 2;
  height: auto;
}
.cloud--a { top: 0; right: 0; animation: float 5s ease-in-out infinite; }
.cloud--b { bottom: 0; left: 0; width: clamp(40px, 6vw, 76px); animation: float 6s ease-in-out infinite reverse; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(1deg); }
}
@keyframes float {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--orange);
  border-bottom: 3px solid var(--blue-deep);
}
.split__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: .75rem;
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: clamp(.85rem, 3vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--blue-deep);
  transition: background-color .25s ease, color .25s ease;
}
.split__btn + .split__btn { border-left: 3px solid var(--blue-deep); }
.split__btn:hover { background: var(--blue-deep); color: var(--orange); }

/* =========================================================
   3. GALERÍA / RESTAURANTE (azul fuerte)
   ========================================================= */
.gallery { padding: 0 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.gallery .wave--fill-top { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head--light .section-title { color: var(--yellow); }
.section-title--logo { margin-top: .5rem; }
.section-title--logo img { width: clamp(150px, 34vw, 280px); height: auto; }

.gallery__grid { display: grid; gap: var(--gutter); }
.photo figcaption {
  margin-top: .6rem;
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.photo__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--yellow);
}
.photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform .5s ease;
}
.photo__frame:hover img { transform: scale(1.05); }

/* Pasos ilustrados: Pide · Cocinamos · Llega */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 2.5rem) clamp(1rem, 2.5vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step { display: flex; flex-direction: column; gap: .3rem; }
.step .photo { margin-bottom: .9rem; }
.step .photo__frame { aspect-ratio: 4 / 3; border-radius: 4px; }
.step .photo__frame img { object-position: 50% 50%; }
.facts { display: grid; margin-top: clamp(2rem, 5vw, 3.5rem); }
.fact {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem 0;
  border-top: 2px solid rgba(255, 243, 234, .35);
}
.fact__big {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--yellow);
}
.fact__txt { font-family: var(--f-accent); font-size: 1rem; line-height: 1.25; }

.wordmark--footerish {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-inline: var(--gutter);
  text-align: center;
}

/* =========================================================
   4. LA CARTA — Las ventanas del Mediterráneo
   Cada apartado es una pizarra con forma de arco: marco de color,
   interior crema con filete y lista de platos solo en texto.
   ========================================================= */
.menu { padding: 0 0 clamp(3rem, 8vw, 6rem); color: var(--ink); } /* La Carta conserva el negro */
.menu__head { text-align: center; margin-bottom: 1.5rem; }
.menu__title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 1;
  white-space: nowrap;
  margin-top: .1em;
}
.menu__lead {
  max-width: 48ch;
  margin: 1rem auto 0;
  color: var(--blue);
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .75rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background-color .25s ease, color .25s ease;
}
.chip:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--orange); }

.menu-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.75rem, 5vw, 3.5rem) clamp(2.25rem, 3.5vw, 3rem);
  padding-top: .5rem;
}

/* Comanda: tarjeta recta con banda de color arriba, borde dentado
   (como el corte del pan del logo) y sombra sólida desplazada */
.menu-panel {
  --frame: var(--blue);
  --on-frame: var(--white);
  position: relative;
  background: var(--cream);
  border: 2px solid var(--blue-deep);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--frame);
}
.menu-panel--blue   { --frame: var(--blue); }   /* mismo azul que "Cómo funciona" */
.menu-panel--orange { --frame: var(--orange); }
.menu-panel--sand   { --frame: var(--sand); }
.menu-panel--soft   { --frame: var(--soft); }

/* agujeros de comanda en las esquinas superiores */
.menu-panel::before,
.menu-panel::after {
  content: "";
  position: absolute;
  top: 12px;
  z-index: 2;
  width: 12px; height: 12px;
  background: var(--base);
  border: 2px solid var(--blue-deep);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.menu-panel::before { left: 12px; }
.menu-panel::after  { right: 12px; }

.menu-panel__inner { height: 100%; }

.menu-panel__head {
  position: relative;
  margin-bottom: 1.6rem;
  padding: 1.6rem 1.25rem 1.3rem;
  background: var(--frame);
  border-radius: 4px 4px 0 0;
  text-align: center;
}
/* borde inferior dentado de la banda */
.menu-panel__head::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -13px;
  height: 14px;
  background: var(--frame);
  -webkit-mask: var(--zigzag) repeat-x 0 0 / 28px 14px;
          mask: var(--zigzag) repeat-x 0 0 / 28px 14px;
}
.menu-panel__rombos {
  width: 70px; height: auto;
  aspect-ratio: 120 / 44;
  margin: 0 auto .5rem;
  color: var(--cream);
}
.menu-panel__num {
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--on-frame);
}
.menu-panel__title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--on-frame);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  line-height: 1.05;
  margin-top: .15rem;
}
.menu-panel__accent {
  margin-top: .35rem;
  font-family: var(--f-accent);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--on-frame);
}

/* Lista de platos */
.dish-list { display: grid; column-gap: 2.5rem; padding: 0 1.35rem 1.5rem; }
.dish-item {
  position: relative;
  padding: 1.1rem 0 1.15rem;
}
/* ola naranja entre platos */
.dish-item::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -6px;
  height: 12px;
  background: var(--orange);
  -webkit-mask: var(--wave-line) repeat-x 0 50% / 40px 12px;
          mask: var(--wave-line) repeat-x 0 50% / 40px 12px;
}
.dish-item__name {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(1.05rem, 4.4vw, 1.2rem);
  line-height: 1.15;
  letter-spacing: .005em;
}
/* subrayado naranja que crece al pasar el ratón */
.dish-item__hl {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% .38em;
  transition: background-size .45s var(--ease);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.dish-item:hover .dish-item__hl { background-size: 100% .38em; }
.dish-item__note {
  display: block;
  margin-top: .3rem;
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .7rem;
  line-height: 1.3;
  letter-spacing: .03em;
  color: var(--blue);
}
.dish-item__line {
  margin-top: .35rem;
  font-family: var(--f-accent);
  font-size: .95rem;
  line-height: 1.15;
  color: var(--blue);
}
.dish-item__desc {
  margin-top: .35rem;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Sello tipo badge junto al nombre */
.stamp {
  display: inline-block;
  vertical-align: middle;
  margin: -.2rem 0 0 .35rem;
  padding: .3rem .55rem;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .58rem;
  letter-spacing: .06em;
  line-height: 1;
  rotate: -5deg;
}

.menu__allergens {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
}

/* =========================================================
   5. RESERVAS / CONTACTO
   ========================================================= */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--base);
  color: var(--blue-deep);
  padding: 0 0 clamp(3rem, 8vw, 6rem);
  text-align: center;
}
.contact__rays {
  position: absolute;
  left: 50%; top: 42%;
  width: 260vmax; height: 260vmax;
  translate: -50% -50%;
  z-index: -1;
  background: repeating-conic-gradient(from 0deg,
    rgba(255, 179, 126, .35) 0deg 2.2deg,
    transparent 2.2deg 7.5deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 12%, transparent 34%);
          mask: radial-gradient(circle, #000 0, #000 12%, transparent 34%);
  animation: spin 160s linear infinite;
}
.contact__inner { position: relative; }
.contact__title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 12vw, 7rem);
  line-height: .92;
  margin: .25rem 0 1.5rem;
}
.contact__title--logo { display: flex; justify-content: center; margin: 1rem 0 2rem; }
.contact__title--logo img { width: clamp(210px, 42vw, 360px); height: auto; }
.contact__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  max-width: 460px;
  margin: 0 auto 1.75rem;
}
.contact__buttons .btn { min-height: 56px; }
.contact__data { display: grid; gap: .35rem; font-size: 1rem; font-weight: 500; max-width: 60ch; margin: 0 auto; }
.contact__data strong { color: var(--blue); }
.contact__data .nw { white-space: nowrap; }
.contact__data a { font-weight: 700; text-underline-offset: 3px; }
.contact__data a:hover { color: var(--blue); }

.booking {
  max-width: 980px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.25rem;
  background: var(--white);
  border: 3px solid var(--blue-deep);
  box-shadow: 8px 8px 0 var(--orange);
  text-align: left;
  color: var(--blue-deep);
}
.booking__title {
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 6vw, 2rem);
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--blue);
  margin-bottom: 1rem;
}
.booking__grid { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field span {
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .6rem .75rem;
  border: 2px solid var(--blue-deep);
  border-radius: 0;
  background: var(--cream);
  font-size: 1rem; /* evita zoom en iOS */
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--blue-deep) 50%), linear-gradient(-45deg, transparent 50%, var(--blue-deep) 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--blue); }
.field[hidden] { display: none; }
.booking__submit { width: 100%; margin-top: 1.1rem; min-height: 52px; font-size: .95rem; }
.booking__msg { min-height: 1.5em; margin-top: .75rem; font-weight: 700; color: var(--blue); }

/* =========================================================
   6. FOOTER
   ========================================================= */
.site-footer {
  background: var(--blue);
  color: var(--cream);
  padding-bottom: 1.5rem;
  overflow: hidden;
}
.wave--fill {
  height: 24px;
  color: var(--base);
  -webkit-mask: var(--wave-fill) repeat-x 0 0 / 80px 24px;
          mask: var(--wave-fill) repeat-x 0 0 / 80px 24px;
  margin-bottom: 1.5rem;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem 1rem;
}
.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .9rem;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--orange); }
/* Logo real en el footer, sobre una "placa" crema para que respire */
.footer-logo {
  display: flex;
  justify-content: center;
  margin: 2rem auto 1rem;
}
.footer-logo img {
  width: clamp(170px, 26vw, 260px);
  height: auto;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  background: var(--cream);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--orange);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 2.5rem;
  margin-top: 1.5rem;
  font-style: normal;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 4.2vw, 1.5rem);
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}
.footer-contact a span {
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
}
.footer-contact a:hover { color: var(--orange); }
.footer-meta {
  display: grid;
  gap: .25rem;
  margin-top: 1rem;
  font-size: .82rem;
}

/* =========================================================
   PEDIDO A DOMICILIO
   ========================================================= */
/* Pasos "Pide · Cocinamos · Llega" */
.fact__num {
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .05em;
}

/* Botón "Añadir" de cada plato (dentro de La Carta: tinta + naranja) */
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  margin-top: .75rem;
  padding: .45rem .5rem .45rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .2s var(--ease);
}
.add-btn:hover { background: var(--blue-deep); color: var(--orange); }
.add-btn:active { transform: scale(.96); }
.add-btn__plus {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);   /* rombo */
  background: var(--ink);
  color: var(--orange);
  font-size: 1rem;
  line-height: 1;
}
.add-btn:hover .add-btn__plus { background: var(--orange); color: var(--blue-deep); }
.add-btn__count { font-size: .8rem; }
.add-btn.is-added { background: var(--blue-deep); color: var(--orange); }
.add-btn.is-added .add-btn__plus { background: var(--orange); color: var(--blue-deep); }

/* Botón flotante "Mi pedido" */
.cart-fab {
  position: fixed;
  right: var(--gutter);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 54px;
  padding: .55rem .6rem .55rem 1.2rem;
  background: var(--orange);
  color: var(--blue-deep);
  border: 2px solid var(--blue-deep);
  box-shadow: 4px 4px 0 var(--blue-deep);
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .35s var(--ease), opacity .3s ease, background-color .25s ease, color .25s ease;
}
.cart-fab[hidden] { display: none; }
.cart-fab:hover { background: var(--blue-deep); color: var(--orange); }
.cart-fab.is-away { opacity: 0; transform: translateY(120%); pointer-events: none; }
.cart-fab__count {
  display: grid;
  place-items: center;
  min-width: 34px; height: 34px;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--blue-deep);
  color: var(--cream);
  font-size: .95rem;
}
.cart-fab.is-bump { animation: bump .45s var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.12) rotate(-3deg); }
  100% { transform: scale(1); }
}

/* Etiqueta "Solo a domicilio" en los datos */
.contact__badge {
  justify-self: center;
  margin-bottom: .4rem;
  padding: .4rem .9rem;
  border: 2px dashed var(--blue-deep);
  border-radius: 999px;
  background: var(--cream);
  font-family: var(--f-heavy);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Resumen del pedido */
.order-summary {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--cream);
  border: 2px dashed var(--blue-deep);
}
.order-empty { font-size: .95rem; }
.order-empty a { font-weight: 700; }
.order-empty[hidden] { display: none; }
.order-list { display: grid; gap: .25rem; }
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(6, 72, 92, .2);
}
.order-item:last-child { border-bottom: 0; }
.order-item__name {
  font-family: var(--f-display);
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.order-item__qty { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.order-item__n { min-width: 1.6em; text-align: center; font-family: var(--f-heavy);
  font-weight: 900; }
.qty-btn {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--blue-deep);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-deep);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.qty-btn:hover { background: var(--blue-deep); color: var(--orange); }

.order__step {
  margin-bottom: .8rem;
  font-family: var(--f-heavy);   /* Corben no tiene el signo «¿» */
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--blue);
}
.field textarea { resize: vertical; min-height: 72px; line-height: 1.4; }
.field--wide { grid-column: 1 / -1; }


/* =========================================================
   ROMBOS — el motivo del logo como sistema de detalles
   ========================================================= */
.rombos {
  display: block;
  width: 78px; height: auto;
  aspect-ratio: 120 / 44;
  margin-bottom: .7rem;
  color: var(--sea);
}
.rombos--center { margin-inline: auto; }
.rombos--orange { color: var(--orange); }

/* Cadena de rombos como separador (alternativa a la ola) */
.rombos-line {
  height: 18px;
  width: 100%;
  background: currentColor;
  -webkit-mask: var(--rombo-line) repeat-x 0 50% / 36px 18px;
          mask: var(--rombo-line) repeat-x 0 50% / 36px 18px;
  animation: rombo-drift 5s linear infinite;
}
.rombos-line--orange { color: var(--orange); }
.rombos-line--sea { color: var(--sea); }
@keyframes rombo-drift {
  to { -webkit-mask-position: 36px 50%; mask-position: 36px 50%; }
}

/* Viñeta de rombo delante de cada plato */
.dish-item__name::before {
  content: "";
  display: inline-block;
  width: .55em; height: .55em;
  margin: 0 .5em .1em 0;
  vertical-align: middle;
  background: var(--sea);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
/* Rombo en las chips de apartados */
.chip::before {
  content: "";
  width: .6em; height: .6em;
  margin-right: .5em;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: transform .3s var(--ease);
}
.chip:hover::before { transform: rotate(90deg) scale(1.2); }
/* Rombos en la etiqueta "Solo a domicilio" */
.contact__badge::before,
.contact__badge::after {
  content: "◆";
  margin: 0 .5em;
  color: var(--orange);
}
/* Números de los pasos dentro de un rombo */
.fact__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: .35rem;
  color: var(--blue-deep);
  isolation: isolate;
}
.fact__num::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
/* Título "Cómo funciona" en Corben (sustituye a logo2.png) */
.gallery__title {
  color: var(--cream);
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  line-height: 1.02;
  margin-top: .45rem;
  padding-top: .18em;   /* aire para la tilde de la Ó */
  text-shadow: .05em .05em 0 var(--orange);
}

/* =========================================================
   Aparición al hacer scroll
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   TABLET 641–1024
   ========================================================= */
@media (min-width: 641px) {
  :root { --gutter: 28px; --header-h: 76px; }

  .logo__text { font-size: 2.3rem; }
  .logo__img { height: 46px; }

  .hero { padding: 3.5rem 0 4.5rem; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
      "logo buttons"
      "logo intro";
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 5vw, 4.5rem);
    row-gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
  }
  .hero__logo img { width: 100%; max-width: 640px; }
  .hero__buttons { grid-template-columns: repeat(3, 1fr); }

  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

  /* 2 columnas; Entradas ocupa el ancho completo con su lista a 2 columnas */
  .menu-board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  #entradas { grid-column: 1 / -1; }
  #entradas .dish-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dish-item__name { font-size: 1.15rem; }

  .booking { padding: 2rem; }
  .booking__grid { grid-template-columns: 1fr 1fr; }
  .booking__submit { width: auto; padding-inline: 2.5rem; }

  .footer-nav { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .footer-meta { grid-template-columns: 1fr auto; }
}

/* =========================================================
   DESKTOP ≥1025
   ========================================================= */
@media (min-width: 1025px) {
  :root { --gutter: 48px; --header-h: 96px; }

  .burger, .mobile-menu { display: none; }
  .nav { display: block; }
  .nav__list { display: flex; gap: .9rem; align-items: center; }
  .nav__link { min-height: 48px; padding-inline: 1.4rem; font-size: .85rem; }

  .logo__text { font-size: 2.8rem; }
  .logo__img { height: 56px; }
  .logo__sun { width: 86px; height: 86px; left: -22px; }

  .hero { padding: 4rem 0 5.5rem; }
  .hero__buttons { gap: .9rem; }
  .btn--box { min-height: 110px; font-size: .9rem; }

  /* 3 columnas: Ensaladas + Entradas (doble) / Sopas · Arroces · Postres */
  .menu-board { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; }
  #entradas { grid-column: span 2; }
  .dish-list { padding: 0 1.85rem 1.75rem; }

  .booking__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-nav a { font-size: 1rem; }
}

/* =========================================================
   PORTÁTILES / PANTALLAS BAJAS (escritorio con poca altura útil,
   p. ej. Full HD con escala de Windows al 150% → ~1240 × 580 px)
   ========================================================= */
@media (min-width: 1025px) and (max-height: 820px) {
  html { font-size: 87.5%; }
  :root { --header-h: 70px; }

  .logo__img { height: 38px; }
  .nav__list { gap: .6rem; }
  .nav__link { min-height: 40px; padding: .5rem 1rem; font-size: .8rem; }

  .hero.hero--wordmark { padding: 6rem 0 5.75rem; }
  .hero__wordmark img { max-width: min(620px, 100%); }

  .wave--top,
  .gallery .wave--fill-top { margin-bottom: 1.75rem; }
  .section-head { margin-bottom: 1.25rem; }
  .gallery__title { font-size: clamp(1.9rem, 7.5vh, 3rem); }
  .photo__frame { aspect-ratio: 16 / 9; }
  .step .photo__frame { aspect-ratio: 16 / 11; }
  .facts { margin-top: 1.75rem; }
  .fact__big { font-size: clamp(1.4rem, 5vh, 1.9rem); }

  .marquee { padding-block: 1.1rem; }
  .marquee__word { font-size: clamp(2.8rem, 12vh, 5.2rem); }
  .marquee__vespa { height: clamp(52px, 13vh, 84px); }
  .marquee__ride { padding: .75rem 1.25rem .25rem; }
  .split__btn { min-height: 48px; }

  .menu__title { font-size: clamp(2.4rem, 11vh, 4.4rem); }
  .chips { margin-bottom: 2rem; }
  .menu-board { padding-top: 1rem; }

  .contact__title--logo { margin: .5rem 0 1.25rem; }
  .contact__title--logo img { width: clamp(180px, 34vh, 260px); }

  .footer-logo img { width: clamp(150px, 28vh, 210px); }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
