/* ==========================================================================
   HS Zonas — frontend
   Todo está acotado a .hsz-scope (grid y landing). Los valores de diseño son
   variables CSS: se sobrescriben desde Zonas → Ajustes (CSS en línea generado)
   o desde el CSS personalizado.
   Tipografías: heredadas del kit global de Elementor (FUTURA OK / Montserrat).
   ========================================================================== */

.hsz-scope {
	/* Valores por defecto (los ajustes los redefinen en línea). */
	--hsz-bg: #fff;
	--hsz-bg-alt: #f9f6f1;
	--hsz-bg-contact: #eae8e3;
	--hsz-heading: #000;
	--hsz-text: #2b2b2b;
	--hsz-muted: color-mix(in srgb, var(--hsz-text) 72%, transparent);
	--hsz-line: color-mix(in srgb, var(--hsz-heading) 12%, transparent);
	--hsz-accent: #b6967f;
	--hsz-btn-bg: #c0cbce;
	--hsz-btn-text: #000;
	--hsz-btn-hover-bg: #d0ae6c;
	--hsz-btn-hover-text: #fff;
	--hsz-max-width: 1140px;
	--hsz-gutter: clamp(20px, 4vw, 40px);
	--hsz-hero-height: 640px;
	--hsz-hero-height-m: 540px;
	--hsz-header-offset: 105px;
	--hsz-overlay: .45;
	--hsz-section-space: 110px;
	--hsz-grid-gap: 24px;
	--hsz-font-heading: var(--e-global-typography-primary-font-family), "Century Gothic", "Futura", sans-serif;
	--hsz-font-body: var(--e-global-typography-text-font-family), "Montserrat", sans-serif;
	--hsz-ease: cubic-bezier(.2, .7, .2, 1);

	color: var(--hsz-text);
	font-family: var(--hsz-font-body);
	font-weight: 300;
}

.hsz-scope *,
.hsz-scope *::before,
.hsz-scope *::after { box-sizing: border-box; }

/* Fallback si la variable de Elementor no existe: hereda la fuente del tema. */
@supports not (color: color-mix(in srgb, #000 50%, transparent)) {
	.hsz-scope { --hsz-muted: #5c5c5c; --hsz-line: rgba(0, 0, 0, .12); }
}

.hsz-container {
	width: 100%;
	max-width: calc(var(--hsz-max-width) + var(--hsz-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--hsz-gutter);
}

/* ---------- Elementos comunes ---------- */

.hsz-scope .hsz-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	font-family: var(--hsz-font-body);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--hsz-heading);
}
.hsz-scope .hsz-eyebrow::before {
	content: "";
	width: 32px;
	height: 1px;
	background: var(--hsz-accent);
	flex: none;
}
.hsz-scope .hsz-eyebrow--light { color: #fff; }
.hsz-scope .hsz-eyebrow--light::before { background: currentColor; opacity: .8; }

.hsz-scope .hsz-btn,
.hsz-scope a.hsz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 54px;
	padding: 18px 32px;
	border: 0;
	border-radius: 0;
	background: var(--hsz-btn-bg);
	color: var(--hsz-btn-text);
	font-family: var(--hsz-font-heading);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s var(--hsz-ease), color .25s var(--hsz-ease);
}
.hsz-scope .hsz-btn:hover,
.hsz-scope .hsz-btn:focus-visible {
	background: var(--hsz-btn-hover-bg);
	color: var(--hsz-btn-hover-text);
	text-decoration: none;
}
.hsz-scope a:focus-visible,
.hsz-scope .hsz-btn:focus-visible {
	outline: 2px solid var(--hsz-accent);
	outline-offset: 3px;
}

.hsz-admin-hint {
	padding: 14px 18px;
	border: 1px dashed #c3a07a;
	background: #fffaf2;
	color: #5a4632;
	font-size: 14px;
	line-height: 1.5;
}

/* ==========================================================================
   Landing
   ========================================================================== */

.hsz-main { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.hsz-landing { width: 100%; background: var(--hsz-bg); overflow-x: clip; }
.hsz-password { padding-block: calc(var(--hsz-header-offset) + 60px) 80px; }

/* ---------- 1. Hero ---------- */

.hsz-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: var(--hsz-hero-height);
	/* La cabecera de la web se superpone (margin-bottom negativo): se compensa aquí. */
	padding-block: calc(var(--hsz-header-offset) + 56px) 80px;
	background: #3a3631;
	color: #fff;
	overflow: hidden;
}
.hsz-hero .hsz-hero__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}
.hsz-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, calc(var(--hsz-overlay) * .9)) 0%, rgba(0, 0, 0, 0) 38%),
		linear-gradient(90deg, rgba(0, 0, 0, calc(var(--hsz-overlay) + .12)) 0%, rgba(0, 0, 0, var(--hsz-overlay)) 50%, rgba(0, 0, 0, calc(var(--hsz-overlay) * .45)) 100%);
}
.hsz-hero:not(.hsz-hero--image) .hsz-hero__overlay { display: none; }

.hsz-hero__inner { position: relative; }
.hsz-scope .hsz-hero__title {
	max-width: 15em;
	margin: 0 0 24px;
	font-family: var(--hsz-font-heading);
	font-size: clamp(34px, 4.4vw, 62px);
	font-weight: 400;
	line-height: 1.14;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #fff;
	text-wrap: balance;
	overflow-wrap: break-word;
}
.hsz-scope .hsz-hero__desc {
	max-width: 36em;
	margin: 0 0 38px;
	font-size: clamp(16px, 1.25vw, 18px);
	font-weight: 300;
	line-height: 1.75;
	color: rgba(255, 255, 255, .92);
}

/* ---------- 2. Beneficios ---------- */

.hsz-benefits { background: var(--hsz-bg-alt); }
.hsz-scope .hsz-benefits__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-block: 0;
	padding-block: clamp(40px, 5vw, 64px);
	list-style: none;
}
.hsz-scope .hsz-benefits__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hsz-scope .hsz-benefits__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hsz-scope .hsz-benefits__list--1 { grid-template-columns: 1fr; }

.hsz-scope .hsz-benefit {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 6px clamp(18px, 2.4vw, 34px);
	border-left: 1px solid var(--hsz-line);
}
.hsz-scope .hsz-benefit:first-child { padding-left: 0; border-left: 0; }
.hsz-benefit__icon { width: 34px; height: 34px; color: var(--hsz-accent); flex: none; }
.hsz-scope .hsz-benefit__title {
	margin: 0 0 8px;
	font-family: var(--hsz-font-heading);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--hsz-heading);
}
.hsz-scope .hsz-benefit__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--hsz-muted);
}

/* ---------- 3. Contenido local ---------- */

.hsz-local { background: var(--hsz-bg); padding-block: var(--hsz-section-space); }
.hsz-local__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: clamp(40px, 7vw, 104px);
}
.hsz-local__grid--text { grid-template-columns: minmax(0, 1fr); max-width: calc(760px + var(--hsz-gutter) * 2); }
.hsz-scope .hsz-local__media { position: relative; margin: 0; }
.hsz-scope .hsz-local__media::after {
	/* Marco fino desplazado: guiño editorial, sin sombras. */
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	z-index: -1;
	border: 1px solid color-mix(in srgb, var(--hsz-accent) 55%, transparent);
	pointer-events: none;
}
.hsz-local__media { isolation: isolate; }
.hsz-scope .hsz-local__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.hsz-local__copy { max-width: 36rem; }
.hsz-scope .hsz-local__title {
	margin: 0 0 28px;
	font-family: var(--hsz-font-heading);
	font-size: clamp(28px, 2.9vw, 42px);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--hsz-heading);
	text-wrap: balance;
}
.hsz-prose { font-size: 16px; line-height: 1.85; color: var(--hsz-text); }
.hsz-scope .hsz-prose p { margin: 0 0 1.1em; }
.hsz-scope .hsz-prose > :last-child { margin-bottom: 0; }
.hsz-scope .hsz-prose strong,
.hsz-scope .hsz-prose b { font-weight: 500; color: var(--hsz-heading); }
.hsz-scope .hsz-prose a { color: var(--hsz-heading); text-decoration: underline; text-decoration-color: var(--hsz-accent); text-underline-offset: 3px; }
.hsz-scope .hsz-prose ul,
.hsz-scope .hsz-prose ol { margin: 0 0 1.1em; padding-left: 1.2em; }
.hsz-scope .hsz-prose li { margin-bottom: .4em; }
.hsz-scope .hsz-prose h3,
.hsz-scope .hsz-prose h4 {
	margin: 1.6em 0 .6em;
	font-family: var(--hsz-font-heading);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--hsz-heading);
}

/* ---------- 4. Contacto ---------- */

.hsz-contact {
	background: var(--hsz-bg-contact);
	padding-block: var(--hsz-section-space);
	scroll-margin-top: 24px;
}
.hsz-contact__inner { max-width: calc(860px + var(--hsz-gutter) * 2); }
.hsz-contact__head { text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.hsz-scope .hsz-contact__head .hsz-eyebrow { justify-content: center; }
.hsz-scope .hsz-contact__head .hsz-eyebrow::after {
	content: "";
	width: 32px;
	height: 1px;
	background: var(--hsz-accent);
}
.hsz-scope .hsz-contact__title {
	margin: 0 auto 18px;
	max-width: 22em;
	font-family: var(--hsz-font-heading);
	font-size: clamp(26px, 2.7vw, 40px);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--hsz-heading);
	text-wrap: balance;
}
.hsz-scope .hsz-contact__intro {
	max-width: 38em;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.75;
	color: var(--hsz-muted);
}
.hsz-contact__fallback { text-align: center; margin: 0; }

/* Estilo base para Contact Form 7 (Elementor Form usa su propio estilo). */
.hsz-contact__form .wpcf7-form { display: grid; gap: 18px; }
.hsz-contact__form .wpcf7-form p { margin: 0; }
.hsz-contact__form .wpcf7 label { display: block; font-size: 14px; color: var(--hsz-heading); }
.hsz-contact__form .wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.hsz-contact__form .wpcf7 select,
.hsz-contact__form .wpcf7 textarea {
	width: 100%;
	min-height: 50px;
	margin-top: 6px;
	padding: 12px 16px;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 0;
	background: #fff;
	color: var(--hsz-text);
	font: inherit;
}
.hsz-contact__form .wpcf7 input[type="submit"] {
	justify-self: center;
	padding: 18px 32px;
	border: 0;
	border-radius: 0;
	background: var(--hsz-btn-bg);
	color: var(--hsz-btn-text);
	font-family: var(--hsz-font-heading);
	font-size: 14px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	cursor: pointer;
}
.hsz-contact__form .wpcf7 input[type="submit"]:hover { background: var(--hsz-btn-hover-bg); color: var(--hsz-btn-hover-text); }

/* ==========================================================================
   Grid de zonas [zonas]
   ========================================================================== */

.hsz-scope.hsz-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--hsz-grid-gap);
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hsz-scope.hsz-grid--d1 { grid-template-columns: minmax(0, 1fr); }
.hsz-scope.hsz-grid--d2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hsz-scope.hsz-grid--d3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hsz-scope.hsz-grid--d4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hsz-scope.hsz-grid--d5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hsz-scope.hsz-grid--d6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.hsz-scope .hsz-card { display: flex; min-width: 0; margin: 0; padding: 0; }
.hsz-scope .hsz-card__link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	padding: clamp(26px, 2.6vw, 38px) clamp(24px, 2.4vw, 34px);
	border: 1px solid var(--hsz-line);
	background: var(--hsz-bg);
	color: var(--hsz-text);
	text-decoration: none;
	transition: background-color .3s var(--hsz-ease), border-color .3s var(--hsz-ease), transform .3s var(--hsz-ease);
}
.hsz-scope .hsz-card__link:hover,
.hsz-scope .hsz-card__link:focus-visible {
	background: var(--hsz-bg-alt);
	border-color: color-mix(in srgb, var(--hsz-accent) 70%, transparent);
	color: var(--hsz-text);
	transform: translateY(-3px);
	text-decoration: none;
}
.hsz-card__icon {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 22px;
	border: 1px solid color-mix(in srgb, var(--hsz-accent) 45%, transparent);
	border-radius: 50%;
	color: var(--hsz-accent);
	transition: background-color .3s var(--hsz-ease), color .3s var(--hsz-ease);
}
.hsz-card__icon svg { width: 22px; height: 22px; }
.hsz-scope .hsz-card__link:hover .hsz-card__icon { background: var(--hsz-accent); color: #fff; }
.hsz-scope .hsz-card__title {
	margin: 0 0 12px;
	font-family: var(--hsz-font-body);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hsz-heading);
	overflow-wrap: break-word;
}
.hsz-scope .hsz-card__desc {
	margin: 0;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--hsz-muted);
}
.hsz-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 22px;
	font-family: var(--hsz-font-heading);
	font-size: 12px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--hsz-heading);
}
.hsz-card__arrow { display: inline-block; transition: transform .3s var(--hsz-ease); }
.hsz-scope .hsz-card__link:hover .hsz-card__arrow { transform: translateX(4px); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.hsz-scope .hsz-benefits__list,
	.hsz-scope .hsz-benefits__list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
	.hsz-scope .hsz-benefit:nth-child(odd) { padding-left: 0; border-left: 0; }
	.hsz-local__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

	.hsz-scope.hsz-grid--t1 { grid-template-columns: minmax(0, 1fr); }
	.hsz-scope.hsz-grid--t2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hsz-scope.hsz-grid--t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hsz-scope.hsz-grid--t4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.hsz-local,
	.hsz-contact { padding-block: min(var(--hsz-section-space), 76px); }

	.hsz-hero {
		min-height: var(--hsz-hero-height-m);
		align-items: flex-end;
		padding-block: calc(var(--hsz-header-offset) + 40px) 56px;
	}
	.hsz-hero__overlay {
		background:
			linear-gradient(180deg, rgba(0, 0, 0, calc(var(--hsz-overlay) * .9)) 0%, rgba(0, 0, 0, calc(var(--hsz-overlay) * .5)) 40%, rgba(0, 0, 0, calc(var(--hsz-overlay) + .2)) 100%);
	}
	.hsz-scope .hsz-hero__desc { margin-bottom: 30px; }
	.hsz-scope .hsz-hero .hsz-btn { width: 100%; }

	.hsz-scope .hsz-benefits__list,
	.hsz-scope .hsz-benefits__list--2,
	.hsz-scope .hsz-benefits__list--3 { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-block: 28px; }
	.hsz-scope .hsz-benefit {
		flex-direction: row;
		align-items: flex-start;
		padding: 20px 0;
		border-left: 0;
		border-top: 1px solid var(--hsz-line);
	}
	.hsz-scope .hsz-benefit:first-child { border-top: 0; }
	.hsz-benefit__icon { width: 30px; height: 30px; }
	.hsz-scope .hsz-benefit__title { font-size: 15px; margin-bottom: 4px; }

	.hsz-local__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.hsz-scope .hsz-local__media { margin-right: 14px; }
	.hsz-scope .hsz-local__media::after { inset: 14px -14px -14px 14px; }
	.hsz-scope .hsz-local__image { aspect-ratio: 4 / 3.4; }

	.hsz-scope.hsz-grid--m1 { grid-template-columns: minmax(0, 1fr); }
	.hsz-scope.hsz-grid--m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hsz-scope.hsz-grid--m2 .hsz-card__link { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.hsz-scope *,
	.hsz-scope *::before,
	.hsz-scope *::after { transition: none !important; }
}
