/* ==========================================================================
   Healing — capa base: reset, tokens, tipografia, contenedor, botones,
   cabecera, pie, formularios y aviso de cookies. Lo que antes ponia Hello
   Elementor + el tema padre, aqui en una sola hoja legible.
   ========================================================================== */

:root {
	--verde: #6E9761;
	--verde-osc: #5a7d4f;
	--salvia: #B4CCAC;
	--crema: #E5D8CF;
	--crema-clara: #f3ece7;
	--texto: #5f5f5f;
	--tinta: #212121;
	--blanco: #ffffff;
	--linea: #e6ddd6;

	--fuente: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--fuente-tit: 'Roboto Slab', Georgia, 'Times New Roman', serif;

	--ancho: 1140px;
	--radio: 14px;
	--radio-s: 9px;
	--sombra: 0 10px 30px rgba(33, 33, 33, .08);
	--paso: clamp(3.25rem, 7vw, 5.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--fuente);
	font-size: 17px;
	line-height: 1.7;
	color: var(--texto);
	background: var(--blanco);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
	font-family: var(--fuente-tit);
	color: var(--tinta);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 600;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.hl-h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.hl-h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); margin-bottom: .8em; }
.hl-centro { text-align: center; }

/* ---- Contenedor -------------------------------------------------------- */
.hl-container { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.hl-medida { max-width: 820px; }
.hl-seccion { padding: var(--paso) 0; }
.hl-seccion--crema { background: var(--crema-clara); }

/* ---- Botones ----------------------------------------------------------- */
.hl-btn {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	background: var(--verde);
	color: var(--blanco);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1;
	padding: .85em 1.5em;
	border: 2px solid var(--verde);
	border-radius: 999px;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
	text-align: center;
}
.hl-btn:hover { background: var(--verde-osc); border-color: var(--verde-osc); color: var(--blanco); text-decoration: none; transform: translateY(-1px); }
.hl-btn--grande { padding: 1.05em 2em; font-size: 1.05rem; }
.hl-btn--sec { background: transparent; color: var(--verde); }
.hl-btn--sec:hover { background: var(--verde); color: var(--blanco); }
.hl-btn--wa { background: #25D366; border-color: #25D366; }
.hl-btn--wa:hover { background: #1eb955; border-color: #1eb955; }
.hl-btn__icono { flex: 0 0 auto; }

.hl-enlace-mas { font-weight: 500; }

/* ---- Salto accesible --------------------------------------------------- */
.hl-skip {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--tinta); color: #fff; padding: .7em 1.2em; border-radius: 0 0 8px 0;
}
.hl-skip:focus { left: 0; }

/* ---- Cabecera ---------------------------------------------------------- */
.hl-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--linea);
	backdrop-filter: saturate(120%) blur(2px);
}
.hl-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; }
.hl-header__logo-img { width: auto; height: 66px; }
.hl-header__burger, .hl-header__cerrar {
	display: none; background: none; border: 0; color: var(--tinta); cursor: pointer; padding: 8px;
}
/* En escritorio, menu y conmutador de idioma van en la misma fila. */
.hl-header__panel-inner { display: flex; align-items: center; gap: 1.75rem; }

.hl-nav__lista { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.hl-nav__item { position: relative; }
.hl-nav__enlace {
	display: inline-flex; align-items: center; gap: .3em;
	padding: .55em .85em; color: var(--tinta); font-weight: 500; border-radius: 8px;
}
.hl-nav__enlace:hover, .hl-nav__item.is-actual > .hl-nav__enlace { color: var(--verde); text-decoration: none; }
.hl-nav__enlace--padre { cursor: default; }
.hl-nav__toggle { background: none; border: 0; color: inherit; cursor: pointer; padding: .3em; display: inline-flex; }
.hl-nav__sub {
	list-style: none; margin: 0; padding: .4rem; min-width: 200px;
	position: absolute; top: 100%; left: 0;
	background: #fff; border: 1px solid var(--linea); border-radius: 10px; box-shadow: var(--sombra);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.hl-nav__item--padre:hover .hl-nav__sub,
.hl-nav__item--padre:focus-within .hl-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.hl-nav__sub .hl-nav__enlace { display: block; }

.hl-lang { display: inline-flex; align-items: center; gap: .1rem; margin-left: 0; padding-left: 1.2rem; border-left: 1px solid var(--linea); }
.hl-lang__op { padding: .32em .55em; font-weight: 600; font-size: .8rem; letter-spacing: .02em; line-height: 1; color: var(--texto); border-radius: 6px; }
a.hl-lang__op:hover { color: var(--verde); text-decoration: none; }
.hl-lang__op.is-actual { background: var(--verde); color: #fff; }

/* ---- Pie --------------------------------------------------------------- */
.hl-footer { background: var(--tinta); color: #cfcfcf; margin-top: 0; }
.hl-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: 3.5rem 20px 2.5rem; }
.hl-footer__logo { height: 64px; width: auto; margin-bottom: 1rem; }
.hl-footer__tagline { color: #b7b7b7; font-size: .95rem; }
.hl-footer__tit { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; }
.hl-footer__lista { list-style: none; margin: 0 0 1rem; padding: 0; }
.hl-footer__lista li { margin-bottom: .5rem; }
.hl-footer__lista a { color: #cfcfcf; }
.hl-footer__lista a:hover { color: #fff; }
.hl-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.2rem 20px; text-align: center; font-size: .85rem; color: #9a9a9a; }
.hl-footer__legal p { margin: 0; }

/* ---- Formularios ------------------------------------------------------- */
.hl-form__campo { display: block; margin-bottom: 1rem; }
.hl-form__campo > span { display: block; font-weight: 500; color: var(--tinta); margin-bottom: .35rem; font-size: .95rem; }
.hl-form__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hl-form input[type=text], .hl-form input[type=email], .hl-form input[type=tel], .hl-form textarea {
	width: 100%; font: inherit; color: var(--tinta);
	padding: .7em .9em; border: 1px solid var(--linea); border-radius: var(--radio-s); background: #fff;
}
.hl-form input:focus, .hl-form textarea:focus { outline: 2px solid var(--salvia); outline-offset: 1px; border-color: var(--verde); }
.hl-form textarea { resize: vertical; min-height: 120px; }
.hl-form__acepta { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0 1.2rem; font-size: .92rem; }
.hl-form__acepta input { margin-top: .3rem; }
.hl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hl-form-aviso { padding: 1em 1.2em; border-radius: var(--radio-s); margin-bottom: 1.2rem; font-weight: 500; }
.hl-form-aviso--ok { background: #e8f3e2; color: #33622a; }
.hl-form-aviso--error { background: #fbe9e7; color: #9c3025; }

/* ---- Aviso de cookies -------------------------------------------------- */
.hl-consent {
	position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 900;
	width: calc(100% - 32px); max-width: 900px;
	background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra);
}
.hl-consent__inner { display: flex; gap: 1.2rem; align-items: center; padding: 1.1rem 1.3rem; flex-wrap: wrap; }
.hl-consent__texto { margin: 0; font-size: .9rem; flex: 1 1 320px; }
.hl-consent__acciones { display: flex; gap: .6rem; flex: 0 0 auto; }
.hl-consent__btn { padding: .6em 1.1em; font-size: .92rem; }

@media (max-width: 1000px) {
	.hl-header__burger { display: inline-flex; }
	.hl-header__cerrar { display: inline-flex; position: absolute; top: 14px; right: 14px; }
	.hl-header__panel {
		position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
		background: #fff; box-shadow: -10px 0 40px rgba(0, 0, 0, .12);
		transform: translateX(100%); transition: transform .24s ease; padding: 4.5rem 1.5rem 2rem; overflow-y: auto;
	}
	.hl-header__panel.is-abierto { transform: translateX(0); }
	.hl-nav__lista { flex-direction: column; align-items: stretch; gap: .1rem; }
	.hl-nav__enlace { padding: .8em .4em; border-bottom: 1px solid var(--linea); }
	.hl-nav__toggle { position: absolute; right: 0; top: 6px; }
	.hl-nav__sub {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
		max-height: 0; overflow: hidden; padding: 0 0 0 .8rem; transition: max-height .2s ease;
	}
	.hl-nav__item--padre.is-abierto .hl-nav__sub { max-height: 300px; }
	.hl-header__panel-inner { flex-direction: column; align-items: stretch; gap: 0; }
	.hl-lang { margin: 1.25rem 0 0; padding-left: 0; border-left: 0; }
	.hl-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
	.hl-form__fila { grid-template-columns: 1fr; }
	.hl-footer__cols { grid-template-columns: 1fr; gap: 1.6rem; }
	.hl-consent__acciones { width: 100%; }
	.hl-consent__btn { flex: 1; }
}
