/*
 * 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);
}

/* 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);
}

#tahefobu-header .bcm-header {
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

#tahefobu-header.is-scrolled {
	background-color: var(--bcm-header-bg);
}

/* 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;
}

/* 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 {
	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 {
		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;
}

/* 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: 16px;
	font-family: Poppins, sans-serif;
	font-size: 11px;
	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__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;
}

.bcm-form .wpcf7-spinner {
	margin: 0;
}

.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;
	}
}

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