/* El Quijote (Grupo Texas) -- carta de autor, template 'quijote'.
 *
 * Una vista y una hoja para tres propuestas, que se eligen con la clase
 * qj-p1 / qj-p2 / qj-p3 de .menu-root (ajuste menu.propuesta de la marca),
 * pasadas del lienzo de diseno aprobado por Carlos (#572):
 *   1 Atardecer en La Mancha: encabezado animado (sol, molino, siluetas de
 *     espaldas) y una foto real de Espana al atardecer por banda.
 *   2 Laminas de Dore: la carta como libro en pergamino, con frontispicio,
 *     tabla de capitulos y una lamina por capitulo.
 *   3 Pinacoteca: sala de museo; cada banda es una sala con su oleo y la carta
 *     va en una tarjeta crema aparte de la pared.
 * En las tres, "Burgers by Texas" lleva la marca de Texas Bull Grill y el pie
 * cierra con Grupo Texas. La ficha del plato (partial compartido) va al final.
 */

:root {
  --qj-granate: #3d090b;
  --qj-naranja: #c8652b;
  --qj-lacre: #8e1f1b;
  --qj-oro: linear-gradient(135deg, #6e4a14 0%, #e2bd63 18%, #9c6f25 36%, #f2d78c 52%, #86591a 70%, #d8b058 86%, #6e4a14 100%);

  --qj-bg: #f7eedd;
  --qj-tinta: var(--qj-granate);
  --qj-suave: #5b4636;
  --qj-acento: #a4491f;
  --qj-linea: rgba(107, 58, 38, .3);
  --qj-barra: rgba(247, 238, 221, .97);
  --qj-barra-borde: rgba(107, 58, 38, .18);
  --qj-chip-borde: var(--qj-granate);
  --qj-chip-tx: var(--qj-granate);
  --qj-chip-on-bg: var(--qj-granate);
  --qj-chip-on-tx: #f7eedd;

  --qj-hoja: #2a0a0c;
  --qj-hoja-pie: #1b0607;
  --qj-hoja-tx: #f3e9d2;
  --qj-hoja-suave: #cdbca6;
  --qj-hoja-acento: #ef9a5a;
  --qj-hoja-linea: #4a1d1f;
  --qj-boton: #a3481a;
  --qj-boton-hover: #8c3c14;
}

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

body {
  background: var(--qj-bg);
  color: var(--qj-tinta);
  font-family: 'Alegreya Sans', system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.qj-cuerpo-p2 { background: #efe2c4; }
body.qj-cuerpo-p3 { background: #3b0d14; }

.menu-root {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  overflow: clip;
  background-color: var(--qj-bg);
  color: var(--qj-tinta);
}

.qj-hero { position: relative; text-align: center; }
.qj-hero > a.qj-volver {
  position: absolute; top: 4px; left: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px;
  font: 800 13px/1 'Alegreya Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: #fbe7c8; text-decoration: none; text-shadow: 0 1px 6px rgba(20, 6, 8, .8);
  -webkit-tap-highlight-color: transparent;
}
.qj-volver::before { content: '\2039'; font-size: 20px; line-height: 1; margin-top: -2px; }
body:has(.svm-vista-previa) .qj-hero > a.qj-volver { top: 34px; }
.qj-hero .estado-local { display: flex !important; width: fit-content; margin: 12px auto 0; position: relative; z-index: 2; }
.qj-logo { display: block; height: auto; margin: 0 auto; }

.qj-disp { font-family: 'Alegreya SC', Georgia, serif; font-weight: 800; letter-spacing: .03em; line-height: 1.05; }

/* ============================================================
   Propuesta 1 -- Atardecer en La Mancha
   ============================================================ */
.qj-p1 { background-image: url('quijote/escena/grano.png'); background-size: 256px 256px; }

.qj-p1 .qj-hero {
  height: max(511px, calc(min(100vw, 520px) * 1.3103)); overflow: hidden;
  color: #fbe7c8; padding: 30px 22px 0; background: #241232;
  view-timeline: --qj-heroe block;
}
body:has(.svm-vista-previa) .qj-p1 .qj-hero { padding-top: 62px; }
.qj-p1 .qj-hero > *:not(.qj-escena):not(.qj-volver):not(.qj-cita) { position: relative; z-index: 2; }

/* La escena va sobre un lienzo con la proporcion de la foto del cielo (780x1022):
   todas las capas se ubican en % de la foto, asi el sol, el horizonte y el
   molino coinciden con ella a cualquier ancho. Por debajo de 390px el lienzo
   queda en 390x511 y se recortan los costados. */
.qj-escena { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.qj-lienzo { position: absolute; left: 50%; bottom: 0; width: max(100%, 390px); aspect-ratio: 780 / 1022; transform: translateX(-50%); }
.qj-lienzo > * { position: absolute; display: block; }
.qj-cielo { inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 59% 43%; animation: qjRespira 40s ease-in-out infinite alternate; }
.qj-rayos, .qj-halo, .qj-sol { left: 59%; top: 43%; mix-blend-mode: screen; }
.qj-rayos {
  width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 230, 180, .17) 0deg 3deg, rgba(255, 230, 180, 0) 3deg 11deg);
  -webkit-mask: radial-gradient(circle, #000 5%, rgba(0, 0, 0, .45) 22%, transparent 52%);
  mask: radial-gradient(circle, #000 5%, rgba(0, 0, 0, .45) 22%, transparent 52%);
  filter: blur(1.5px);
  animation: qjGiro 220s linear infinite;
}
.qj-halo {
  width: 640px; height: 420px; margin: -210px 0 0 -320px;
  background: radial-gradient(ellipse, rgba(255, 200, 130, .42), rgba(255, 160, 90, .12) 45%, rgba(255, 140, 80, 0) 70%);
  animation: qjLatido 9s ease-in-out infinite reverse;
}
.qj-sol {
  width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 236, .95) 0%, rgba(255, 236, 190, .72) 22%, rgba(255, 200, 120, .32) 46%, rgba(255, 170, 90, 0) 70%);
  animation: qjLatido 7s ease-in-out infinite;
}
.qj-ave { left: 0; width: 100%; height: 0; animation: qjVuelo 28s linear infinite; }
.qj-ave i {
  position: absolute; left: 0; top: 0; display: block; width: 20px; aspect-ratio: 58 / 100; background: #1b0a10;
  -webkit-mask: url('quijote/escena/vencejo.png') center / contain no-repeat;
  mask: url('quijote/escena/vencejo.png') center / contain no-repeat;
  animation: qjPlaneo 3.4s ease-in-out infinite alternate;
}
.qj-a1 { top: 13%; animation-delay: -7s; }
.qj-a2 { top: 25%; animation-duration: 36s; animation-delay: -22s; }
.qj-a2 i { width: 14px; animation-duration: 2.8s; }
.qj-a3 { top: 6%; animation-duration: 44s; animation-delay: -3s; opacity: .8; }
.qj-a3 i { width: 10px; animation-duration: 2.4s; }
.qj-calima {
  left: 0; right: 0; top: 79%; height: 10%;
  background: linear-gradient(180deg, rgba(255, 190, 120, 0), rgba(255, 180, 110, .45) 50%, rgba(255, 190, 120, 0));
  mix-blend-mode: screen; filter: blur(2px);
  animation: qjCalima 6s ease-in-out infinite alternate;
}
.qj-molino {
  left: 74.5%; bottom: 14.6%; width: 11%; aspect-ratio: 420 / 631; background: #1b0a10;
  -webkit-mask: url('quijote/escena/molino-cuerpo.png') center / contain no-repeat;
  mask: url('quijote/escena/molino-cuerpo.png') center / contain no-repeat;
}
.qj-aspas {
  left: 69.9%; top: 67.1%; width: 20.2%; aspect-ratio: 1; background: #1b0a10;
  -webkit-mask: url('quijote/escena/molino-aspas.svg') center / contain no-repeat;
  mask: url('quijote/escena/molino-aspas.svg') center / contain no-repeat;
  animation: qjGiro 16s linear infinite;
}
.qj-velo {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 18, 50, .86) 0%, rgba(36, 18, 50, .66) 26%, rgba(36, 18, 50, .3) 37%, rgba(36, 18, 50, 0) 46%),
    linear-gradient(0deg, rgba(20, 8, 12, .94) 0%, rgba(20, 8, 12, .55) 9%, rgba(20, 8, 12, 0) 18%);
}
.qj-polvo {
  left: 0; right: 0; bottom: 6%; height: 30%; opacity: .75;
  background-image: radial-gradient(circle, rgba(255, 230, 170, .8) 0 1px, transparent 1.6px), radial-gradient(circle, rgba(255, 210, 150, .5) 0 1.4px, transparent 2.4px);
  background-size: 47px 53px, 83px 71px; background-position: 0 0, 20px 30px;
  -webkit-mask: linear-gradient(transparent, #000 40%, transparent);
  mask: linear-gradient(transparent, #000 40%, transparent);
  animation: qjPolvo 18s linear infinite;
}
.qj-jinetes {
  left: 3%; bottom: 8%; width: 50%; height: auto;
  filter: drop-shadow(0 0 1px rgba(255, 186, 110, .8)) drop-shadow(0 0 10px rgba(255, 150, 70, .35));
}
.qj-anochecer {
  inset: 0; opacity: 0;
  background: linear-gradient(180deg, rgba(13, 10, 34, .92) 0%, rgba(36, 18, 50, .62) 55%, rgba(13, 10, 34, .8) 100%);
}
.qj-anochecer::before {
  content: ''; position: absolute; inset: 0 0 38% 0;
  background:
    radial-gradient(circle, #fff6dc 0 1px, transparent 1.6px) 0 0 / 61px 47px,
    radial-gradient(circle, rgba(255, 246, 220, .7) 0 .8px, transparent 1.4px) 30px 20px / 89px 71px,
    radial-gradient(circle, rgba(255, 246, 220, .9) 0 1.3px, transparent 2.1px) 13px 41px / 137px 113px,
    radial-gradient(circle, rgba(255, 246, 220, .5) 0 .7px, transparent 1.2px) 77px 9px / 53px 97px;
  -webkit-mask: linear-gradient(#000 35%, transparent);
  mask: linear-gradient(#000 35%, transparent);
  animation: qjTitila 4s ease-in-out infinite alternate;
}

/* Al bajar por la carta el sol se pone y el cielo anochece (solo donde hay
   animaciones ligadas al scroll; en el resto la escena queda de dia). */
@supports (animation-timeline: view()) {
  .qj-p1 .qj-anochecer { animation: qjAnochecer linear both; animation-timeline: --qj-heroe; animation-range: exit 0% exit 85%; }
  .qj-p1 .qj-sol, .qj-p1 .qj-halo, .qj-p1 .qj-rayos {
    animation-name: qjLatido, qjPuesta; animation-duration: 7s, 1ms; animation-timing-function: ease-in-out, linear;
    animation-iteration-count: infinite, 1; animation-fill-mode: none, both;
    animation-timeline: auto, --qj-heroe; animation-range: normal, exit 0% exit 85%;
  }
  .qj-p1 .qj-rayos { animation-name: qjGiro, qjPuesta; animation-duration: 220s, 1ms; animation-timing-function: linear, linear; }
}

.qj-p1 .qj-hero-marca, .qj-p1 .qj-tagline, .qj-p1 .qj-ubica { animation: qjAparece 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.qj-p1 .qj-tagline { animation-delay: .35s; }
.qj-p1 .qj-ubica { animation-delay: .6s; }
.qj-p1 .qj-logo { filter: drop-shadow(0 2px 14px rgba(36, 18, 50, .55)); }
.qj-p1 .qj-logo { width: 168px; }
.qj-p1 .qj-tagline { margin-top: 4px; font-family: 'Pinyon Script', cursive; font-size: 27px; line-height: 1.1; color: #fff1dc; text-shadow: 0 0 2px rgba(36, 18, 50, .95), 0 0 12px rgba(36, 18, 50, .75), 0 2px 20px rgba(36, 18, 50, .6); }
.qj-p1 .qj-ubica { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: #fff1dc; text-shadow: 0 0 2px rgba(36, 18, 50, .95), 0 0 10px rgba(36, 18, 50, .8), 0 1px 16px rgba(36, 18, 50, .6); }
.qj-cita {
  position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2;
  font-family: 'Pinyon Script', cursive; font-size: 19px; line-height: 1.2; color: #f3dfc0; text-shadow: 0 1px 8px rgba(20, 8, 12, .8);
}

.qj-p1 .qj-promo { flex-basis: 262px; border-radius: 22px; padding: 20px; min-height: 168px; color: #fff4e2;
  background: radial-gradient(circle at 85% 15%, rgba(255, 214, 140, .45), rgba(255, 214, 140, 0) 45%), linear-gradient(140deg, #c8652b, #7a1f22); }
.qj-p1 .qj-promo:nth-child(3n+2) { background: radial-gradient(circle at 15% 20%, rgba(255, 160, 90, .35), rgba(255, 160, 90, 0) 45%), linear-gradient(140deg, #5a2134, #1b0a10); }
.qj-p1 .qj-promo:nth-child(3n) { background: linear-gradient(140deg, #6b3a26, #3d1a10); }
.qj-p1 .qj-promo::after {
  content: ''; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 160px;
  border-radius: 50%; border: 18px solid rgba(255, 236, 200, .12); pointer-events: none;
}
.qj-p1 .qj-promo > img { border-radius: 14px; }
.qj-p1 .qj-promo-tx i {
  align-self: flex-start; margin-bottom: auto; padding: 5px 10px; border-radius: 999px; background: rgba(255, 244, 226, .18);
  font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.qj-p1 .qj-promo-tx b { margin-top: 18px; font: 800 22px/1.1 'Alegreya SC', serif; }
.qj-p1 .qj-promo-texto { font-size: 14px; line-height: 1.4; color: #ffe9cf; }

.qj-p1 main { padding-top: 6px; }
.qj-p1 .qj-banda { padding: 0 20px; margin-top: 34px; }
.qj-p1 .qj-banda:not(:first-child)::before {
  content: ''; display: block; height: 12px; margin: 10px 36px 34px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect x='3' y='3' width='6' height='6' transform='rotate(45 6 6)' fill='none' stroke='%23a4491f' stroke-width='1.4'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
    linear-gradient(90deg, rgba(164, 73, 31, 0), rgba(164, 73, 31, .55)) left center / calc(50% - 14px) 1px no-repeat,
    linear-gradient(90deg, rgba(164, 73, 31, .55), rgba(164, 73, 31, 0)) right center / calc(50% - 14px) 1px no-repeat;
}
.qj-p1 .qj-cartel {
  position: relative; height: 216px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: #2a1018; box-shadow: 0 14px 28px rgba(61, 9, 11, .22);
}
.qj-p1 .qj-cartel-foto {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 60%; animation: qjZoom 24s ease-in-out infinite alternate;
}
.qj-p1 .qj-cartel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 10, 16, 0) 38%, rgba(27, 10, 16, .82) 100%); }
.qj-cartel-tx { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; color: #fff6ea; text-shadow: 0 2px 10px rgba(27, 10, 16, .55); }
.qj-lugar { display: block; font-family: 'Pinyon Script', cursive; font-size: 23px; line-height: 1.15; }
.qj-p1 .qj-cartel h2 { margin-top: 2px; font-size: 30px; }

.qj-p1 .qj-sec { padding: 0 20px; }
.qj-p1 .qj-sec-name { margin: 26px 0 2px; font-family: 'Pinyon Script', cursive; font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--qj-acento); }
.qj-p1 .qj-banda + .qj-sec .qj-filas { padding-top: 8px; }
.qj-p1 .qj-fila-tap { border-bottom: 1px dashed var(--qj-linea); }

.qj-p1 .qj-texas {
  margin: 28px 20px 0; padding: 0; border-radius: 22px; overflow: hidden;
  background: #120c0a; box-shadow: 0 16px 30px rgba(18, 12, 10, .35);
}
.qj-p1 .qj-texas::before { content: ''; display: block; height: 6px; background: linear-gradient(90deg, #940119 0 72%, #c4682c 72% 100%); }
.qj-p1 .qj-texas-cab { padding: 18px 18px 16px; background: radial-gradient(circle at 0% 0%, rgba(148, 1, 25, .5), rgba(148, 1, 25, 0) 60%); }
.qj-p1 .qj-texas-logo img { width: 78px; }
.qj-p1 .qj-texas-ceja { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #f0a35e; }
.qj-p1 .qj-texas-titulo { margin-top: 4px; font: 800 26px/1.05 'Alegreya SC', serif; }
.qj-p1 .qj-texas-sub { margin-top: 4px; font-size: 13px; line-height: 1.4; color: #d9c8b4; }
.qj-p1 .qj-texas .qj-filas { padding: 0 18px 6px; border-top: 1px solid rgba(196, 104, 44, .45); }
.qj-p1 .qj-texas .qj-fila-tap { border-bottom: 0; border-top: 1px solid var(--qj-linea); }
.qj-p1 .qj-texas .qj-fila:first-child .qj-fila-tap { border-top: 0; }

.qj-p1 .qj-pie { margin-top: 34px; min-height: 700px; background: #0d0a22; color: #f6eedd; }
.qj-pie-foto {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%;
  animation: qjZoom 30s ease-in-out infinite alternate;
}
.qj-p1 .qj-pie::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #f7eedd 0%, rgba(247, 238, 221, 0) 24%, rgba(13, 10, 34, .35) 34%, rgba(13, 10, 34, .86) 62%, #0d0a22 100%);
}
.qj-p1 .qj-pie-cuerpo { z-index: 2; padding-top: 210px; }
.qj-pie-logo { width: 160px; height: auto; }
.qj-p1 .qj-pie-cita { font-family: 'Pinyon Script', cursive; font-size: 23px; line-height: 1.25; color: #f3dfc0; text-shadow: 0 2px 10px rgba(13, 10, 34, .7); }
.qj-p1 .qj-pie-autor { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #d9c8b4; }
.qj-p1 .qj-pie-sep { background: linear-gradient(90deg, rgba(243, 223, 192, 0), rgba(243, 223, 192, .6), rgba(243, 223, 192, 0)); }
.qj-p1 .qj-grupo-pre { font: 700 11px/1 'Alegreya Sans', sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #d9c8b4; }
.qj-p1 .qj-grupo-logo img { width: 128px; }
.qj-p1 .qj-grupo { font: 800 20px/1 'Alegreya SC', serif; letter-spacing: .08em; }
.qj-p1 .qj-pie-linea, .qj-p1 .qj-pie-servimi { color: #d9c8b4; }
.qj-p1 .qj-pie-links a { color: #f0a35e; }

/* ============================================================
   Propuesta 2 -- Laminas de Dore
   ============================================================ */
.qj-p2 {
  --qj-bg: #efe2c4;
  --qj-tinta: #2a1810;
  --qj-suave: #4e3a2a;
  --qj-acento: var(--qj-lacre);
  --qj-linea: rgba(42, 24, 16, .5);
  --qj-barra: rgba(239, 226, 196, .97);
  --qj-barra-borde: rgba(42, 24, 16, .35);
  --qj-chip-borde: #2a1810;
  --qj-chip-tx: #2a1810;
  --qj-chip-on-bg: var(--qj-lacre);
  --qj-chip-on-tx: #f6e7cc;
  font-family: 'EB Garamond', Georgia, serif;
  background-image:
    url('quijote/escena/grano.png'),
    radial-gradient(ellipse at 50% 0%, rgba(255, 250, 236, .7), rgba(255, 250, 236, 0) 55%),
    radial-gradient(ellipse at 50% 100%, rgba(150, 104, 52, .18), rgba(150, 104, 52, 0) 60%);
  background-size: 256px 256px, 100% 1400px, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat;
}
.qj-p2 { isolation: isolate; }
.qj-p2::before, .qj-p2::after { content: ''; position: absolute; pointer-events: none; z-index: -1; }
.qj-p2::before { inset: 10px; border: 1px solid rgba(42, 24, 16, .55); }
.qj-p2::after { inset: 15px; border: 1px solid rgba(42, 24, 16, .3); }

.qj-p2 .qj-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 34px 10px; color: #2a1810; }
body:has(.svm-vista-previa) .qj-p2 .qj-hero { padding-top: 78px; }
.qj-p2 .qj-hero > a.qj-volver { color: #2a1810; text-shadow: none; top: 16px; left: 18px; }
.qj-ceja { font: 15px/1 'IM Fell English SC', serif; letter-spacing: .3em; color: var(--qj-lacre); }
.qj-filete { display: block; width: 120px; height: 7px; border-top: 1px solid #2a1810; border-bottom: 3px double #2a1810; }
.qj-filete--inv { border-top: 3px double #2a1810; border-bottom: 1px solid #2a1810; }
.qj-p2 .qj-logo { width: 236px; margin-top: 6px; }
.qj-p2 .qj-tagline { font: italic 19px/1.3 'IM Fell English', serif; }
.qj-p2 .qj-ubica { font: 13px/1.2 'IM Fell English SC', serif; letter-spacing: .2em; color: var(--qj-suave); }
.qj-p2 .qj-hero .estado-local { background: rgba(60, 20, 10, .08) !important; border-color: rgba(60, 20, 10, .28) !important; }
.qj-frontis { margin: 18px 0 0; }
.qj-frontis-marco { position: relative; padding: 8px; border: 1px solid #2a1810; background: rgba(255, 248, 230, .35); }
.qj-frontis-marco > img {
  display: block; width: min(286px, 72vw); aspect-ratio: 286 / 372; height: auto; object-fit: cover; object-position: 50% 32%;
  padding: 4px; border: 3px double rgba(42, 24, 16, .7);
  filter: sepia(.38) contrast(1.06) brightness(.98); mix-blend-mode: multiply;
}
.qj-sello {
  position: absolute; right: -14px; bottom: -26px; width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 52% 48% 50% 47% / 49% 53% 47% 51%;
  background: radial-gradient(circle at 38% 32%, #c4362b 0%, #91201b 55%, #5e1213 100%);
  box-shadow: 0 6px 14px rgba(42, 10, 12, .45), inset 0 -4px 10px rgba(0, 0, 0, .25);
}
.qj-sello > span { width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(255, 214, 190, .35); display: flex; align-items: center; justify-content: center; }
.qj-sello img { width: 58px; height: auto; opacity: .92; }
.qj-frontis figcaption { max-width: 290px; margin: 22px auto 0; font: italic 14px/1.35 'EB Garamond', serif; color: var(--qj-suave); }

.qj-p2 .qj-promo { flex-basis: 236px; padding: 5px; border: 1px solid #2a1810; background: rgba(255, 248, 230, .55); }
.qj-p2 .qj-promo-tx { padding: 16px 14px 14px; border: 3px double rgba(142, 31, 27, .55); align-items: center; text-align: center; gap: 6px; }
.qj-p2 .qj-promo-tx i { font: 12px/1 'IM Fell English SC', serif; letter-spacing: .26em; color: var(--qj-lacre); }
.qj-p2 .qj-promo-tx b { font: 400 24px/1.1 'IM Fell English', serif; }
.qj-p2 .qj-promo-texto { font: italic 14.5px/1.4 'EB Garamond', serif; color: var(--qj-suave); }
.qj-p2 .qj-promo-tx::after { content: '\2766'; margin-top: auto; padding-top: 4px; font-size: 18px; color: var(--qj-lacre); }
.qj-p2 .qj-promo:nth-child(3n+2) { background: var(--qj-lacre); border-color: #5e1213; color: #f6e7cc; }
.qj-p2 .qj-promo:nth-child(3n+2) .qj-promo-tx { border-color: rgba(246, 231, 204, .55); }
.qj-p2 .qj-promo:nth-child(3n+2) i, .qj-p2 .qj-promo:nth-child(3n+2) .qj-promo-tx::after { color: #f6e7cc; }
.qj-p2 .qj-promo:nth-child(3n+2) .qj-promo-texto { color: #f0d6c0; }

.qj-indice { margin: 22px 30px 0; padding: 18px 20px; border-top: 1px solid #2a1810; border-bottom: 1px solid #2a1810; }
.qj-indice-titulo { margin-bottom: 10px; text-align: center; font: 20px/1 'IM Fell English SC', serif; letter-spacing: .08em; }
.qj-indice-fila {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0;
  background: none; border: 0; cursor: pointer; text-align: left; color: #2a1810;
  font: 17px/1.2 'EB Garamond', serif; -webkit-tap-highlight-color: transparent;
}
.qj-indice-num { flex: none; width: 26px; font-family: 'IM Fell English SC', serif; color: var(--qj-lacre); }
.qj-indice-nombre { flex: none; }
.qj-indice-sub { flex: none; font-style: italic; font-size: 14px; }
.qj-indice-fila .qj-lider { border-bottom: 1.5px dotted rgba(42, 24, 16, .5); transform: translateY(4px); }

.qj-p2 .qj-chip { border-width: 1px; border-radius: 2px; font: 15px/1 'IM Fell English SC', serif; }

.qj-p2 main { padding: 0 30px; }
.qj-p2 .qj-banda { padding-top: 34px; text-align: center; }
.qj-p2 .qj-banda:not(:first-child)::before { content: '\2766'; display: block; margin-bottom: 18px; font-size: 26px; line-height: 1; color: var(--qj-lacre); }
.qj-cap-num { font: 15px/1 'IM Fell English SC', serif; letter-spacing: .3em; color: var(--qj-lacre); }
.qj-cap-titulo { margin-top: 8px; font: 400 36px/1.05 'IM Fell English', serif; }
.qj-cap-resumen { margin: 10px 4px 0; font: italic 15px/1.4 'EB Garamond', serif; color: var(--qj-suave); }
.qj-lamina { margin: 18px 0 0; padding: 6px; border: 1px solid #2a1810; }
.qj-lamina img { display: block; width: 100%; height: 196px; object-fit: cover; filter: sepia(.38) contrast(1.06) brightness(.98); mix-blend-mode: multiply; }
.qj-lamina figcaption { margin-top: 6px; text-align: center; font: italic 13px/1.3 'EB Garamond', serif; color: var(--qj-suave); }
.qj-p2 .qj-sec-name { margin: 22px 0 4px; font: 400 22px/1 'IM Fell English SC', serif; color: var(--qj-lacre); }
.qj-p2 .qj-banda + .qj-sec .qj-filas { padding-top: 12px; }
.qj-p2 .qj-fila-tap { padding: 9px 0; }
.qj-p2 .qj-linea b { font: 400 19px/1.2 'IM Fell English SC', serif; letter-spacing: 0; }
.qj-p2 .qj-lider { border-bottom: 1.5px dotted rgba(42, 24, 16, .5); transform: translateY(-5px); }
.qj-p2 .qj-desc { font: italic 15px/1.4 'EB Garamond', serif; }
.qj-p2 .qj-precio-uno, .qj-p2 .qj-precio, .qj-p2 .qj-precio-pend { font-family: 'EB Garamond', serif; font-weight: 600; font-size: 15px; color: #2a1810; }

.qj-p2 .qj-texas {
  margin: 30px 6px 12px; padding: 16px 16px 8px;
  border: 3px double rgba(148, 1, 25, .55); background: rgba(148, 1, 25, .05);
  outline: 1px solid #2a1810; outline-offset: 5px;
}
.qj-p2 .qj-texas-cab { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(148, 1, 25, .4); }
.qj-p2 .qj-texas-logo {
  width: 78px; height: 78px; margin: 4px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #3a1a14, #120c0a 72%);
  box-shadow: 0 0 0 4px #efe2c4, 0 0 0 5px #2a1810;
}
.qj-p2 .qj-texas-logo img { width: 56px; }
.qj-p2 .qj-texas-ceja { font: 13px/1 'IM Fell English SC', serif; letter-spacing: .22em; color: #940119; }
.qj-p2 .qj-texas-titulo { margin-top: 6px; font: 400 23px/1.05 'IM Fell English', serif; }
.qj-p2 .qj-texas-sub { margin-top: 4px; font: italic 14px/1.35 'EB Garamond', serif; color: var(--qj-suave); }

.qj-p2 .qj-pie { color: #2a1810; }
.qj-p2 .qj-pie-cuerpo { padding: 44px 40px 64px; }
.qj-fin { margin-top: 8px; font: 22px/1 'IM Fell English SC', serif; letter-spacing: .2em; }
.qj-p2 .qj-pie-cita { max-width: 300px; font: italic 15px/1.45 'EB Garamond', serif; color: var(--qj-suave); }
.qj-p2 .qj-pie-sep { width: auto; height: auto; background: none; opacity: 1; margin: 12px 0 0; }
.qj-p2 .qj-pie-sep::before { content: '\2766'; font-size: 26px; line-height: 1; color: var(--qj-lacre); }
.qj-p2 .qj-grupo-pre { font: 15px/1 'IM Fell English SC', serif; letter-spacing: .24em; color: var(--qj-lacre); }
.qj-p2 .qj-grupo-logo {
  width: 138px; height: 138px; margin: 8px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #3a1a14, #1b0a10 72%);
  box-shadow: inset 0 0 0 3px rgba(239, 226, 196, .35), 0 0 0 5px #efe2c4, 0 0 0 6px #2a1810;
}
.qj-p2 .qj-grupo-logo img { width: 100px; }
.qj-p2 .qj-grupo { font: 22px/1 'IM Fell English SC', serif; letter-spacing: .1em; }
.qj-p2 .qj-pie-servimi { font: 14px/1.3 'IM Fell English SC', serif; letter-spacing: .14em; }
.qj-colofon { max-width: 260px; margin-top: 6px; font: italic 11px/1.35 'EB Garamond', serif; color: var(--qj-suave); opacity: .75; }

/* ============================================================
   Propuesta 3 -- Pinacoteca
   ============================================================ */
.qj-p3 {
  --qj-bg: #3b0d14;
  --qj-tinta: #f3e6cc;
  --qj-suave: #dccbb1;
  --qj-acento: #e2bd63;
  --qj-linea: rgba(226, 189, 99, .28);
  --qj-barra: rgba(26, 5, 9, .92);
  --qj-barra-borde: rgba(226, 189, 99, .45);
  --qj-chip-borde: rgba(226, 189, 99, .7);
  --qj-chip-tx: #f3e6cc;
  --qj-chip-on-bg: #e2bd63;
  --qj-chip-on-tx: #3b0d14;
  font-family: 'Jost', system-ui, sans-serif;
  background-image:
    url('quijote/escena/grano.png'),
    radial-gradient(circle at 50% 50%, rgba(214, 166, 92, .085) 0 9px, transparent 10px),
    radial-gradient(circle at 0 0, rgba(214, 166, 92, .06) 0 14px, transparent 15px),
    repeating-linear-gradient(45deg, rgba(214, 166, 92, .05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, rgba(214, 166, 92, .05) 0 1px, transparent 1px 34px);
  background-size: 256px 256px, 48px 48px, 48px 48px, auto, auto;
}
.qj-p3 .qj-hero { display: flex; flex-direction: column; align-items: center; padding: 40px 28px 0; color: #f3e6cc; }
body:has(.svm-vista-previa) .qj-p3 .qj-hero { padding-top: 72px; }
.qj-p3 .qj-hero::before, .qj-p3 .qj-banda::before {
  content: ''; position: absolute; left: -40px; right: -40px; top: 0; height: 720px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 226, 170, .30), rgba(255, 226, 170, .10) 38%, rgba(255, 226, 170, 0) 70%);
}
.qj-p3 .qj-hero > *:not(.qj-volver) { position: relative; }
.qj-p3 .qj-logo { width: 190px; }
.qj-sala-cab { margin-top: 8px; font: 600 13px/1 'Cormorant SC', serif; letter-spacing: .34em; color: #e2bd63; }
.qj-marco { padding: 11px; border-radius: 3px; }
.qj-marco img { display: block; width: 100%; height: 224px; object-fit: cover; padding: 2px; background: #2a0a0e; }
.qj-marco--oro { background: var(--qj-oro); box-shadow: 0 18px 30px rgba(10, 2, 4, .55), inset 0 0 0 2px rgba(60, 36, 8, .5); }
.qj-marco--nogal { padding: 12px; background: linear-gradient(135deg, #2a1208, #4a2412 50%, #2a1208); box-shadow: 0 18px 30px rgba(10, 2, 4, .55), inset 0 0 0 3px #b98d3e; }
.qj-marco--hero { margin-top: 24px; padding: 14px; }
.qj-marco--hero img { width: min(262px, 66vw); height: auto; aspect-ratio: 262 / 327; padding: 3px; }
.qj-placa {
  align-self: center; margin-top: 14px; padding: 7px 16px; border-radius: 2px; text-align: center; color: #3a2408;
  background: linear-gradient(180deg, #e9cd84, #b98d3e 55%, #d6b467); box-shadow: 0 3px 8px rgba(10, 2, 4, .5);
}
.qj-placa b { display: block; font: 700 13px/1.15 'Cormorant Garamond', serif; letter-spacing: .02em; }
.qj-placa span { display: block; margin-top: 2px; font: 500 10px/1.3 'Jost', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.qj-placa--hero { margin-top: 18px; padding: 10px 22px; }
.qj-placa--hero b { font: 700 17px/1.1 'Cormorant SC', serif; letter-spacing: .12em; }
.qj-placa--hero span { font-size: 12px; letter-spacing: .08em; text-transform: none; margin-top: 3px; }
.qj-hero-pie { margin-top: 12px; font: italic 500 14px/1.35 'Cormorant Garamond', serif; color: #d8c7ad; }

.qj-p3 .qj-banners { gap: 22px; padding: 34px 26px 6px; scroll-padding-inline: 26px; }
.qj-p3 .qj-promo { flex-basis: 196px; padding-top: 8px; overflow: visible; }
.qj-p3 .qj-promo::before {
  content: ''; position: absolute; left: -6px; right: -6px; top: 0; height: 7px; z-index: 2; border-radius: 4px;
  background: var(--qj-oro); box-shadow: 0 3px 6px rgba(10, 2, 4, .5);
}
.qj-p3 .qj-promo-tx {
  min-height: 268px; padding: 22px 18px 52px; gap: 8px; text-align: center;
  background: linear-gradient(180deg, #6e1420, #3b0a12);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(226, 189, 99, .55);
}
.qj-p3 .qj-promo:nth-child(3n+2) .qj-promo-tx { background: linear-gradient(180deg, #1f2a3a, #0f1520); }
.qj-p3 .qj-promo:nth-child(3n) .qj-promo-tx { background: linear-gradient(180deg, #4a3210, #24180a); }
.qj-p3 .qj-promo-tx i {
  padding-bottom: 10px; font: 600 12px/1 'Cormorant SC', serif; letter-spacing: .3em; color: #e2bd63;
  background: linear-gradient(#e2bd63, #e2bd63) center bottom / 44px 1px no-repeat;
}
.qj-p3 .qj-promo-tx b { font: 600 26px/1.05 'Cormorant Garamond', serif; color: #fbf3e2; }
.qj-p3 .qj-promo-texto { font: 400 13px/1.45 'Jost', sans-serif; color: #dccbb1; }

.qj-p3 .qj-barra { margin-top: 30px; border-top: 1px solid var(--qj-barra-borde); }
.qj-p3 .qj-chip { border-width: 1px; border-radius: 0; padding: 0 14px; font: 700 14px/1 'Cormorant SC', serif; letter-spacing: .08em; }

.qj-p3 main { display: flex; flex-direction: column; padding: 44px 20px 0; }
.qj-p3 .qj-banda { display: flex; flex-direction: column; align-items: center; text-align: center; }
.qj-p3 .qj-banda:not(:first-child) { margin-top: 76px; }
.qj-p3 .qj-banda::before { top: -24px; left: -20px; right: -20px; height: 420px; }
.qj-p3 .qj-banda > * { position: relative; }
.qj-medalla { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--qj-oro); box-shadow: 0 6px 14px rgba(10, 2, 4, .45); }
.qj-medalla span { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #3b0d14; font: 700 19px/1 'Cormorant SC', serif; color: #e2bd63; }
.qj-sala-num { margin-top: 12px; font: 600 13px/1 'Cormorant SC', serif; letter-spacing: .36em; color: #e2bd63; }
.qj-sala-titulo { margin-top: 6px; font: 600 42px/1 'Cormorant Garamond', serif; color: #fbf3e2; }
.qj-rombo, .qj-p3 .qj-pie-sep {
  display: block; width: 180px; height: 9px; margin-top: 14px; opacity: 1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect x='2.5' y='2.5' width='5' height='5' transform='rotate(45 5 5)' fill='%23e2bd63'/%3E%3C/svg%3E") center / 10px 10px no-repeat,
    linear-gradient(#e2bd63, #e2bd63) left center / calc(50% - 12px) 1px no-repeat,
    linear-gradient(#e2bd63, #e2bd63) right center / calc(50% - 12px) 1px no-repeat;
}
.qj-p3 .qj-banda .qj-marco { align-self: stretch; margin-top: 24px; }

.qj-p3 .qj-sec:not(.qj-texas) {
  --qj-tinta: #2a1810;
  --qj-suave: #5a4636;
  --qj-acento: #8a5a12;
  --qj-linea: rgba(138, 90, 18, .25);
  margin-top: 24px; padding: 14px 26px 10px; color: #2a1810;
  background-color: #f4ecdb;
  background-image: url('quijote/escena/grano.png'), linear-gradient(180deg, #f8f1e3, #efe3cc);
  background-size: 256px 256px, auto;
  box-shadow: 0 16px 30px rgba(10, 2, 4, .5);
}
.qj-p3 .qj-sec:not(.qj-texas)::before {
  content: ''; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid rgba(138, 90, 18, .55); outline: 1px solid rgba(138, 90, 18, .3); outline-offset: 3px;
}
.qj-p3 .qj-sec-name { padding-top: 8px; font: 600 15px/1 'Cormorant SC', serif; letter-spacing: .24em; color: var(--qj-acento); }
.qj-p3 .qj-sec-nota { font-family: 'Cormorant Garamond', serif; font-size: 15px; }
.qj-p3 .qj-fila-tap { padding: 14px 0; border-top: 1px solid var(--qj-linea); }
.qj-p3 .qj-fila:first-child .qj-fila-tap { border-top: 0; }
.qj-p3 .qj-linea b { font: 700 21px/1.15 'Cormorant Garamond', serif; letter-spacing: 0; }
.qj-p3 .qj-desc { font: 400 13.5px/1.45 'Jost', sans-serif; }
.qj-p3 .qj-precio-uno, .qj-p3 .qj-precio, .qj-p3 .qj-precio-pend { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 15px; }

.qj-p3 .qj-texas {
  margin-top: 26px; padding: 8px; background: #120c0a;
  border: 2px solid #940119; outline: 1px solid #c4682c; outline-offset: 3px;
  box-shadow: 0 16px 30px rgba(10, 2, 4, .55);
}
.qj-p3 .qj-texas-cab { padding: 12px 12px 14px; border-bottom: 1px solid rgba(196, 104, 44, .5); }
.qj-p3 .qj-texas-logo img { width: 74px; }
.qj-p3 .qj-texas-ceja { font: 600 12px/1 'Cormorant SC', serif; letter-spacing: .3em; color: #f0a35e; }
.qj-p3 .qj-texas-titulo { margin-top: 4px; font: 600 28px/1.05 'Cormorant Garamond', serif; color: #fbf3e2; }
.qj-p3 .qj-texas-sub { margin-top: 4px; font: 400 12px/1.4 'Jost', sans-serif; color: #d9c8b4; }
.qj-p3 .qj-texas .qj-filas { padding: 0 12px 4px; }

.qj-p3 .qj-pie { margin-top: 76px; }
.qj-p3 .qj-pie-cuerpo { padding: 10px 20px 56px; }
.qj-medallon { padding: 8px; border-radius: 50%; background: var(--qj-oro); box-shadow: 0 18px 30px rgba(10, 2, 4, .55); }
.qj-medallon img { display: block; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: 40% 40%; background: #2a0a0e; }
.qj-p3 .qj-pie-cita { margin-top: 6px; max-width: 300px; font: italic 500 20px/1.3 'Cormorant Garamond', serif; }
.qj-p3 .qj-pie-autor { font: 600 12px/1 'Cormorant SC', serif; letter-spacing: .3em; color: #e2bd63; }
.qj-p3 .qj-pie-sep { margin: 22px 0 6px; }
.qj-p3 .qj-grupo-pre { font: 600 12px/1 'Cormorant SC', serif; letter-spacing: .32em; color: #e2bd63; }
.qj-p3 .qj-grupo-logo img { width: 132px; }
.qj-p3 .qj-grupo { font: 700 21px/1 'Cormorant SC', serif; letter-spacing: .12em; }
.qj-p3 .qj-pie-links a { color: #e2bd63; }

/* ============================================================
   Comunes: banners, barra, filas, bloque de Texas y pie
   ============================================================ */
.qj-banners {
  display: flex; gap: 14px; padding: 26px 20px 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none;
}
.qj-banners::-webkit-scrollbar { display: none; }
.qj-p2 .qj-banners { padding: 26px 30px 4px; scroll-padding-inline: 30px; }
.qj-promo { position: relative; flex: 0 0 262px; display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start; }
.qj-banners > .qj-promo:only-child { flex-basis: 100%; }
.qj-promo > img { display: block; width: 100%; height: 110px; object-fit: cover; margin-bottom: 12px; }
.qj-p3 .qj-promo > img { margin-bottom: 0; }
.qj-promo-tx { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.qj-promo-tx i { font-style: normal; }
.qj-promo-cta { align-self: flex-start; margin-top: 6px; font-weight: 800; font-size: 14px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.qj-p2 .qj-promo-cta, .qj-p3 .qj-promo-cta { align-self: center; }

.qj-barra {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px;
  background: var(--qj-barra); border-bottom: 1px solid var(--qj-barra-borde);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.qj-chips {
  display: flex; gap: 12px; flex: 1; overflow-x: auto; scrollbar-width: none; padding-right: 40px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.qj-chips::-webkit-scrollbar { display: none; }
.qj-chip {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--qj-chip-borde); border-radius: 999px; background: transparent; color: var(--qj-chip-tx);
  font: 700 14px/1 'Alegreya SC', Georgia, serif; letter-spacing: .02em; white-space: nowrap; cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.qj-chip.is-on { background: var(--qj-chip-on-bg); border-color: var(--qj-chip-on-bg); color: var(--qj-chip-on-tx); }

.qj-banda, .qj-sec, .qj-fila { scroll-margin-top: 72px; }
.qj-sec { position: relative; }
.qj-sec-nota { margin-top: 2px; max-width: 46ch; font-size: 14px; line-height: 1.45; font-style: italic; color: var(--qj-suave); }

.qj-fila-tap { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 15px 0; }
.qj-fila-tap.is-tap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qj-foto { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.qj-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.qj-linea { display: flex; align-items: baseline; gap: 10px; }
.qj-linea b { flex: 0 1 auto; min-width: 0; font: 700 17px/1.2 'Alegreya SC', Georgia, serif; letter-spacing: .02em; color: var(--qj-tinta); }
.qj-lider { flex: 1 1 auto; min-width: 12px; }
.qj-linea:not(:has(.qj-precio-uno, .qj-dual, .qj-agotado, .qj-precio-pend)) .qj-lider { display: none; }
.qj-desc {
  font-size: 14px; line-height: 1.5; color: var(--qj-suave);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.qj-addon { font-size: 13px; font-weight: 700; color: var(--qj-acento); }
.qj-etqs { display: flex; flex-wrap: wrap; gap: 6px; }
.qj-etq {
  padding: 1px 8px; border-radius: 999px; font: 800 11px/1.6 'Alegreya Sans', sans-serif; letter-spacing: .05em; text-transform: uppercase;
  background: color-mix(in srgb, var(--qj-acento) 14%, transparent); color: var(--qj-acento);
}

.qj-precio-uno, .qj-precio {
  display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap;
  font: 700 15px/1.2 'Alegreya Sans', sans-serif; font-variant-numeric: lining-nums tabular-nums; color: var(--qj-acento);
}
.qj-bs { font-size: 12.5px; font-weight: 700; color: var(--qj-suave); }
.qj-precio-pend {
  min-width: 3.2em; text-align: right; white-space: nowrap; opacity: .55;
  font: 700 15px/1.2 'Alegreya Sans', sans-serif; color: var(--qj-acento);
}
.qj-dual { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.qj-dual .qj-precio:last-child { color: var(--qj-suave); }
.qj-precio small { font: 700 11px/1.2 'Alegreya Sans', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--qj-suave); }
.qj-agotado { font: 800 13px/1.2 'Alegreya Sans', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--qj-suave); white-space: nowrap; }
.qj-add {
  display: inline-flex; align-items: baseline; gap: 4px; padding: 0; border: 0; background: transparent; cursor: pointer;
  font: inherit; color: inherit; -webkit-tap-highlight-color: transparent;
}
.qj-mas { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--qj-boton); color: #fff; font-size: 13px; line-height: 1; }

.qj-texas {
  --qj-tinta: #f6eee2;
  --qj-suave: #d9c8b4;
  --qj-acento: #f0a35e;
  --qj-linea: rgba(196, 104, 44, .3);
  color: #f6eee2;
}
.qj-p2 .qj-texas { --qj-tinta: #2a1810; --qj-suave: #4e3a2a; --qj-acento: #940119; --qj-linea: rgba(42, 24, 16, .5); color: #2a1810; }
.qj-texas-cab { display: flex; align-items: center; gap: 14px; text-align: left; }
.qj-texas-logo { flex: none; display: grid; place-items: center; }
.qj-texas-logo img { display: block; height: auto; }
.qj-texas-tx { min-width: 0; }

.qj-pie { position: relative; overflow: hidden; text-align: center; }
.qj-pie-cuerpo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 34px 46px; }
.qj-pie-sep { display: block; width: 140px; height: 1px; margin: 14px 0 2px; }
.qj-grupo-logo { display: grid; place-items: center; }
.qj-grupo-logo img { display: block; height: auto; }
.qj-pie-linea { font-size: 14px; color: var(--qj-suave); }
.qj-pie-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.qj-pie-links:empty { display: none; }
.qj-pie-links a { font-size: 14px; font-weight: 700; color: var(--qj-acento); text-decoration: none; }
.qj-pie-servimi { margin-top: 6px; font-size: 13px; color: var(--qj-suave); }
.qj-pie-servimi a { color: inherit; }
/* Boton del portal cautivo, al final del menu (#605). */
.qj-wifi { display: flex; justify-content: center; width: 100%; padding-top: 18px; }
.qj-wifi-btn {
  display: block; width: 100%; max-width: 340px; min-height: 52px; padding: 15px 20px; border-radius: 4px;
  background: var(--qj-lacre); color: #f6e7cc; text-align: center; text-decoration: none;
  font: 19px/1.15 'EB Garamond', Georgia, serif; letter-spacing: .02em;
}
.qj-wifi-btn:focus-visible { outline: 3px solid var(--qj-tinta); outline-offset: 3px; }
.qj-pie-fotos { max-width: 300px; font-size: 7.5px; line-height: 1.35; letter-spacing: .02em; opacity: .45; }

.menu-root[data-density="compacta"] .qj-fila-tap { padding-top: 7px; padding-bottom: 7px; }
.menu-root[data-density="compacta"] .qj-sec-nota { display: none; }
.menu-root[data-detalle="panel"][data-density="compacta"] .qj-desc { display: none; }
.menu-root[data-density="compacta"].qj-p1 .qj-cartel { height: 150px; }

@keyframes qjGiro { to { transform: rotate(360deg); } }
@keyframes qjLatido { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .86; } }
@keyframes qjRespira { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes qjVuelo { from { transform: translateX(-12%); } to { transform: translateX(112%); } }
@keyframes qjPlaneo { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-14px) rotate(6deg); } }
@keyframes qjCalima { from { opacity: .55; transform: scaleY(1); } to { opacity: 1; transform: scaleY(1.18); } }
@keyframes qjAnochecer { to { opacity: 1; } }
@keyframes qjTitila { from { opacity: .55; } to { opacity: 1; } }
@keyframes qjPuesta { to { translate: 0 110px; } }
@keyframes qjAparece { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes qjPolvo { to { background-position: 47px -53px, 91px -31px; } }
@keyframes qjZoom { from { transform: scale(1); } to { transform: scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qj-cielo, .qj-rayos, .qj-halo, .qj-sol, .qj-ave, .qj-ave i, .qj-calima, .qj-aspas, .qj-polvo, .qj-anochecer, .qj-anochecer::before,
  .qj-hero-marca, .qj-tagline, .qj-ubica, .qj-cartel-foto, .qj-pie-foto { animation: none !important; }
  .qj-ave { display: none; }
}

/* ============================================================
   Bottom-sheet de detalle (partial compartido): panel siempre en
   la hoja granate, sea cual sea la propuesta.
   ============================================================ */
.dish-modal-backdrop {
  animation: dmFade .22s ease both;
  position: fixed; inset: 0; z-index: 70;
  background: rgba(10, 2, 3, .74);
}
.dish-modal {
  animation: dmSlide .28s cubic-bezier(.2, .8, .3, 1) both;
  position: fixed; z-index: 71; left: 0; right: 0; bottom: 0;
  max-width: 460px; margin: 0 auto;
  background: var(--qj-hoja); color: var(--qj-hoja-tx);
  border-radius: 16px 16px 0 0; border-top: 1px solid rgba(200, 101, 43, .45);
  max-height: 88dvh; overflow-y: auto;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  font-family: 'Alegreya Sans', system-ui, sans-serif;
}
.dm-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
  border: 0; border-radius: 50%; background: rgba(20, 6, 8, .66); color: var(--qj-hoja-tx);
}
.dm-photo {
  position: relative; width: 100%; aspect-ratio: 16/11; overflow: hidden;
  background: var(--qj-hoja-pie); border-radius: 16px 16px 0 0;
}
.dm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-photo--vertical { aspect-ratio: 3 / 4; }
.dm-photo::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(to bottom, transparent, var(--qj-hoja)); pointer-events: none;
}
.dm-photo--none {
  display: grid; place-items: center; aspect-ratio: 16/7; min-height: 0;
  background: radial-gradient(80% 100% at 50% 0%, rgba(200, 101, 43, .26), var(--qj-hoja-pie) 72%);
}
.dm-photo--none img {
  width: auto; height: auto; max-width: 52%; max-height: 64%; object-fit: contain;
  opacity: .92; filter: brightness(0) invert(1);
}
.dm-photo--none::after { content: none; }
.dm-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 22px 0; }
.dm-name {
  font-family: 'Alegreya SC', Georgia, serif; font-weight: 700; letter-spacing: .02em;
  font-size: 28px; line-height: 1.05; color: var(--qj-hoja-tx); padding-right: 34px;
}
.dm-desc { font-size: 16px; line-height: 1.55; color: var(--qj-hoja-suave); }
.dm-credit, .dish-credit { font-size: 13px; color: var(--qj-hoja-suave); }
.dm-tags, .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-tags .tag, .tags .tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(239, 154, 90, .55); color: var(--qj-hoja-acento);
}
.tags .tag svg { width: 12px; height: 12px; }
.dm-price {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 13px; border-top: 1px solid var(--qj-hoja-linea);
  font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums;
}
.dm-variants { display: flex; flex-direction: column; gap: 8px; }
.dm-add, .dm-add--variant {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  background: var(--qj-boton); border: 0; color: #fff;
  font-family: inherit; font-weight: 800; font-size: 16px;
}
.dm-add:hover, .dm-add--variant:hover { background: var(--qj-boton-hover); }
.dm-stamp { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; color: var(--qj-hoja-suave); }
.note { padding: 10px 12px; border-radius: 8px; background: var(--qj-hoja-pie); border-left: 3px solid var(--qj-naranja); }
.note-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--qj-hoja-acento); }
.note-text { margin-top: 3px; font-size: 14px; color: var(--qj-hoja-tx); }
.amounts { display: flex; flex-direction: column; align-items: flex-end; }
.dm-price .amt-ref {
  font-family: 'Alegreya SC', Georgia, serif; font-weight: 800; font-size: 24px;
  font-variant-numeric: lining-nums tabular-nums; color: #fff; letter-spacing: 0;
}
.amt-ref { font-size: 12.5px; color: var(--qj-hoja-suave); }

@keyframes dmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dmFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes dmSlide { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes dmSlideOut { from { transform: translateY(0); } to { transform: translateY(100%); } }
.dish-modal-backdrop.closing { animation: dmFadeOut .23s ease both; }
.dish-modal.closing { animation: dmSlideOut .24s cubic-bezier(.4, 0, .7, 1) both; }

/* ============================================================
   Carrito de delivery (partial compartido)
   ============================================================ */
.cart-fab {
  position: fixed; z-index: 60;
  right: max(16px, calc(50vw - 260px + 16px)); bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px;
  border-radius: 999px; cursor: pointer;
  background: var(--qj-boton); border: 0; color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.cart-fab svg { width: 19px; height: 19px; }
.cart-fab-label { font-weight: 800; font-size: 14px; }
.cart-fab-count {
  min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center;
  border-radius: 999px; background: #fff; color: var(--qj-boton-hover); font-weight: 800; font-size: 12px;
}
.cart-modal {
  position: fixed; z-index: 71; left: 0; right: 0; bottom: 0;
  max-width: 520px; margin: 0 auto;
  background: var(--qj-hoja); color: var(--qj-hoja-tx);
  border-radius: 16px 16px 0 0; border-top: 1px solid rgba(200, 101, 43, .45);
  max-height: 88dvh; overflow-y: auto;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  font-family: 'Alegreya Sans', system-ui, sans-serif;
}
.cart-body { display: flex; flex-direction: column; gap: 12px; }
.cart-empty { padding: 22px 0; text-align: center; font-size: 15px; color: var(--qj-hoja-suave); }
.cart-list { display: flex; flex-direction: column; gap: 9px; }
.cart-line { display: flex; align-items: center; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--qj-hoja-linea); }
.cart-line-name { flex: 1; font-size: 15px; }
.cart-line-qty { display: flex; align-items: center; gap: 7px; }
.cart-line-qty button {
  width: 26px; height: 26px; border-radius: 6px; cursor: pointer;
  background: var(--qj-hoja-pie); border: 1px solid var(--qj-hoja-linea); color: var(--qj-hoja-tx);
}
.cart-line-price { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.cart-line-del { background: none; border: 0; color: var(--qj-hoja-suave); cursor: pointer; }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--qj-hoja-linea);
  font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums;
}
.cart-form { display: flex; flex-direction: column; gap: 9px; }
.cart-field {
  width: 100%; padding: 11px 13px; border-radius: 9px;
  background: var(--qj-hoja-pie); border: 1px solid var(--qj-hoja-linea); color: var(--qj-hoja-tx);
  font-family: inherit; font-size: 16px;
}
.cart-field:focus { outline: none; border-color: var(--qj-naranja); }
.cart-submit {
  width: 100%; padding: 14px; border-radius: 10px; cursor: pointer;
  background: var(--qj-boton); border: 0; color: #fff;
  font-family: inherit; font-weight: 800; font-size: 16px;
}
.cart-submit:hover { background: var(--qj-boton-hover); }
.cart-errors { padding: 11px 13px; border-radius: 9px; background: rgba(200, 101, 43, .16); border: 1px solid var(--qj-naranja); }
.cart-errors-title { font-weight: 800; font-size: 14px; color: var(--qj-hoja-acento); }
.cart-errors ul { margin: 5px 0 0 16px; font-size: 14px; color: var(--qj-hoja-tx); }

/* Acordeon: la descripcion crece y se recoge; grid 0fr->1fr anima a cualquier alto. */
.desc-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.desc-fold.is-open { grid-template-rows: 1fr; }
.desc-fold > * { overflow: hidden; min-height: 0; margin: 0; padding-top: 0; transition: padding-top .26s ease; }
.desc-fold.is-open > * { padding-top: 4px; }
@media (prefers-reduced-motion: reduce) { .desc-fold, .desc-fold > * { transition: none; } }
.desc-fold > .qj-desc { display: block; -webkit-line-clamp: unset; }
