/* ESTB Slider de Citas v1.1.0 */
.estb-ac {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	background-color: #FFFFFF;
	border: 1px solid #E8E9E4;
	border-radius: 4px;
	overflow: hidden;
	color: #123A4A;
	transition: box-shadow .25s ease;
}

/* ---------- Imagen ---------- */
.estb-ac__media {
	position: relative;
	height: 280px;
	background-color: #C9D9DD;
	overflow: hidden;
	flex: 0 0 auto;
}
.estb-ac .estb-ac__img,
.estb-ac__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	border-radius: 0;
	transition: transform .6s ease;
}
.estb-ac-zoom-yes .estb-ac:hover .estb-ac__media img { transform: scale(1.04); }

/* ---------- Fecha ---------- */
.estb-ac__date {
	position: absolute;
	left: 20px;
	top: 20px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 88px;
	box-sizing: border-box;
	padding: 10px 16px 9px;
	background-color: #FAFAF8;
	border-radius: 4px;
	line-height: 1;
	text-align: center;
}
.estb-ac__date-wd {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	color: #E1464E;
}
.estb-ac__date-day {
	margin: 4px 0 3px;
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: #123A4A;
	font-variant-numeric: tabular-nums;
}
.estb-ac__date-day.is-range { font-size: 30px; }
.estb-ac__date-my {
	font-size: 12px;
	font-weight: 600;
	color: #123A4A;
	white-space: nowrap;
}
.estb-ac__date-tbc {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: #123A4A;
	max-width: 120px;
}
.estb-ac__date-tbc span { font-weight: 400; font-size: 12px; color: #4C6670; }

/* ---------- Etiqueta ---------- */
.estb-ac__badge {
	position: absolute;
	right: 20px;
	top: 20px;
	z-index: 2;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
}
.estb-ac__badge--text { background-color: #E1464E; color: #1E3A4A; }

/* Sin imagen: fecha y etiqueta en una fila */
.estb-ac__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 8px;
}
.estb-ac__top .estb-ac__date,
.estb-ac__top .estb-ac__badge { position: static; }
.estb-ac__top .estb-ac__date { background-color: #FAFAF8; border: 1px solid #E8E9E4; }

/* ---------- Contenido ---------- */
.estb-ac__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 10px;
	padding: 28px;
}
.estb-ac__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #123A4A;
}
.estb-ac__sub {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: #4C6670;
}
.estb-ac__meta {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.45;
	color: #4C6670;
}

/* ---------- Enlace ---------- */
.estb-ac .estb-ac__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #E8E9E4;
	color: #123A4A;
	text-decoration: none;
	box-shadow: none;
}
.estb-ac .estb-ac__link:hover { color: #123A4A; text-decoration: none; }
.estb-ac .estb-ac__link:focus-visible { outline: 2px solid #E1464E; outline-offset: 4px; }

.estb-ac__link-texts { display: flex; flex-direction: column; gap: 2px; }
.estb-ac__link-es { font-size: 14px; font-weight: 600; line-height: 1.2; color: #123A4A; }
.estb-ac__link-en { font-size: 12px; line-height: 1.2; color: #4C6670; }

.estb-ac__circle {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid #123A4A;
	color: #123A4A;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.estb-ac__circle svg { width: 40%; height: 40%; }
.estb-ac:hover .estb-ac__circle,
.estb-ac .estb-ac__link:focus-visible .estb-ac__circle { background-color: #E1464E; border-color: #E1464E; color: #123A4A; }

/* Toda la tarjeta clicable (el enlace se estira sobre la tarjeta) */
.estb-ac.is-clickable { cursor: pointer; }
.estb-ac.is-clickable .estb-ac__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.estb-ac__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.estb-ac-notice {
	padding: 20px;
	border: 1px dashed #C9D9DD;
	border-radius: 4px;
	background: #FAFAF8;
	color: #4C6670;
	font-size: 14px;
	line-height: 1.5;
}

@media (max-width: 767px) {
	.estb-ac__media { height: 220px; }
	.estb-ac__date { left: 14px; top: 14px; min-width: 76px; padding: 8px 12px; }
	.estb-ac__date-day { font-size: 32px; }
	.estb-ac__badge { right: 14px; top: 14px; }
	.estb-ac__body { padding: 22px 20px; }
	.estb-ac__title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
	.estb-ac, .estb-ac__media img, .estb-ac__circle { transition: none !important; }
	.estb-ac-zoom-yes .estb-ac:hover .estb-ac__media img { transform: none; }
}

/* =========================================================
   Slider (v1.1.0): una cita cada vez
   ========================================================= */
.estb-acs {
	--estb-acs-nav-gap: 20px;
	--estb-acs-dot: #C9D9DD;
	--estb-acs-dot-active: #E1464E;
	--estb-acs-arrow: #123A4A;
	--estb-acs-arrow-bg-hover: #123A4A;
	--estb-acs-arrow-icon-hover: #FFFFFF;
	position: relative;
	min-width: 0;
	max-width: 100%;
}
.estb-acs__track {
	display: flex;
	align-items: stretch;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	border-radius: 4px;
}
.estb-acs__track::-webkit-scrollbar { display: none; }
.estb-acs__track:focus-visible { outline: 2px solid #E1464E; outline-offset: 3px; }
.estb-acs__slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
}
.estb-acs__slide > .estb-ac { width: 100%; }

/* Navegación: puntos a la izquierda, flechas a la derecha */
.estb-acs__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: var(--estb-acs-nav-gap);
}
.estb-acs__dots { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.estb-acs .estb-acs__dot {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	box-shadow: none;
}
.estb-acs .estb-acs__dot::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--estb-acs-dot);
	transform: translate(-50%, -50%);
	transition: width .3s ease, background-color .3s ease;
}
.estb-acs .estb-acs__dot.is-active { width: 36px; }
.estb-acs .estb-acs__dot.is-active::before { width: 28px; background: var(--estb-acs-dot-active); }
.estb-acs .estb-acs__dot:hover::before { background: var(--estb-acs-dot-active); }
.estb-acs .estb-acs__dot:focus-visible { outline: 2px solid #E1464E; outline-offset: 0; border-radius: 999px; }

.estb-acs__count { font-size: 14px; color: #4C6670; font-variant-numeric: tabular-nums; margin-right: auto; }
.estb-acs__dots + .estb-acs__count { margin-left: 8px; }
.estb-acs__count b { color: #123A4A; font-weight: 600; }

.estb-acs__arrows { display: flex; gap: 10px; margin-left: auto; }
.estb-acs .estb-acs__arrow {
	appearance: none;
	-webkit-appearance: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--estb-acs-arrow);
	background: transparent;
	color: var(--estb-acs-arrow);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .25s ease, color .25s ease, opacity .25s ease;
}
.estb-acs .estb-acs__arrow:hover,
.estb-acs .estb-acs__arrow:focus-visible { background: var(--estb-acs-arrow-bg-hover); color: var(--estb-acs-arrow-icon-hover); border-color: var(--estb-acs-arrow-bg-hover); }
.estb-acs .estb-acs__arrow:focus-visible { outline: 2px solid #E1464E; outline-offset: 2px; }
.estb-acs .estb-acs__arrow:disabled { opacity: .35; cursor: default; background: transparent; color: var(--estb-acs-arrow); border-color: var(--estb-acs-arrow); }
.estb-acs .estb-acs__arrow svg { width: 18px; height: 18px; display: block; }

@media (prefers-reduced-motion: reduce) {
	.estb-acs__track { scroll-behavior: auto; }
	.estb-acs .estb-acs__dot::before, .estb-acs .estb-acs__arrow { transition: none !important; }
}
