/* Alergix. Matière : le tableau d'allergènes affiché au mur d'un bar, ses colonnes numérotées 1 à 14 sur fond azulejo
 * bleu cobalt, ses lignes zébrées. Fond blanc, encre bleu-noir, aplats cobalt sur les numéros, ronds pleins et anneaux
 * comme sur le document imprimé. Police unique : Instrument Sans (OFL), largeur variable (le condensé sert aux titres,
 * comme sur le PDF). Lecteur : un patron de bar sur son téléphone, entre deux services ; corps 17 px. */
@font-face { font-family: "Instrument Sans"; src: url("/statique/polices/instrument-sans.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --azul: #1a3b8c; --azul-2: #234aa8; --azul-pale: #e8eefa; --tinta: #121724; --doux: #535c6e; --filet: #c9d1e0;
  --cebra: #f1f4fa; --blanc: #fff; --rojo: #b3261e; --rojo-pale: #fbeae8; --ok: #1f6b45;
  --r: 6px; --l: 1180px;
}
* { box-sizing: border-box; touch-action: manipulation; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-bottom: 96px; /* un champ au focus ne reste pas sous .barra */ }
body {
  margin: 0; font-family: "Instrument Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.5; color: var(--tinta);
  background: var(--blanc); text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased;
  min-height: 100svh; display: flex; flex-direction: column;
  overflow-wrap: break-word;  /* un nom de plat ou de bar sans espace passe à la ligne partout (kit 04/12 : liste, achat, page du QR) */
}
button, a, .marca, .num { -webkit-tap-highlight-color: transparent; }
button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Chromium donne aux champs et boutons text-rendering: auto ; ils héritent du corps (kit, police-champ 04/12) */
button, input, select, textarea { font: inherit; letter-spacing: inherit; word-spacing: inherit; text-rendering: inherit; font-feature-settings: inherit; }
a { color: var(--azul); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
/* titres étroits : espaces élargis, aucune lettre resserrée (porte 3 du 05/12 : mots collés à la lecture) */
h1, h2, h3 { line-height: 1.1; color: var(--tinta); margin: 0 0 .5em; word-spacing: .07em; }
h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; font-stretch: 80%; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; font-stretch: 80%; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 1em; }
.l { max-width: var(--l); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
:focus-visible { outline: 3px solid var(--azul-2); outline-offset: 2px; }
.borrador { background: var(--tinta); color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 6px 12px; }

/* ------------------------------------------------------------------ haut et pied */
.haut { border-bottom: 3px solid var(--azul); background: var(--blanc); }
.haut .l { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { font-weight: 700; font-stretch: 75%; font-size: 27px; letter-spacing: 0; color: var(--azul); text-decoration: none; line-height: 1; }
.haut nav { display: flex; gap: 2px; margin-left: auto; }
.haut nav a { text-decoration: none; padding: 0 12px; font-weight: 600; color: var(--tinta); min-height: 44px; display: inline-flex; align-items: center; }
.haut nav a[aria-current] { color: var(--azul); box-shadow: inset 0 -3px 0 var(--azul); }
main { flex: 1 0 auto; }
.pied { margin-top: 88px; background: var(--tinta); color: #cfd6e4; padding: 36px 0 44px; font-size: 15px; }
.pied a { color: #fff; }
.pied .mencion { max-width: 760px; }
.pied .enlaces { display: flex; flex-wrap: wrap; gap: 0 22px; align-items: center; }
.pied .enlaces a { min-height: 44px; display: inline-flex; align-items: center; }
.pied .logo { color: #fff; font-size: 23px; margin-right: 8px; }

/* ------------------------------------------------------------------ boutons */
.boton, .b2 {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: var(--r);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; border: 0; text-align: center; line-height: 1.2;
}
.boton { background: var(--azul); color: #fff; }
.boton:hover { background: var(--azul-2); }
.boton:disabled { background: #e3e8f1; color: #4a5468; cursor: default; }
.b2 { background: var(--blanc); color: var(--azul); border: 1.5px solid var(--azul); min-height: 46px; padding: 0 18px; font-size: 16px; }
.b2:hover { background: var(--azul-pale); }
.b2.borrar { border-color: var(--filet); color: var(--rojo); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 8px 0 20px; }
.error { color: var(--rojo); font-weight: 600; }
.doux { color: var(--doux); }
.peque { font-size: 15px; }

/* ------------------------------------------------------------------ marques (comme sur le PDF) */
.marca { display: inline-block; width: 15px; height: 15px; border-radius: 50%; vertical-align: middle; flex: none; }
.marca.m1 { background: var(--tinta); }
.marca.m2 { border: 2.5px solid var(--tinta); }
.num {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 4px;
  border-radius: 3px; background: var(--azul); color: #fff; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ tableau (accueil, aperçu, page publique) */
.tabla-marco { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--filet); border-radius: var(--r); background: var(--blanc); }
.tabla { border-collapse: collapse; width: 100%; font-size: 15px; }
.tabla-marco[data-fundido] { --fg: 0px; --fd: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fg), #000 calc(100% - var(--fd)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fg), #000 calc(100% - var(--fd)), transparent 100%); }
.tabla.idiomas tbody th { position: static; }
.tabla caption { caption-side: top; text-align: left; padding: 12px 14px 10px; border-bottom: 3px solid var(--azul); }
.tabla caption b { font-size: 21px; font-stretch: 80%; display: block; line-height: 1.1; }
.tabla caption span { color: var(--azul); font-weight: 650; }
.tabla th, .tabla td { padding: 0; }
.tabla thead th { background: var(--blanc); border-bottom: 1px solid var(--filet); padding: 8px 0; vertical-align: bottom; }
.tabla thead th.plato { text-align: left; padding-left: 14px; font-size: 14px; color: var(--doux); font-weight: 600; }
.tabla tbody th { text-align: left; font-weight: 600; padding: 8px 10px 8px 14px; min-width: 150px; max-width: 260px; line-height: 1.25;
  position: sticky; left: 0; background: inherit; z-index: 1; }
.tabla tbody th small { display: block; font-weight: 400; color: var(--doux); font-size: 14px; }
.tabla tbody tr { background: var(--blanc); }
.tabla tbody tr:nth-child(even) { background: var(--cebra); }
.tabla tbody tr { border-bottom: 1px solid var(--filet-2, #e3e8f1); }
.tabla td { text-align: center; width: 34px; min-width: 34px; border-left: 1px solid #e3e8f1; }
.tabla .marca { width: 14px; height: 14px; }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--doux); margin: 12px 2px 0; align-items: center; }
.leyenda span { display: inline-flex; gap: 7px; align-items: center; }
.nombres { columns: 2 220px; column-gap: 28px; list-style: none; padding: 0; margin: 14px 2px 0; font-size: 15px; }
.nombres li { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; break-inside: avoid; }
.nombres .num { min-width: 27px; height: 22px; font-size: 14px; }
/* Téléphone : le tableau tient dans l'écran, sans défilement (Jordi 04/12 : à 390 px les colonnes 7 à 14 étaient
   cachées sans indice ; kit : colonne coupée au bord). 14 colonnes de 18 px, le nom du plat prend le reste. */
@media (max-width: 560px) {
  .tabla { table-layout: fixed; font-size: 14px; }
  .tabla thead th { padding: 6px 0; }
  .tabla thead th.plato { padding-left: 8px; }
  .tabla thead th:not(.plato) { width: 18px; }
  /* sans pastille : collées l'une à l'autre à 18 px, « 10 11 12 » se lisait d'un bloc (porte 3 du 05/12) */
  .tabla thead .num { min-width: 0; width: 100%; height: 24px; padding: 0; font-size: 14px; font-stretch: 78%; background: none; color: var(--azul); }
  .tabla tbody th { min-width: 0; max-width: none; padding: 7px 4px 7px 8px; position: static; font-stretch: 78%;
    overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
  .tabla td { width: 18px; min-width: 0; }
  .tabla .marca { width: 12px; height: 12px; }
  /* les noms en 8 langues : une fiche par allergène, une ligne par langue */
  .tabla.idiomas thead { display: none; }
  .tabla.idiomas, .tabla.idiomas tbody, .tabla.idiomas tr, .tabla.idiomas th, .tabla.idiomas td { display: block; width: auto !important; min-width: 0 !important; }
  .tabla.idiomas tr { padding: 10px 12px; }
  .tabla.idiomas tbody th { padding: 0 0 6px; }
  .tabla.idiomas td { border: 0; padding: 3px 0 !important; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; }
  .tabla.idiomas td::before { content: attr(data-idioma); color: var(--doux); font-weight: 600; }
}
.sin-corte { white-space: nowrap; }
.responsable { font-size: 14px; color: var(--doux); margin-top: 12px; }

/* ------------------------------------------------------------------ accueil */
.une { padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.une-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.chapeau { font-size: clamp(19px, 1.7vw, 22px); max-width: 32em; }
.precio-une { font-size: 17px; color: var(--doux); margin-top: 14px; }
.precio-une b { color: var(--tinta); }
.privado { font-size: 15px; color: var(--doux); border-left: 3px solid var(--azul); padding-left: 12px; margin-top: 26px; max-width: 36em; }
.franja { background: var(--azul); color: #fff; padding: clamp(36px, 5vw, 64px) 0; margin-top: 40px; }
.franja h2, .franja h3 { color: #fff; }
.franja a { color: #fff; }
.incluye { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.35); }
.incluye > div { padding: 18px 20px 6px 0; }
.incluye > div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.35); }
.incluye p { color: #dfe6f6; font-size: 16px; }
.seccion { padding-top: clamp(48px, 6vw, 80px); }
.dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.comparar { width: 100%; border-collapse: collapse; font-size: 16px; }
.comparar th, .comparar td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
.comparar th { font-weight: 650; }
.comparar thead th { font-size: 14px; color: var(--doux); font-weight: 600; }
.preguntas details { border-bottom: 1px solid var(--filet); }
.preguntas summary { cursor: pointer; font-weight: 650; padding: 14px 0; min-height: 52px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; font-size: 24px; color: var(--azul); font-weight: 500; line-height: 1; }
.preguntas details[open] summary::after { content: "–"; }
.preguntas details > div { padding: 0 0 12px; max-width: 46em; }
.precio-caja { align-self: start; border: 2px solid var(--azul); border-radius: var(--r); padding: 24px; }
.precio-caja .cifra { font-size: 52px; font-weight: 700; font-stretch: 80%; color: var(--azul); line-height: 1; margin: 6px 0 12px; }
.precio-caja ul { padding-left: 20px; margin: 0 0 18px; }
.precio-caja li { margin: 4px 0; }

/* ------------------------------------------------------------------ outil */
.herramienta { padding: 20px 0 0; }
.herramienta h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.pasos { display: flex; gap: 0; border-bottom: 1px solid var(--filet); margin-bottom: 22px; overflow-x: auto; }
.pasos a { flex: 1 0 auto; text-align: center; text-decoration: none; color: var(--doux); font-weight: 650; min-height: 48px; display: flex;
  align-items: center; justify-content: center; padding: 0 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.pasos a[aria-current] { color: var(--azul); border-bottom-color: var(--azul); }
.campo { display: block; margin: 0 0 18px; }
.campo > span { display: block; font-weight: 650; margin-bottom: 6px; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--tinta); background: var(--blanc); border: 1.5px solid var(--filet);
  border-radius: var(--r); padding: 12px 14px; min-height: 50px; -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px var(--azul-pale); }
textarea { min-height: 160px; line-height: 1.45; resize: vertical; }
textarea.nombre { display: block; min-height: 50px; line-height: 1.35; resize: none; overflow: hidden; }
.campo.mal input, .campo.mal textarea { border-color: var(--rojo); }
.campo .error { display: block; margin-top: 6px; font-size: 15px; }
/* « div » : le tableau des 14 noms porte aussi la classe « idiomas » et devenait un flex (en-tête tassé, porte 3 du 05/12) */
div.idiomas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.idiomas button {
  font: inherit; font-size: 16px; font-weight: 600; min-height: 46px; padding: 0 14px; border-radius: var(--r); cursor: pointer;
  border: 1.5px solid var(--filet); background: var(--blanc); color: var(--doux); display: inline-flex; gap: 8px; align-items: center;
}
.idiomas button[aria-pressed=true] { border-color: var(--azul); background: var(--azul-pale); color: var(--azul); }
.idiomas button[aria-pressed=true]::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--azul); }
.idiomas button[aria-pressed=false]::before { content: ""; width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid var(--filet); }
.anadir { display: flex; gap: 10px; }
.anadir input { flex: 1; min-width: 0; }
.anadir .boton { flex: none; min-height: 50px; }
.sugerencias { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--filet); border-radius: var(--r); overflow: hidden; }
.sugerencias button { width: 100%; text-align: left; font: inherit; background: var(--blanc); border: 0; border-bottom: 1px solid #e3e8f1; min-height: 48px; padding: 0 14px; cursor: pointer; color: var(--tinta); }
.sugerencias li:last-child button { border-bottom: 0; }
.sugerencias button:hover, .sugerencias button:focus-visible { background: var(--azul-pale); }
.lista { list-style: none; margin: 18px 0; padding: 0; border-top: 1px solid var(--filet); }
.lista li { border-bottom: 1px solid var(--filet); }
.lista a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 4px; text-decoration: none; color: var(--tinta); }
.lista a:hover { background: var(--cebra); }
.lista .nom { flex: 1; min-width: 0; font-weight: 600; line-height: 1.25; }
.lista .nom small { display: block; font-weight: 400; color: var(--doux); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista .estado { flex: none; font-size: 14px; font-weight: 650; padding: 4px 8px; border-radius: 4px; background: var(--rojo-pale); color: var(--rojo); font-variant-numeric: tabular-nums; }
.lista .estado.listo { background: var(--azul-pale); color: var(--azul); }
.lista .chev { flex: none; color: var(--doux); }
.vacio { color: var(--doux); padding: 18px 0; }
.pegar summary { cursor: pointer; color: var(--azul); font-weight: 650; min-height: 48px; display: inline-flex; align-items: center; list-style: none; }
.pegar summary::-webkit-details-marker { display: none; }

/* éditeur d'un plat */
.plato-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.plato-cab .volver { min-height: 46px; padding: 0 14px; }
.plato-cab .pos { margin-left: auto; color: var(--doux); font-size: 15px; font-variant-numeric: tabular-nums; }
.alergenos { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--filet); }
.alergenos li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #e3e8f1; }
.alergenos li.pendiente .nomb { color: var(--rojo); }
.alergenos .nomb { font-weight: 600; line-height: 1.2; font-size: 16px; }
.tres { display: inline-grid; grid-template-columns: repeat(3, minmax(58px, auto)); border: 1.5px solid var(--filet); border-radius: var(--r); overflow: hidden; }
.tres button { font: inherit; font-size: 15px; font-weight: 650; min-height: 46px; padding: 0 10px; border: 0; background: var(--blanc); color: var(--doux); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.tres button + button { border-left: 1.5px solid var(--filet); }
.tres button[aria-pressed=true] { background: var(--azul); color: #fff; }
.tres button[aria-pressed=true] .marca.m1 { background: #fff; }
.tres button[aria-pressed=true] .marca.m2 { border-color: #fff; }
.tres .marca { width: 12px; height: 12px; }
.tres .marca.m2 { border-width: 2px; }
.resto { margin: 0 0 22px; }
#t-trad { font-size: 19px; font-stretch: 100%; font-weight: 650; word-spacing: 0; }
.traducciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.traducciones .campo > span { font-size: 15px; }
.barra {
  position: sticky; bottom: 0; z-index: 5; background: var(--blanc); border-top: 1px solid var(--filet);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin-top: 18px;
}
/* À l'achat, le bouton suit la case des conditions : collant, il la couvrait (kit 04/12, 390 et 1920). */
[data-pantalla="pago"] .barra { position: static; }
.barra .l { display: flex; gap: 12px; align-items: center; }
.barra .boton { flex: 1; }
.barra .faltan { font-size: 15px; color: var(--rojo); font-weight: 600; }
.pestanas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pestanas button { font: inherit; font-size: 15px; font-weight: 650; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--filet); background: var(--blanc); color: var(--doux); border-radius: var(--r); cursor: pointer; }
.pestanas button[aria-pressed=true] { background: var(--azul); border-color: var(--azul); color: #fff; }
.casilla { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin: 10px 0 18px; cursor: pointer; }
.casilla > span { flex: 1 1 0; min-width: 0; }
.casilla small.error { flex-basis: 100%; font-size: 15px; }
.casilla input { width: 26px; height: 26px; margin: 0; flex: none; accent-color: var(--azul); }
.resumen { background: var(--cebra); border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; }
.resumen p:last-child { margin: 0; }
.campos-cp { display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr); gap: 0 14px; }
.campos-cp > small.error { grid-column: 1 / -1; display: block; margin: -10px 0 16px; font-size: 15px; }
.condiciones-cortas { font-size: 16px; color: var(--tinta); margin: -6px 0 20px; }
.pied-publica { padding: 8px 0 28px; font-size: 14px; }
.pied-publica a { color: var(--doux); min-height: 44px; display: inline-flex; align-items: center; }
#est[readonly] { background: var(--cebra); color: var(--doux); }

/* ------------------------------------------------------------------ page du pedido */
.descargas { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--filet); }
.descargas li { border-bottom: 1px solid var(--filet); }
.descargas a { display: flex; align-items: center; gap: 12px; min-height: 58px; text-decoration: none; font-weight: 600; color: var(--tinta); padding: 0 4px; }
.descargas a:hover { background: var(--cebra); }
.descargas a::after { content: "PDF"; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--azul); border: 1.5px solid var(--azul); border-radius: 3px; padding: 1px 6px; }
.descargas li:first-child a { font-size: 19px; }
.qr-enlace { word-break: break-all; }

/* ------------------------------------------------------------------ page publique du QR */
.publica .cab { background: var(--azul); color: #fff; padding: 18px 0 14px; }
.publica .cab h1 { color: #fff; font-size: clamp(28px, 7vw, 44px); margin: 0 0 2px; }
.publica .cab p { margin: 0; color: #dfe6f6; font-size: 15px; }
.publica .langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.publica .langs a { color: #fff; text-decoration: none; min-height: 44px; min-width: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,.45); border-radius: var(--r); font-weight: 650; padding: 0 10px; }
.publica .langs a[aria-current] { background: #fff; color: var(--azul); border-color: #fff; }
.filtro { margin: 18px 0 8px; }
.filtro h2 { font-size: 19px; font-stretch: 100%; margin-bottom: 8px; }
.filtro .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filtro .chips button { font: inherit; font-size: 15px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--filet); border-radius: var(--r); background: var(--blanc); color: var(--tinta); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.filtro .chips button .num { min-width: 24px; height: 24px; font-size: 14px; }
.filtro .chips button[aria-pressed=true] { border-color: var(--rojo); background: var(--rojo-pale); }
.filtro .chips button[aria-pressed=true] .num { background: var(--rojo); }
.platos { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--filet); }
.platos li { padding: 12px 10px; border-bottom: 1px solid var(--filet); }
.platos li:nth-child(even) { background: var(--cebra); }
.platos .n { font-weight: 650; font-size: 18px; line-height: 1.25; }
.platos .n small { display: block; font-weight: 400; color: var(--doux); font-size: 14px; }
.platos .a { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.platos .a b { font-weight: 650; }
.platos .ninguno { color: var(--doux); }
.platos li.evitar .n { color: var(--rojo); }
.platos li.evitar { box-shadow: inset 4px 0 0 var(--rojo); padding-left: 14px; }
.platos li.oculto { display: none; }

/* ------------------------------------------------------------------ pages de texte */
.texto { max-width: 46em; padding-top: 28px; }
.texto h2 { font-size: 24px; margin-top: 1.6em; }
.texto table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0 20px; }
.texto th, .texto td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
.texto-ancho { padding-top: 28px; }
.factura { max-width: 760px; padding-top: 28px; }
.factura table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.factura th, .factura td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--filet); }
.factura td.c { text-align: right; font-variant-numeric: tabular-nums; }

/* La saisie se lit d'un coup d'œil : nom de l'allergène et ses trois boutons restent proches (capture 1280, 04/12). */
#app:not([data-pantalla="tabla"]) .l { max-width: calc(780px + 2 * clamp(16px, 4vw, 40px)); }
.une .tabla td { width: 32px; min-width: 32px; }
.une .tabla tbody th { min-width: 140px; }

/* Le tableau d'exemple n'entre en entier à côté du titre qu'au-delà de 1180 px (14 colonnes + plat ≈ 630 px). */
@media (max-width: 1180px) {
  .une-grille { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ téléphone et tablette */
@media (max-width: 900px) {
  .une-grille, .dos { grid-template-columns: minmax(0, 1fr); }
  .incluye { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .incluye > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .haut nav a:not(.cta) { display: none; }
  .incluye { grid-template-columns: minmax(0, 1fr); }
  .incluye > div, .incluye > div + div { padding: 14px 0 4px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.35); }
  .traducciones { grid-template-columns: minmax(0, 1fr); }
  .alergenos li { grid-template-columns: 26px minmax(0, 1fr); }
  .alergenos li .tres { grid-column: 1 / -1; width: 100%; grid-template-columns: repeat(3, 1fr); }
  .comparar { font-size: 15px; }
  .precio-caja .cifra { font-size: 44px; }
}
@media print {
  .haut, .pied, .barra, .pasos { display: none; }
}
abbr.num { text-decoration: none; cursor: help; }

/* ------------------------------------------------------------------ 05/12, ce que « Marta » a trouvé (SPEC loi 23) */
.comprada, .hecho { background: var(--azul-pale); border-radius: var(--r); padding: 14px 16px; margin: 0 0 18px; font-weight: 600; }
.comprada a { display: inline-flex; align-items: center; min-height: 44px; }
.aviso-lista { background: var(--cebra); border-radius: var(--r); padding: 12px 14px; margin: 0 0 12px; overflow-wrap: anywhere; }
.pegar[open] { margin-bottom: 16px; }
.trad-viejas { background: var(--rojo-pale); border-radius: var(--r); padding: 12px 14px; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.trad-viejas span { flex: 1 1 240px; overflow-wrap: anywhere; }
#e-guardar .b2 { margin: 10px 0 0; display: flex; }
.cerrada { font-size: 20px; padding: 28px 0; max-width: 34em; }
.publica .cuenta { position: sticky; bottom: 0; z-index: 3; margin: 0 0 8px; padding: 14px 0; background: var(--blanc); border-top: 2px solid var(--rojo);
  color: var(--rojo); font-weight: 650; font-size: 18px; }
/* Vista previa : l'en-tête 1 à 14 suit la lecture (une carte de 25 plats fait plusieurs écrans) ; sur ordinateur et tablette,
   les noms au-dessus des numéros, comme sur le PDF. Le marco ne défile plus seul : le tableau tient dans l'écran. */
#previa .tabla-marco { overflow: visible; }
#previa .tabla thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -2px 0 var(--azul); border-bottom: 0; }
#previa .tabla tbody th { position: static; overflow-wrap: anywhere; }
.nomcol { display: none; }
@media (min-width: 900px) and (min-height: 600px) {
  #previa .nomcol { display: block; writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 auto 8px; font-size: 14px; font-stretch: 80%;
    font-weight: 600; line-height: 1.35; max-height: 112px; text-align: left; }
}
@media (max-width: 700px) {
  #previa .tabla { table-layout: fixed; }
  #previa .tabla thead th:not(.plato), #previa .tabla td { width: 18px; min-width: 0; }
}
@media (min-width: 561px) and (max-width: 700px) {
  #previa .tabla thead th:not(.plato), #previa .tabla td { width: 26px; }
  #previa .tabla thead .num { min-width: 22px; padding: 0; }
}
@media print {
  .factura .acciones { display: none; }
  .factura { max-width: none; padding-top: 0; }
}
