/* TuCartaQR · Kit para Bricks — diseño propio de los bloques (no es el de la carta).
   El color y la letra del restaurante llegan en las variables --cv-* del envoltorio .tcqrb.
   Para texto de color: --cv-accent-text (ya con contraste). Todo se puede pisar desde Bricks. */

.tcqrb {
	--tcqrb-ink: #1d1a16;
	--tcqrb-muted: #6b645b;
	--tcqrb-line: rgba(29, 26, 22, .12);
	--tcqrb-card: #fff;
	--tcqrb-radius: 18px;
	--tcqrb-head: var(--cv-font-head, Georgia, serif);
	color: var(--tcqrb-ink);
	line-height: 1.5;
}
.tcqrb *, .tcqrb *::before, .tcqrb *::after { box-sizing: border-box; }
.tcqrb :where(h3, h4, p, ul, figure) { margin: 0; padding: 0; }
.tcqrb :where(ul) { list-style: none; }
.tcqrb [hidden] { display: none !important; }

/* Alérgenos (iconos de TuCartaQR) */
.tcqrb-al { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.tcqrb-al svg { display: block; }

/* ---------- Menú del día ---------- */
.tcqrb-menu { display: grid; gap: 20px; }
.tcqrb-menu__card {
	position: relative;
	background: var(--tcqrb-card);
	border-radius: var(--tcqrb-radius);
	padding: clamp(22px, 4vw, 40px);
	box-shadow: 0 1px 0 var(--tcqrb-line), 0 18px 40px -24px rgba(29, 26, 22, .35);
	overflow: hidden;
}
/* Franja de color a la izquierda, como un marcapáginas */
.tcqrb-menu__card::before {
	content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--cv-accent, #a4452c);
}
.tcqrb-menu__head {
	display: flex; gap: 18px; align-items: flex-start; justify-content: space-between;
	padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px dashed var(--tcqrb-line);
}
.tcqrb-menu__kicker {
	font-size: 12.48px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--cv-accent-text, #a4452c);
}
.tcqrb-menu__title { font-family: var(--tcqrb-head); font-size: clamp(24px, 3.2vw, 33.6px); line-height: 1.15; margin-top: 4px; }
.tcqrb-menu__hours { color: var(--tcqrb-muted); font-size: 14.72px; margin-top: 6px; }
.tcqrb-menu__price { text-align: right; flex: none; }
.tcqrb-menu__price strong {
	display: block; font-family: var(--tcqrb-head); font-size: clamp(32px, 5vw, 46.4px); line-height: 1;
	color: var(--cv-accent-text, #a4452c); white-space: nowrap;
}
.tcqrb-menu__price small { display: block; color: var(--tcqrb-muted); font-size: 12.8px; margin-top: 6px; max-width: 14ch; margin-left: auto; }
.tcqrb-menu__groups { display: grid; gap: 22px; }
@media (min-width: 720px) {
	.tcqrb-menu__groups { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
}
.tcqrb-menu__group h4 {
	display: flex; align-items: baseline; gap: 10px;
	font-family: var(--tcqrb-head); font-size: 17.6px; margin-bottom: 10px;
}
.tcqrb-menu__num { font-size: 12.48px; font-weight: 700; color: var(--cv-accent-text, #a4452c); letter-spacing: .05em; }
.tcqrb-menu__group li { padding: 7px 0; border-top: 1px solid var(--tcqrb-line); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tcqrb-menu__group li:first-child { border-top: 0; }
.tcqrb-menu__group li em { font-style: normal; font-size: 13.12px; color: var(--tcqrb-muted); }
.tcqrb-menu__group li .tcqrb-al { margin-left: auto; }
.tcqrb-menu__inc { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: var(--cv-accent-soft, #f6e8e3); font-size: 15.2px; }
.tcqrb-menu__empty { color: var(--tcqrb-muted); }

.tcqrb-menu--oscuro .tcqrb-menu__card { --tcqrb-card: #1e1b17; --tcqrb-ink: #f6f1e8; --tcqrb-muted: #bdb4a7; --tcqrb-line: rgba(246, 241, 232, .16); color: var(--tcqrb-ink); }
.tcqrb-menu--oscuro .tcqrb-menu__kicker, .tcqrb-menu--oscuro .tcqrb-menu__num, .tcqrb-menu--oscuro .tcqrb-menu__price strong { color: var(--cv-accent-chalk, #f0b59f); }
.tcqrb-menu--oscuro .tcqrb-menu__inc { background: rgba(246, 241, 232, .08); }
.tcqrb-menu--color .tcqrb-menu__card { --tcqrb-card: var(--cv-accent-deep, #3d1a10); --tcqrb-ink: #fff; --tcqrb-muted: rgba(255, 255, 255, .75); --tcqrb-line: rgba(255, 255, 255, .2); color: var(--tcqrb-ink); }
.tcqrb-menu--color .tcqrb-menu__card::before { background: var(--cv-accent-chalk, #f0b59f); }
.tcqrb-menu--color .tcqrb-menu__kicker, .tcqrb-menu--color .tcqrb-menu__num, .tcqrb-menu--color .tcqrb-menu__price strong { color: var(--cv-accent-chalk, #f0b59f); }
.tcqrb-menu--color .tcqrb-menu__inc { background: rgba(255, 255, 255, .1); }
.tcqrb-menu--oscuro .tcqrb-al svg, .tcqrb-menu--color .tcqrb-al svg { background: #fff; border-radius: 50%; }

@media (max-width: 479px) {
	.tcqrb-menu__head { flex-direction: column; gap: 10px; }
	.tcqrb-menu__price { text-align: left; }
	.tcqrb-menu__price small { margin-left: 0; max-width: none; }
}

/* ---------- Lista de platos ---------- */
.tcqrb-dishes__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tcqrb-dishes--tarjetas .tcqrb-dishes__grid { grid-template-columns: repeat(min(2, var(--tcqrb-cols, 3)), 1fr); } }
@media (min-width: 960px) { .tcqrb-dishes--tarjetas .tcqrb-dishes__grid { grid-template-columns: repeat(var(--tcqrb-cols, 3), 1fr); gap: 24px; } }

.tcqrb-dish { position: relative; display: flex; flex-direction: column; background: var(--tcqrb-card); border-radius: var(--tcqrb-radius); overflow: hidden; box-shadow: 0 1px 0 var(--tcqrb-line), 0 14px 34px -24px rgba(29, 26, 22, .4); transition: transform .2s ease, box-shadow .2s ease; }
.tcqrb-dish__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.tcqrb-dish:has(.tcqrb-dish__link):hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--tcqrb-line), 0 22px 40px -22px rgba(29, 26, 22, .45); }
.tcqrb-dish__link:focus-visible { outline: 3px solid var(--cv-accent-text, #a4452c); outline-offset: 3px; }
.tcqrb-dish__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cv-accent-soft, #f3ece4); }
.tcqrb-dish__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcqrb-dish__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tcqrb-dish__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tcqrb-badge { display: inline-block; font-size: 11.52px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--cv-accent, #a4452c); color: var(--cv-on-accent, #fff); }
.tcqrb-badge--out { background: #4a4540; color: #fff; }
.tcqrb-dishes--tarjetas .has-photo .tcqrb-dish__badges, .tcqrb-dishes--tarjetas .tcqrb-dish__photo + .tcqrb-dish__body .tcqrb-dish__badges { position: absolute; top: 14px; left: 14px; z-index: 1; }
.tcqrb-dish__sec { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cv-accent-text, #a4452c); }
.tcqrb-dish__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tcqrb-dish__name { font-family: var(--tcqrb-head); font-size: 19.2px; line-height: 1.25; }
.tcqrb-dish__price { font-weight: 700; font-size: 16.8px; white-space: nowrap; color: var(--cv-accent-text, #a4452c); }
.tcqrb-dish__desc { color: var(--tcqrb-muted); font-size: 15.2px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcqrb-dish__sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.tcqrb-dish__sizes li { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border: 1px solid var(--tcqrb-line); border-radius: 99px; font-size: 14.08px; }
.tcqrb-dish__sizes strong { color: var(--cv-accent-text, #a4452c); }
.tcqrb-dish__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: auto; padding-top: 6px; }
.tcqrb-tag { font-size: 12.48px; padding: 2px 9px; border-radius: 99px; background: var(--cv-accent-soft, #f3ece4); }
.tcqrb-dish.is-soldout { opacity: .65; }
.tcqrb-dish.is-soldout .tcqrb-dish__name, .tcqrb-dish.is-soldout .tcqrb-dish__price { text-decoration: line-through; }
.tcqrb-dish.is-soldout img { filter: grayscale(1); }

/* Lista compacta */
.tcqrb-dishes--lista .tcqrb-dishes__grid { gap: 0; background: var(--tcqrb-card); border-radius: var(--tcqrb-radius); padding: 4px 20px; box-shadow: 0 1px 0 var(--tcqrb-line), 0 14px 34px -24px rgba(29, 26, 22, .4); }
@media (min-width: 960px) { .tcqrb-dishes--lista .tcqrb-dishes__grid { grid-template-columns: repeat(min(2, var(--tcqrb-cols, 3)), 1fr); column-gap: 40px; } }
.tcqrb-dishes--lista .tcqrb-dish { flex-direction: row; gap: 14px; align-items: flex-start; background: none; box-shadow: none; border-radius: 0; border-top: 1px solid var(--tcqrb-line); padding: 16px 0; overflow: visible; }
.tcqrb-dishes--lista .tcqrb-dish:first-child { border-top: 0; }
@media (min-width: 960px) { .tcqrb-dishes--lista .tcqrb-dish:nth-child(2) { border-top: 0; } }
.tcqrb-dishes--lista .tcqrb-dish:hover { transform: none; }
.tcqrb-dishes--lista .tcqrb-dish__photo { flex: none; width: 72px; height: 72px; aspect-ratio: 1; border-radius: 50%; }
.tcqrb-dishes--lista .tcqrb-dish__body { padding: 0; gap: 4px; }
.tcqrb-dishes--lista .tcqrb-dish__name { font-size: 16.8px; }
.tcqrb-dishes--lista .tcqrb-dish__desc { font-size: 14.4px; -webkit-line-clamp: 2; }

/* ---------- Botón de reservar ---------- */
.tcqrb-book {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 26px; border-radius: 99px; border: 2px solid var(--cv-accent, #a4452c);
	font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.tcqrb-book svg { flex: none; }
.tcqrb-book--relleno { background: var(--cv-accent, #a4452c); color: var(--cv-on-accent, #fff); }
.tcqrb-book--relleno:hover { transform: translateY(-1px); filter: brightness(1.08); }
.tcqrb-book--borde { background: transparent; color: inherit; }
.tcqrb-book--borde:hover { background: var(--cv-accent, #a4452c); color: var(--cv-on-accent, #fff); }
.tcqrb-book--texto { border: 0; padding: 8px 0; min-height: 44px; background: none; color: inherit; }
.tcqrb-book--texto span { border-bottom: 2px solid currentColor; }
.tcqrb-book--texto::after { content: "→"; transition: transform .2s ease; }
.tcqrb-book--texto:hover::after { transform: translateX(4px); }
.tcqrb-book--full { display: flex; width: 100%; }
.tcqrb-book:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* ---------- QR ---------- */
.tcqrb-qr { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tcqrb-qr__code, .tcqrb-qr__code svg { display: block; max-width: 100%; height: auto; }
.tcqrb-qr--frame { background: #fff; color: #1d1a16; padding: 18px 18px 16px; border-radius: var(--tcqrb-radius); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45); }
.tcqrb-qr__caption { font-weight: 700; font-size: 15.2px; max-width: 22ch; }

@media (prefers-reduced-motion: reduce) {
	.tcqrb-dish, .tcqrb-book, .tcqrb-book--texto::after { transition: none; }
}

/* ---------- Carta y formulario de TuCartaQR dentro de Bricks ---------- */
/* Incrustado, el formulario de reservas no tiene el margen de su página propia. */
.brxe-tcqr-reservas .tcqr-book-page { padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 28px); }
.brxe-tcqr-carta, .brxe-tcqr-reservas { width: 100%; min-width: 0; }
.brxe-tcqr-carta .tcqr, .brxe-tcqr-reservas .tcqr { margin-inline: auto; }

/* ---------- Fotos del local ---------- */
.tcqrb-photos { --tcqrb-h: 70vh; position: relative; }
.tcqrb-photos figure { margin: 0; overflow: hidden; }
.tcqrb-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Pase: las fotos se funden una en otra y se acercan despacio (efecto Ken Burns). */
.tcqrb-photos--pase { height: var(--tcqrb-h); min-height: 320px; overflow: hidden; border-radius: inherit; background: #17130f; }
.tcqrb-photos__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.tcqrb-photos__slide.is-on { opacity: 1; }
.tcqrb-photos__slide img { transform: scale(1.02); transform-origin: 60% 40%; }
.tcqrb-photos__slide.is-on img { animation: tcqrb-zoom var(--tcqrb-dur, 7s) ease-out forwards; }
.tcqrb-photos__slide:nth-child(even) img { transform-origin: 30% 60%; }
@keyframes tcqrb-zoom { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.tcqrb-photos__shade { position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 8, 6, calc(var(--tcqrb-shade, .35) * .6)) 0%, rgba(10, 8, 6, var(--tcqrb-shade, .35)) 55%, rgba(10, 8, 6, calc(var(--tcqrb-shade, .35) + .25)) 100%); }
/* Como fondo de la sección: ocupa toda la sección, detrás del contenido. */
.tcqrb-cover-root { position: absolute !important; inset: 0; z-index: 0; margin: 0 !important; max-width: none !important; width: auto !important; }
.tcqrb-cover-root .tcqrb-photos--pase { height: 100%; min-height: 0; }

/* Mosaico: una foto grande y cuatro pequeñas, que aparecen escalonadas al bajar. */
.tcqrb-photos--mosaico { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.tcqrb-photos__tile { border-radius: 14px; aspect-ratio: 1;
	transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--tcqrb-i, 0) * 110ms); }
.tcqrb-photos--mosaico.is-wait:not(.is-in) .tcqrb-photos__tile { opacity: 0; transform: translateY(28px) scale(.98); }
.tcqrb-photos__tile img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tcqrb-photos__tile:hover img { transform: scale(1.06); }
.tcqrb-photos__tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
	.tcqrb-photos--mosaico { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 1fr; gap: 16px; }
	.tcqrb-photos--mosaico .tcqrb-photos__tile { aspect-ratio: auto; min-height: 220px; }
	.tcqrb-photos--mosaico .tcqrb-photos__tile:first-child { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
	.tcqrb-photos--n2 { grid-template-columns: 1fr 1fr; }
	.tcqrb-photos--n2 .tcqrb-photos__tile:first-child { grid-row: auto; }
}

/* Cinta continua de fotos (se para al pasar el ratón). */
.tcqrb-photos--cinta { overflow: hidden; }
.tcqrb-photos__track { display: flex; gap: 14px; width: max-content; animation: tcqrb-slide var(--tcqrb-speed, 40s) linear infinite; }
.tcqrb-photos--cinta:hover .tcqrb-photos__track { animation-play-state: paused; }
.tcqrb-photos__item { flex: none; width: clamp(220px, 28vw, 340px); aspect-ratio: 4 / 5; border-radius: 14px; }
@keyframes tcqrb-slide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- Cinta de texto ---------- */
.tcqrb-ribbon { overflow: hidden; padding: 18px 0; font-family: var(--tcqrb-head); font-size: clamp(22px, 3.2vw, 34px); line-height: 1.2; white-space: nowrap; }
.tcqrb-ribbon--color { background: var(--cv-accent, #a4452c); color: var(--cv-on-accent, #fff); }
.tcqrb-ribbon--oscuro { background: #17130f; color: #f6f1e8; }
.tcqrb-ribbon--claro { background: #f4ede3; color: #1d1a16; }
.tcqrb-ribbon__track { display: flex; width: max-content; animation: tcqrb-ribbon var(--tcqrb-speed, 30s) linear infinite; }
.tcqrb-ribbon__track.is-reverse { animation-direction: reverse; }
.tcqrb-ribbon__half { display: flex; align-items: center; }
.tcqrb-ribbon__item { padding: 0 22px; }
.tcqrb-ribbon__dot { font-size: .6em; opacity: .7; }
@keyframes tcqrb-ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tcqrb .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sin movimiento para quien lo ha pedido en su sistema. */
@media (prefers-reduced-motion: reduce) {
	.tcqrb-photos__slide.is-on img, .tcqrb-photos__track, .tcqrb-ribbon__track { animation: none !important; }
	.tcqrb-photos__tile { opacity: 1; transform: none; transition: none; }
	.tcqrb-photos--cinta, .tcqrb-ribbon { overflow-x: auto; }
}
