/* TuCartaQR · reservas del cliente (estilo «Pizarra», sobre carta.css). */

.tcqr-head--book { padding-bottom: 40px; }
.tcqr-head--book .tcqr-head__name { font-size: clamp(28px, 8.5vw, 44px); }
.tcqr-head--book .tcqr-head__name a { color: inherit; text-decoration: none; }
.tcqr-head--book .tcqr-head__sub { font-size: 13px; }
.tcqr .tcqr-head--book .tcqr-langs { margin-bottom: 6px; }

.tcqr-book-main { max-width: 560px; margin: 0 auto; padding: 4px 16px 8px; }
.tcqr-book { display: grid; gap: 26px; }
.tcqr-book [hidden] { display: none !important; }
.tcqr-book__step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.tcqr-book__label {
	padding: 0; margin: 0 0 2px;
	font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
	color: var(--cv-accent-text);
	display: flex; align-items: center; gap: 12px; width: 100%;
}
.tcqr-book__label::after { content: ""; flex: 1; height: 1px; background: var(--cv-line); }
.tcqr-book__hint { color: var(--cv-muted); font-size: 13.5px; }
.tcqr-book__hint a { color: var(--cv-text); font-weight: 700; white-space: nowrap; }
.tcqr-book__msg { padding: 16px 18px; border-radius: 14px; background: var(--cv-accent-soft); color: var(--cv-text); font-size: 15px; }

/* Personas: píldoras redondas */
.tcqr-book__people { display: flex; flex-wrap: wrap; gap: 8px; }
.tcqr-pill { position: relative; cursor: pointer; }
.tcqr-pill input, .tcqr-pill select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.tcqr-pill span {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%;
	border: 1.5px solid var(--cv-line); background: var(--cv-surface);
	font-weight: 750; font-size: 17px; font-variant-numeric: tabular-nums;
	transition: background .15s, border-color .15s, color .15s;
}
.tcqr-pill:has(input:checked) span, .tcqr-pill--more:has(select option:checked:not([value=""])) span { background: var(--cv-text); border-color: var(--cv-text); color: var(--cv-bg); }
.tcqr-pill:has(:focus-visible) span { outline: 3px solid var(--cv-accent-text); outline-offset: 2px; }

/* Días: tira que se desliza */
.tcqr-book__days {
	display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
	margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none;
}
.tcqr-book__days::-webkit-scrollbar { display: none; }
.tcqr-day {
	flex: 0 0 auto; scroll-snap-align: start;
	display: grid; justify-items: center; gap: 1px;
	width: 62px; padding: 9px 0 10px; border-radius: 14px;
	border: 1.5px solid var(--cv-line); background: var(--cv-surface); color: var(--cv-text);
	cursor: pointer; line-height: 1.1;
}
.tcqr-day__w { font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--cv-muted); }
.tcqr-day__n { font-size: 22px; font-weight: 800; font-family: var(--cv-font-head); font-variant-numeric: tabular-nums; }
.tcqr-day__m { font-size: 11.5px; color: var(--cv-muted); text-transform: lowercase; }
.tcqr-day[aria-checked="true"] { background: var(--cv-text); border-color: var(--cv-text); color: var(--cv-bg); }
.tcqr-day[aria-checked="true"] span:not(.tcqr-day__n) { color: inherit; opacity: .75; }
.tcqr--oscuro .tcqr-slots { background: #2b2720; border: 1px solid var(--cv-line); }
.tcqr-day:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.tcqr-book__other { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cv-muted); }
.tcqr-book__other input {
	font: inherit; color: var(--cv-text); background: var(--cv-surface);
	border: 1.5px solid var(--cv-line); border-radius: 10px; padding: 8px 10px; min-height: 44px;
}

/* Horas: pizarra con las horas en tiza */
.tcqr-book__slots { display: grid; gap: 14px; }
.tcqr-slots { background: var(--cv-board); color: var(--cv-chalk); border-radius: var(--cv-radius); padding: 14px 14px 16px; }
.tcqr-slots__name { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--cv-accent-chalk); margin-bottom: 10px; }
.tcqr-slots__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.tcqr-slot {
	min-height: 46px; border-radius: 10px;
	border: 1.5px solid var(--cv-chalk-line); background: transparent; color: var(--cv-chalk);
	font-weight: 750; font-size: 16px; font-variant-numeric: tabular-nums; cursor: pointer;
}
.tcqr-slot[aria-pressed="true"] { background: var(--cv-accent); border-color: var(--cv-accent); color: var(--cv-on-accent); }
.tcqr-slot:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.tcqr-slot:focus-visible { outline-color: var(--cv-chalk); }
.tcqr-book__loading { padding: 10px 0; }

/* Datos */
.tcqr-book__chosen { font-weight: 750; font-size: 15.5px; padding: 12px 14px; border-radius: 12px; background: var(--cv-accent-soft); }
.tcqr-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.tcqr-field small { font-weight: 500; color: var(--cv-muted); }
.tcqr-field input, .tcqr-field textarea {
	font: inherit; font-size: 16px; font-weight: 400; color: var(--cv-text);
	background: var(--cv-surface); border: 1.5px solid var(--cv-line); border-radius: 12px;
	padding: 11px 13px; min-height: 48px; width: 100%;
}
.tcqr-field textarea { resize: vertical; min-height: 76px; }
.tcqr-field input:focus, .tcqr-field textarea:focus { outline: none; border-color: var(--cv-text); }
.tcqr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tcqr-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.tcqr-agree input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: var(--cv-accent); }
.tcqr-agree a { color: var(--cv-text); font-weight: 700; }
.tcqr-book__note { font-size: 13.5px; color: var(--cv-muted); border-left: 3px solid var(--cv-accent); padding-left: 12px; }
.tcqr-book__error { color: #b3261e; font-weight: 700; font-size: 14.5px; }
.tcqr--oscuro .tcqr-book__error { color: #ffb4a9; }
.tcqr-book__send { width: 100%; min-height: 54px; font-size: 17px; }
.tcqr-book__send:disabled { opacity: .6; }
.tcqr-book .tcqr-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 20px; }

/* Resultado y «ver o cancelar»: un tique */
.tcqr-book__done, .tcqr-book__ticket {
	text-align: center; gap: 10px;
	background: var(--cv-surface); border: 1px solid var(--cv-line); border-radius: var(--cv-radius);
	padding: 26px 20px 22px; outline: none;
}
.tcqr-state {
	justify-self: center; display: inline-block;
	padding: 6px 14px; border-radius: 999px;
	font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	background: var(--cv-accent-soft); color: var(--cv-accent-text);
}
.tcqr-state--confirmada { background: #e3f1e6; color: #1f6b35; }
.tcqr-state--rechazada, .tcqr-state--cancelada { background: #f3e3e1; color: #8c2a20; }
.tcqr--oscuro .tcqr-state--confirmada { background: #1f3326; color: #9fd8ad; }
.tcqr--oscuro .tcqr-state--rechazada, .tcqr--oscuro .tcqr-state--cancelada { background: #3a2220; color: #f0aaa0; }
.tcqr-ticket__when { font-family: var(--cv-font-head); font-size: 22px; font-weight: 700; margin-top: 6px; }
.tcqr-ticket__time { font-family: var(--cv-font-head); font-size: 46px; font-weight: 800; line-height: 1; color: var(--cv-accent-text); font-variant-numeric: tabular-nums; }
.tcqr-ticket__who { font-weight: 650; }
.tcqr-book__cancel { width: 100%; margin-top: 6px; }

.tcqr-foot--book { text-align: center; max-width: 560px; padding-top: 22px; }

/* Otros sistemas de reservas (0.5) */
.tcqr-book--ext { text-align: center; gap: 16px; }
.tcqr-book__big { width: 100%; min-height: 56px; font-size: 17px; }
.tcqr-book__frame { width: 100%; min-height: 680px; height: 80vh; border: 1px solid var(--cv-line); border-radius: var(--cv-radius); background: #fff; }
.tcqr-book--ext .tcqr-book__note { text-align: left; }
