/*
 * Child theme styles.
 * Loaded after the parent CSS, so plain selectors are enough - avoid !important.
 */

:root {
	--bcm-header-h: 88px;
	--bcm-header-bg: rgba(20, 35, 28, 0.85);
}

/* Negritas: el navegador sube solo un paso desde Poppins Light (300 a 400). En Figma todas las negritas son Bold. */
strong,
b {
	font-weight: 700;
}

/* Header fijo y transparente sobre el hero. */
#tahefobu-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	transition: background-color 0.3s ease;
}

.admin-bar #tahefobu-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* Sobre el hero el header no lleva fondo ni desenfoque, como en Figma. Al bajar toma fondo para leerse sobre secciones claras. */
#tahefobu-header.is-scrolled {
	background-color: var(--bcm-header-bg);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

/* Menú de escritorio: separación de 26px entre enlaces, como en Figma. */
#tahefobu-header .tahefobu-nav-menu {
	gap: 26px;
}

#tahefobu-header .tahefobu-nav-menu > li {
	margin: 0;
}

/* Menú: hover y sección activa con la línea oliva de las pestañas de modelos. */
#tahefobu-header .tahefobu-nav-menu > li > a,
#tahefobu-header .tahefobu-nav-menu > li.current-menu-item > a {
	position: relative;
	color: rgba(255, 255, 255, 0.8);
	transition: color 0.2s ease;
}

#tahefobu-header .tahefobu-nav-menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 2px;
	background-color: #8f993e;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

#tahefobu-header .tahefobu-nav-menu > li > a:hover,
#tahefobu-header .tahefobu-nav-menu > li > a:focus-visible,
#tahefobu-header .tahefobu-nav-menu > li > a.is-active {
	color: #fff;
}

#tahefobu-header .tahefobu-nav-menu > li > a:hover::after,
#tahefobu-header .tahefobu-nav-menu > li > a:focus-visible::after,
#tahefobu-header .tahefobu-nav-menu > li > a.is-active::after {
	transform: scaleX(1);
}

#tahefobu-header .tahefobu-nav-menu > li > a:focus-visible {
	outline: 2px solid #8f993e;
	outline-offset: 4px;
}

#tahefobu-header .tahefobu-mobile-nav-menu a.is-active {
	color: #b4bd6b;
	text-decoration: underline;
	text-underline-offset: 6px;
}

@media (prefers-reduced-motion: reduce) {
	#tahefobu-header .tahefobu-nav-menu > li > a,
	#tahefobu-header .tahefobu-nav-menu > li > a::after {
		transition: none;
	}
}

/* Las anclas no quedan tapadas por el header fijo. */
html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--bcm-header-h);
}

/* Menú móvil: panel oscuro bajo el header. */
#tahefobu-header .tahefobu-mobile-nav-menu {
	background-color: var(--bcm-header-bg);
}

#tahefobu-header .tahefobu-mobile-nav-menu li,
#tahefobu-header .tahefobu-mobile-nav-menu a,
#tahefobu-header .tahefobu-mobile-nav-menu .current-menu-item > a {
	background-color: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.12);
}

#tahefobu-header .tahefobu-mobile-toggle-line {
	background-color: #fff;
}

@media (max-width: 1024px) {
	#tahefobu-header .elementor-element.bcm-header__cta {
		margin-left: auto;
	}
}

/* Hero: Elementor solo permite dos paradas en el degradado; Figma usa tres. */
#f2e-hero.bcm-hero::before,
#f2e-gracias.bcm-thanks::before {
	background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.1) 100%);
}

@media (max-width: 1024px) {
	#f2e-hero.bcm-hero::before,
#f2e-gracias.bcm-thanks::before {
		background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.7) 100%);
	}
}

/* Hero: la segunda línea del título va en cursiva con serifa. */
.bcm-hero__title em {
	display: block;
	font-family: "Tiro Bangla", serif;
	font-style: italic;
	font-weight: 400;
	line-height: 1.214;
}

.bcm-hero__price p {
	margin: 0;
}

/* Títulos de sección: la parte en cursiva usa Tiro Bangla un poco más grande. */
.bcm-title em {
	font-family: "Tiro Bangla", serif;
	font-style: italic;
	font-weight: 400;
	font-size: 1.08em;
	letter-spacing: -0.035em;
}

.bcm-copy p:last-child {
	margin-bottom: 0;
}

.bcm-title--break em {
	display: block;
	line-height: 1.12;
}

.bcm-bullets ul {
	margin: 0;
	padding-left: 21px;
	list-style: disc;
}

.bcm-amenity .elementor-widget-image img {
	display: block;
}

.bcm-copy--tight p {
	margin: 0;
}

/* Lista de iconos a dos columnas (Departamentos). */
.bcm-list-2col .elementor-icon-list-items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 22px;
}

.bcm-list-2col .elementor-icon-list-item {
	align-items: flex-start;
}

@media (max-width: 767px) {
	.bcm-list-2col .elementor-icon-list-items {
		grid-template-columns: 1fr;
	}
}

/* Botón con círculo blanco y flecha, para los widgets Botón con la clase bcm-btn. */
.bcm-btn .elementor-button {
	position: relative;
	min-height: 53px;
	display: inline-flex;
	align-items: center;
}

.bcm-btn .elementor-button::after {
	content: "\2192";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border-radius: 50%;
	background-color: #fff;
	color: #8f993e;
	font-size: 14px;
	line-height: 28px;
	text-align: center;
}
/* Variante clara del botón: fondo blanco y círculo oliva. */
.bcm-btn--light .elementor-button::after {
	background-color: #8f993e;
	color: #fff;
}

/* Reseñas de Google: el plugin es genérico, el diseño de este sitio va aquí. */
.bcm-reviews-carousel .gr-carousel-wrapper {
	--gr-star: #f2b01e;
	--gr-card-bg: #fff;
	--gr-card-border: transparent;
	--gr-card-radius: 32px;
	--gr-card-shadow: 0 12px 20px rgba(20, 35, 28, 0.07);
	--gr-card-padding: 30px;
	--gr-text: #666;
	--gr-name: #242424;
	--gr-gap: 24px;
	max-width: none;
	padding: 0;
	font-family: Poppins, sans-serif;
}

.bcm-reviews-carousel .gr-carousel-track {
	padding: 10px 0 30px;
	margin: -10px 0 -30px;
}

.bcm-reviews-carousel .gr-card {
	min-height: 260px;
}

.bcm-reviews-carousel .gr-author-name {
	font-size: 16px;
	line-height: 25.28px;
}

.bcm-reviews-carousel .gr-star {
	width: 16px;
	height: 16px;
}

.bcm-reviews-carousel .gr-quote {
	font-size: 14px;
	font-weight: 300;
	line-height: 21px;
}

.bcm-reviews-badge .gr-top-bar {
	margin: 0;
	padding: 0;
	font-family: Poppins, sans-serif;
}

.bcm-reviews-badge .gr-star {
	fill: #f2b01e;
}

/* Preguntas frecuentes: acordeón anidado de Elementor con el estilo del diseño. */
.bcm-faq .e-n-accordion {
	gap: 0;
}

.bcm-faq .e-n-accordion-item {
	border-bottom: 1px solid rgba(36, 36, 36, 0.14);
}

.bcm-faq .e-n-accordion-item-title {
	justify-content: space-between;
	gap: 24px;
	padding: 23px 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.bcm-faq .e-n-accordion-item-title-text {
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 24.65px;
	color: #242424;
}

.bcm-faq .e-n-accordion-item-title-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #8f993e;
}

.bcm-faq .e-n-accordion-item-title-icon svg {
	width: 12px;
	height: 12px;
	fill: #fff;
}

.bcm-faq .e-n-accordion-item-title:focus-visible {
	outline: 2px solid #8f993e;
	outline-offset: 2px;
}

.bcm-faq .e-n-accordion-item > .e-con {
	border: 0;
}

@media (max-width: 767px) {
	.bcm-faq .e-n-accordion-item-title-text {
		font-size: 16px;
		line-height: 23px;
	}
}
/* Formularios CF7 (Hero y Contacto). */
.bcm-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.bcm-form__field {
	display: grid;
	gap: 7px;
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 11px;
	line-height: 16.5px;
	color: #242424;
}

.bcm-form__field--full {
	grid-column: 1 / -1;
}

.bcm-form .wpcf7-form-control-wrap {
	display: block;
}

.bcm-form__field input,
.bcm-form__field select {
	width: 100%;
	height: 47px;
	padding: 0 13px;
	border: 1px solid rgba(36, 36, 36, 0.14);
	border-radius: 6px;
	background-color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 11px;
	color: #242424;
	box-shadow: none;
}

.bcm-form__field input::placeholder {
	color: rgba(36, 36, 36, 0.5);
}

.bcm-form__field select {
	padding: 0 36px 0 17px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23242424' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

.bcm-form__field input:focus,
.bcm-form__field select:focus {
	outline: 2px solid #8f993e;
	outline-offset: 1px;
}

.bcm-form__terms {
	margin-top: 12px;
	font-family: Poppins, sans-serif;
	font-size: 10px;
	line-height: 15px;
	text-align: center;
	color: #777;
}

.bcm-form__terms .wpcf7-list-item {
	margin: 0;
}

.bcm-form__terms input {
	accent-color: #8f993e;
	margin-right: 6px;
	vertical-align: middle;
}

.bcm-form__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}

.bcm-form__terms .wpcf7-not-valid-tip {
	text-align: center;
}

.bcm-form__submit {
	position: relative;
	display: inline-flex;
}

.bcm-form__submit input[type="submit"] {
	min-height: 53px;
	padding: 0 70px 0 24px;
	border: 1px solid #8f993e;
	border-radius: 8px;
	background-color: #8f993e;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	line-height: 21px;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.bcm-form__submit input[type="submit"]:hover,
.bcm-form__submit input[type="submit"]:focus-visible {
	background-color: #7a8334;
}

/* Círculo blanco con flecha, igual al diseño. */
.bcm-form__submit::after {
	content: "\2192";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border-radius: 50%;
	background-color: #fff;
	color: #819481;
	font-size: 14px;
	line-height: 28px;
	text-align: center;
	pointer-events: none;
}

/* El spinner de CF7 no debe ensanchar el botón: si lo hace, el círculo de la flecha queda afuera. */
.bcm-form .wpcf7-spinner {
	position: absolute;
	top: 50%;
	left: 100%;
	margin: -12px 0 0 12px;
}

.bcm-form__submit input[type="submit"]:disabled {
	opacity: 1;
	cursor: pointer;
}

.bcm-form .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 11px;
}

.bcm-form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 8px 12px;
	border-radius: 6px;
	font-family: Poppins, sans-serif;
	font-size: 12px;
}

@media (max-width: 400px) {
	.bcm-form__grid {
		grid-template-columns: 1fr;
	}
}

/* Ajustes responsive finales. */

/* Áreas táctiles de al menos 44 px en enlaces de texto. */
.ic-models__plan,
.bcm-footer .elementor-heading-title a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Compensa el área táctil para que el teléfono quede en su línea de Figma. */
.bcm-footer .elementor-widget-heading:has(a[href^="tel:"]) {
	margin-top: 12px;
}

@media (max-width: 767px) {
	/* Amenidades: carrusel horizontal en móvil, la siguiente tarjeta asoma. */
	.bcm-amenities .e-grid {
		display: flex;
		gap: 16px;
		margin-right: -16px;
		padding-right: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.bcm-amenities .e-grid::-webkit-scrollbar {
		display: none;
	}

	.bcm-amenities .e-grid > .bcm-amenity {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}

	.bcm-reviews-carousel .gr-source {
		font-size: 11px;
		line-height: 16px;
	}
}
/* Animaciones de entrada. Sin la clase bcm-anim (sin JS, "reducir movimiento" o editor) todo se ve normal. */
.bcm-anim .bcm-reveal {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition:
		opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--bcm-delay, 0ms),
		transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--bcm-delay, 0ms);
}

/* El hero se oculta desde el primer pintado para que su entrada se vea al cargar. */
.bcm-anim #f2e-hero .e-con-inner > .e-con:first-child > .elementor-widget:not(.bcm-done),
.bcm-anim #f2e-hero .bcm-hero__card:not(.bcm-done) {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
}

.bcm-anim .bcm-reveal-init {
	transition: none !important;
}

.bcm-anim .bcm-reveal.is-visible,
.bcm-anim #f2e-hero .is-visible,
.bcm-anim-done .bcm-reveal,
.bcm-anim-done #f2e-hero .e-con-inner > .e-con:first-child > .elementor-widget,
.bcm-anim-done #f2e-hero .bcm-hero__card {
	opacity: 1;
	transform: none;
}

/* Microinteracciones al pasar el mouse. */
.bcm-amenity {
	transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.bcm-amenity .elementor-widget-image img,
.ic-gallery .ic-gallery__img {
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ic-gallery__link {
	overflow: hidden;
	border-radius: 32px;
}

.bcm-reviews-carousel .gr-card {
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.elementor-button,
.bcm-form__submit input[type="submit"],
.ic-models__button {
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

@media (hover: hover) {
	.bcm-amenity:hover {
		transform: translateY(-4px);
		box-shadow: 0 18px 40px rgba(20, 35, 28, 0.12);
	}

	.bcm-amenity:hover .elementor-widget-image img,
	.ic-gallery__link:hover .ic-gallery__img {
		transform: scale(1.05);
	}

	.bcm-reviews-carousel .gr-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 20px 34px rgba(20, 35, 28, 0.12);
	}

	.elementor-button:hover,
	.bcm-form__submit input[type="submit"]:hover,
	.ic-models__button:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 24px rgba(20, 35, 28, 0.18);
	}
}

@media (max-width: 767px) {
	.ic-gallery__link {
		border-radius: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.bcm-amenity,
	.bcm-amenity .elementor-widget-image img,
	.ic-gallery .ic-gallery__img,
	.bcm-reviews-carousel .gr-card,
	.elementor-button,
	.bcm-form__submit input[type="submit"],
	.ic-models__button {
		transition: none;
	}
}


/* Hero: zoom lento del fondo (Ken Burns). La capa ::after hereda la foto del contenedor
   y queda debajo del degradado (::before) y del contenido. */
#f2e-hero.bcm-hero {
	overflow: hidden;
	isolation: isolate;
}

#f2e-hero.bcm-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: inherit;
	transform-origin: 50% 30%;
	animation: bcm-kenburns 22s ease-in-out infinite alternate;
	will-change: transform;
	pointer-events: none;
}

@keyframes bcm-kenburns {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
	#f2e-hero.bcm-hero::after {
		animation: none;
	}
}

/* bcm-hero-shrink: entre 1025 y ~1350px la columna de texto (763px fija) más el formulario
   no caben; la columna de texto se encoge para que el formulario no quede cortado. */
@media (min-width: 1025px) {
	#f2e-hero .e-con-inner > .e-con:first-child {
		flex: 1 1 0;
		min-width: 0;
	}
}