/* Chicama Core — acceso al motor de reservas.
 * Colores y tipografía heredan los globales del Kit de Elementor (Sitio → Colores
 * y Tipografía globales); los valores tras la coma son solo respaldo. */
.chc-booking {
	--chc-bg: var(--e-global-color-secondary, #535349);
	--chc-fg: #fff;
	--chc-btn-bg: var(--e-global-color-accent, #c9a96e);
	--chc-btn-fg: #fff; /* Decisión de Daniel (11/11/2026): texto blanco en los botones de reserva. */
	font-family: var(--e-global-typography-text-font-family, inherit), sans-serif;
}

.chc-booking--bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 16px 20px;
	border-radius: 10px;
	background: var(--chc-bg);
	color: var(--chc-fg);
}

.chc-booking__text { flex: 1 1 260px; }

.chc-booking__title {
	margin: 0 0 4px;
	font-size: 1.05rem;
	font-weight: 600;
	color: inherit;
}

.chc-booking__note {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	opacity: 0.85;
	color: inherit;
}

.chc-booking__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px; /* objetivo táctil WCAG 2.2 */
	padding: 10px 22px;
	border-radius: 6px;
	background: var(--chc-btn-bg);
	color: var(--chc-btn-fg);
	font-family: var(--e-global-typography-accent-font-family, inherit), sans-serif;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	transition: filter 0.2s ease;
}

.chc-booking__btn:hover,
.chc-booking__btn:focus-visible {
	filter: brightness(0.92);
	color: var(--chc-btn-fg);
}

.chc-booking__btn:focus-visible {
	outline: 2px solid var(--chc-fg);
	outline-offset: 2px;
}

.chc-booking--button { display: inline-block; }

@media (max-width: 600px) {
	.chc-booking--bar .chc-booking__btn { width: 100%; }
}

/* Botón flotante de WhatsApp */
.chc-wa {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 18px 0 14px;
	border-radius: 999px;
	background: #157a3c; /* verde WhatsApp oscurecido: blanco sobre #25d366 da 2:1 (no cumple WCAG); así ~5,5:1 */
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.chc-wa:hover, .chc-wa:focus-visible { color: #fff; filter: brightness(0.95); }
.chc-wa:focus-visible { outline: 3px solid #0b5e2c; outline-offset: 2px; }
.chc-wa svg { width: 26px; height: 26px; fill: currentColor; }
.chc-wa i { font-size: 26px; }
@media (max-width: 600px) {
	.chc-wa { padding: 0; width: 56px; justify-content: center; }
	.chc-wa__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .chc-wa { display: none; } }

/* SEO on-page (migración 005) ---------------------------------------- */
/* H1 dentro de un bloque de texto (páginas del libro): mismo aspecto que el
   párrafo en negrita que sustituye. */
.elementor-widget-text-editor h1.chc-h1-texto {
	margin: 0 0 0.9em;
	font-family: inherit;
	font-size: inherit;
	font-weight: 700;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
	text-transform: uppercase;
}

/* Móvil: el botón de la cabecera («RESERVAR» es más largo que «BOOK NOW») desbordaba
   32 px a 390 px. Más compacto en pantallas pequeñas. */
@media (max-width: 767px) {
	.chc-booking--button .chc-booking__btn {
		min-height: 40px;
		padding: 8px 12px;
		font-size: 0.75rem;
		letter-spacing: 0.02em;
		white-space: nowrap;
	}
}

/* Cajas de habitaciones de la home (migración 009): precio, «Includes» y lista dejan
   de ser h3/h5/h6. Valores medidos con getComputedStyle antes del cambio (11/11/2026),
   para que el aspecto no varíe. */
.eael-infobox .chc-ib-precio,
.eael-infobox .chc-ib-incluye,
.eael-infobox .chc-ib-item {
	/* !important solo aquí: Essential Addons fija fuente y margen de los <p> de la caja
	   con un selector más específico (por id de elemento). */
	margin: 8px 0 16px !important;
	color: rgb(0, 33, 27);
	font-weight: 400;
	letter-spacing: normal;
}
.eael-infobox .chc-ib-precio { font-family: "Roca", sans-serif !important; font-size: 22px; line-height: 30px; text-transform: uppercase; }
.eael-infobox .chc-ib-incluye { font-family: "Roca", sans-serif !important; font-size: 20px; line-height: 24px; }
.eael-infobox .chc-ib-item { font-family: "Albert Sans", sans-serif !important; font-size: 16px; line-height: 19.2px; }
