/* ===========================================================
   EMV Child — css/emv-yith.css
   La marca sobre el formulario de reserva de YITH Booking ([emv_as_reserva] → [booking_form], inc/asesorias.php;
   specs/asesorias.md §8). Solo se encola donde se pinta el formulario (/asesorias/ con la agenda abierta), detrás de las
   hojas de YITH y de emv-hijo.css. Todo va bajo .elementor .emv-yith (0,3,0 o más): gana a datepicker.css, fields.css y
   booking-form.css de YITH (0,2,0-0,3,0) y a jquery-ui.min.css sin !important.
   Decisión por defecto D21 a ([CIERRE]): el calendario de mes de YITH (datepicker de jQuery UI en línea) y sus horas en lista,
   restilados como la tira de días y las horas del prototipo (asesorias.css:258-323). Lo que YITH no hace (semana Lun-Vie con
   recuento, «Lleno», «Festivo», «Ocupado») queda en §13 de la spec como diferencia aceptada.
   Los estados los pone YITH / jQuery UI: día elegido .ui-datepicker-current-day, día no disponible .ui-datepicker-unselectable
   y .bk-non-available-date, hora elegida .yith-wcbk-select-list__option--selected. El módulo «asesoria» de js/emv.js añade el
   título de las horas (.emv-yith__ht), su rol, su teclado y data-emv-local (la hora del visitante).
   =========================================================== */

/* variables de color de YITH en su ámbito (las imprime en línea desde su opción de colores: no se toca la opción) */
.emv-yith {
	--yith-wcbk-primary: var(--night); --yith-wcbk-primary-light: rgba(12, 0, 19, .03); --yith-wcbk-primary-contrast: var(--white);
	--yith-wcbk-border-color: var(--n18); --yith-wcbk-border-color-focus: var(--night); --yith-wcbk-shadow-focus: none; --yith-wcbk-fields-font-size: 15px;
	font-size: 16px; font-weight: 300; line-height: normal; color: var(--night);
}
/* el envoltorio del shortcode sin márgenes ni fondos */
.elementor .emv-yith :is(.woocommerce, .yith-wcbk-shortcode-booking-form, .yith_wcbk_booking_form_shortcode_summary, form.cart, .yith-wcbk-booking-form,
	.yith-wcbk-form-section-dates-wrapper, .yith-wcbk-form-section, .yith-wcbk-form-section__content, .yith-wcbk-date-picker-inline-wrapper) {
	margin: 0; padding: 0; background: none; border: 0; box-shadow: none; float: none; width: auto;
}
.elementor .emv-yith .yith-wcbk-form-section-dates-wrapper { display: block; }
.elementor .emv-yith .yith-wcbk-booking-form { max-width: none; }   /* booking-form.css: 700 px */
.elementor .emv-yith .woocommerce div.product form.cart { margin: 0; }   /* Woo: .woocommerce div.product form.cart { margin-bottom: 2em } */
/* «Día» y «Hora»: solo para lectores de pantalla (la tira y el título de las horas hablan por sí) */
.elementor .emv-yith label.yith-wcbk-form-section__label {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* fuera: la duración fija («1 hora»), los totales de YITH (el total va en el resumen) y el «Limpiar» del datepicker */
.elementor .emv-yith :is(.yith-wcbk-form-section-duration--no-field, .yith-wcbk-form-section-totals, .ui-datepicker-buttonpane) { display: none; }
/* su botón se pulsa desde el resumen o la barra; sin JS se queda (es el único camino) */
html.emv-js .elementor .emv-yith .yith-wcbk-add-to-cart-button { display: none; }
.elementor .emv-yith .yith-wcbk-add-to-cart-button {
	display: flex; align-items: center; justify-content: center; width: calc(100% - 2 * clamp(14px, 2vw, 22px)); min-height: 54px;
	margin: 0 clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px); padding: 14px 18px; border: 0; border-radius: var(--r); background: var(--red-boton); color: var(--white);
	font: 600 12.5px/1.2 var(--b, "Kanit"), sans-serif; letter-spacing: .14em; text-transform: uppercase; white-space: normal;
}
.elementor .emv-yith .yith-wcbk-booking-form-message:not(:empty) {
	padding: 0 clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px); font-size: 13.5px; line-height: 1.5; color: var(--n74);
}
.elementor .emv-yith .yith-wcbk-booking-form-message .error,
.elementor .emv-yith .yith-wcbk-form-section__content--with-error { color: var(--red-boton); }
.elementor .emv-yith .emv-yith__avisos { padding: clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px) 0; font-size: 14px; color: var(--night); }

/* ---------- el mes = la «semana» del prototipo (.cal__sem y .dias) ---------- */
.elementor .emv-yith .yith-wcbk-date-picker--inline { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; }
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker {
	display: block; width: 100% !important; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
	font-family: inherit; font-size: 16px; color: var(--night);
}
/* datepicker.css de YITH fuerza sombra y relleno de celda con !important */
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker.ui-widget-content { box-shadow: none !important; overflow: visible; }
/* la cabecera: el mes a la izquierda y las dos flechas a la derecha (asesorias.css:258-267) */
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker .ui-datepicker-header {
	position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 0; margin: 0;
	padding: 12px clamp(14px, 2vw, 22px); border: 0; border-bottom: 1px solid var(--n10); border-radius: 0; background: none; color: var(--night);
}
/* el clearfix de jQuery UI mete ::before y ::after como huecos de la fila flex */
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker .ui-datepicker-header::before,
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker .ui-datepicker-header::after { content: none; display: none; }
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker .ui-datepicker-title {
	order: -1; flex: 1 1 auto; margin: 0 6px 0 0; padding: 0; text-align: left; font-size: 15px; font-weight: 600; line-height: normal; color: var(--night);
}
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker .ui-datepicker-title .ui-datepicker-month { text-transform: capitalize; }
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker :is(.ui-datepicker-prev, .ui-datepicker-next) {
	position: static; top: auto; left: auto; right: auto; display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0;
	border: 1px solid var(--n18); border-radius: var(--r); background: var(--white); color: var(--night); cursor: pointer; transition: border-color .2s;
}
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker :is(.ui-datepicker-prev, .ui-datepicker-next) span {
	position: static; display: block; width: 16px; height: 16px; margin: 0; padding: 0; overflow: hidden; background: currentColor; text-indent: 100%; white-space: nowrap;
	font-size: 0; -webkit-mask: url(../img/iconos/caret-der.svg) center / contain no-repeat; mask: url(../img/iconos/caret-der.svg) center / contain no-repeat;
}
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker .ui-datepicker-prev span {
	-webkit-mask-image: url(../img/iconos/caret-izq.svg); mask-image: url(../img/iconos/caret-izq.svg);
}
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker :is(.ui-datepicker-prev, .ui-datepicker-next) span::after { content: none; }
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker :is(.ui-datepicker-prev, .ui-datepicker-next).ui-state-disabled {
	opacity: 1; color: rgba(12, 0, 19, .3); cursor: not-allowed;
}
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker :is(.ui-datepicker-prev, .ui-datepicker-next):focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
/* los días: teselas (asesorias.css:271-292). La tabla con border-spacing = el hueco de 8 de la tira */
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker table.ui-datepicker-calendar {
	width: 100%; margin: 0; padding: 6px calc(clamp(14px, 2vw, 22px) - 8px) 0; border: 0; border-collapse: separate; border-spacing: 8px; table-layout: fixed;
	font-size: 16px; background: none;
}
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker :is(tr, th, td) { border: 0; background: none; }
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker th {
	padding: 0; font-size: 10.5px; font-weight: 300; line-height: normal; letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--n64);
}
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker td {
	width: auto; height: auto; padding: 0 !important; text-align: center; text-decoration: none; background: none;
}
/* las semanas que ya pasaron enteras no se enseñan: el mes en curso arranca en la semana de hoy (la «tira» del prototipo).
   Las semanas futuras sin horas (llenas o sin agenda: YITH les pone bk-non-available-date) siguen a la vista, apagadas. */
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker-calendar tbody tr:not(:has(> td:not(.ui-datepicker-unselectable))):not(:has(> td.bk-non-available-date)) {
	display: none;
}
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker td :is(a, span).ui-state-default {
	display: grid; place-items: center; min-height: 56px; width: auto; height: auto; margin: 0; padding: 0; box-sizing: border-box;
	border: 1px solid var(--n18); border-radius: var(--r); background: var(--white); color: var(--night); box-shadow: none; outline-offset: 3px; opacity: 1;
	font-size: 22px; font-weight: 600; line-height: 1; text-align: center; text-decoration: none; font-variant-numeric: tabular-nums;
	transition: border-color .2s, background-color .2s, color .2s;
}
/* hoy, sin el resaltado amarillo de jQuery UI */
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker td .ui-state-highlight { background: var(--white); border-color: var(--n18); color: var(--night); }
/* elegido */
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker td.ui-datepicker-current-day a.ui-state-default,
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker td a.ui-state-active { background: var(--night); border-color: var(--night); color: var(--white); }
/* sin horas, sin agenda o fuera de la antelación: apagado, a trazos (no desaparece: un día que se esfuma hace ver el calendario roto) */
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker td:is(.ui-datepicker-unselectable, .bk-non-available-date) :is(a, span).ui-state-default {
	background: rgba(12, 0, 19, .03); border-style: dashed; color: rgba(12, 0, 19, .4); opacity: 1; cursor: not-allowed;
}
/* jquery-ui.min.css pone opacity .35 en el <td> (.ui-widget-content .ui-state-disabled, 0,2,0): queda solo el color .4 del prototipo */
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker td.ui-state-disabled { opacity: 1; }
/* los días del mes vecino: el módulo «asesoria» de js/emv.js enciende showOtherMonths y selectOtherMonths (YITH trae 3 meses de
   disponibilidad desde el principio), así la semana en curso sale entera aunque cruce de mes; sin eso, la celda va vacía y oculta */
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker td.ui-datepicker-other-month:not(:has(a, span)) { visibility: hidden; }
.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker td a.ui-state-default:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
/* la agenda es de lunes a viernes: fuera sábado y domingo (la semana empieza el lunes: start_of_week = 1) */
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker :is(th, td):nth-child(n+6) { display: none; }
/* y el día de la semana va dentro de la tesela, como en la tira del prototipo («LUN / 28»); la fila de cabecera queda para lectores */
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker-calendar thead {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0;
}
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker td :is(a, span).ui-state-default {
	grid-template-rows: auto auto; align-content: center; gap: 4px; min-height: 81px; padding: 10px 4px;   /* el alto de la tesela del prototipo */
}
/* la tira como .dias: la tesela a 14 del borde de la cabecera (la fila oculta de los días aún deja su hueco de 8) y las horas justo
   debajo (sin el hueco inferior de la tabla) */
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker table.ui-datepicker-calendar {
	margin: -2px 0 -8px; padding-top: 0; padding-bottom: 0;
}
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker td :is(a, span).ui-state-default::before {
	font-size: 10.5px; font-weight: 300; line-height: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--n64);
}
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker td:nth-child(1) :is(a, span).ui-state-default::before { content: "Lun"; }
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker td:nth-child(2) :is(a, span).ui-state-default::before { content: "Mar"; }
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker td:nth-child(3) :is(a, span).ui-state-default::before { content: "Mié"; }
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker td:nth-child(4) :is(a, span).ui-state-default::before { content: "Jue"; }
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker td:nth-child(5) :is(a, span).ui-state-default::before { content: "Vie"; }
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker td.ui-datepicker-current-day a.ui-state-default::before { display: block; color: var(--b62); }
.elementor .emv-yith--laborables .yith-wcbk-date-picker--inline .ui-datepicker td:is(.ui-datepicker-unselectable, .bk-non-available-date) :is(a, span).ui-state-default::before {
	color: rgba(12, 0, 19, .4);
}

/* ---------- las horas del día (asesorias.css:294-323) ---------- */
.elementor .emv-yith .yith-wcbk-form-section.yith-wcbk-form-section-dates-date-time { padding: clamp(14px, 2vw, 22px); }   /* 0,4,0: gana al reset (form.cart pesa 0,1,1) */
.elementor .emv-yith .emv-yith__ht { margin: 0 0 12px; font-size: 13.5px; font-weight: 300; line-height: normal; color: var(--n64); }
.elementor .emv-yith .emv-yith__ht:empty { display: none; }
.elementor .emv-yith .emv-yith__ht b { font-weight: 500; color: var(--night); }
.elementor .emv-yith .yith-wcbk-select-list { font-size: 16px; }
.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; }
@media (min-width: 1100px) {
	.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; min-height: 60px;
	padding: 10px 14px; border: 1px solid var(--n18); border-radius: var(--r); background: var(--white); cursor: pointer; text-align: left;
	font-size: 17px; font-weight: 600; line-height: normal; color: var(--night); font-variant-numeric: tabular-nums;
	transition: border-color .2s, background-color .2s, color .2s;
}
/* «Elegida» sin hijos dentro de la opción (YITH lee data-value del e.target). «Libre» ya no se pone (06/10/2026, Oscar D): si la hora sale, está libre */
.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option::after {
	content: ""; font-size: 10.5px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: var(--n64);
}
.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option::before { content: none; }
/* la hora del visitante, si no está en la de Colombia (el .hora__l del prototipo) */
.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option[data-emv-local]::before {
	content: attr(data-emv-local); position: static; order: 3; grid-column: 1 / -1; width: auto; height: auto; margin: 0; padding: 0; border-radius: 0;
	background: none; font-family: inherit; font-size: 12px; font-weight: 300; line-height: normal; text-align: left; color: var(--n64);
}
.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option.yith-wcbk-select-list__option--selected {
	background: var(--night); border-color: var(--night); color: var(--white);
}
.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option.yith-wcbk-select-list__option--selected::after { content: "Elegida"; color: var(--red); }
.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option.yith-wcbk-select-list__option--selected[data-emv-local]::before { color: var(--b62); }
.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option-skeleton { height: auto; min-height: 60px; border-radius: var(--r); background: rgba(12, 0, 19, .04); }
.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__empty-message {
	grid-column: 1 / -1; min-height: 0; padding: 0; background: none; font-size: 14.5px; line-height: 1.55; color: var(--n74);
}
/* la hora recién elegida acusa recibo: sube y baja una vez */
@keyframes emvElegida { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option[data-recien] { animation: emvElegida .32s cubic-bezier(.2, .8, .3, 1); }
}

/* ---------- hover (con puntero) y movimiento reducido ---------- */
@media (hover: hover) {
	.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker :is(.ui-datepicker-prev, .ui-datepicker-next):not(.ui-state-disabled):hover {
		border-color: var(--night); background: var(--white);
	}
	.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker td:not(.ui-datepicker-unselectable):not(.ui-datepicker-current-day) a.ui-state-default:hover {
		border-color: var(--night); background: var(--white); color: var(--night);
	}
	.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option:not(.yith-wcbk-select-list__option--selected):hover {
		border-color: var(--night); background: rgba(12, 0, 19, .03);
	}
}
@media (prefers-reduced-motion: reduce) {
	.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker :is(.ui-datepicker-prev, .ui-datepicker-next),
	.elementor .emv-yith .yith-wcbk-date-picker--inline .ui-datepicker td :is(a, span).ui-state-default,
	.elementor .emv-yith .yith-wcbk-select-list .yith-wcbk-select-list__option { transition: none; }
}

/* «Continuar al pago» esperando (06/10/2026, Oscar D): se ve ocupado y no responde a más pulsaciones */
.elementor [data-emv-as-cta][data-emv-espera] { cursor: progress; opacity: .8; pointer-events: none; }
