/* Agenda (/agendar): tres columnas (datos · mes · horarios); en celulares se apilan. Colores y letras: --fs-*. */
.fsc-cal {
	--bk-line: var(--fs-line, #e3e8ed);
	--bk-ink: var(--fs-ink, #14212c);
	--bk-text: var(--fs-text, #3d4b57);
	--bk-muted: var(--fs-muted, #6b7a87);
	--bk-soft: var(--fs-soft, #eef3f8);
	--bk-accent: var(--fs-accent, #3a6b94);
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .9fr);
	grid-template-areas: "info err err" "info month times" "info form form";
	gap: 0;
	/* Sale del ancho de lectura del tema (columna estrecha) sin pasar del ancho de la pantalla. */
	width: min(1060px, calc(100vw - 32px));
	max-width: none;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	border: 1px solid var(--bk-line);
	border-radius: 18px;
	background: var(--fs-bg, #fff);
	color: var(--bk-text);
	font-family: var(--fs-font, inherit);
	font-size: 16px;
	overflow: hidden;
}
.fsc-cal *, .fsc-cal *::before, .fsc-cal *::after { box-sizing: border-box; }
.fsc-cal h2, .fsc-cal h3 { font-family: var(--fs-font-heading, inherit); color: var(--bk-ink); margin: 0; }
.fsc-cal__info { grid-area: info; padding: 24px; border-right: 1px solid var(--bk-line); display: flex; flex-direction: column; gap: 12px; }
.fsc-cal__host { display: flex; align-items: center; gap: 10px; color: var(--bk-muted); font-weight: 600; font-size: 15px; }
.fsc-cal__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.fsc-cal__avatar--txt { display: inline-grid; place-items: center; background: var(--bk-soft); color: var(--bk-ink); font-weight: 700; }
.fsc-cal__title { font-size: 26px; line-height: 1.2; }
.fsc-cal__desc { max-height: 220px; overflow: auto; color: var(--bk-text); line-height: 1.5; }
.fsc-cal__desc p { margin: 0 0 8px; }
.fsc-cal__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 600; color: var(--bk-ink); }
.fsc-cal__facts li { display: flex; align-items: center; gap: 8px; }
.fsc-cal__ico { width: 20px; text-align: center; color: var(--bk-muted); font-weight: 400; }
.fsc-cal__tz { max-width: 100%; min-height: 38px; padding: 4px 8px; border: 1px solid var(--bk-line); border-radius: 10px; background: transparent; color: inherit; font: inherit; font-weight: 500; }
.fsc-cal__err { grid-area: err; margin: 16px 24px 0; }
.fsc-cal__month { grid-area: month; padding: 24px; min-width: 0; }
.fsc-cal__mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--bk-ink); font-size: 17px; }
.fsc-cal__nav { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--bk-ink); font-size: 22px; cursor: pointer; }
.fsc-cal__nav:hover:not([disabled]) { background: var(--bk-soft); }
.fsc-cal__nav[disabled] { opacity: .3; cursor: default; }
.fsc-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.fsc-cal__wd { text-align: center; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--bk-muted); padding-bottom: 4px; }
.fsc-cal__d { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--bk-muted); font: inherit; cursor: default; }
.fsc-cal__d.is-open { background: var(--bk-soft); color: var(--bk-ink); font-weight: 700; cursor: pointer; }
.fsc-cal__d.is-open:hover { outline: 2px solid var(--bk-ink); }
.fsc-cal__d.is-today { text-decoration: underline; text-underline-offset: 4px; }
.fsc-cal__d.is-on { background: var(--bk-ink); color: #fff; }
.fsc-cal button:focus-visible, .fsc-cal select:focus-visible { outline: 3px solid var(--bk-accent); outline-offset: 2px; }
.fsc-cal__times { grid-area: times; padding: 24px 20px; border-left: 1px solid var(--bk-line); max-height: 520px; overflow: auto; }
.fsc-cal__timeshead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--bk-ink); }
.fsc-cal__fmt { display: inline-flex; border: 1px solid var(--bk-line); border-radius: 9px; overflow: hidden; }
.fsc-cal__fmt button { border: 0; padding: 4px 9px; background: transparent; color: var(--bk-muted); font: inherit; font-size: 13px; cursor: pointer; }
.fsc-cal__fmt button[aria-pressed="true"] { background: var(--bk-soft); color: var(--bk-ink); font-weight: 700; }
.fsc-cal__pick { color: var(--bk-muted); margin: 0; }
.fsc-cal__list { display: grid; gap: 8px; }
.fsc-cal__slot { min-height: 46px; border: 1px solid var(--bk-line); border-radius: 10px; background: transparent; color: var(--bk-ink); font: inherit; font-weight: 600; cursor: pointer; }
.fsc-cal__slot:hover { border-color: var(--bk-ink); }
.fsc-cal__slot.is-on { background: var(--bk-ink); border-color: var(--bk-ink); color: #fff; }
.fsc-cal__fallback { margin: 0; padding: 0; border: 0; }
.fsc-cal__form { grid-area: form; padding: 24px; border-top: 1px solid var(--bk-line); display: grid; gap: 14px; align-content: start; }
.fsc-cal__back { justify-self: start; border: 0; background: transparent; color: var(--bk-accent); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.fsc-cal__known { padding: 10px 14px; border-radius: 12px; background: var(--bk-soft); }
.fsc-cal__known summary { cursor: pointer; }
.fsc-cal__known[open] { display: grid; gap: 12px; }
.fsc-cal .fsc-bk__field { display: grid; gap: 6px; margin: 0; }
.fsc-cal .fsc-bk__field label, .fsc-cal .fsc-bk__radios legend { font-weight: 600; color: var(--bk-ink); }
.fsc-cal .fsc-bk__field input, .fsc-cal .fsc-bk__field textarea, .fsc-cal .fsc-bk__field select { width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; border: 1px solid var(--fs-line-2, #cfdbe5); border-radius: 12px; background: #fff; color: var(--bk-ink); }
.fsc-cal .fsc-bk__radios { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.fsc-cal__tel { display: flex; gap: 6px; }
.fsc-cal__tel select, .fsc-bk__tel select { flex: 0 0 auto; width: auto !important; }
.fsc-bk__tel { display: flex; gap: 6px; }
.fsc-cal .bk-btn { min-height: 50px; border: 0; border-radius: 12px; background: var(--bk-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; }
.fsc-cal .bk-btn--ghost { background: transparent; color: var(--bk-ink); border: 1px solid var(--bk-ink); }
/* Con JavaScript: primero mes + horarios; al elegir hora, el formulario ocupa su lugar. */
.fsc-cal.is-js .fsc-cal__form { display: none; }
.fsc-cal.is-js.is-form .fsc-cal__form { display: grid; grid-area: month / month / times / times; border-top: 0; max-width: 560px; }
.fsc-cal.is-js.is-form .fsc-cal__month, .fsc-cal.is-js.is-form .fsc-cal__times { display: none; }
.fsc-cal.is-js { grid-template-areas: "info err err" "info month times"; }
/* Lista de temas, compra y confirmación. */
.fsc-cal--list, .fsc-cal--done { display: block; width: min(640px, calc(100vw - 32px)); padding: 28px; }
.fsc-cal--list h2 { margin: 14px 0; }
.fsc-cal__types { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fsc-cal__types a { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--bk-line); border-radius: 14px; color: var(--bk-text); text-decoration: none; }
.fsc-cal__types a:hover { border-color: var(--bk-ink); }
.fsc-cal__types b { color: var(--bk-ink); font-size: 18px; }
.fsc-cal__types small { display: flex; flex-wrap: wrap; gap: 6px; }
.fsc-cal__pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--fs-soft, #eef3f8); color: var(--fs-ink, #14212c); font-size: 13px; font-weight: 600; }
.fsc-cal__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fsc-cal__price { font-size: 20px; color: var(--fs-ink, #14212c); }
.fsc-cal__acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.fsc-cal__buy .fsc-cal__acts .bk-btn--ghost { background: transparent; color: var(--fs-ink, #14212c); border: 1px solid currentColor; }
.fsc-cal__done { display: grid; gap: 12px; text-align: center; justify-items: center; }
.fsc-cal__check { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--fs-ok, #1f6f43); color: #fff; font-size: 26px; }
.fsc-cal__sum { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; width: 100%; margin: 8px 0; padding: 16px 0; border-block: 1px solid var(--bk-line); text-align: left; }
.fsc-cal__sum dt { font-weight: 700; color: var(--bk-ink); }
.fsc-cal__sum dd { margin: 0; overflow-wrap: anywhere; }
.fsc-citas { display: grid; gap: 12px; }
.fsc-citas__item { padding: 14px 16px; border: 1px solid var(--fs-line, #e3e8ed); border-radius: 14px; }
.fsc-citas__item p { margin: 4px 0 0; }
.fsc-citas__item.is-past { opacity: .6; }
@media (max-width: 899px) {
	.fsc-cal, .fsc-cal.is-js { grid-template-columns: 1fr; grid-template-areas: "info" "err" "month" "times" "form"; border-radius: 14px; }
	.fsc-cal.is-js.is-form .fsc-cal__form { grid-area: form; }
	.fsc-cal__info { border-right: 0; border-bottom: 1px solid var(--bk-line); padding: 18px 16px; }
	.fsc-cal__month, .fsc-cal__form { padding: 18px 16px; }
	.fsc-cal__times { border-left: 0; border-top: 1px solid var(--bk-line); max-height: none; padding: 18px 16px; }
	.fsc-cal__list { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
	.fsc-cal--list, .fsc-cal--done { padding: 20px 16px; }
	.fsc-cal__sum { grid-template-columns: 1fr; gap: 2px; }
	.fsc-cal__sum dd { margin-bottom: 8px; }
	.fsc-cal__acts .bk-btn { flex: 1 1 100%; }
}
.fsc-cal [hidden] { display: none !important; }
.fsc-cal__facts li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fsc-cal__facts .fsc-cal__tz { flex: 1 1 auto; min-width: 0; width: 100%; }
.fsc-cal .fsc-bk__radios label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--bk-text); cursor: pointer; }
.fsc-cal .fsc-bk__radios input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; padding: 0; flex: 0 0 auto; accent-color: var(--bk-ink); }
.fsc-cal .fsc-bk__tel { display: flex; gap: 8px; }
.fsc-cal .fsc-bk__tel select { width: auto; flex: 0 0 auto; max-width: 42%; }
.fsc-cal .fsc-bk__tel input { flex: 1 1 auto; min-width: 0; }

/* Agenda primero, pago después: botones del formulario y tarjeta «Pago» en la página de pagar pedido. */
.fsc-cal__formacts { display: flex; gap: .6rem; flex-wrap: wrap; }
.fsc-cal__formacts .bk-btn { flex: 1 1 auto; }
.fsc-bkpay { max-width: 560px; margin: 0 auto 1.25rem; padding: 1.4rem 1.4rem 1.1rem; border-radius: 18px; background: var(--fs-ink, #14212c); color: #fff; }
.fsc-bkpay h2 { margin: 0 0 .8rem; color: #fff; font-size: 1.35rem; }
.fsc-bkpay__sum { display: grid; grid-template-columns: 5.5rem 1fr; gap: .55rem .8rem; margin: 0 0 1rem; }
.fsc-bkpay__sum dt { opacity: .7; font-size: .9rem; }
.fsc-bkpay__sum dd { margin: 0; }
.fsc-bkpay__sum small { opacity: .75; }
.fsc-bkpay__sum .fs-cur, .fsc-bkpay__sum b { color: #fff; }
.fsc-bkpay__timer { margin: 0; padding: .65rem .8rem; border-radius: 10px; background: rgba(255,255,255,.1); font-size: .95rem; }
.fsc-bkpay__timer b { font-variant-numeric: tabular-nums; }
.fsc-bkpay__cancel { margin: .8rem 0 0; text-align: right; }
.fsc-bkpay__cancel a { color: #fff; opacity: .8; }
.fsc-bkpay--gone { background: var(--fs-line, #e3e8ed); color: var(--fs-text, #3d4b57); }
.fsc-bkpay--gone h2 { color: var(--fs-ink, #14212c); }
.fsc-bkpay-page #order_review { max-width: 560px; margin: 0 auto; }
.fsc-bkpay-page #order_review > table.shop_table { display: none; }
.fsc-bkpay-page #place_order { width: 100%; background: var(--fs-accent, #3a6b94); border-color: transparent; }
@media (max-width: 600px) { .fsc-bkpay { border-radius: 14px; padding: 1.1rem; } .fsc-bkpay__sum { grid-template-columns: 4.6rem 1fr; } }

/* Precio en una línea: tachado + actual en negrita, sin subrayado. */
.fsc-cal__pricefact { flex-wrap: nowrap; white-space: nowrap; }
.fsc-cal__pricefact del { opacity: .55; margin-right: .35rem; font-weight: 400; }
.fsc-cal__pricefact ins { text-decoration: none; font-weight: 800; }
.fsc-cal__pricefact .fs-cur { display: inline; margin-left: .2rem; font-size: .8em; }
.fsc-cal__as { margin: 0 0 .8rem; font-size: .92rem; }

/* Reprogramar / cancelar. */
.fsc-cal__manage { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.fsc-cal__manage .is-off { opacity: .45; pointer-events: none; }
.fsc-cal__why { flex-basis: 100%; margin: .2rem 0 0; font-size: .85rem; color: var(--fs-muted, #6b7a87); }
.fsc-cal__again a { color: var(--fs-muted, #6b7a87); font-size: .9rem; text-decoration: none; }
.fsc-cal__again a:hover { text-decoration: underline; }

/* Pagar la cita: la pasarela en blanco, sin la caja gris del tema. */
.fsc-bkpay-page #payment { background: #fff !important; border: 1px solid var(--fs-line, #e3e8ed); border-radius: 16px; }
.fsc-bkpay-page #payment div.payment_box { background: #fff !important; }
.fsc-bkpay-page #payment div.payment_box::before { display: none; }
