/* TuCartaQR · carta pública · estilo «Pizarra» (0.3.1)
 * Todo va encapsulado bajo .tcqr para no chocar con el tema de WordPress.
 * Los colores del restaurante llegan en variables desde TCQR_Frontend::css_vars():
 *   --cv-accent / --cv-on-accent   banda de cabecera, sello de precio, pestaña activa
 *   --cv-accent-text               el color ajustado para leerse como texto sobre el fondo
 *   --cv-accent-soft               fondo suave (plato recomendado, avisos)
 *   --cv-accent-deep / -chalk      pizarra de los menús especiales y su tiza de color
 */

/* Color y letra de serie. Van en :root (y no en .tcqr) para que los del restaurante,
   que llegan después en :root o en el contenedor del shortcode, sí se hereden. */
:root {
	--cv-accent: #a4452c;
	--cv-on-accent: #ffffff;
	--cv-accent-text: #a4452c;
	--cv-accent-soft: #f6ece9;
	--cv-accent-deep: #3e1a11;
	--cv-accent-chalk: #e9a48f;
	--cv-font-head: Georgia, serif;
	--cv-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.tcqr {
	--cv-bg: #fbf8f3;
	--cv-surface: #ffffff;
	--cv-text: #1d1a17;
	--cv-muted: #6a6058;
	--cv-line: #e9e1d5;
	--cv-dots: #cfc3b3;
	--cv-board: #23272b;
	--cv-chalk: #f2eee6;
	--cv-chalk-muted: rgba(242, 238, 230, .66);
	--cv-chalk-line: rgba(242, 238, 230, .16);
	--cv-radius: 16px;
	--cv-bar-top: 0px;
	--cv-wide: 720px;

	color: var(--cv-text);
	background: var(--cv-bg);
	font-family: var(--cv-font-body);
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
.tcqr--oscuro {
	--cv-bg: #17140f;
	--cv-surface: #211d17;
	--cv-text: #f3ede4;
	--cv-muted: #b5a99a;
	--cv-line: #352f27;
	--cv-dots: #4d453a;
	--cv-board: #25221c;
}
.tcqr *, .tcqr *::before, .tcqr *::after { box-sizing: border-box; }
/* Reseteo con :where() → pesa como una sola clase: gana a los estilos del tema (p, ul…)
   pero no pisa las reglas propias de la carta que vienen después. */
.tcqr :where(h1, h2, h3, p, ul, figure) { margin: 0; padding: 0; }
.tcqr :where(ul) { list-style: none; }
.tcqr :where(a) { color: inherit; }
.tcqr :where(img) { max-width: 100%; }
.tcqr :where(button) { font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; box-shadow: none; }
.tcqr [hidden] { display: none !important; }
.tcqr :focus-visible { outline: 3px solid var(--cv-accent-text); outline-offset: 2px; border-radius: 6px; }

/* Página propia */
body.tcqr-page { margin: 0; background: #fbf8f3; }
body.tcqr-page--oscuro { background: #17140f; }
.tcqr-page .tcqr { min-height: 100vh; min-height: 100dvh; }
.tcqr-embed .tcqr { border-radius: var(--cv-radius); overflow: clip; }

/* ---------- Cabecera: banda con el color del restaurante y borde festoneado ---------- */
.tcqr-head {
	position: relative;
	text-align: center;
	background: var(--cv-accent);
	color: var(--cv-on-accent);
	padding: max(22px, env(safe-area-inset-top)) 22px 46px;
	margin-bottom: 18px;
}
.tcqr-head::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 14px;
	background: radial-gradient(circle at 10px 14px, var(--cv-bg) 9px, transparent 9.5px) 0 0 / 20px 14px repeat-x;
}
.tcqr-head__logo { display: block; max-width: 170px; max-height: 84px; width: auto; height: auto; margin: 6px auto 12px; object-fit: contain; }
.tcqr-head__name {
	font-family: var(--cv-font-head);
	font-size: clamp(34px, 10.5vw, 56px);
	line-height: 1.02;
	font-weight: 700;
	letter-spacing: -.015em;
	color: inherit;
	text-wrap: balance;
	margin-top: 8px;
}
.tcqr-head__sub {
	max-width: 30em;
	margin: 12px auto 0;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .88;
	text-wrap: balance;
}

/* Selector de idioma */
.tcqr-langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .14); flex-wrap: wrap; justify-content: center; }
.tcqr-langs a {
	font-size: 12px; font-weight: 750; letter-spacing: .08em;
	color: inherit; text-decoration: none;
	min-width: 40px; min-height: 30px; padding: 6px 9px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; opacity: .82;
}
.tcqr-langs a[aria-current] { background: var(--cv-on-accent); color: var(--cv-accent); opacity: 1; }
.tcqr-langs a:focus-visible { outline-color: var(--cv-on-accent); }

/* Aviso «Read the menu in English» */
.tcqr .tcqr-suggest {
	max-width: calc(var(--cv-wide) - 32px);
	margin: 0 auto 14px;
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 6px 6px 6px 16px;
	border-radius: 999px;
	background: var(--cv-text); color: var(--cv-bg);
	font-size: 14.5px;
}
@media (max-width: 720px) { .tcqr .tcqr-suggest { margin-left: 16px; margin-right: 16px; } }
.tcqr-suggest a { color: inherit; font-weight: 700; text-decoration: none; padding: 8px 0; }
.tcqr-suggest button { background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; color: inherit; font-size: 20px; line-height: 1; width: 36px; height: 36px; cursor: pointer; }

/* ---------- Menú del día y especiales: pizarra con sello de precio ---------- */
.tcqr-menus { max-width: var(--cv-wide); margin: 0 auto; padding: 14px 16px 22px; display: grid; gap: 30px; }
.tcqr-mday {
	position: relative;
	background: var(--cv-board);
	color: var(--cv-chalk);
	border-radius: 12px;
	box-shadow: inset 0 0 0 6px var(--cv-board), inset 0 0 0 7px var(--cv-chalk-line), 0 14px 30px -18px rgba(0, 0, 0, .55);
}
.tcqr-mday--especial { --cv-board: var(--cv-accent-deep); }
.tcqr-mday--especial .tcqr-mday__extra, .tcqr-mday--especial .tcqr-mitem__extra { color: var(--cv-accent-chalk); }
.tcqr--oscuro .tcqr-mday { box-shadow: inset 0 0 0 6px var(--cv-board), inset 0 0 0 7px var(--cv-chalk-line), 0 0 0 1px var(--cv-line); }

.tcqr-mday__head {
	list-style: none;
	cursor: pointer;
	display: grid;
	justify-items: center;
	gap: 4px;
	text-align: center;
	padding: 24px 76px 18px;
	min-height: 44px;
}
.tcqr-mday__head::-webkit-details-marker { display: none; }
.tcqr-mday__kicker { font-size: 11.5px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; color: var(--cv-chalk-muted); }
.tcqr-mday__title { font-family: var(--cv-font-head); font-size: clamp(26px, 7.6vw, 34px); line-height: 1.08; font-weight: 700; text-wrap: balance; }
.tcqr-mday__when { font-size: 13.5px; color: var(--cv-chalk-muted); margin: 2px -52px 0; text-wrap: balance; }
.tcqr-mday__price {
	position: absolute;
	top: -16px; right: 10px;
	width: 80px; height: 80px;
	border-radius: 50%;
	background: var(--cv-accent);
	color: var(--cv-on-accent);
	display: grid; place-content: center;
	text-align: center;
	line-height: 1.05;
	transform: rotate(-8deg);
	box-shadow: 0 0 0 3px var(--cv-board), 0 0 0 4.5px rgba(242, 238, 230, .4), 0 8px 16px -6px rgba(0, 0, 0, .5);
	font-variant-numeric: tabular-nums;
}
.tcqr-mday__price::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed currentColor; opacity: .45; }
.tcqr-mday__price strong { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.tcqr-mday__price small { display: block; max-width: 62px; font-size: 9.5px; font-weight: 650; opacity: .9; margin-top: 2px; }
.tcqr-mday__toggle { width: 34px; height: 22px; display: grid; place-items: center; margin-top: 6px; border-radius: 999px; background: var(--cv-chalk-line); }
.tcqr-mday__toggle::before { content: ""; width: 7px; height: 7px; border: solid var(--cv-chalk); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.tcqr-mday:not([open]) .tcqr-mday__toggle::before { transform: translateY(1px) rotate(-135deg); }

.tcqr-mday__body { text-align: center; padding: 0 24px 26px; }
.tcqr-mday__group + .tcqr-mday__group { margin-top: 18px; }
.tcqr-mday__group h3 {
	display: flex; align-items: center; gap: 12px;
	font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
	color: var(--cv-chalk-muted); font-weight: 750; margin-bottom: 4px;
}
.tcqr-mday__group h3::before, .tcqr-mday__group h3::after { content: ""; flex: 1; height: 1px; background: var(--cv-chalk-line); }
.tcqr-mitem {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
	gap: 2px 8px; padding: 8px 0;
	border-bottom: 1px dashed var(--cv-chalk-line);
}
.tcqr-mitem:last-child { border-bottom: 0; }
.tcqr-mitem__name { font-family: var(--cv-font-head); font-size: 17.5px; line-height: 1.3; }
.tcqr-mitem__extra { font-size: 13px; font-weight: 750; color: var(--cv-accent-chalk); white-space: nowrap; }
.tcqr-mitem__al { display: inline-flex; gap: 3px; }
.tcqr-mitem.is-filtered { display: none; }
.tcqr-mday__inc { margin: 18px auto 0; max-width: 30em; font-size: 14px; color: var(--cv-chalk-muted); text-wrap: balance; }
.tcqr-mday__inc strong { color: var(--cv-chalk); font-weight: 700; }

/* ---------- Barra fija: cartas + secciones + filtro ---------- */
.tcqr-bar {
	position: sticky;
	top: var(--cv-bar-top);
	z-index: 20;
	background: color-mix(in srgb, var(--cv-bg) 90%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--cv-line);
}
.admin-bar .tcqr-embed .tcqr-bar { --cv-bar-top: 32px; }
.tcqr-tabs {
	display: flex;
	gap: 6px;
	max-width: var(--cv-wide);
	margin: 0 auto;
	padding: 10px 16px 2px;
	overflow-x: auto;
	scrollbar-width: none;
}
.tcqr-tabs::-webkit-scrollbar, .tcqr-chips::-webkit-scrollbar { display: none; }
.tcqr .tcqr-tab {
	flex: 1 0 auto;
	border: 1px solid var(--cv-line);
	background: var(--cv-surface);
	padding: 10px 14px;
	border-radius: 10px;
	font-weight: 750;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cv-muted);
	cursor: pointer;
	min-height: 44px;
	transition: background .2s, color .2s, border-color .2s;
}
.tcqr .tcqr-tab[aria-selected="true"] { background: var(--cv-accent); border-color: var(--cv-accent); color: var(--cv-on-accent); letter-spacing: .12em; text-transform: uppercase; }
.tcqr-bar__row {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: var(--cv-wide);
	margin: 0 auto;
	padding: 8px 0 10px 16px;
}
.tcqr-chips {
	flex: 1;
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-behavior: smooth;
	scroll-padding-inline: 16px;
	-webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
	mask-image: linear-gradient(90deg, #000 86%, transparent);
	padding-right: 28px;
}
.tcqr-chip {
	flex: 0 0 auto;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--cv-muted);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	transition: background .2s, color .2s;
}
.tcqr .tcqr-chip { text-decoration: none; color: var(--cv-muted); }
.tcqr .tcqr-chip.is-active { background: var(--cv-text); color: var(--cv-bg); }
.tcqr-filter-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 16px;
	padding: 8px 14px;
	min-height: 40px;
	border-radius: 999px;
	border: 1.5px solid var(--cv-text);
	background: var(--cv-surface);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.tcqr .tcqr-filter-btn.is-on { background: var(--cv-text); color: var(--cv-bg); }
.tcqr-filter-btn__n {
	min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: 999px;
	background: var(--cv-accent); color: var(--cv-on-accent);
	font-size: 12px; line-height: 20px; text-align: center;
}

/* Aviso de filtro */
.tcqr-notice {
	max-width: calc(var(--cv-wide) - 32px);
	margin: 14px auto 0;
	padding: 10px 10px 10px 16px;
	border-radius: 12px;
	background: var(--cv-accent-soft);
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	font-size: 14px;
}
@media (max-width: 720px) { .tcqr-notice { margin-inline: 16px; } }
.tcqr-link { background: none; border: 0; padding: 8px 6px; min-height: 40px; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* ---------- Contenido ---------- */
.tcqr-main { max-width: var(--cv-wide); margin: 0 auto; padding: 0 16px 28px; }
.tcqr-empty { text-align: center; color: var(--cv-muted); padding: 48px 20px; }
.tcqr-carta__desc { color: var(--cv-muted); text-align: center; padding: 22px 12px 0; font-family: var(--cv-font-head); font-style: italic; font-size: 16.5px; text-wrap: balance; }
.tcqr-sec { padding-top: 34px; scroll-margin-top: 130px; }
.tcqr-sec__title {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	text-align: center;
	font-family: var(--cv-font-body);
	font-size: 14.5px;
	font-weight: 800;
	letter-spacing: .2em;
	text-transform: uppercase;
	line-height: 1.3;
	color: var(--cv-accent-text);
}
.tcqr-sec__title::before, .tcqr-sec__title::after { content: ""; flex: 1 1 24px; height: 1px; background: var(--cv-line); }
.tcqr-sec__desc { color: var(--cv-muted); font-size: 14px; margin-top: 6px; text-align: center; text-wrap: balance; }
.tcqr-list { margin-top: 8px; display: grid; }

/* ---------- Plato ---------- */
.tcqr-dish {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 0;
	border-bottom: 1px solid var(--cv-line);
}
.tcqr-list > .tcqr-dish:last-child { border-bottom: 0; }
.tcqr-dish.is-featured {
	background: var(--cv-accent-soft);
	border-radius: 14px;
	border-bottom-color: transparent;
	padding: 16px 12px;
	margin: 6px -12px;
}
.tcqr-dish.is-soldout .tcqr-dish__img, .tcqr-dish.is-soldout .tcqr-dish__top, .tcqr-dish.is-soldout .tcqr-dish__desc, .tcqr-dish.is-soldout .tcqr-prices, .tcqr-dish.is-soldout .tcqr-dish__meta { opacity: .5; }
.tcqr-dish.is-soldout .tcqr-dish__img { filter: grayscale(1); }
.tcqr-dish.is-soldout .tcqr-dish__name { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tcqr-dish__img {
	width: 76px; height: 76px; flex: 0 0 76px;
	object-fit: cover;
	border-radius: 14px;
	background: var(--cv-line);
	box-shadow: 0 6px 14px -8px rgba(40, 25, 10, .5);
}
.tcqr-dish__body { flex: 1; min-width: 0; }
.tcqr-dish__flags { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.tcqr-flag {
	font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	padding: 4px 8px 3px; border-radius: 5px;
	background: var(--cv-accent); color: var(--cv-on-accent);
}
.tcqr-flag--out { background: var(--cv-text); color: var(--cv-bg); }
.tcqr-dish__top { display: flex; align-items: baseline; gap: 6px; }
.tcqr-dish__top::after { content: ""; order: 2; flex: 1 1 10px; min-width: 10px; border-bottom: 2px dotted var(--cv-dots); transform: translateY(-5px); }
.tcqr-dish__top:not(:has(.tcqr-price))::after { display: none; }
.tcqr-dish__name {
	order: 1;
	flex: 0 1 auto;
	font-family: var(--cv-font-head);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -.005em;
	text-wrap: pretty;
}
.tcqr-price {
	order: 3;
	flex: 0 0 auto;
	font-weight: 800;
	font-size: 17px;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.tcqr-dish__desc { color: var(--cv-muted); font-size: 14.5px; line-height: 1.5; margin-top: 4px; text-wrap: pretty; }
.tcqr-prices { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tcqr-prices li {
	display: inline-flex; gap: 8px; align-items: baseline;
	padding: 5px 11px; border-radius: 8px;
	background: var(--cv-surface);
	border: 1px solid var(--cv-line);
	font-size: 14px;
}
.tcqr-prices span { color: var(--cv-muted); }
.tcqr-prices strong { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcqr-dish__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.tcqr-dish__al { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tcqr-al { display: block; flex: 0 0 auto; }
.tcqr-dish__tr { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--cv-muted); }
.tcqr-dish__tr > span { margin-right: 3px; }
.tcqr-dish__tr .tcqr-al { opacity: .75; }
.tcqr-dish__tags { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.tcqr-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--cv-line); color: var(--cv-muted); }
.tcqr-tag--vegano, .tcqr-tag--vegetariano { color: #2c6e35; border-color: #cfe5cf; background: #f1f8f0; }
.tcqr-tag--picante { color: #a8331c; border-color: #f0d0c7; background: #fcf1ee; }
.tcqr-tag--sin_gluten { color: #7a5a12; border-color: #ecdcb4; background: #fbf5e6; }
.tcqr--oscuro .tcqr-tag--vegano, .tcqr--oscuro .tcqr-tag--vegetariano { color: #9ed3a2; border-color: #2e4a31; background: transparent; }
.tcqr--oscuro .tcqr-tag--picante { color: #f0a08c; border-color: #57302a; background: transparent; }
.tcqr--oscuro .tcqr-tag--sin_gluten { color: #e3c77d; border-color: #4f4224; background: transparent; }
@media (min-width: 560px) {
	.tcqr-dish__name { font-size: 18.5px; }
	.tcqr-dish__img { width: 96px; height: 96px; flex-basis: 96px; }
	.tcqr-dish { gap: 18px; padding: 18px 0; }
}

/* ---------- Pie ---------- */
.tcqr-foot { max-width: var(--cv-wide); margin: 0 auto; padding: 8px 16px max(44px, env(safe-area-inset-bottom)); color: var(--cv-muted); font-size: 13.5px; }
.tcqr-legend { background: var(--cv-surface); border: 1px solid var(--cv-line); border-radius: var(--cv-radius); padding: 18px; }
.tcqr-legend__title { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--cv-accent-text); }
.tcqr-legend__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 12px; margin-top: 12px; color: var(--cv-text); font-size: 14px; }
.tcqr-legend__list li { display: flex; align-items: center; gap: 8px; }
.tcqr-foot__aviso { margin-top: 18px; }
.tcqr-foot__pie { margin-top: 12px; }
.tcqr-foot__iva { margin-top: 12px; }

/* ---------- Panel de filtro (hoja inferior en el móvil) ---------- */
.tcqr-sheet {
	border: 0;
	padding: 0;
	margin: auto auto 0;
	width: 100%;
	max-width: 560px;
	max-height: 88vh;
	max-height: 88dvh;
	border-radius: 22px 22px 0 0;
	background: var(--cv-surface);
	color: var(--cv-text);
	box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
}
.tcqr-sheet::backdrop { background: rgba(20, 15, 10, .5); }
.tcqr-sheet[open] { animation: tcqr-up .22s ease-out; }
@keyframes tcqr-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 600px) { .tcqr-sheet { margin: auto; border-radius: 22px; } }
.tcqr-sheet__in { padding: 22px 20px max(20px, env(safe-area-inset-bottom)); }
.tcqr-sheet__in::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--cv-line); margin: -10px auto 14px; }
@media (min-width: 600px) { .tcqr-sheet__in::before { display: none; } }
.tcqr-sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tcqr-sheet__head h2 { font-family: var(--cv-font-head); font-size: 23px; font-weight: 700; line-height: 1.15; }
.tcqr-sheet__x { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 0; background: var(--cv-bg); font-size: 26px; line-height: 1; cursor: pointer; }
.tcqr-sheet__help { color: var(--cv-muted); font-size: 14px; margin-top: 6px; }
.tcqr-sheet__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.tcqr-check {
	position: relative;
	display: flex; align-items: center; gap: 10px;
	padding: 8px 10px; min-height: 50px;
	border: 1.5px solid var(--cv-line); border-radius: 12px;
	cursor: pointer; font-size: 14.5px; line-height: 1.2;
	transition: border-color .15s, background .15s;
}
.tcqr-check input { position: absolute; opacity: 0; pointer-events: none; }
.tcqr-check:has(input:checked) { border-color: var(--cv-text); background: var(--cv-bg); font-weight: 700; }
.tcqr-check:has(input:checked)::after { content: "✕"; margin-left: auto; font-size: 13px; }
.tcqr-check:has(input:focus-visible) { outline: 3px solid var(--cv-accent-text); outline-offset: 2px; }
.tcqr-switch { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 14.5px; cursor: pointer; min-height: 44px; }
.tcqr-switch input { width: 22px; height: 22px; accent-color: var(--cv-accent); }
.tcqr-sheet__actions { display: flex; gap: 10px; margin-top: 18px; }
.tcqr-btn {
	flex: 1; min-height: 50px; border-radius: 12px; border: 0;
	background: var(--cv-accent); color: var(--cv-on-accent);
	font-weight: 750; cursor: pointer;
}
.tcqr .tcqr-btn--ghost { background: transparent; color: var(--cv-text); border: 1.5px solid var(--cv-line); }
.tcqr-sheet__note { color: var(--cv-muted); font-size: 12.5px; margin-top: 14px; }

/* Platos ocultos por el filtro */
.tcqr-dish.is-filtered, .tcqr-sec.is-empty { display: none; }

/* ---------- Escritorio: cabecera más amplia y platos a dos columnas ---------- */
@media (min-width: 960px) {
	.tcqr { --cv-wide: 1080px; }
	.tcqr-head { padding-top: 34px; padding-bottom: 58px; margin-bottom: 26px; }
	.tcqr-menus { max-width: 780px; gap: 34px; }
	.tcqr-mday__head { padding-top: 30px; }
	.tcqr-mday__price { width: 92px; height: 92px; right: 18px; }
	.tcqr-mday__price strong { font-size: 22px; }
	.tcqr-mday__body { padding: 0 48px 30px; columns: 2; column-gap: 40px; }
	.tcqr-mday__group { break-inside: avoid; }
	.tcqr-mday__group + .tcqr-mday__group { margin-top: 0; padding-top: 0; }
	.tcqr-mday__group { margin-bottom: 18px; }
	.tcqr-mday__inc { column-span: all; }
	.tcqr-tabs { justify-content: center; }
	.tcqr .tcqr-tab { flex: 0 0 auto; min-width: 150px; }
	.tcqr-sec { padding-top: 46px; }
	.tcqr-list { grid-template-columns: 1fr 1fr; column-gap: 48px; margin-top: 14px; }
	.tcqr-list > .tcqr-dish:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
	.tcqr-dish.is-featured { margin: 6px 0; padding: 18px 16px; }
	.tcqr-foot { max-width: 780px; }
}
/* Una pizarra con un único grupo no necesita columnas. */
@media (min-width: 960px) {
	.tcqr-mday__body:has(> .tcqr-mday__group:only-of-type) { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.tcqr *, .tcqr-sheet[open] { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.tcqr-bar, .tcqr-sheet, .tcqr-notice, .tcqr-suggest, .tcqr-langs { display: none !important; }
	.tcqr-carta[hidden] { display: block !important; }
	.tcqr-dish { break-inside: avoid; }
}

/* Botón «Reservar mesa» en la cabecera (0.4) */
.tcqr-head__book {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
	min-height: 44px; padding: 0 20px; border-radius: 999px;
	background: var(--cv-on-accent); color: var(--cv-accent);
	font-weight: 800; font-size: 14.5px; text-decoration: none; letter-spacing: .02em;
}
.tcqr-head__book:focus-visible { outline-color: var(--cv-on-accent); }

/* ---------- Ficha del plato (0.7): al tocar un plato se abre con la foto grande y la información ampliada ---------- */
.tcqr-dish { cursor: pointer; }
.tcqr .tcqr-dish__open { background: none; border: 0; padding: 0; margin: 0; text-align: inherit; cursor: pointer; font: inherit; color: inherit; letter-spacing: inherit; }
.tcqr-dish__hint { margin-top: 6px; font-size: 13px; font-weight: 750; letter-spacing: .02em; color: var(--cv-accent-text); }
.tcqr-dish__hint::after { content: " →"; }
.tcqr-dlg {
	border: 0; padding: 0;
	margin: auto auto 0; width: 100%; max-width: 560px;
	max-height: 92vh; max-height: 92dvh;
	border-radius: 22px 22px 0 0;
	background: var(--cv-surface); color: var(--cv-text);
	box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
	overflow: auto; overscroll-behavior: contain;
}
.tcqr-dlg::backdrop { background: rgba(20, 15, 10, .55); }
.tcqr-dlg[open] { animation: tcqr-up .22s ease-out; }
@media (min-width: 600px) { .tcqr-dlg { margin: auto; border-radius: 22px; } }
.tcqr-dlg__in { position: relative; }
.tcqr-dlg__x {
	position: sticky; top: 10px; float: right; margin: 10px 10px -54px 0; z-index: 2;
	width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: rgba(255, 255, 255, .92); color: #1d1a17; font-size: 26px; line-height: 1; cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.tcqr-dlg__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cv-line); }
.tcqr-dlg__dish { padding: 22px 20px max(26px, env(safe-area-inset-bottom)); }
.tcqr-dlg:not(.has-img) .tcqr-dlg__dish { padding-top: 26px; padding-right: 64px; }
.tcqr-dlg .tcqr-dish__name { font-size: 24px; }
.tcqr-dlg .tcqr-price { font-size: 21px; }
.tcqr-dlg .tcqr-dish__desc { font-size: 16px; margin-top: 8px; }
.tcqr-dlg .tcqr-dish__more { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cv-line); font-size: 15.5px; line-height: 1.6; }
.tcqr-dlg .tcqr-dish__more p + p { margin-top: 10px; }
.tcqr-dlg .tcqr-dish__meta { margin-top: 18px; gap: 10px; }
.tcqr-dlg .tcqr-dish__al, .tcqr-dlg .tcqr-dish__tr { display: flex; flex-wrap: wrap; gap: 8px 14px; width: 100%; }
.tcqr-dlg .tcqr-dish__tr { font-size: 14px; }
.tcqr-dlg__al { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--cv-text); }
@media print { .tcqr-dlg, .tcqr-dish__hint { display: none !important; } }
