/* Seguridad contra el desborde horizontal que a veces genera el truco de
   100vw en mobile (la barra de direcciones/scrollbar hace que 100vw sea
   más ancho que la pantalla real, dejando una franja visible al costado). */
html, body {
	overflow-x: hidden;
	max-width: 100%;
}

.bkn-banner {
	position: relative;
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc( 50% - 50vw );
	margin-right: calc( 50% - 50vw );
}

.bkn-banner-track {
	position: relative;
	width: 100%;
	overflow: hidden;
	transition: height 0.4s ease;
}

.bkn-banner--multi .bkn-banner-track {
	touch-action: pan-y;
	user-select: none;
}

.bkn-banner--multi:focus-visible {
	outline: 2px solid #3e7dd4;
	outline-offset: -2px;
}

/* Cada slide se dibuja entero (sin el max-height del más alto) y solo el
   activo participa en el flujo/opacidad; los demás quedan superpuestos y
   transparentes, listos para el próximo fade. */
.bkn-banner-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	z-index: 1;
	transition: opacity 0.6s ease;
	pointer-events: none;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
}

.bkn-banner-slide.is-active {
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
}

.bkn-banner-container {
	width: 80%;
	max-width: 1200px;
	margin: 0 auto;
	padding-top: var( --bkn-pad-d, 0 );
	padding-bottom: var( --bkn-pad-d, 0 );
	display: flex;
	align-items: center;
}

/* Columna de texto: agrupa el contenido enriquecido + el CTA para que en
   desktop viajen juntos (CTA debajo del texto, misma columna). En mobile
   se "desarma" con display:contents (ver media query) para poder intercalar
   la imagen entre el texto y el CTA. */
.bkn-banner-text-col {
	width: 50%;
}

.bkn-banner-text-col--end {
	margin-left: auto;
}

.bkn-banner-text-col--start {
	margin-right: auto;
}

.bkn-banner-content {
	color: #000;
}

.bkn-banner-content > *:first-child { margin-top: 0; }
.bkn-banner-content > *:last-child  { margin-bottom: 0; }

.bkn-banner-cta {
	margin-top: 24px;
}

.bkn-banner-cta-link {
	font-family: 'Roboto', sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 17px;
	color: #fff !important;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 15px 30px;
	background-color: #3e7dd4 !important;
	border-radius: 30px;
	display: inline-flex;
	align-items: center;
	text-decoration: none !important;
	border: none;
}

.bkn-banner-cta-link:hover {
	background-color: #000 !important;
	color: #fff !important;
}

/* Barra de CTA fija al fondo de la pantalla — solo mobile (ver media query).
   En desktop no existe: el CTA vive dentro del texto como siempre. */
.bkn-banner-fixed-cta {
	display: none;
}

/* Imagen dentro del container, al lado del texto (columna 50/50). Cuando
   está presente, la columna de texto ya no necesita el margin-left/right:auto
   que usa para pegarse a un costado cuando está sola. */
.bkn-banner-container--has-img {
	gap: 40px;
}

.bkn-banner-container--has-img .bkn-banner-text-col {
	width: calc( 50% - 20px );
	margin-left: 0;
	margin-right: 0;
}

.bkn-banner-container-img {
	width: calc( 50% - 20px );
	flex-shrink: 0;
}

.bkn-banner-container-img img {
	width: 100%;
	height: auto;
	display: block;
}

.bkn-banner-container-img img.bkn-container-img-mobile {
	display: none;
}

/* Tipografía calcada del hero original de bookinest.com (uagb-ifb-title /
   uagb-ifb-desc / uagb-infobox-cta-link) para que los banners nuevos
   mantengan la misma identidad visual. */
.bkn-banner-content h1,
.bkn-banner-content h2,
.bkn-banner-content h3 {
	font-family: 'kidzhood-medium', cursive;
	font-weight: 400;
	color: inherit;
	margin: 20px 0;
}

.bkn-banner-content h1 { font-size: 48px; line-height: 1.2; }
.bkn-banner-content h2 { font-size: 40px; line-height: 48px; }
.bkn-banner-content h3 { font-size: 32px; line-height: 1.3; }

.bkn-banner-content p {
	font-family: 'Roboto', sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 26.4px;
	color: inherit;
	letter-spacing: 0.6px;
	margin: 0 0 36px;
}

.bkn-banner-content p strong {
	font-weight: 700;
}

.bkn-banner-content .wp-block-button__link {
	font-family: 'Roboto', sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 17px;
	color: #fff !important;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 15px 30px;
	background-color: #3e7dd4 !important;
	border-radius: 30px;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	border: none;
}

.bkn-banner-content .wp-block-button__link:hover {
	background-color: #000 !important;
	color: #fff !important;
}

.bkn-banner-mobile-img {
	display: none;
}

.bkn-banner-arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	color: #888 !important;
	border: none !important;
	border-radius: 0 !important;
	width: 48px;
	height: 48px;
	font-size: 44px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: color 0.2s ease;
}

.bkn-banner-arrow:hover,
.bkn-banner-arrow:focus {
	background: transparent !important;
	color: #555 !important;
}

.bkn-banner-prev { left: 16px; }
.bkn-banner-next { right: 16px; }

@media ( max-width: 768px ) {
	/* El sitio tiene una regla global ".alignfull{width:100%!important}" para
	   mobile que rompe nuestro full-bleed (el banner heredaba el 80% del
	   container padre). La pisamos con más especificidad. */
	.bkn-banner.alignfull {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: calc( 50% - 50vw ) !important;
		margin-right: calc( 50% - 50vw ) !important;
	}

	.bkn-banner-slide {
		background-image: none !important;
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
	}

	/* Orden fijo en mobile, sin importar la alineación elegida para desktop:
	   1) texto, 2) imagen (la que haya: de container o de fondo), 3) CTA. */
	.bkn-banner-container {
		width: 100% !important;
		max-width: 100% !important;
		flex-direction: column;
		padding-top: var( --bkn-pad-m, 0 ) !important;
		padding-bottom: var( --bkn-pad-m, 0 ) !important;
	}

	.bkn-banner-text-col,
	.bkn-banner-text-col--start,
	.bkn-banner-text-col--end {
		display: contents;
	}

	.bkn-banner-content {
		width: 80%;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
		padding: 40px 0 0;
		order: 1;
	}

	.bkn-banner-content .wp-block-buttons {
		justify-content: center;
	}

	.bkn-banner-container-img,
	.bkn-banner-mobile-img {
		width: 100%;
		order: 2;
	}

	.bkn-banner-mobile-img {
		display: block;
		height: auto;
		margin: 24px 0;
	}

	.bkn-banner-container-img {
		margin: 0;
	}

	.bkn-banner-container-img img.bkn-container-img-desktop {
		display: none;
	}

	.bkn-banner-container-img img.bkn-container-img-mobile {
		display: block;
	}

	.bkn-banner-cta {
		display: none;
	}

	.bkn-banner-fixed-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		background: #fff;
		padding: 16px;
		z-index: 1000;
		box-shadow: 0 -2px 10px rgba( 0, 0, 0, 0.08 );
	}

	.bkn-banner-fixed-cta.is-empty {
		display: none;
	}

	.bkn-banner-fixed-cta-link {
		width: 100%;
		justify-content: center;
	}

	.bkn-banner-content h1 { font-size: 34px; line-height: 1.2; }
	.bkn-banner-content h2 { font-size: 30px; line-height: 1.25; }
	.bkn-banner-content h3 { font-size: 24px; line-height: 1.3; }

	.bkn-banner-content p {
		font-size: 18px;
		line-height: 1.4;
	}

	.bkn-banner-content .wp-block-button__link {
		display: inline-flex;
		justify-content: center;
	}
}
