/* =========================================================================
   Landings eGestiona · hoja única
   Tokens exportados de Figma (colección Tokens, modos Default/Light).
   Los valores de letter-spacing de Figma son porcentajes: -2 → -0.02em.
   ========================================================================= */

/* --- Tokens · modo oscuro (por defecto) ---------------------------------- */

.elp-landing {
	--bg-default: #0b1729;
	--bg-subtle: rgba(255, 255, 255, 0.04);
	--bg-overlay: rgba(11, 23, 41, 0.72);

	--surface-default: #152238;
	--surface-subtle: rgba(255, 255, 255, 0.04);
	--surface-accent-subtle: rgba(41, 171, 226, 0.12);

	--border-default: rgba(122, 149, 175, 0.16);
	--border-strong: rgba(122, 149, 175, 0.32);
	--border-accent: #29abe2;

	--text-primary: #ffffff;
	--text-secondary: #b8c8d8;
	--text-muted: #7a95af;
	--text-accent: #29abe2;
	--text-on-accent: #0b1729;

	--icon-default: #b8c8d8;
	--icon-accent: #29abe2;
	--icon-on-accent: #0b1729;

	--interactive-primary: #29abe2;
	--brand-primary: #29abe2;
	--brand-navy: #0b1729;
	--brand-navy-card: #152238;
	--status-error: #ff7a7a;

	--space-xs: 8px;
	--space-sm: 12px;
	--space-md: 16px;
	--space-lg: 24px;
	--space-xl: 32px;
	--space-2xl: 40px;
	--space-5xl: 80px;

	--radius-xs: 4px;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-full: 999px;

	--container: 1200px;
	--container-wide: 1494px;
	--section-y: clamp(72px, 8vw, 120px);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--dur: 0.55s;
	--section-x: clamp(20px, 5vw, 48px);
	--nav-h: 88px;
}

/* --- Tokens · modo claro (bloques con fondo claro) ------------------------ */

.elp-section--light {
	--bg-default: #eef3f8;
	--bg-subtle: rgba(11, 23, 41, 0.04);
	--surface-default: #f5f8fb;
	--surface-subtle: rgba(11, 23, 41, 0.04);
	--border-default: rgba(11, 23, 41, 0.12);
	--border-strong: rgba(11, 23, 41, 0.24);
	--text-primary: #0b1729;
	--text-secondary: #3e5470;
	--text-muted: #556b87;
	--text-accent: #136f9c;
	--icon-default: #3e5470;
	--icon-accent: #136f9c;
}

/* --- Fuente -------------------------------------------------------------- */

@font-face {
	font-family: 'Inter var';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-variable.woff2') format('woff2');
}

/* --- Base ---------------------------------------------------------------- */

.elp-landing {
	margin: 0;
	background: var(--brand-navy);
	color: var(--text-secondary);
	font-family: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

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

.elp-landing img,
.elp-landing svg {
	max-width: 100%;
}

.elp-landing :where(p) {
	margin: 0;
}

.elp-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 20px;
	background: var(--interactive-primary);
	color: var(--text-on-accent);
	font-weight: 700;
}

.elp-skip:focus {
	left: 0;
}

.elp-landing :focus-visible {
	outline: 3px solid var(--brand-primary);
	outline-offset: 3px;
}

/* --- Estructura ---------------------------------------------------------- */

.elp-section {
	padding: var(--section-y) var(--section-x);
	background: var(--bg-default);
	color: var(--text-secondary);
}

.elp-section--subtle {
	background: var(--bg-subtle);
}

.elp-section--light {
	background: var(--bg-default);
}

.elp-container {
	max-width: var(--container);
	margin-inline: auto;
}

.elp-container--wide {
	max-width: var(--container-wide);
	margin-inline: auto;
}

/* --- Tipografía ---------------------------------------------------------- */

.elp-display {
	margin: 0;
	color: var(--text-primary);
	font-size: clamp(36px, 5vw, 64px);
	font-weight: 700;
	line-height: 1.094;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.elp-h2 {
	margin: 0;
	color: var(--text-primary);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.167;
	letter-spacing: -0.015em;
	text-transform: uppercase;
}

.elp-h3 {
	margin: 0;
	color: var(--text-primary);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.elp-h4 {
	margin: 0;
	color: var(--text-primary);
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 600;
	line-height: 1.333;
	letter-spacing: -0.005em;
}

.elp-h5 {
	margin: 0;
	color: var(--text-primary);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
}

.elp-overline {
	margin: 0;
	color: var(--text-accent);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.elp-overline--s {
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: 0.1em;
}

.elp-body-xl {
	font-size: clamp(18px, 1.6vw, 20px);
	line-height: 1.5;
}

.elp-body-l {
	font-size: 18px;
	line-height: 1.5;
}

.elp-body-m {
	font-size: 16px;
	line-height: 1.5;
}

.elp-body-s {
	font-size: 14px;
	line-height: 1.5;
}

.elp-caption {
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.5;
}

/* --- Cabecera de sección ------------------------------------------------- */

.elp-header {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	align-items: center;
	max-width: 900px;
	margin-inline: auto;
	text-align: center;
}

.elp-header p:last-child:not(.elp-h2):not(.elp-overline) {
	color: var(--text-secondary);
}

/* --- Botones ------------------------------------------------------------- */

.elp-btn {
	display: inline-flex;
	gap: var(--space-sm);
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 var(--space-xl);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--interactive-primary);
	color: var(--text-on-accent);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.elp-btn:hover {
	background: #4fbde8;
}

.elp-btn:active {
	transform: translateY(1px);
}

.elp-btn--m {
	min-height: 48px;
	padding: 0 var(--space-lg);
	font-size: 14px;
	line-height: 1.286;
}

.elp-btn--secondary {
	border-color: var(--border-strong);
	background: transparent;
	color: var(--text-primary);
}

.elp-btn--secondary:hover {
	border-color: var(--border-accent);
	background: var(--surface-subtle);
}

.elp-btn .elp-icon {
	width: 20px;
	height: 20px;
	flex: none;
}

.elp-btn--m .elp-icon {
	width: 18px;
	height: 18px;
}

/* --- Iconos -------------------------------------------------------------- */

.elp-icon {
	display: inline-block;
	width: 24px;
	height: 24px;
	flex: none;
	vertical-align: middle;
}

.elp-icon--accent {
	color: var(--icon-accent);
}

/* --- 01 · Navbar --------------------------------------------------------- */

.elp-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--border-default);
	background: var(--bg-default);
	transition: box-shadow 0.2s ease;
}

.elp-nav.is-scrolled {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.elp-nav__inner {
	display: flex;
	gap: var(--space-lg);
	align-items: center;
	justify-content: space-between;
	min-height: var(--nav-h);
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--section-x);
}

.elp-nav__logo {
	display: block;
	width: 205px;
	max-width: 40vw;
	flex: none;
}

.elp-nav__links {
	display: flex;
	gap: var(--space-xl);
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.elp-nav__links a {
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
}

.elp-nav__links a:hover {
	color: var(--text-primary);
}

@media (max-width: 1023px) {
	.elp-nav__links {
		display: none;
	}
}

/* --- 02 · Hero ----------------------------------------------------------- */

.elp-hero {
	position: relative;
	padding: clamp(56px, 7vw, 118px) var(--section-x) clamp(56px, 7vw, 118px);
	background: var(--brand-navy);
	isolation: isolate;
	/* El halo del fondo se sale del marco a propósito; aquí se recorta para que
	   no genere scroll horizontal en el documento. */
	overflow: hidden;
}

/* IMG-01 · marcador de posición del hero.
   Reproduce el degradado del hueco en Figma. Cuando llegue la foto definitiva
   basta con añadir la regla background-image sobre .elp-hero__bg. */
.elp-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(circle at 0% 50%, rgba(41, 171, 226, 0.22) 0%, rgba(41, 171, 226, 0) 60%),
		linear-gradient(144.7deg, #152238 14.3%, #0b1729 85.7%);
	background-size: cover;
	background-position: center;
}

.elp-hero__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--bg-overlay);
}

.elp-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 620px) minmax(0, 678px);
	gap: 60px;
	align-items: center;
	max-width: 1358px;
	margin-inline: auto;
}

@media (max-width: 1199px) {
	.elp-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

.elp-hero__claim {
	display: flex;
	flex-direction: column;
	gap: 28px;
	align-items: flex-start;
}

.elp-hero__bullets {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.elp-hero__bullets li {
	display: flex;
	gap: var(--space-sm);
	align-items: flex-start;
	color: var(--text-secondary);
	font-size: 16px;
	line-height: 1.5;
}

.elp-hero__bullets .elp-icon {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--icon-accent);
}

/* --- Formulario ------------------------------------------------------------
   Marcado propio (templates/partials/02-hero.php), no el embed de HubSpot: con
   Marketing Hub Starter el portal renderiza el formulario dentro de un <iframe>
   y ninguna de estas reglas lo atravesaría.

   Valores tomados de los tokens del bloque de campos del hi-fi (140:305):
   etiqueta Label/M 14/18 en text-secondary; control Body/M 16/24 con padding
   space-md, radio radius-sm, fondo surface-subtle y borde border-strong;
   marcador de posición en text-muted; ayuda en Caption/Default 13/18. */

.elp-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-xl);
	background: var(--surface-default);
}

.elp-form__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* --- Campo --- */

.elp-field {
	margin-bottom: 20px;
}

.elp-field__label {
	display: block;
	margin-bottom: var(--space-xs);
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.286;
}

/* El asterisco es parte de la etiqueta, no una llamada de atención: va en el
   mismo color. En rojo se lee como error en un campo todavía vacío. */
.elp-field__req {
	margin-left: 2px;
	color: var(--text-secondary);
}

.elp-field__control {
	display: block;
	width: 100%;
	padding: var(--space-md);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface-subtle);
	color: var(--text-primary);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.elp-field__control::placeholder {
	color: var(--text-muted);
	opacity: 1;
}

.elp-field__control:focus {
	border-color: var(--border-accent);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 22%, transparent);
}

/* El desplegable nativo se pinta claro y con la flecha del sistema operativo.
   Se neutraliza y se le pone la del sistema de diseño (Icon/Default). */
.elp-field__control--select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b8c8d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right var(--space-md) center;
	cursor: pointer;
}

/* Con la opción vacía seleccionada, el desplegable hace de marcador de posición
   y tiene que leerse como tal, no como un valor ya elegido. */
.elp-field__control--select:has( option[value='']:checked ) {
	color: var(--text-muted);
}

/* La lista desplegada la pinta el sistema operativo: sin esto sale texto blanco
   sobre fondo blanco en Windows. */
.elp-field__control--select option {
	background: var(--brand-navy-card);
	color: var(--text-primary);
}

/* Chrome pinta el autorrelleno en amarillo y rompe la tarjeta oscura. */
.elp-field__control:-webkit-autofill,
.elp-field__control:-webkit-autofill:hover,
.elp-field__control:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--text-primary);
	-webkit-box-shadow: 0 0 0 1000px var(--brand-navy-card) inset;
	caret-color: var(--text-primary);
}

.elp-field__desc {
	margin: var(--space-xs) 0 0;
	color: var(--text-muted);
	font-size: 13px;
	line-height: 1.385;
}

/* --- Errores --- */

.elp-field__error {
	margin: var(--space-xs) 0 0;
	color: var(--status-error);
	font-size: 13px;
	line-height: 1.385;
}

.elp-field.is-invalid .elp-field__control {
	border-color: var(--status-error);
}

.elp-field.is-invalid .elp-field__control:focus {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-error) 22%, transparent);
}

/* El texto de ayuda sobra cuando hay un error: dice lo mismo pero más flojo. */
.elp-field.is-invalid .elp-field__desc {
	display: none;
}

/* --- Consentimiento --- */

.elp-field--consent {
	margin-bottom: var(--space-lg);
}

.elp-consent__intro {
	margin: 0 0 var(--space-sm);
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
}

.elp-consent__check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
}

.elp-consent__check input[type='checkbox'] {
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	flex: none;
	accent-color: var(--brand-primary);
	cursor: pointer;
}

.elp-consent__check a {
	color: var(--text-accent);
}

.elp-field--consent.is-invalid .elp-consent__check input[type='checkbox'] {
	outline: 2px solid var(--status-error);
	outline-offset: 2px;
}

/* --- Botón y estado --- */

.elp-form__submit {
	width: 100%;
}

.elp-form__submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.elp-form__status {
	margin: var(--space-md) 0 0;
	color: var(--status-error);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

/* El acuse de recibo ocupa el sitio del formulario, para que el usuario no se
   quede mirando un hueco vacío preguntándose si se ha enviado. */
.elp-form__success {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	align-items: center;
	min-height: 320px;
	justify-content: center;
	color: var(--text-secondary);
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
}

.elp-form__success .elp-icon {
	width: 48px;
	height: 48px;
	padding: 12px;
	border-radius: var(--radius-full);
	background: var(--surface-accent-subtle);
	color: var(--icon-accent);
}

.elp-form__note {
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

/* --- 03 · Prueba social -------------------------------------------------- */

.elp-social {
	padding-block: 48px;
}

.elp-social__label {
	margin-bottom: 28px;
	color: var(--text-muted);
	text-align: center;
}

.elp-social__track {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xl);
	align-items: center;
	justify-content: center;
}

/* Solo con el contenedor completo caben los seis en fila como en Figma. */
@media (min-width: 1200px) {
	.elp-social__track {
		flex-wrap: nowrap;
		gap: 0;
		justify-content: space-between;
	}
}

.elp-social__logo {
	display: flex;
	height: 48px;
	width: 168px;
	align-items: center;
	justify-content: center;
	flex: none;
}

.elp-social__logo img {
	max-height: 48px;
	width: auto;
	object-fit: contain;
}

/* --- 06 · Cómo funciona -------------------------------------------------- */

.elp-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-xl);
	margin: 56px 0 0;
	padding: 0;
	list-style: none;
}

.elp-step__num {
	display: block;
	color: var(--text-accent);
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.elp-step__rule {
	display: block;
	width: 48px;
	height: 3px;
	margin: 12px 0;
	border-radius: var(--radius-full);
	background: var(--brand-primary);
}

.elp-step h3 {
	margin: 0 0 12px;
	color: var(--text-primary);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
}

.elp-step :where(p) {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
}

.elp-section__cta {
	display: flex;
	justify-content: center;
	margin-top: 56px;
}

@media (max-width: 900px) {
	.elp-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.elp-steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --- Tarjetas ------------------------------------------------------------ */

.elp-cards {
	display: grid;
	gap: var(--space-xl);
	margin-top: 56px;
}

.elp-cards--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.elp-cards--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.elp-cards--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1023px) {
	.elp-cards--3,
	.elp-cards--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.elp-cards--2,
	.elp-cards--3,
	.elp-cards--4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

.elp-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
	padding: var(--space-xl);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-lg);
	background: var(--surface-default);
}

.elp-card :where(p) {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
}

.elp-card__icon {
	display: flex;
	width: 70px;
	height: 70px;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md);
	background: var(--surface-accent-subtle);
	/* Icon/Alert va en rojo de estado sobre la cápsula cian: el contraste entre
	   ambos es lo que hace que estas tres tarjetas se lean como problemas y no
	   como funcionalidades. */
	color: var(--status-error);
}

.elp-card__icon .elp-icon {
	width: 30px;
	height: 30px;
}

.elp-pains__lead {
	margin-top: 56px;
	color: var(--text-secondary);
	text-align: center;
}

/* --- 10 · Resultados ----------------------------------------------------- */

.elp-stat {
	justify-content: space-between;
	gap: 6px;
}

.elp-stat__num {
	color: var(--text-accent);
	font-size: clamp(44px, 4.6vw, 64px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
}

.elp-stat__lead {
	display: block;
	color: var(--text-accent);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.188;
}

.elp-stat__rest {
	display: block;
	color: var(--text-primary);
	font-size: 16px;
	line-height: 1.5;
}

/* --- 11 · Testimonio ----------------------------------------------------- */

.elp-quote {
	max-width: 800px;
	margin-top: 56px;
	margin-inline: auto;
}

/* Comillas de apertura: el glifo del set es de cierre, en Figma va girado 180°. */
.elp-quote__mark {
	display: block;
	width: 110px;
	height: 90px;
	color: var(--text-accent);
}

.elp-quote__mark .elp-icon {
	width: 110px;
	height: 90px;
	transform: rotate(180deg);
}

.elp-quote blockquote {
	margin: 12px 0 20px;
	color: var(--text-primary);
	font-size: clamp(22px, 2.6vw, 32px);
	font-style: italic;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.elp-quote__foot {
	display: flex;
	gap: var(--space-lg);
	align-items: flex-end;
	justify-content: space-between;
}

/* El ancho es libre hasta un tope: el logotipo de Endesa es muy apaisado y con
   caja fija de 100 px se quedaba en miniatura. */
.elp-quote__logo {
	display: flex;
	width: auto;
	max-width: 170px;
	height: 48px;
	align-items: center;
	justify-content: center;
	flex: none;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.elp-quote__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 600px) {
	.elp-quote__foot {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-md);
	}

	.elp-quote__sign {
		text-align: left;
	}
}

.elp-quote__sign {
	text-align: right;
}

.elp-quote__author {
	color: var(--text-primary);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.333;
	letter-spacing: -0.005em;
}

.elp-quote__role {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* --- 07 · La plataforma -------------------------------------------------- */

.elp-diagram {
	margin: 56px auto 0;
	max-width: 1200px;
}

.elp-diagram img {
	display: block;
	width: 100%;
	height: auto;
}

.elp-modules {
	max-width: 930px;
	margin: 56px auto 0;
	align-items: center;
	text-align: center;
}

.elp-modules__lists {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 62px;
	width: 100%;
	text-align: left;
}

@media (max-width: 700px) {
	.elp-modules__lists {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-lg);
	}
}

.elp-modules__lists ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.elp-modules__lists li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
}

.elp-modules__lists .elp-icon {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--icon-accent);
}

/* Figma pinta este cierre en brand-primary (#29abe2); sobre el fondo claro se
   queda en 2,3:1 y no pasa AA. Se usa el acento del modo claro (#136f9c, 5,2:1).
   Pendiente de sincronizar en Figma. */
.elp-platform__closing {
	margin-top: 56px;
	color: var(--text-accent);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.333;
	letter-spacing: -0.005em;
	text-align: center;
}

/* --- 12 · FAQ ------------------------------------------------------------ */

.elp-faq {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	max-width: 900px;
	margin: 56px auto 0;
}

.elp-faq details {
	padding: var(--space-lg);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
	background: var(--surface-default);
}

.elp-faq summary {
	display: flex;
	gap: var(--space-lg);
	align-items: center;
	justify-content: space-between;
	color: var(--text-primary);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.elp-faq summary::-webkit-details-marker {
	display: none;
}

.elp-faq summary .elp-icon {
	flex: none;
	color: var(--icon-default);
	transition: transform 0.2s ease;
}

.elp-faq details[open] summary .elp-icon {
	transform: rotate(180deg);
}

.elp-faq__answer {
	margin-top: var(--space-md);
	color: var(--text-secondary);
	font-size: 16px;
	line-height: 1.5;
}

/* --- 13 · CTA final ------------------------------------------------------ */

.elp-cta {
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
	align-items: center;
	padding: clamp(40px, 6vw, 80px);
	border: 1px solid var(--border-accent);
	border-radius: var(--radius-xl);
	background: var(--surface-default);
	text-align: center;
}

.elp-cta__sub {
	max-width: 760px;
	color: var(--text-secondary);
}

/* --- 14 · Footer --------------------------------------------------------- */

.elp-footer {
	border-top: 1px solid var(--border-default);
	background: var(--brand-navy-card);
	padding: 63px var(--section-x) 48px;
}

.elp-footer__cols {
	display: grid;
	grid-template-columns: 360px repeat(3, minmax(0, 1fr));
	gap: 64px;
	max-width: var(--container);
	margin-inline: auto;
}

@media (max-width: 1023px) {
	.elp-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-xl);
	}
}

@media (max-width: 560px) {
	.elp-footer__cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

.elp-footer__brand p {
	margin-top: var(--space-md);
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
}

.elp-footer__logo {
	display: block;
	width: 205px;
	max-width: 100%;
}

.elp-footer ul {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	margin: var(--space-sm) 0 0;
	padding: 0;
	list-style: none;
}

.elp-footer li,
.elp-footer li a {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
}

.elp-footer li a:hover {
	color: var(--text-primary);
}

.elp-footer__legal {
	display: flex;
	gap: var(--space-lg);
	align-items: center;
	justify-content: space-between;
	max-width: var(--container);
	margin: 48px auto 0;
	padding-top: var(--space-lg);
	border-top: 1px solid var(--border-default);
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.5;
}

.elp-footer__legal ul {
	flex-direction: row;
	gap: var(--space-lg);
	margin: 0;
}

.elp-footer__legal a {
	color: var(--text-muted);
	font-size: 12px;
	text-decoration: none;
}

@media (max-width: 700px) {
	.elp-footer__legal {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-sm);
	}
}

/* --- Preferencias del sistema -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.elp-landing *,
	.elp-landing *::before,
	.elp-landing *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* =========================================================================
   Movimiento
   Regla de la casa: solo se anima `transform` y `opacity`, nunca propiedades
   que provoquen reflow. Así ninguna microanimación puede empeorar el CLS de
   una landing que se paga a clic.
   Todo lo de esta sección se apaga entero en `prefers-reduced-motion`.
   ========================================================================= */

/* --- Aparición al entrar en pantalla -------------------------------------
   El contenido solo se oculta si hay JavaScript (clase elp-js en <html>).
   Si el JS falla o tarda, la landing se ve entera: nunca una página en blanco
   por culpa de una animación. */

html.elp-js .elp-landing [data-reveal] {
	opacity: 0;
	transform: translateY(20px);
}

html.elp-js .elp-landing [data-reveal].is-in {
	opacity: 1;
	transform: none;
	transition:
		opacity var(--dur) var(--ease) var(--d, 0ms),
		transform var(--dur) var(--ease) var(--d, 0ms);
}

/* Las anclas de la navbar no deben quedar debajo de la barra fija. */
.elp-landing [id] {
	scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* --- Navbar --------------------------------------------------------------
   No se anima la altura: la barra es sticky y está en el flujo, así que
   encogerla desplazaría el contenido. Solo fondo, sombra y escala del logo. */

.elp-nav {
	background: color-mix(in srgb, var(--bg-default) 88%, transparent);
	backdrop-filter: saturate(140%) blur(10px);
	transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.elp-nav__logo-svg,
.elp-nav__logo svg {
	transition: transform 0.25s var(--ease);
	transform-origin: left center;
}

.elp-nav.is-scrolled .elp-nav__logo svg {
	transform: scale(0.92);
}

.elp-nav__links a {
	position: relative;
	transition: color 0.2s var(--ease);
}

.elp-nav__links a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 100%;
	height: 2px;
	border-radius: var(--radius-full);
	background: var(--brand-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--ease);
}

.elp-nav__links a:hover::after,
.elp-nav__links a:focus-visible::after {
	transform: scaleX(1);
}

/* --- Menú móvil ---------------------------------------------------------- */

.elp-nav__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text-primary);
	cursor: pointer;
}

.elp-nav__toggle .elp-icon {
	transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.elp-nav__toggle .elp-icon--close,
.elp-nav__toggle[aria-expanded='true'] .elp-icon--open {
	display: none;
}

.elp-nav__toggle[aria-expanded='true'] .elp-icon--close {
	display: block;
}

@media (max-width: 1023px) {
	.elp-nav__toggle {
		display: inline-flex;
	}

	/* El menú existe también sin JS: sin la clase elp-js queda siempre visible
	   como una fila de anclas, en vez de un panel que nadie puede abrir. */
	html.elp-js .elp-nav__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: var(--space-md) var(--section-x) var(--space-lg);
		border-bottom: 1px solid var(--border-default);
		background: var(--surface-default);
		opacity: 0;
		transform: translateY(-8px);
		visibility: hidden;
		transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
	}

	html.elp-js .elp-nav__panel.is-open {
		opacity: 1;
		transform: none;
		visibility: visible;
	}

	.elp-nav__links {
		display: flex;
		flex-direction: column;
		gap: var(--space-md);
		align-items: flex-start;
	}

	.elp-nav__links a {
		font-size: 16px;
	}

	.elp-nav__links a::after {
		display: none;
	}

	/* El CTA se queda en la barra también en móvil: es la vía de conversión
	   más usada en tráfico de pago y esconderlo tras un menú la penaliza. Se
	   compacta, no se oculta. */
	.elp-nav__cta {
		min-height: 40px;
		padding: 0 var(--space-md);
		font-size: 13px;
	}
}

@media (max-width: 560px) {
	.elp-nav__logo {
		width: 150px;
	}

	.elp-nav__inner {
		gap: var(--space-sm);
	}

	.elp-nav__cta .elp-icon {
		display: none;
	}
}

@media (min-width: 1024px) {
	.elp-nav__panel {
		display: contents;
	}
}

/* --- Botones ------------------------------------------------------------- */

.elp-btn {
	position: relative;
	transition:
		background-color 0.18s var(--ease),
		transform 0.18s var(--ease),
		box-shadow 0.18s var(--ease);
}

.elp-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand-primary) 70%, transparent);
}

.elp-btn:active {
	transform: translateY(0);
	box-shadow: none;
}

.elp-btn .elp-icon {
	transition: transform 0.22s var(--ease);
}

.elp-btn:hover .elp-icon {
	transform: translateX(4px);
}

/* --- Tarjetas ------------------------------------------------------------ */

.elp-card {
	transition:
		transform 0.25s var(--ease),
		border-color 0.25s var(--ease),
		box-shadow 0.25s var(--ease);
}

.elp-card:not(.elp-modules):hover {
	transform: translateY(-4px);
	border-color: var(--border-accent);
	box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.7);
}

.elp-card__icon {
	transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.elp-card:hover .elp-card__icon {
	transform: scale(1.06) rotate(-3deg);
}

/* --- Pasos ---------------------------------------------------------------
   La regla bajo el número crece al aparecer: es el detalle que da sensación
   de secuencia sin mover nada de sitio. */

html.elp-js .elp-step[data-reveal] .elp-step__rule {
	transform: scaleX(0);
	transform-origin: left;
}

html.elp-js .elp-step[data-reveal].is-in .elp-step__rule {
	transform: scaleX(1);
	transition: transform 0.5s var(--ease) calc(var(--d, 0ms) + 180ms);
}

/* --- Prueba social · carrusel infinito ------------------------------------
   La especificación del frame pide carrusel. La pista lleva los logos
   duplicados exactamente dos veces y se desplaza media pista: el salto es
   invisible porque la segunda mitad es idéntica a la primera. */

.elp-social__marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

html.elp-js .elp-social__marquee .elp-social__track {
	width: max-content;
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: var(--space-xl);
	animation: elp-marquee 45s linear infinite;
}

html.elp-js .elp-social__marquee:hover .elp-social__track,
html.elp-js .elp-social__marquee:focus-within .elp-social__track {
	animation-play-state: paused;
}

@keyframes elp-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* Los logos ya vienen monocromos en blanco desde Figma: nada de grayscale ni de
   bajarles la opacidad, que era invención mía y los dejaba apagados respecto al
   diseño aprobado. Solo un guiño al pasar por encima. */
.elp-social__logo img {
	transition: transform 0.25s var(--ease);
}

.elp-social__logo:hover img {
	transform: scale(1.06);
}

/* Sin JS no hay carrusel: los logos se reparten como fila estática. */
html:not(.elp-js) .elp-social__marquee .elp-social__track > *:nth-child(n + 7) {
	display: none;
}

/* --- Dato de resultados --------------------------------------------------- */

.elp-stat__num {
	font-variant-numeric: tabular-nums;
}

/* --- FAQ ------------------------------------------------------------------
   El acordeón sigue siendo <details> nativo. La altura no se anima (el
   navegador la resuelve de golpe), pero la respuesta entra con un fundido
   corto, que es lo que se percibe. */

.elp-faq details {
	transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.elp-faq details:hover {
	border-color: var(--border-strong);
}

.elp-faq details[open] {
	border-color: var(--border-accent);
}

.elp-faq details[open] .elp-faq__answer {
	animation: elp-faq-in 0.3s var(--ease);
}

@keyframes elp-faq-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.elp-faq summary .elp-icon {
	transition: transform 0.3s var(--ease), color 0.2s var(--ease);
}

.elp-faq summary:hover .elp-icon {
	color: var(--icon-accent);
}

/* --- Hero ----------------------------------------------------------------
   El halo cian del fondo respira muy despacio. Es transform sobre una capa
   propia, así que no repinta el texto ni toca el layout. */

.elp-hero__glow {
	position: absolute;
	inset: -20% -10%;
	z-index: -2;
	background: radial-gradient(closest-side, rgba(41, 171, 226, 0.18), transparent 70%);
	will-change: transform;
	animation: elp-glow 22s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes elp-glow {
	from {
		transform: translate3d(-6%, -3%, 0) scale(1);
	}
	to {
		transform: translate3d(6%, 4%, 0) scale(1.12);
	}
}

/* --- Formulario ----------------------------------------------------------- */

/* La transicion y el halo de foco viven con el resto del campo, en el bloque
   de formulario de arriba. Aqui solo queda la entrada del acuse de recibo. */
.elp-form__success[hidden] {
	display: none;
}

.elp-form__success:not([hidden]) {
	animation: elp-faq-in 0.35s var(--ease);
}

/* --- Apagado total con movimiento reducido -------------------------------
   No basta con acortar las transiciones: hay que devolver los elementos a su
   posición final, o quien tenga la preferencia activada vería el contenido
   desplazado y a medio opacar. */

@media (prefers-reduced-motion: reduce) {
	html.elp-js .elp-landing [data-reveal],
	html.elp-js .elp-step[data-reveal] .elp-step__rule {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	html.elp-js .elp-social__marquee .elp-social__track {
		animation: none;
		width: auto;
		flex-wrap: wrap;
		justify-content: center;
	}

	html.elp-js .elp-social__marquee .elp-social__track > *:nth-child(n + 7) {
		display: none;
	}

	.elp-hero__glow {
		animation: none;
	}

	.elp-btn:hover,
	.elp-card:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------------------- *
 * Maqueta del formulario (mercados sin GUID de HubSpot todavía)
 *
 * Reutiliza las clases del formulario real, así que aquí solo hace falta el
 * contenedor y el aviso. El <fieldset> por defecto trae borde y márgenes del
 * navegador: se neutralizan.
 * ------------------------------------------------------------------------- */

.elp-form__mock {
	margin: 0;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

/* El aviso tiene que leerse como una nota de trabajo, no como parte del
   diseño: si algún día esto llega a producción, se ve. */
.elp-form__mock-note {
	display: block;
	margin-bottom: var(--space-md);
	padding: 6px 10px;
	border: 1px dashed var(--status-error);
	border-radius: var(--radius-sm);
	color: var(--status-error);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Deshabilitado, pero legible: es una vista previa, no un campo inactivo que
   el usuario tenga que interpretar. */
.elp-form__mock .elp-field__control:disabled {
	opacity: 1;
	cursor: default;
}
