/* ============================================================
   HEADER + MENÚ — HACIENDAS HORIZONTE
   Escritorio: pill blanca flotante (como la referencia).
   Móvil (<1024px): logo + hamburguesa + overlay verde.
   Paleta:
     Verde:        #1d3535
     Dorado:       #d4a574
     Dorado hover: #b88b5a
   ============================================================ */

:root {
	--hh-bg:        #1d3535;
	--hh-gold:      #d4a574;
	--hh-gold-dark: #b88b5a;
	--hh-text:      #ffffff;
	--hh-easing:    cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; }

/* Oculta el header/footer POR DEFECTO de Hello (los feos rosados). */
.site-header,
.site-footer { display: none !important; }

/* Sin destello rojo/azul al tocar; foco accesible dorado. */
.hh-header *,
.hh-overlay * { -webkit-tap-highlight-color: rgba(212, 165, 116, .15); }
.hh-header a:focus-visible,
.hh-header button:focus-visible,
.hh-overlay a:focus-visible,
.hh-overlay button:focus-visible {
	outline: 2px solid var(--hh-gold);
	outline-offset: 3px;
	border-radius: 8px;
}

/* ============================================================
   HEADER ESCRITORIO (pill blanca flotante)
   ============================================================ */
.hh-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9990;
	padding: 18px clamp(12px, 3vw, 32px);
	pointer-events: none; /* deja pasar el clic salvo en el pill */
}
.hh-header-inner {
	pointer-events: auto;
	max-width: 1280px;
	margin: 0 auto;
	background: transparent;
	border-radius: 9999px;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px 12px 20px;
	transition: max-width .4s var(--hh-easing), background .4s var(--hh-easing), box-shadow .4s var(--hh-easing), padding .4s var(--hh-easing);
}

/* SCROLL: glass blanco translúcido con blur (#ffffffd9). */
.hh-header.is-scrolled .hh-header-inner {
	max-width: 1180px;
	background: #ffffffd9;
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	padding-top: 8px;
	padding-bottom: 8px;
}
.hh-header.is-scrolled .hh-brand-logo { width: 40px; height: 40px; }

/* Marca / logo */
.hh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hh-brand-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; transition: width .3s var(--hh-easing), height .3s var(--hh-easing); }
.hh-brand-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 20px;
	white-space: nowrap;
	color: #fff;
	transition: color .3s var(--hh-easing);
}
.hh-header.is-scrolled .hh-brand-name { color: var(--hh-bg); }
.hh-brand:hover .hh-brand-name { color: var(--hh-gold); }

/* Menú escritorio */
.hh-nav-desktop .hh-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}
.hh-nav-desktop .hh-menu a {
	display: block;
	white-space: nowrap;
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: 9999px;
	transition: color .3s var(--hh-easing), background .3s var(--hh-easing);
}
/* SCROLL: sobre el glass blanco el texto pasa a oscuro */
.hh-header.is-scrolled .hh-nav-desktop .hh-menu a { color: var(--hh-bg); }
/* Hover (ambos estados): pill dorada redondeada */
.hh-nav-desktop .hh-menu a:hover,
.hh-nav-desktop .hh-menu .current-menu-item > a {
	color: var(--hh-gold);
	background: rgba(212, 165, 116, .15);
}

/* Acciones derecha */
.hh-actions { display: flex; align-items: center; gap: 12px; }

.hh-lang-select {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 9999px;
	padding: 8px 14px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: #fff;
	cursor: pointer;
	transition: border-color .3s var(--hh-easing), color .3s var(--hh-easing), background .3s var(--hh-easing);
}
/* SCROLL: sobre glass blanco, fondo claro y texto oscuro */
.hh-header.is-scrolled .hh-lang-select {
	background: #ffffff;
	border-color: #e7e7e7;
	color: var(--hh-bg);
}
/* Bloqueo anti-rojo + hover dorado, en TOP (transparente) */
.hh-header .hh-lang-select:hover,
.hh-header .hh-lang-select:focus,
.hh-header .hh-lang-select:active {
	background: transparent;
	color: var(--hh-gold);
	border-color: var(--hh-gold);
}
/* Bloqueo anti-rojo + hover dorado, con SCROLL (glass blanco) */
.hh-header.is-scrolled .hh-lang-select:hover,
.hh-header.is-scrolled .hh-lang-select:focus,
.hh-header.is-scrolled .hh-lang-select:active {
	background: #ffffff;
	color: var(--hh-gold);
	border-color: var(--hh-gold);
}
.hh-lang-select svg { width: 16px; height: 16px; }
/* Globo del idioma SIEMPRE dorado (#d4a574), en ambos estados */
.hh-lang-select svg:not(.hh-chev),
.hh-header.is-scrolled .hh-lang-select svg:not(.hh-chev) {
	color: #d4a574;
	stroke: #d4a574;
}
.hh-lang-select .hh-chev { width: 14px; height: 14px; }

.hh-reserve {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	background: var(--hh-gold);
	color: #fff;
	padding: 11px 22px;
	border-radius: 9999px;
	text-decoration: none;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 14px;
	box-shadow: 0 4px 20px rgba(212, 165, 116, .30);
	transition: background .3s var(--hh-easing), box-shadow .3s var(--hh-easing);
}
.hh-reserve svg { width: 17px; height: 17px; }
/* Letra SIEMPRE blanca, fondo dorado fijo + glow dorado. Solo crece la sombra en hover. */
.hh-header .hh-reserve,
.hh-header .hh-reserve:hover,
.hh-header .hh-reserve:focus,
.hh-header .hh-reserve:active,
.hh-header .hh-reserve:visited {
	background: var(--hh-gold);
	color: #fff;
}
/*Color de fondo del menu*/
button#hhBurger:hover {
    background: #b88b5a00 !important;
}
button#hhBurger:active {
    background: #b88b5a00 !important;
}
/*End*/
.hh-header .hh-reserve:hover { box-shadow: 0 6px 28px rgba(212, 165, 116, .48); }

/* ============================================================
   HAMBURGUESA (dentro del header, solo móvil)
   ============================================================ */
.hh-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
}
.hh-burger span {
	display: block;
	width: 24px;
	height: 2.5px;
	border-radius: 2px;
	background: #fff; /* blanca sobre el hero */
}

/* ============================================================
   RESPONSIVE: cambia a layout móvil
   ============================================================ */
@media (max-width: 1239.98px) {
	/* el pill se vuelve transparente: solo logo + hamburguesa sobre el hero */
	.hh-header-inner {
		background: transparent;
		box-shadow: none;
		padding: 14px 6px;
	}
	.hh-brand-name { color: #fff; }
	.hh-nav-desktop,
	.hh-lang-select,
	.hh-reserve { display: none; }
	.hh-burger { display: flex; }
	/* al hacer scroll, glass blanco translúcido (#ffffffd9) */
	.hh-header.is-scrolled .hh-header-inner {
		background: #ffffffd9;
		-webkit-backdrop-filter: blur(20px);
		backdrop-filter: blur(20px);
		box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
		max-width: 100%;
		padding: 12px 14px;
	}
	.hh-header.is-scrolled .hh-brand-name { color: var(--hh-bg); }
	.hh-header.is-scrolled .hh-burger span { background: var(--hh-bg); }
}

/* ============================================================
   OVERLAY MÓVIL (pantalla completa, verde)
   ============================================================ */
.hh-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: var(--hh-bg);
	flex-direction: column;
	padding: 24px clamp(20px, 6vw, 48px) 40px;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.04);
	transition: opacity .5s var(--hh-easing), transform .5s var(--hh-easing), visibility .5s;
}
@media (max-width: 1239.98px) { .hh-overlay { display: flex; } }
body.hh-open .hh-overlay { opacity: 1; visibility: visible; transform: scale(1); }
body.hh-open .hh-burger { opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }

.hh-top { display: flex; align-items: center; justify-content: space-between; }
.hh-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hh-logo img { height: 46px; width: 46px; border-radius: 50%; object-fit: cover; }
.hh-logo-text {
	font-family: 'Playfair Display', Georgia, serif;
	color: var(--hh-text);
	font-size: 20px;
	font-weight: 700;
	transition: color .3s var(--hh-easing);
}
.hh-logo:hover .hh-logo-text { color: var(--hh-gold); }

.hh-close {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid rgba(212, 165, 116, .5);
	background: transparent;
	color: var(--hh-gold);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .3s var(--hh-easing), color .3s var(--hh-easing), transform .3s var(--hh-easing);
}
.hh-close svg { display: block; width: 20px; height: 20px; }
.hh-close:hover { background: var(--hh-gold); color: var(--hh-bg); transform: rotate(90deg); }

.hh-links { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hh-links .hh-menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.hh-links .hh-menu a {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(26px, 7vw, 34px);
	color: var(--hh-text);
	text-decoration: none;
	font-weight: 600;
	transition: color .3s var(--hh-easing);
}
.hh-links .hh-menu a:hover,
.hh-links .hh-menu .current-menu-item > a { color: var(--hh-gold); }

.hh-bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hh-lang-label {
	color: rgba(255, 255, 255, .6);
	font-size: 13px; letter-spacing: .04em;
	font-family: 'Poppins', sans-serif;
}
.hh-lang { display: flex; gap: 10px; }
.hh-lang-btn {
	padding: 9px 26px;
	border-radius: 10px;
	cursor: pointer;
	border: 1px solid rgba(212, 165, 116, .35);
	background: transparent;
	color: var(--hh-text);
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	transition: background .3s var(--hh-easing), color .3s var(--hh-easing), border-color .3s var(--hh-easing);
}
.hh-lang-btn:hover { background: transparent; color: var(--hh-gold); border-color: rgba(212, 165, 116, .6); }
.hh-lang-btn.is-active { background: var(--hh-gold); color: var(--hh-bg); border-color: var(--hh-gold); }
.hh-lang-btn.is-active:hover { background: var(--hh-gold-dark); border-color: var(--hh-gold-dark); }

.hh-cta {
	margin-top: 6px;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 34px;
	border-radius: 50px;
	background: var(--hh-gold);
	color: var(--hh-bg);
	text-decoration: none;
	font-family: 'Poppins', sans-serif;
	font-weight: 600; font-size: 15px;
	transition: background .3s var(--hh-easing), transform .3s var(--hh-easing), box-shadow .3s var(--hh-easing);
}
.hh-cta:hover { background: var(--hh-gold-dark); color: var(--hh-bg); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }

/* Entrada escalonada de los ítems del overlay */
.hh-links .hh-menu li,
.hh-bottom {
	opacity: 0; transform: translateY(20px);
	transition: opacity .5s var(--hh-easing), transform .5s var(--hh-easing);
}
body.hh-open .hh-links .hh-menu li,
body.hh-open .hh-bottom { opacity: 1; transform: translateY(0); }
body.hh-open .hh-menu li:nth-child(1) { transition-delay: .12s; }
body.hh-open .hh-menu li:nth-child(2) { transition-delay: .18s; }
body.hh-open .hh-menu li:nth-child(3) { transition-delay: .24s; }
body.hh-open .hh-menu li:nth-child(4) { transition-delay: .30s; }
body.hh-open .hh-menu li:nth-child(5) { transition-delay: .36s; }
body.hh-open .hh-menu li:nth-child(6) { transition-delay: .42s; }
body.hh-open .hh-menu li:nth-child(7) { transition-delay: .48s; }
body.hh-open .hh-bottom               { transition-delay: .54s; }

@media (prefers-reduced-motion: reduce) {
	.hh-overlay, .hh-links .hh-menu li, .hh-bottom {
		transition-duration: .01ms !important;
		transform: none !important;
	}
}

/* ============================================================
   FOOTER — HACIENDAS HORIZONTE
   ============================================================ */
.hh-footer {
	background: var(--hh-bg);
	color: #fff;
	font-family: 'Poppins', sans-serif;
}
.hh-footer-inner { max-width: 1200px; margin: 0 auto; padding: 64px clamp(20px, 5vw, 40px) 0; }

.hh-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
	gap: 40px;
	padding-bottom: 48px;
}

/* Columna marca */
.hh-foot-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hh-foot-logo img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.hh-foot-id { display: flex; flex-direction: column; }
.hh-foot-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 19px; color: #fff; }
.hh-foot-tag { color: var(--hh-gold); font-size: 13px; }
.hh-foot-desc { color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.6; margin: 0 0 20px; max-width: 320px; }

.hh-foot-social { display: flex; gap: 12px; }
.hh-foot-social a {
	width: 40px; height: 40px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .08);
	color: var(--hh-gold);
	transition: background .3s var(--hh-easing), color .3s var(--hh-easing), transform .3s var(--hh-easing);
}
.hh-foot-social a:hover { background: var(--hh-gold); color: var(--hh-bg); transform: translateY(-2px); }
.hh-foot-social svg { width: 18px; height: 18px; }

/* Encabezados de columna */
.hh-foot-h {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 18px; font-weight: 700; color: #fff;
	margin: 0 0 20px;
}

/* Enlaces rápidos */
.hh-foot-links .hh-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hh-foot-links .hh-menu a {
	color: rgba(255, 255, 255, .65);
	text-decoration: none; font-size: 14.5px;
	transition: color .3s var(--hh-easing), padding-left .3s var(--hh-easing);
}
.hh-foot-links .hh-menu a:hover { color: var(--hh-gold); padding-left: 4px; }

/* Contacto */
.hh-foot-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.hh-foot-contact li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255, 255, 255, .7); font-size: 14.5px; line-height: 1.5; }
.hh-foot-contact svg { width: 18px; height: 18px; color: var(--hh-gold); flex: 0 0 auto; margin-top: 2px; }
.hh-foot-contact a { color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .3s var(--hh-easing); }
.hh-foot-contact a:hover { color: var(--hh-gold); }

/* Boletín */
.hh-news { display: flex; gap: 8px; margin-top: 4px; }
.hh-news input {
	flex: 1; min-width: 0;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 10px;
	padding: 12px 14px;
	color: #fff; font-family: 'Poppins', sans-serif; font-size: 14px;
	transition: border-color .3s var(--hh-easing);
}
.hh-news input::placeholder { color: rgba(255, 255, 255, .4); }
.hh-news input:focus { outline: none; border-color: var(--hh-gold); }
.hh-news button {
	flex: 0 0 auto;
	background: var(--hh-gold); color: var(--hh-bg);
	border: none; border-radius: 10px;
	padding: 12px 20px; cursor: pointer;
	font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
	transition: background .3s var(--hh-easing);
}
.hh-news button:hover { background: var(--hh-gold-dark); }
.hh-news button:disabled { opacity: .6; cursor: default; }
.hh-news-msg { font-size: 13px; margin: 10px 0 0; min-height: 18px; }
.hh-news-msg.is-ok  { color: var(--hh-gold); }
.hh-news-msg.is-err { color: #e7a17a; }

/* Barra inferior */
.hh-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 24px 0 28px;
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 12px;
	color: rgba(255, 255, 255, .5); font-size: 13.5px;
}
.hh-foot-legal { display: flex; gap: 28px; }
.hh-foot-legal a { color: rgba(255, 255, 255, .5); text-decoration: none; transition: color .3s var(--hh-easing); }
.hh-foot-legal a:hover { color: var(--hh-gold); }

/* Responsive footer */
@media (max-width: 900px) {
	.hh-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
	.hh-footer-grid { grid-template-columns: 1fr; }
	.hh-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   HELPERS PARA SECCIONES DE LA HOME
   Se aplican en Elementor → pestaña Avanzado → "Clases CSS".
   ============================================================ */

/* Tarjeta de cristal (glassmorphism) — tarjeta de stats del Hero.
   Verde translúcido para que los stats se LEAN sobre el atardecer. */
.hh-glass {
	background: rgba(255, 255, 255, .07) !important;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(212, 165, 116, .25) !important;
	border-radius: 28px !important;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* Fila de pills/botones: pone los widgets de una columna en horizontal con wrap.
   Se aplica a la COLUMNA en Elementor → Avanzado → Clases CSS: hh-row */
.hh-row > .elementor-widget-wrap,
.hh-row > .elementor-column-wrap > .elementor-widget-wrap {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center;
	gap: 12px;
}
.hh-row .elementor-widget { width: auto !important; max-width: none !important; }
.hh-row .elementor-widget:not(.elementor-widget__width-auto) { margin-bottom: 0 !important; }

/* Pill/badge con borde (ubicación y features del Hero) */
.hh-badge {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 9999px;
	padding: 10px 18px;
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
}

/* Eyebrow dorado (ej. "Flexibilidad financiera") */
.hh-eyebrow {
	display: inline-block;
	background: rgba(212, 165, 116, .15);
	color: var(--hh-gold);
	border-radius: 9999px;
	padding: 8px 20px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 500;
}

/* Botón dorado sólido (helper si lo necesitas fuera del header) */
.hh-btn-gold {
	background: var(--hh-gold) !important;
	color: #fff !important;
	border-radius: 9999px !important;
	box-shadow: 0 4px 20px rgba(212, 165, 116, .3);
}
.hh-btn-gold:hover { background: var(--hh-gold-dark) !important; }

/* Botón contorno (transparente con borde) */
.hh-btn-outline {
	background: transparent !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, .4) !important;
	border-radius: 9999px !important;
}
.hh-btn-outline:hover { border-color: var(--hh-gold) !important; color: var(--hh-gold) !important; }
