/* Carta — la personalidad: «la pizarra del bar». El panel es una mesa de trabajo limpia (papel claro, letra Archivo y
   Atkinson, un rojo almagre de acento); la pizarra de tiza con su marco de madera sale en los momentos clave: portada,
   alta, estados vacíos, cartel del escaparate. Las letras se declaran en carta.css. */

:root {
  --f-texto: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-titulos: 'Archivo', 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --peso-titulos: 780;
  --tracking-titulos: -0.028em;
  --fondo: #f4f1ea;
  --superficie: #fffefa;
  --superficie-2: #eeeae0;
  --hundido: #e6e1d5;
  --linea: #e1dbcd;
  --linea-fuerte: #c6bdab;
  --texto: #1d2420;
  --texto-2: #515853;
  --texto-3: #79807a;
  --acento: #ac4127;
  --acento-hover: #923620;
  --acento-suave: #f6e2d9;
  --acento-texto: #9a3a22;
  --sobre-acento: #ffffff;
  --pizarra: #1f2723;
  --tiza: #f3f0e6;
  --tiza-amarilla: #f2d16b;
  --tiza-rosa: #f4a6b8;
  --tiza-azul: #9fd0f0;
  --madera: linear-gradient(100deg, #7d4c26 0%, #925c31 18%, #6f4220 38%, #8c5730 58%, #6a3f1f 78%, #87532d 100%);
  --tiza-fondo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --papel-fondo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --mascara-tiza: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mesa-impresion: #d8d3c8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema='claro']) {
    --fondo: #121614; --superficie: #1a1f1c; --superficie-2: #222824; --hundido: #0d100e; --linea: #2b322e; --linea-fuerte: #444c47;
    --texto: #eef0ea; --texto-2: #b4bab3; --texto-3: #858c86;
    --acento: #e27b5c; --acento-hover: #ec957a; --acento-suave: #3a2018; --acento-texto: #f09c80; --sobre-acento: #1b0c06;
    --mesa-impresion: #2a2e2c;
  }
}
:root[data-tema='oscuro'] {
  --fondo: #121614; --superficie: #1a1f1c; --superficie-2: #222824; --hundido: #0d100e; --linea: #2b322e; --linea-fuerte: #444c47;
  --texto: #eef0ea; --texto-2: #b4bab3; --texto-3: #858c86;
  --acento: #e27b5c; --acento-hover: #ec957a; --acento-suave: #3a2018; --acento-texto: #f09c80; --sobre-acento: #1b0c06;
  --mesa-impresion: #2a2e2c;
}

/* ── Modos de página ─────────────────────────────────────────────────────────────────────────────────── */
body[data-modo='carta'] .barra, body[data-modo='carta'] #pie,
body[data-modo='incrustada'] .barra, body[data-modo='incrustada'] #pie,
body[data-modo='imprimir'] .barra, body[data-modo='imprimir'] #pie,
body[data-modo='servicio'] #pie { display: none; }
body[data-modo='carta'] #principal, body[data-modo='incrustada'] #principal, body[data-modo='imprimir'] #principal, body[data-modo='panel'] #principal { max-width: none; padding: 0; }
body[data-modo='imprimir'] { background: var(--mesa-impresion); }
body[data-modo='incrustada'] { background: transparent; }

/* Barra y marca */
.marca { font-family: var(--f-titulos); font-weight: 820; font-size: 1.2rem; letter-spacing: -0.03em; }
.marca img { width: 30px; height: 30px; }

/* ── La pizarra (objeto de la casa) ──────────────────────────────────────────────────────────────────── */
.pizarra-mensaje { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: clamp(12px, 4vw, 40px) 0; }
.pizarra-marco { width: min(100%, 560px); padding: 14px; border-radius: 10px; background: var(--madera); box-shadow: 0 26px 50px -26px rgb(40 20 5 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.pizarra-tabla {
  display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 220px; padding: clamp(24px, 5vw, 44px) clamp(18px, 4vw, 40px);
  border-radius: 3px; background: var(--pizarra) var(--tiza-fondo); color: var(--tiza); text-align: center; box-shadow: inset 0 0 34px rgb(0 0 0 / 0.5);
}
.tiza-grande, .tiza-texto, .tiza-pequena, .tiza-linea, .tz, .cartel-nombre, .cartel-ante, .final h2, .ejemplo h2 { text-shadow: 0 0 1px rgb(243 240 230 / 0.45), 0 0 6px rgb(243 240 230 / 0.1); }
.tiza-grande, .tz-titulo, .final h2, .ejemplo h2, .cartel-nombre { -webkit-mask-image: var(--mascara-tiza); mask-image: var(--mascara-tiza); }
.tiza-grande { margin: 0; font-family: 'Cabin Sketch', 'Caveat', cursive; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); line-height: 1.05; color: var(--tiza-amarilla); overflow-wrap: anywhere; }
.tiza-texto { margin: 0; font-family: 'Caveat', cursive; font-size: clamp(1.3rem, 1rem + 1vw, 1.65rem); line-height: 1.25; }
.tiza-pequena { margin: 0; font-family: 'Caveat', cursive; font-size: 1.15rem; letter-spacing: 0.16em; color: var(--tiza-azul); }
.tiza-linea { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 0; font-family: 'Caveat', cursive; font-size: 1.45rem; }
.tiza-puntos { flex: 1; border-bottom: 2px dotted rgb(243 240 230 / 0.45); margin-bottom: 0.35em; }
.tiza-direccion { margin: 14px 0 0; font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; font-size: 0.8rem; opacity: 0.72; overflow-wrap: anywhere; }
.centro-fila { justify-content: center; }
.entrar-vista { max-width: 660px; margin: 0 auto; }

/* ── Portada ─────────────────────────────────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(8px, 3vw, 40px) 0 clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 3.9vw, 4.6rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 820; margin-bottom: 0.4em; }
.hero .entradilla { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 44ch; }
.hero-acciones { margin: 26px 0 16px; }
.hero-nota { display: flex; align-items: center; gap: 8px; color: var(--texto-2); font-size: var(--t-s); margin: 0; }
.hero-nota .ico { color: var(--ok); }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } .caballete { max-width: 400px; } }

.caballete { position: relative; width: min(100%, 470px); margin: 0 auto; padding-bottom: 58px; transform: rotate(-1.4deg); }
.caballete::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -8px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgb(40 25 10 / 0.3), transparent); }
.caballete-marco { position: relative; z-index: 2; padding: 15px 15px 0; border-radius: 10px; background: var(--madera); box-shadow: 0 34px 60px -26px rgb(40 20 5 / 0.65), inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.caballete-tabla {
  position: relative; display: flex; flex-direction: column; gap: 3px; aspect-ratio: 4 / 4.9; padding: 22px 26px 20px; overflow: hidden;
  border-radius: 3px; background: var(--pizarra) var(--tiza-fondo); color: var(--tiza);
  background-image: var(--tiza-fondo), radial-gradient(ellipse at 22% 12%, rgb(255 255 255 / 0.08), transparent 55%), radial-gradient(ellipse at 80% 75%, rgb(255 255 255 / 0.05), transparent 50%);
  box-shadow: inset 0 0 34px rgb(0 0 0 / 0.55);
}
.tz { margin: 0; font-family: 'Caveat', 'Segoe Print', cursive; font-size: clamp(1.35rem, 1rem + 1.1vw, 1.8rem); line-height: 1.12; }
.tz-titulo { font-family: 'Cabin Sketch', 'Caveat', cursive; font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.4rem); text-align: center; color: var(--tiza-amarilla); margin-bottom: 4px; }
.tz-fila { position: relative; display: flex; align-items: baseline; gap: 8px; }
.tz-puntos { flex: 1; border-bottom: 2px dotted rgb(243 240 230 / 0.42); margin-bottom: 0.32em; min-width: 12px; }
.tz-precio { font-weight: 700; color: var(--tiza-amarilla); }
.tz-sub { font-size: clamp(1.1rem, 0.9rem + 0.7vw, 1.35rem); color: #c9ccc2; margin: -3px 0 6px 6px; }
.tz-tachon { position: absolute; left: -6px; right: -6px; top: 52%; width: calc(100% + 12px); height: 26px; transform: translateY(-50%); overflow: visible; pointer-events: none; }
.tz-tachon path { fill: none; stroke: var(--tiza-rosa); stroke-width: 3.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tachar 650ms 1.1s cubic-bezier(0.45, 0.05, 0.25, 1) forwards; }
.tz-tachada > span:not(.tz-puntos) { opacity: 0.75; }
.tz-acabo { align-self: flex-end; margin: -4px 10px 4px 0; color: var(--tiza-rosa); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); transform: rotate(-5deg); opacity: 0; animation: aparece-tiza 420ms 1.75s ease-out forwards; }
.tz-pie { margin-top: auto; display: flex; align-items: flex-end; gap: 18px; }
.tz-papel { position: relative; flex-shrink: 0; padding: 7px; background: #fbf8f0; transform: rotate(3deg); box-shadow: 0 8px 16px rgb(0 0 0 / 0.45); }
.tz-qr svg { width: clamp(78px, 7vw, 96px); height: auto; }
.tz-cinta { position: absolute; top: -10px; left: 50%; width: 48px; height: 18px; transform: translateX(-50%) rotate(-5deg); background: rgb(238 224 172 / 0.78); }
.tz-mira { color: var(--tiza-azul); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem); line-height: 1.05; padding-bottom: 6px; }
.caballete-repisa { position: relative; height: 15px; margin: 12px -9px 0; border-radius: 3px 3px 5px 5px; background: linear-gradient(#8a5630, #5e391b); box-shadow: 0 4px 6px rgb(0 0 0 / 0.25); }
.tiza-palo { position: absolute; bottom: 11px; left: 20%; width: 36px; height: 8px; border-radius: 3px; background: var(--tiza); box-shadow: inset -3px -2px 0 rgb(0 0 0 / 0.08); }
.tiza-palo.rosa { left: 31%; width: 22px; background: var(--tiza-rosa); transform: rotate(-7deg); }
.caballete-patas { position: absolute; z-index: 1; left: 14%; right: 14%; bottom: 0; height: 120px; }
.caballete-patas::before, .caballete-patas::after { content: ''; position: absolute; bottom: 0; width: 17px; height: 100%; border-radius: 3px 3px 5px 5px; background: linear-gradient(90deg, #6a3f1f, #8c5730 50%, #5e391b); }
.caballete-patas::before { left: 0; transform: skewX(9deg); }
.caballete-patas::after { right: 0; transform: skewX(-9deg); }
@keyframes tachar { to { stroke-dashoffset: 0; } }
@keyframes aparece-tiza { from { opacity: 0; transform: rotate(-5deg) scale(0.85); } to { opacity: 1; transform: rotate(-5deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .tz-tachon path, .tz-acabo { animation-delay: 0s !important; } }

/* El ejemplo para tocar: banda de pizarra a todo lo ancho */
.ejemplo {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); align-items: center;
  margin-inline: calc(50% - 50vw); padding: clamp(44px, 7vw, 96px) max(clamp(16px, 4vw, 32px), calc(50vw - 590px));
  background: var(--pizarra) var(--tiza-fondo); color: var(--tiza); scroll-margin-top: 60px;
}
.ejemplo .antetitulo { color: var(--tiza-azul); }
.ejemplo h2 { font-family: 'Cabin Sketch', 'Caveat', cursive; font-weight: 400; letter-spacing: 0; font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.2rem); color: var(--tiza-amarilla); }
.ejemplo-texto > p { color: #d3d6cc; max-width: 52ch; }
.prueba-rotulo { display: flex; flex-direction: column; gap: 2px; margin: 22px 0 10px; }
.prueba-rotulo strong { color: var(--tiza); font-size: 1.02rem; }
.prueba-rotulo span { color: #b6bab0; font-size: var(--t-s); }
.prueba-filtro, .prueba-temas { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-prueba, .tema-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 5px; border-radius: 99px;
  border: 1.5px solid rgb(243 240 230 / 0.32); background: rgb(0 0 0 / 0.22); color: var(--tiza); font-weight: 650; font-size: var(--t-s);
  transition: background var(--rapido), color var(--rapido), border-color var(--rapido);
}
.tema-pill { padding-left: 10px; }
.chip-prueba .al { width: 30px; height: 30px; }
.chip-prueba:hover, .tema-pill:hover { border-color: rgb(243 240 230 / 0.6); }
.chip-prueba[aria-pressed='true'], .tema-pill[aria-pressed='true'] { background: var(--tiza); color: var(--pizarra); border-color: transparent; }
.prueba-idioma { background: rgb(0 0 0 / 0.25); border-color: rgb(243 240 230 / 0.22); }
.prueba-idioma button { color: #cfd2c8; }
.prueba-idioma button[aria-pressed='true'] { background: var(--tiza); color: var(--pizarra); }
.ejemplo-enlaces { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 26px; }
.ejemplo-enlaces a { display: inline-flex; align-items: center; gap: 4px; color: var(--tiza-amarilla); font-weight: 700; }
.ejemplo-enlaces span { color: #b6bab0; font-size: var(--t-s); }
@media (max-width: 900px) { .ejemplo { grid-template-columns: minmax(0, 1fr); } .ejemplo-movil { justify-self: center; width: 100%; display: grid; place-items: center; } }

.tema-punto { display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.5); }
.tema-punto[data-tema='pizarra'] { background: #1f2723; box-shadow: inset 0 0 0 3px #f2d16b; }
.tema-punto[data-tema='mantel'] { background: linear-gradient(90deg, rgb(179 38 30 / 0.55) 50%, transparent 50%) 0 0 / 6px 6px, linear-gradient(rgb(179 38 30 / 0.55) 50%, #fff 50%) 0 0 / 6px 6px; }
.tema-punto[data-tema='tasca'] { background: #f4ecd9; box-shadow: inset 0 0 0 3px #7b2d26; }
.tema-punto[data-tema='moderno'] { background: linear-gradient(90deg, #fff 50%, #0e0e0e 50%); }
.tema-punto[data-tema='chiringuito'] { background: repeating-linear-gradient(90deg, #1c5fa8 0 4px, #fff 4px 8px); }

/* El móvil (vista previa y ejemplo) */
.movil {
  position: relative; width: 384px; max-width: 100%; height: min(780px, 84dvh); padding: 12px; border-radius: 48px;
  background: #121513; box-shadow: 0 0 0 2px #2d332f, 0 44px 80px -34px rgb(0 0 0 / 0.65), inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.movil-altavoz { position: absolute; z-index: 10; top: 21px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%); border-radius: 99px; background: #050605; pointer-events: none; }
.movil-pantalla { height: 100%; overflow-x: hidden; overflow-y: auto; border-radius: 36px; background: #fff; overscroll-behavior: contain; scrollbar-width: none; }
.movil-pantalla::-webkit-scrollbar { display: none; }
.movil-pantalla .carta { min-height: 100%; }
.movil-pantalla .c-cabecera { padding-top: 66px; }
.movil-pantalla .carta[data-tema='chiringuito'] .c-cabecera { padding-top: 112px; }
@media (max-width: 440px) {
  .movil { width: 100%; padding: 8px; border-radius: 32px; }
  .movil-pantalla { border-radius: 25px; }
  .movil-altavoz { top: 15px; width: 80px; height: 20px; }
}

/* Los 14 */
.catorce-seccion { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(52px, 8vw, 104px) 0; }
.catorce-seccion h2 { font-size: var(--t-3xl); line-height: 1.02; }
.catorce { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.catorce li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; border: 1px solid var(--linea); border-radius: 16px; background: var(--superficie); text-align: center; font-size: var(--t-s); font-weight: 650; line-height: 1.2; }
.catorce .al { width: 48px; height: 48px; transition: transform var(--medio) var(--curva-salto); }
.catorce li:hover .al { transform: rotate(-8deg) scale(1.07); }
@media (max-width: 900px) { .catorce-seccion { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .catorce { grid-template-columns: repeat(3, minmax(0, 1fr)); } .catorce li { padding: 12px 4px; font-size: var(--t-xs); } .catorce .al { width: 40px; height: 40px; } }

/* Lo que trae la casa: una carta de tasca */
.casa { padding: 0 0 clamp(52px, 8vw, 104px); }
.casa-papel {
  max-width: 940px; margin: 0 auto; padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 64px); border-radius: 3px; text-align: center;
  background: #f4ecd9 var(--papel-fondo); color: #2b2118; outline: 3px double rgb(43 33 24 / 0.38); outline-offset: -14px;
  box-shadow: 0 34px 60px -34px rgb(80 50 20 / 0.55);
}
.casa-ante { margin: 0; font-family: 'IM Fell English', Georgia, serif; letter-spacing: 0.32em; text-transform: uppercase; color: #7b2d26; }
.casa-titulo { margin: 4px 0 26px; font-family: 'IM Fell English', Georgia, serif; font-weight: 400; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); letter-spacing: 0; color: #2b2118; }
.casa-titulo::after { content: '❦'; display: block; font-size: 1.3rem; color: #7b2d26; margin-top: 6px; }
.casa-lista { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 52px; text-align: left; }
.casa-lista li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; break-inside: avoid; }
.casa-nombre { font-family: 'IM Fell English', Georgia, serif; font-size: 1.2rem; white-space: nowrap; }
.casa-puntos { flex: 1; min-width: 14px; border-bottom: 2px dotted rgb(43 33 24 / 0.38); margin-bottom: 0.35em; }
.casa-detalle { max-width: 56%; font-family: 'Crimson Pro', Georgia, serif; font-style: italic; font-size: 1.04rem; color: #5d4c3a; text-align: right; line-height: 1.25; }
.casa-pie { margin: 26px 0 0; font-family: 'Crimson Pro', Georgia, serif; font-style: italic; font-size: 1.1rem; color: #5d4c3a; }
@media (max-width: 560px) {
  .casa-lista li { flex-wrap: wrap; gap: 0; }
  .casa-puntos { display: none; }
  .casa-detalle { flex-basis: 100%; max-width: none; text-align: left; }
}

.final { padding-bottom: clamp(36px, 6vw, 80px); }
.final-tabla {
  max-width: 940px; margin: 0 auto; padding: clamp(30px, 5vw, 56px) clamp(20px, 4vw, 48px); text-align: center;
  border: 14px solid transparent; border-image: var(--madera) 1; background: var(--pizarra) var(--tiza-fondo); color: var(--tiza);
  box-shadow: 0 30px 60px -30px rgb(40 20 5 / 0.6), inset 0 0 40px rgb(0 0 0 / 0.45);
}
.final h2 { font-family: 'Cabin Sketch', 'Caveat', cursive; font-weight: 400; letter-spacing: 0; color: var(--tiza-amarilla); font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem); }
.final p { max-width: 36ch; margin: 0 auto 24px; font-family: 'Caveat', cursive; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.25; }

.cinta-ejemplo { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; padding: 9px 14px; background: var(--tiza-amarilla); color: #1f2723; font-size: var(--t-s); font-weight: 700; }
.cinta-ejemplo a { color: inherit; }

/* ── Panel: marco ────────────────────────────────────────────────────────────────────────────────────── */
.lateral-local { display: flex; flex-direction: column; gap: 1px; padding: 4px 10px 14px; margin-bottom: 10px; border-bottom: 1px solid var(--linea); }
.lateral-local strong { font-family: var(--f-titulos); font-weight: 780; font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.lateral-local .tenue { font-size: var(--t-s); }
.lateral-local-tipo { font-size: 0.68rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acento-texto); }
.lateral-cambiar, .lateral-otro { display: inline-flex !important; align-items: center; gap: 4px; margin-top: 8px; padding: 4px 0 !important; border: 0; background: none; color: var(--texto-2) !important; font-size: var(--t-xs) !important; font-weight: 650; cursor: pointer; }
.lateral-cambiar:hover, .lateral-otro:hover { color: var(--texto) !important; background: none !important; text-decoration: underline; }
.pie-lateral { display: flex; flex-direction: column; gap: 6px; }
.direccion-carta { padding: 0 10px; font-family: var(--f-datos); font-size: 0.7rem; color: var(--texto-3); overflow-wrap: anywhere; }
.pie-lateral .etiqueta { align-self: flex-start; margin-left: 10px; }
.migas-volver { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--texto-2); font-size: var(--t-s); font-weight: 650; text-decoration: none; }
.migas-volver:hover { color: var(--texto); }
button.enlace { padding: 0; border: 0; background: none; color: var(--acento-texto); font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* Mesa de trabajo: editor + móvil */
.panel > .principal.principal-mesa { padding-top: clamp(16px, 2vw, 28px); }
.mesa { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.mesa-editor { min-width: 0; }
.mesa-previa { position: sticky; top: calc(var(--barra-alto) + 16px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mesa-previa .movil { height: min(760px, calc(100dvh - var(--barra-alto) - 90px)); }
.previa-cabeza { display: flex; justify-content: space-between; align-items: center; width: 384px; max-width: 100%; color: var(--texto-2); font-size: var(--t-s); font-weight: 650; }
.previa-cabeza span, .previa-cabeza a { display: inline-flex; align-items: center; gap: 6px; }
.pestanas-mesa { display: none; margin-bottom: 14px; }
@media (max-width: 1240px) {
  .mesa { grid-template-columns: minmax(0, 1fr); }
  .mesa-previa { display: none; position: static; }
  .pestanas-mesa { display: inline-flex; }
  .mesa[data-vista='ver'] .mesa-previa { display: flex; }
  .mesa[data-vista='ver'] .mesa-editor > :not(.cabecera):not(.pestanas-mesa) { display: none; }
}
.ayuda-mesa { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 14px; }
.avisos-carta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.avisos-carta:empty { display: none; }
.aviso .boton { margin-top: 8px; }

/* Secciones y platos del editor */
.ed-secciones { display: flex; flex-direction: column; gap: 16px; }
.ed-seccion { border: 1px solid var(--linea); border-radius: var(--radio-l); background: var(--superficie); box-shadow: var(--sombra-1); }
.ed-seccion.arrastrando { outline: 2px solid var(--acento); box-shadow: var(--sombra-3); }
.ed-seccion-cabeza { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 4px; border-bottom: 1px solid var(--linea); }
.ed-seccion-titulo { flex: 1; min-width: 0; }
.ed-seccion-titulo h2 { margin: 0; font-size: 1.12rem; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.ed-seccion-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: var(--t-xs); color: var(--texto-3); }
.asa { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 40px; border: 0; border-radius: 7px; background: none; color: var(--texto-3); cursor: grab; touch-action: none; }
.asa:hover { background: var(--superficie-2); color: var(--texto); }
.ed-platos { list-style: none; margin: 0; padding: 0; }
.ed-plato { display: flex; align-items: center; gap: 6px; padding: 6px 10px 6px 4px; border-top: 1px solid var(--linea); background: var(--superficie); }
.ed-plato:first-child { border-top: 0; }
.ed-plato:last-child { border-radius: 0 0 var(--radio-l) var(--radio-l); }
.ed-plato-principal { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px 6px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; }
.ed-plato-principal:hover { background: var(--superficie-2); }
.ed-mini { flex-shrink: 0; width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.ed-mini.sin { display: grid; place-items: center; background: var(--superficie-2); color: var(--texto-3); }
.ed-plato-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ed-plato-texto > strong { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-plato-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; font-size: var(--t-xs); }
.ed-alergenos { display: inline-flex; align-items: center; gap: 2px; }
.ed-alergenos .al { width: 18px; height: 18px; }
.ed-plato-precio { flex-shrink: 0; max-width: 34%; color: var(--texto-2); font-size: var(--t-s); font-variant-numeric: tabular-nums; text-align: right; }
.ed-hay { flex-shrink: 0; width: 112px; font-size: var(--t-xs); font-weight: 700; }
.ed-plato.agotado .ed-plato-texto > strong { text-decoration: line-through; color: var(--texto-3); }
.ed-plato.agotado .ed-hay-texto { color: var(--error); }
.ed-plato.oculto { background: repeating-linear-gradient(-45deg, var(--superficie) 0 9px, var(--superficie-2) 9px 10px); }
.ed-plato.oculto .ed-plato-principal { opacity: 0.62; }
.ed-flechas { display: none; gap: 4px; flex-shrink: 0; }
.editor.ordenando .ed-flechas { display: flex; }
.editor.ordenando .ed-hay, .editor.ordenando .ed-mas, .editor.ordenando .ed-plato-precio { display: none; }
.editor.ordenando .ed-flechas .boton { width: 44px; min-width: 44px; min-height: 44px; }
.ed-plato.arrastrando { position: relative; z-index: 3; border-radius: 10px; outline: 2px solid var(--acento); box-shadow: var(--sombra-3); }
body.ordenando-ahora { cursor: grabbing; user-select: none; -webkit-user-select: none; }
body.ordenando-ahora .ed-platos:empty { min-height: 54px; margin: 6px; border: 2px dashed var(--linea-fuerte); border-radius: 10px; }
.ed-vacia { display: none; margin: 0; padding: 14px 16px; font-size: var(--t-s); color: var(--texto-3); }
.ed-platos:empty + .ed-vacia { display: block; }
.nueva-seccion { margin-top: 16px; min-height: 52px; border-style: dashed; background: transparent; box-shadow: none; }
@media (max-width: 640px) {
  .ed-plato-precio { display: none; }
  .ed-hay { width: auto; }
  .ed-hay .ed-hay-texto { display: none; }
  .ed-seccion-cabeza .boton.suave { padding: 5px 9px; }
}

/* Hoja de un plato */
.form-plato { gap: 20px; }
.plato-dos { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 720px) { .plato-dos { grid-template-columns: minmax(0, 1fr); } }
.campo > .etiqueta { padding: 0; border: 0; background: none; font-size: var(--t-s); font-weight: 600; color: var(--texto); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.precios-filas { display: flex; flex-direction: column; gap: 6px; }
.precio-fila { display: flex; align-items: center; gap: 6px; }
.precio-fila .precio-etiqueta { flex: 1 1 40%; min-width: 0; }
.precio-importe { position: relative; flex: 0 0 128px; display: flex; align-items: center; }
.precio-importe input { padding-right: 30px !important; text-align: right; font-variant-numeric: tabular-nums; }
.precio-importe > span { position: absolute; right: 12px; color: var(--texto-3); pointer-events: none; }
.foto-caja, .logo-caja { display: flex; align-items: flex-start; gap: 14px; }
.foto-previa, .logo-previa { flex-shrink: 0; width: 92px; height: 92px; border: 1px solid var(--linea); border-radius: 14px; background: var(--superficie-2); object-fit: cover; }
.logo-previa { object-fit: contain; }
.foto-previa.sin, .logo-previa.sin { display: grid; place-items: center; color: var(--texto-3); }
.selector-alergenos fieldset { margin: 0; }
.selector-alergenos legend { margin-bottom: 8px; font-weight: 650; font-size: var(--t-s); }
.rejilla-al { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 6px; }
.al-boton {
  display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 10px; border: 1.5px solid var(--linea-fuerte); border-radius: 11px;
  background: var(--superficie); color: var(--texto-2); text-align: left; font-size: var(--t-s); font-weight: 600; line-height: 1.15;
  transition: border-color var(--rapido), background var(--rapido);
}
.al-boton .al { width: 26px; height: 26px; filter: saturate(0.35); opacity: 0.75; transition: filter var(--rapido), opacity var(--rapido); }
.al-boton[aria-pressed='true'] { border-color: var(--texto); background: var(--superficie-2); color: var(--texto); box-shadow: inset 0 0 0 1px var(--texto); }
.al-boton[aria-pressed='true'] .al { filter: none; opacity: 1; }
.trazas .al-boton[aria-pressed='true'] { border-style: dashed; box-shadow: none; }
.al-boton:disabled { opacity: 0.35; }
.trazas-caja { margin-top: 12px; }
.trazas-caja summary { font-weight: 650; font-size: var(--t-s); padding: 6px 0; }
.trazas-caja .ayuda { margin: 0 0 8px; font-size: var(--t-xs); color: var(--texto-3); }
.casilla.ninguno { margin-top: 12px; padding: 12px 14px; border-radius: 11px; background: var(--ok-suave); }
.casilla.ninguno[hidden] { display: none; }
.chips-etiquetas { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-et { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 4px 13px; border: 1px solid var(--linea-fuerte); border-radius: 99px; background: var(--superficie); color: var(--texto-2); font-size: var(--t-s); font-weight: 600; }
.chip-et[aria-pressed='true'] { background: var(--texto); color: var(--fondo); border-color: transparent; }
.traducciones summary { gap: 8px; justify-content: flex-start; }
.traduccion { display: grid; gap: 6px; }
.etiqueta-idioma { margin: 6px 0 0; font-size: var(--t-xs); font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-3); }
.traduccion input, .traduccion textarea, .curso-plato input, .horario-fila input, .mesas-rango input, .menu-cuando input {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--linea-fuerte); border-radius: var(--radio); background: var(--superficie);
  color: var(--texto); font-size: max(16px, var(--t-m)); appearance: none; -webkit-appearance: none;
}
.traduccion textarea { min-height: 70px; resize: vertical; }
.traduccion input:focus, .traduccion textarea:focus, .curso-plato input:focus, .horario-fila input:focus, .mesas-rango input:focus, .menu-cuando input:focus { outline: none; border-color: var(--acento); box-shadow: var(--foco); }
.horario-fila input[type='time'], .menu-cuando input[type='time'] { font-family: var(--f-datos); width: auto; }

/* Modo servicio */
.vista-servicio .columnas { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); }
@media (max-width: 1100px) { .vista-servicio .columnas { grid-template-columns: minmax(0, 1fr); } }
.servicio .buscador { margin-bottom: 4px; }
.servicio-lista section { margin-top: 18px; }
.servicio-lista h2 { margin: 0 0 8px; font-size: var(--t-xs); font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-3); }
.servicio-lista ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.servicio-plato {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 62px; padding: 10px 12px 10px 16px;
  border: 1.5px solid var(--linea-fuerte); border-radius: 15px; background: var(--superficie); color: var(--texto); text-align: left; font-size: 1.02rem; font-weight: 650;
  transition: background var(--rapido), border-color var(--rapido);
}
.servicio-estado { flex-shrink: 0; padding: 4px 12px; border-radius: 99px; background: var(--ok-suave); color: var(--ok); font-size: 0.84rem; font-weight: 800; }
.servicio-plato[aria-pressed='true'] { background: var(--error-suave); border-color: color-mix(in oklab, var(--error) 40%, transparent); }
.servicio-plato[aria-pressed='true'] .servicio-nombre { text-decoration: line-through; color: var(--texto-2); }
.servicio-plato[aria-pressed='true'] .servicio-estado { background: var(--error); color: #fff; }
.servicio-suelto { max-width: 960px; margin: 0 auto; }
.enlace-servicio { display: flex; flex-direction: column; gap: 12px; }
.enlace-servicio h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--t-l); }

/* Repaso de alérgenos */
.contador-repaso { margin: 0 0 12px; color: var(--texto-2); }
.tabla-repaso { max-height: calc(100dvh - 260px); min-height: 320px; overflow: auto; }
.tabla-alergenos { border-collapse: separate; border-spacing: 0; font-size: var(--t-s); }
.tabla-alergenos thead th { position: sticky; top: 0; z-index: 2; padding: 10px 3px 8px; border-bottom: 1px solid var(--linea); background: var(--superficie); vertical-align: bottom; }
.tabla-alergenos thead th:first-child { left: 0; z-index: 3; text-align: left; padding-left: 14px; }
.tabla-alergenos .col-al { width: 48px; }
.col-al .al { width: 26px; height: 26px; margin: 0 auto 6px; }
.col-al span { display: inline-block; max-height: 130px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.72rem; font-weight: 650; color: var(--texto-2); white-space: nowrap; }
.tabla-alergenos tbody th { position: sticky; left: 0; z-index: 1; min-width: 170px; max-width: 260px; padding: 6px 12px 6px 14px; border-bottom: 1px solid var(--linea); background: var(--superficie); text-align: left; font-weight: 600; }
.tabla-alergenos td { padding: 3px; border-bottom: 1px solid var(--linea); text-align: center; }
.tabla-alergenos .fila-seccion th { padding: 9px 14px; background: var(--superficie-2); font-size: var(--t-xs); font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; color: var(--texto-3); }
.tabla-alergenos tr.pendiente .nombre-fila::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--atencion); vertical-align: 1px; }
.celda-al { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--linea); border-radius: 9px; background: var(--superficie); cursor: pointer; }
.celda-al:hover { border-color: var(--linea-fuerte); }
.celda-al[data-estado='lleva'] { border-color: var(--texto-2); background: var(--superficie-2); }
.celda-al[data-estado='lleva'] .celda-marca, .muestra.lleva { width: 16px; height: 16px; border-radius: 50%; background: var(--texto); }
.celda-al[data-estado='trazas'] .celda-marca, .muestra.trazas { width: 16px; height: 16px; border-radius: 50%; border: 2px dashed var(--texto); }
.muestra { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-inline: 2px; }
.celda-confirmar { padding: 4px 10px !important; white-space: nowrap; }

/* Menú del día */
.menus { display: flex; flex-direction: column; gap: 20px; }
.menu-cabeza { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.menu-nombre { flex: 1 1 220px; }
.menu-precio { flex: 0 0 140px; }
.menu-precio .precio-importe { flex: 1; }
.menu-activo { margin-bottom: 10px; }
.menu-cuando { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 16px; }
.dias { display: flex; flex-wrap: wrap; gap: 4px; }
.dia-boton { width: 44px; height: 44px; border: 1.5px solid var(--linea-fuerte); border-radius: 50%; background: var(--superficie); color: var(--texto-2); font-weight: 800; }
.dia-boton[aria-pressed='true'] { background: var(--texto); color: var(--fondo); border-color: transparent; }
.horas { gap: 8px; }
.cursos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
@media (max-width: 1180px) { .cursos { grid-template-columns: minmax(0, 1fr); } }
.curso { padding: 12px; border-radius: var(--radio-l); background: var(--superficie-2); }
.curso h3 { margin: 0 0 8px; font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-3); }
.curso-platos { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.curso-plato { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 6px; padding: 6px; border: 1px solid var(--linea); border-radius: 11px; background: var(--superficie); }
.curso-plato input { grid-column: 1 / -1; }
.al-resumen { justify-self: start; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; box-shadow: none; }
.al-resumen .al { width: 18px; height: 18px; }
.curso-botones { display: flex; justify-self: end; }
.menu-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linea); }
.sin-guardar { margin-right: auto; color: var(--atencion); font-size: var(--t-xs); font-weight: 750; }

/* QR e impresos */
.impresos .tarjeta { display: flex; flex-direction: column; gap: 10px; }
.impresos .tarjeta h2 { margin: 0; font-size: var(--t-l); }
.qr-grande { display: grid; place-items: center; }
.mesas-rango label { display: flex; align-items: center; gap: 8px; font-size: var(--t-s); font-weight: 600; }
.mesas-rango input { width: 88px; }
.cartel-mini { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 148 / 210; width: 132px; margin: 4px auto 6px; padding: 10px; border: 9px solid #7a4b26; border-radius: 4px; background: var(--pizarra) var(--tiza-fondo); box-shadow: 0 10px 20px -10px rgb(0 0 0 / 0.5); }
.tiza-mini { font-family: 'Caveat', cursive; font-size: 1.15rem; line-height: 1; text-align: center; color: var(--tiza); }
.cartel-mini-qr { width: 54px; height: 54px; border: 5px solid #fbf8f0; background: repeating-conic-gradient(var(--pizarra) 0 25%, #fbf8f0 0 50%) 0 0 / 11px 11px; transform: rotate(3deg); }

/* Vistas de impresión */
.barra-impresion { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px clamp(12px, 3vw, 24px); border-bottom: 1px solid var(--linea); background: var(--superficie); box-shadow: var(--sombra-1); }
.barra-impresion-titulo { font-family: var(--f-titulos); letter-spacing: -0.02em; }
.barra-impresion-opciones { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.opciones-impresion { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--linea); border-radius: 10px; background: var(--superficie-2); }
.opciones-impresion a { padding: 6px 11px; border-radius: 7px; color: var(--texto-2); font-size: var(--t-s); font-weight: 650; text-decoration: none; }
.opciones-impresion a.activa { background: var(--superficie); color: var(--texto); box-shadow: var(--sombra-1); }
.ayuda-impresion { max-width: 760px; margin: 16px auto 0; padding: 0 16px; color: var(--texto-2); font-size: var(--t-s); text-align: center; }
.hojas { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 24px 12px 64px; }
.hoja { position: relative; overflow: hidden; background: #fff; color: #111; box-shadow: 0 12px 34px rgb(0 0 0 / 0.28); font-family: var(--f-texto); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media screen and (max-width: 840px) { .hoja-mesas, .hoja-ficha, .hoja-carta { zoom: 0.46; } .hoja-cartel { zoom: 0.62; } }

.hoja-mesas { display: grid; grid-template-columns: 1fr 1fr; width: 194mm; height: 281mm; }
.hoja-mesas.n4 { grid-template-rows: repeat(2, 1fr); }
.hoja-mesas.n6 { grid-template-rows: repeat(3, 1fr); }
.hoja-mesas.n8 { grid-template-rows: repeat(4, 1fr); }
.celda { container-type: size; display: grid; place-items: center; outline: 0.25mm dashed #b5b5b5; outline-offset: -0.125mm; }
.m-nombre, .m-mesa, .m-texto, .m-url { margin: 0; text-align: center; }
.m-nombre { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: 'Archivo', sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.m-mesa { font-family: 'Archivo', sans-serif; font-weight: 900; line-height: 1; color: var(--acento); letter-spacing: -0.02em; }
.m-texto { font-weight: 700; line-height: 1.15; }
.m-url { font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; color: #555; }
.m-qr svg { display: block; }
.pegatina { position: relative; display: grid; place-items: center; width: min(86cqw, 86cqh); aspect-ratio: 1; border: 1.3mm solid var(--acento); border-radius: 50%; background: #fff; }
.pegatina::after { content: ''; position: absolute; inset: -2.4mm; border: 0.3mm dashed #9a9a9a; border-radius: 50%; }
.pegatina-dentro { display: flex; flex-direction: column; align-items: center; gap: 1.1cqmin; width: 70%; }
.pegatina .m-nombre { font-size: 5.6cqmin; }
.pegatina .m-qr svg { width: 37cqmin; height: 37cqmin; }
.pegatina .m-mesa { font-size: 8cqmin; }
.pegatina .m-texto { font-size: 3.3cqmin; }
.pegatina .m-url { font-size: 2.5cqmin; }
.hoja-mesas.redonda .celda { outline: 0; }
.tarjeta-pie { display: grid; grid-template-rows: 1fr 1fr; width: 100%; height: 100%; }
.mitad { container-type: size; display: grid; place-items: center; border-bottom: 1.6mm solid var(--acento); }
.mitad.reves { transform: rotate(180deg); }
.mitad + .mitad { border-top: 0.3mm dashed #8a8a8a; }
.mitad-dentro { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: auto; align-items: center; column-gap: 5cqw; row-gap: 1.5cqh; width: 88cqw; }
.mitad-dentro .m-qr { grid-row: 1 / span 4; }
.mitad-dentro .m-qr svg { width: min(66cqh, 36cqw); height: min(66cqh, 36cqw); }
.mitad-dentro .m-nombre, .mitad-dentro .m-mesa, .mitad-dentro .m-texto, .mitad-dentro .m-url { text-align: left; }
.mitad .m-nombre { font-size: min(10cqh, 6cqw); }
.mitad .m-mesa { font-size: min(17cqh, 9cqw); }
.mitad .m-texto { font-size: min(7cqh, 4cqw); }
.mitad .m-url { font-size: min(5cqh, 3cqw); }

.hoja-cartel { width: 148mm; height: 210mm; }
.cartel-marco { position: absolute; inset: 0; padding: 7mm; background: var(--madera); }
.cartel-tabla {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.6mm; height: 100%; padding: 9mm 8mm; text-align: center;
  background: var(--pizarra) var(--tiza-fondo); color: var(--tiza); box-shadow: inset 0 0 12mm rgb(0 0 0 / 0.5);
}
.cartel-ante { margin: 0; font-family: 'Caveat', cursive; font-size: 25pt; line-height: 1; color: var(--tiza-amarilla); }
.cartel-nombre { margin: 0; font-family: 'Cabin Sketch', 'Caveat', cursive; font-weight: 400; font-size: 33pt; line-height: 1; letter-spacing: 0; overflow-wrap: anywhere; }
.cartel-ciudad { margin: 0; font-family: 'Caveat', cursive; font-size: 16pt; opacity: 0.85; }
.cartel-papel { position: relative; margin: 4mm 0 3mm; padding: 4mm; background: #fbf8f0; transform: rotate(-2deg); box-shadow: 0 2mm 5mm rgb(0 0 0 / 0.45); }
.cartel-qr svg { display: block; width: 56mm; height: 56mm; }
.cinta { position: absolute; top: -3mm; width: 18mm; height: 7mm; background: rgb(238 224 172 / 0.85); }
.cinta.izq { left: -5mm; transform: rotate(-32deg); }
.cinta.der { right: -5mm; transform: rotate(32deg); }
.cartel-instruccion { margin: 0; font-family: 'Caveat', cursive; font-size: 22pt; line-height: 1.05; }
.cartel-detalle { margin: 0; font-size: 9.5pt; opacity: 0.88; }
.cartel-url { margin: 2mm 0 0; font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; font-size: 9.5pt; color: var(--tiza-azul); }
.hoja-cartel.papel .cartel-marco { padding: 8mm; background: #fff; }
.hoja-cartel.papel .cartel-tabla { background: #fffdf8; color: #1d1b18; border: 0.8mm solid #1d1b18; outline: 0.3mm solid #1d1b18; outline-offset: -2.2mm; box-shadow: none; }
.hoja-cartel.papel .cartel-ante { color: #ac4127; text-shadow: none; }
.hoja-cartel.papel .cartel-nombre { text-shadow: none; -webkit-mask-image: none; mask-image: none; font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.hoja-cartel.papel .cartel-url { color: #555; }
.hoja-cartel.papel .cartel-papel { box-shadow: none; transform: none; border: 0.3mm solid #ccc; }
.hoja-cartel.papel .cinta { display: none; }

.hoja-carta { width: 210mm; min-height: 297mm; padding: 12mm; }
.hoja-carta .carta { font-size: 10.5pt; }
.papel-qr { display: flex; align-items: center; gap: 6mm; margin-top: 6mm; padding-top: 4mm; border-top: 0.3mm solid #bbb; break-inside: avoid; }
.papel-qr svg { display: block; width: 24mm; height: 24mm; }
.papel-qr p { display: flex; flex-direction: column; margin: 0; font-size: 9.5pt; }
.papel-qr span { color: #555; }

.hoja-ficha { width: 279mm; min-height: 192mm; padding: 9mm; }
.ficha-cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; padding-bottom: 3mm; border-bottom: 0.6mm solid #111; }
.ficha-cabeza h1 { margin: 0; font-family: 'Archivo', sans-serif; font-size: 19pt; letter-spacing: -0.02em; color: #111; }
.ficha-cabeza p { margin: 1mm 0 0; font-size: 10pt; }
.ficha-fecha { display: flex; flex-direction: column; align-items: flex-end; font-size: 8.5pt; color: #444; }
.ficha-leyenda { margin: 2.5mm 0 3mm; font-size: 8pt; color: #333; }
table.ficha { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8.5pt; }
.ficha th, .ficha td { padding: 1mm 1.4mm; border: 0.25mm solid #9a9a9a; }
.ficha .ficha-plato { width: 26%; text-align: left; vertical-align: bottom; }
.ficha-al-caja { display: flex; flex-direction: column; align-items: center; gap: 1mm; }
.ficha-al-caja .al { width: 6mm; height: 6mm; }
.ficha-al-caja span { font-size: 6.4pt; line-height: 1.1; text-align: center; font-weight: 700; overflow-wrap: anywhere; }
.ficha tbody th { text-align: left; font-weight: 600; }
.ficha tbody th small { font-weight: 400; color: #666; }
.ficha td { text-align: center; }
.punto-al { font-size: 11pt; line-height: 1; color: var(--al, #111); }
.traza-al { font-size: 8pt; font-weight: 800; }
.ficha .fila-seccion th { background: #ececec; font-size: 7.5pt; letter-spacing: 0.06em; text-transform: uppercase; }
.ficha tr { break-inside: avoid; }
.celda-sin { color: #9a3a22; font-size: 7.5pt; font-weight: 800; letter-spacing: 0.03em; }
.ficha-firma { display: flex; flex-wrap: wrap; gap: 4mm 10mm; margin-top: 7mm; font-size: 9pt; }
.ficha-firma p { margin: 0; }
.linea-firma { display: inline-block; width: 58mm; margin-left: 2mm; border-bottom: 0.3mm solid #111; }
.linea-firma.corta { width: 30mm; }
.ficha-nota { margin: 3mm 0 0; font-size: 7.5pt; color: #555; }

/* Números */
.cifras-numeros { margin-bottom: 16px; }
.cifras-numeros .tarjeta { padding: 16px; }
.grafico-tarjeta { margin-bottom: 16px; }
.vista-numeros .tarjeta h2 { font-size: var(--t-l); }
.numeros-dos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 960px) { .numeros-dos { grid-template-columns: minmax(0, 1fr); } }
.horas-barras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.horas-barras li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 44px; align-items: center; gap: 8px; font-size: var(--t-xs); }
.hora-etiqueta { color: var(--texto-3); font-family: var(--f-datos); }
.hora-barra, .barra-fina { height: 10px; overflow: hidden; border-radius: 99px; background: var(--superficie-2); }
.barra-fina { height: 8px; }
.hora-barra > span, .barra-fina > span { display: block; width: var(--v); height: 100%; border-radius: inherit; background: var(--acento); }
.hora-n, .lista-barras .num, .platos-mirados .num { color: var(--texto-2); font-variant-numeric: tabular-nums; text-align: right; }
.lista-barras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lista-barras li { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1.3fr) 60px; align-items: center; gap: 10px; font-size: var(--t-s); }
.con-icono { display: inline-flex; align-items: center; gap: 6px; }
.platos-mirados { list-style: none; margin: 0; padding: 0; }
.platos-mirados li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--linea); }
.platos-mirados li:first-child { border-top: 0; }
.platos-mirados img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.platos-mirados .barra-fina { width: 28%; flex-shrink: 0; }
.platos-mirados .num { width: 44px; }

/* Local */
.mesa-ajustes .tarjeta.ajuste h2 { font-size: var(--t-l); }
.horario-filas { display: flex; flex-direction: column; margin-bottom: 14px; }
.horario-fila { display: grid; grid-template-columns: 92px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linea); }
.horario-fila.cerrado .horario-dia { color: var(--texto-3); }
.horario-dia { font-weight: 650; }
.horario-tramos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tramo { display: inline-flex; align-items: center; gap: 5px; }
.tramo input { width: 116px !important; }
.copiar-dia { color: var(--texto-3); }
@media (max-width: 640px) {
  .horario-fila { grid-template-columns: minmax(0, 1fr) auto; }
  .horario-tramos, .horario-fila > .tenue { grid-column: 1 / -1; }
  .copiar-dia { grid-column: 1 / -1; justify-self: start; }
}
.temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tema-boton { display: flex; flex-direction: column; gap: 3px; padding: 8px 8px 10px; border: 1.5px solid var(--linea-fuerte); border-radius: 14px; background: var(--superficie); color: var(--texto); text-align: left; }
.tema-boton strong { font-size: var(--t-s); }
.tema-boton > span:last-child { font-size: var(--t-xs); color: var(--texto-3); line-height: 1.3; }
.tema-boton[aria-pressed='true'] { border-color: var(--acento); box-shadow: 0 0 0 2px var(--acento); }
.tema-muestra { display: flex; flex-direction: column; gap: 6px; height: 74px; margin-bottom: 6px; padding: 12px; overflow: hidden; border-radius: 9px; }
.tm-titulo { width: 58%; height: 10px; border-radius: 3px; }
.tm-linea { width: 88%; height: 5px; border-radius: 3px; }
.tm-linea.corta { width: 54%; }
.tema-muestra[data-tema='pizarra'] { background: var(--pizarra) var(--tiza-fondo); box-shadow: inset 0 0 0 4px #7d4c26; }
.tema-muestra[data-tema='pizarra'] .tm-titulo { background: var(--tiza-amarilla); }
.tema-muestra[data-tema='pizarra'] .tm-linea { background: rgb(243 240 230 / 0.7); }
.tema-muestra[data-tema='mantel'] { padding: 14px 24px; background: linear-gradient(#fffdf8, #fffdf8) center / 72% 70% no-repeat, linear-gradient(90deg, rgb(179 38 30 / 0.45) 50%, transparent 50%) 0 0 / 14px 14px, linear-gradient(rgb(179 38 30 / 0.45) 50%, #fff 50%) 0 0 / 14px 14px; }
.tema-muestra[data-tema='mantel'] .tm-titulo { background: #b3261e; }
.tema-muestra[data-tema='mantel'] .tm-linea { background: #2a2421; }
.tema-muestra[data-tema='tasca'] { align-items: center; background: #f4ecd9 var(--papel-fondo); outline: 3px double rgb(43 33 24 / 0.4); outline-offset: -6px; }
.tema-muestra[data-tema='tasca'] .tm-titulo { background: #7b2d26; }
.tema-muestra[data-tema='tasca'] .tm-linea { background: rgb(43 33 24 / 0.5); }
.tema-muestra[data-tema='moderno'] { background: #fff; border: 1px solid #ddd; }
.tema-muestra[data-tema='moderno'] .tm-titulo { background: #0e0e0e; }
.tema-muestra[data-tema='moderno'] .tm-linea { background: #bdbdbd; }
.tema-muestra[data-tema='chiringuito'] { padding-top: 28px; background: repeating-linear-gradient(90deg, #1c5fa8 0 12px, #fff 12px 24px) top / 100% 18px no-repeat, #eaf3fa; }
.tema-muestra[data-tema='chiringuito'] .tm-titulo { background: #1c5fa8; }
.tema-muestra[data-tema='chiringuito'] .tm-linea { background: #44627e; }
.acentos { display: flex; flex-wrap: wrap; gap: 10px; }
.acento-boton { width: 40px; height: 40px; border: 3px solid var(--superficie); border-radius: 50%; background: var(--muestra); box-shadow: 0 0 0 1.5px var(--linea-fuerte); }
.acento-boton[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--texto); }
.idiomas-elegir { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.invitacion-hecha { margin-top: 12px; }
.gente .lista { margin-bottom: 12px; }

/* Alta */
.alta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 5vw, 64px); align-items: start; max-width: 1080px; margin: 0 auto; }
.alta h1 { font-size: var(--t-3xl); line-height: 1.02; }
.alta-pasos h2 { font-size: var(--t-xl); margin-bottom: 4px; }
.alta-pizarra { position: sticky; top: calc(var(--barra-alto) + 24px); }
.alta-pizarra .pizarra-marco { transform: rotate(1.2deg); }
@media (max-width: 860px) { .alta { grid-template-columns: minmax(0, 1fr); } .alta-pizarra { position: static; order: -1; width: min(100%, 420px); } .alta-pizarra .pizarra-tabla { min-height: 170px; } }
.tipos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tipo { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border: 1.5px solid var(--linea-fuerte); border-radius: 12px; background: var(--superficie); font-weight: 650; cursor: pointer; }
.tipo input { position: absolute; opacity: 0; pointer-events: none; }
.tipo:has(input:checked) { border-color: var(--acento); background: var(--acento-suave); color: var(--acento-texto); }
.tipo:has(input:focus-visible) { box-shadow: var(--foco); }
.opciones-grandes { display: flex; flex-direction: column; gap: 10px; }
.opcion-grande { display: flex; gap: 12px; padding: 16px; border: 1.5px solid var(--linea-fuerte); border-radius: 14px; background: var(--superficie); cursor: pointer; }
.opcion-grande input { accent-color: var(--acento); width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.opcion-grande > span { display: flex; flex-direction: column; gap: 4px; }
.opcion-grande > span > span { color: var(--texto-2); font-size: var(--t-s); }
.opcion-grande:has(input:checked) { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento); }

/* Mis locales */
.locales { list-style: none; margin: 0; padding: 0; }
.local-tarjeta { display: flex !important; flex-direction: column; gap: 4px; height: 100%; }
.local-tipo { font-size: var(--t-xs); font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acento-texto); }
.local-tarjeta strong { font-family: var(--f-titulos); font-size: var(--t-xl); letter-spacing: -0.02em; }
.local-cifras { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; color: var(--texto-2); font-size: var(--t-s); }
.local-tarjeta .etiqueta { align-self: flex-start; margin-top: 6px; }

/* Páginas de texto */
.pagina-texto { max-width: 820px; margin: 0 auto; }
.pagina-cabeza h1 { font-size: var(--t-3xl); line-height: 1.02; }
.indice { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 30px; }
.indice a { padding: 6px 13px; border-radius: 99px; background: var(--superficie-2); color: var(--texto-2); font-size: var(--t-s); font-weight: 600; text-decoration: none; }
.indice a:hover { color: var(--texto); }
.prosa h2 { scroll-margin-top: 84px; }
.prosa .aviso { margin: 18px 0; }
.lista-catorce { list-style: none; display: grid; gap: 8px; padding: 0 !important; }
.lista-catorce li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; margin: 0; border: 1px solid var(--linea); border-radius: 12px; background: var(--superficie); }
.lista-catorce .al { width: 34px; height: 34px; }
.lista-catorce div { display: flex; flex-direction: column; }
.lista-catorce span { color: var(--texto-2); font-size: var(--t-s); }
.fuentes li { overflow-wrap: anywhere; }

/* ── Impresión ───────────────────────────────────────────────────────────────────────────────────────── */
@media print {
  body[data-modo='imprimir'] { background: #fff; }
  .no-imprimir, .barra-impresion, .ayuda-impresion { display: none !important; }
  .hojas { display: block; padding: 0; }
  .hoja { margin: 0; box-shadow: none; break-after: page; zoom: 1 !important; }
  .hoja:last-child { break-after: auto; }
  .hoja-carta, .hoja-ficha { width: auto; min-height: 0; padding: 0; }
}
