/**
 * Página de Ventas — Estimulación Cognitiva
 * Capa fina sobre el sistema visual del tema (style.css): mismas variables
 * (--c-*, --sp-*, --radius-*, --text-*, --font-*) y mismos componentes
 * (.hero, .section__header, .service-card, .cta-section, .btn).
 *
 * Específico del landing: sin menú (página de ventas, solo marca), vídeo del
 * hero con capa decorativa salvia y chips de datos, grids de áreas/programas/
 * frecuencia, bloque de contacto en tarjeta y pulido del formulario.
 */

/* ═══════════ SIN MENÚ — la página de ventas solo conserva la marca ═══════════ */

.eco-landing .header__nav,
.eco-landing .header__cta,
.eco-gracias .header__nav,
.eco-gracias .header__cta {
	display: none !important;
}

/* ═══════════ HERO — foto real del gabinete como fondo ═══════════ */

/* La foto real (pareja en sesión de terapia en el gabinete) sustituye a la
   mascota como capa de profundidad del hero, con velo crema para contraste. */
.eco-landing .hero-character {
	display: none;
}

.eco-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(100deg, rgba(254, 251, 251, 0.97) 0%, rgba(254, 251, 251, 0.92) 45%, rgba(255, 245, 245, 0.60) 100%),
		url('../images/familia-abrazo.webp') center / cover no-repeat;
}

/* ═══════════ HERO — vídeo con capa salvia y chips de datos ═══════════ */

@media (min-width: 1025px) {
	/* Composición comercial: texto 600 + vídeo 360 en contenedor 1120,
	   con hueco controlado (antes ~460px de vacío en el centro). */
	.eco-hero .container {
		max-width: 1120px;
	}

	.eco-hero .hero__inner {
		max-width: 600px;
	}

	.eco-hero .hero-carousel {
		flex: 0 0 360px;
	}
}

.eco-hero__media-inner {
	position: relative;
	width: 100%;
}

/* Capa decorativa salvia, desplazada tras el marco del vídeo. */
.eco-hero__media-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: translate(18px, 18px);
	border-radius: var(--radius-lg);
	background: var(--color-sage-200, #D6E2CE);
	opacity: 0.55;
}

.eco-hero .hero-carousel__frame {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 478 / 850;
}

.eco-hero__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--c-heading);
}

/* Chips flotantes con datos reales del folleto, sobre el vídeo. */
.eco-hero__chip {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	max-width: max-content;
	padding: var(--sp-2) var(--sp-4);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-full);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--c-heading);
	box-shadow: 0 12px 28px rgba(26, 23, 20, 0.12);
	pointer-events: none;
}

.eco-hero__chip svg {
	flex: none;
	color: var(--c-success);
}

.eco-hero__chip--grupos {
	top: var(--sp-10);
	left: calc(-1 * var(--sp-6));
}

.eco-hero__chip--sesiones {
	bottom: var(--sp-20);
	right: calc(-1 * var(--sp-6));
}

/* Detalle salvia en los iconos de confianza del hero y de los datos. */
.eco-landing .hero__trust-item svg {
	color: var(--c-success);
}

/* ═══════════ ÁREAS COGNITIVAS ═══════════ */

.eco-areas {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-6);
}

.eco-area .service-card__icon {
	color: var(--c-primary);
	transition: background var(--duration-fast) ease;
}

.eco-area:hover .service-card__icon {
	background: var(--c-accent);
}

.eco-area .service-card__title {
	font-size: var(--text-lg);
	letter-spacing: -0.01em;
}

/* ═══════════ PROGRAMAS ═══════════ */

.eco-programs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-6);
}

.eco-program__num {
	display: block;
	margin-bottom: var(--sp-4);
	font-family: var(--font-display);
	font-size: var(--text-4xl);
	font-weight: 600;
	line-height: 1;
	color: var(--c-primary);
}

.eco-program__desc {
	margin: 0;
	font-size: var(--text-base);
	color: var(--c-text-muted);
	line-height: 1.7;
}

/* ═══════════ FRECUENCIA Y FORMATO ═══════════ */

.eco-freq {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-6);
	max-width: 900px;
	margin: 0 auto var(--sp-10);
}

.eco-freq__card {
	text-align: center;
}

.eco-freq__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0 auto var(--sp-4);
	border-radius: var(--radius-full);
	background: var(--c-accent);
	color: var(--c-primary);
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: 600;
}

.eco-freq__label {
	margin: 0;
	font-size: var(--text-base);
	color: var(--c-text-muted);
}

.eco-freq__label strong {
	display: block;
	margin-bottom: var(--sp-1);
	font-size: var(--text-lg);
	color: var(--c-heading);
}

.eco-facts {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sp-4) var(--sp-8);
	margin: 0;
	padding: 0;
}

/* ═══════════ BANDA CTA (hereda .cta-section de la home) ═══════════ */

.eco-cta-band .btn--outline {
	border-color: rgba(255, 255, 255, 0.35);
	color: #FFF5F5;
}

.eco-cta-band .btn--outline:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.eco-cta-band__note {
	margin: var(--sp-6) 0 0;
	font-size: var(--text-sm);
	color: var(--c-accent-strong);
}

/* ═══════════ ENFOQUE NEUROPSICOLÓGICO ═══════════ */

.eco-focus__grid {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: var(--sp-8);
	align-items: center;
	max-width: 820px;
	margin: 0 auto;
}

.eco-focus__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border: 1px solid var(--color-sage-200, #D6E2CE);
	border-radius: var(--radius-xl);
	background: var(--c-surface);
	color: var(--c-primary);
	box-shadow: 0 0 0 8px var(--color-sage-100, #ECF1E8);
}

.eco-focus__title {
	margin-bottom: var(--sp-4);
}

.eco-focus__text {
	margin: 0;
	font-size: var(--text-lg);
	color: var(--c-text-muted);
	line-height: 1.8;
}

/* ═══════════ VALORACIÓN — contacto + formulario ═══════════ */

.eco-valoracion {
	scroll-margin-top: var(--sp-10);
}

.eco-valoracion__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: var(--sp-12);
	align-items: start;
}

.eco-contact__heading {
	margin: 0 0 var(--sp-3);
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--c-primary);
}

.eco-contact__phones {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4) var(--sp-6);
	margin: 0 0 var(--sp-4);
}

.eco-contact__phones a {
	font-family: var(--font-display);
	font-size: var(--text-2xl);
	font-weight: 600;
	color: var(--c-heading);
	text-decoration: none;
	transition: color var(--duration-base) var(--ease-out);
}

.eco-contact__phones a:hover {
	color: var(--c-primary);
}

.eco-contact__mail {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	margin: 0 0 var(--sp-8);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--c-heading);
	text-decoration: none;
	transition: color var(--duration-fast) ease;
}

.eco-contact__mail:hover {
	color: var(--c-primary);
}

.eco-contact__mail svg {
	color: var(--c-primary);
}

.eco-contact__address {
	margin: 0 0 var(--sp-8);
	font-size: var(--text-base);
	color: var(--c-text-muted);
	line-height: 1.7;
}

.eco-contact__facts {
	margin: 0;
}

.eco-contact__facts > div {
	display: flex;
	justify-content: space-between;
	gap: var(--sp-4);
	padding: var(--sp-3) 0;
	border-bottom: 1px solid var(--c-border);
}

.eco-contact__facts > div:last-child {
	border-bottom: 0;
}

.eco-contact__facts dt {
	font-size: var(--text-sm);
	color: var(--c-text-muted);
}

.eco-contact__facts dd {
	margin: 0;
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--c-heading);
	text-align: right;
}

/* ── Formulario (misma receta de inputs que la home: lead-form) ── */

.eco-form .contact-form__group {
	margin: 0 0 var(--sp-4);
}

.eco-form label {
	display: block;
	margin-bottom: var(--sp-2);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--c-heading);
}

.eco-req {
	color: var(--c-primary);
}

.eco-optional {
	font-weight: 400;
	color: var(--c-text-muted);
}

.eco-form input[type="text"],
.eco-form input[type="tel"],
.eco-form input[type="email"],
.eco-form select,
.eco-form textarea {
	width: 100%;
	padding: var(--sp-3) var(--sp-4);
	border: 1.5px solid var(--c-border);
	border-radius: var(--radius-md);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	color: var(--c-text);
	background: var(--c-surface);
	transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.eco-form input:focus,
.eco-form select:focus,
.eco-form textarea:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px var(--c-accent);
}

.eco-form .contact-form__legal {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-2);
	margin: var(--sp-4) 0;
	font-size: var(--text-xs);
	font-weight: 400;
	color: var(--c-text-muted);
	line-height: 1.6;
}

.eco-form .contact-form__legal input {
	flex: none;
	width: auto;
	margin-top: var(--sp-1);
}

.eco-form .contact-form__legal a {
	color: var(--c-primary);
	font-weight: 600;
}

.eco-btn--block {
	width: 100%;
}

.eco-form__note {
	margin: var(--sp-4) 0 0;
	font-size: var(--text-xs);
	color: var(--c-text-muted);
	text-align: center;
}

/* Honeypot — invisible para humanos, visible para bots. */
.eco-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ═══════════ GRACIAS ═══════════ */

.eco-thanks {
	min-height: calc(100vh - var(--header-h, 72px));
	display: flex;
	align-items: center;
	padding: var(--sp-16) 0;
	background: var(--c-bg);
}

.eco-thanks .container {
	width: 100%;
}

.eco-thanks__card {
	max-width: 640px;
	margin: 0 auto;
	padding: var(--sp-16) var(--sp-8);
	text-align: center;
}

.eco-thanks__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 auto var(--sp-6);
	border-radius: var(--radius-full);
	background: var(--c-bg-alt);
	color: var(--c-success);
}

.eco-thanks__title {
	margin: 0 0 var(--sp-4);
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	color: var(--c-heading);
}

.eco-thanks__text {
	margin: 0 0 var(--sp-8);
	font-size: var(--text-base);
	color: var(--c-text-muted);
	line-height: 1.8;
}

.eco-thanks__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sp-4);
	margin-bottom: var(--sp-6);
}

.eco-thanks__note {
	margin: 0;
	font-size: var(--text-sm);
	color: var(--c-text-muted);
}

.eco-thanks__note a {
	color: var(--c-primary);
	font-weight: 600;
}

/* ═══════════ RESPONSIVE — tablet y móvil ═══════════ */

@media (max-width: 1024px) {
	.eco-areas {
		grid-template-columns: repeat(2, 1fr);
	}

	.eco-valoracion__grid {
		grid-template-columns: 1fr;
		gap: var(--sp-10);
	}

	.eco-focus__grid {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		gap: var(--sp-5);
	}

	/* La home ya apila el hero en columna; el vídeo se centra bajo el texto. */
	.eco-hero__chip--grupos {
		left: -12px;
	}

	.eco-hero__chip--sesiones {
		right: -12px;
	}
}

@media (max-width: 768px) {
	.eco-areas {
		grid-template-columns: 1fr;
	}

	.eco-programs {
		grid-template-columns: 1fr;
	}

	.eco-freq {
		grid-template-columns: 1fr;
		max-width: 420px;
	}

	.eco-contact__phones {
		flex-direction: column;
		gap: var(--sp-2);
	}

	.eco-contact__phones a {
		font-size: var(--text-xl);
	}

	/* Móvil: velo crema más uniforme (vertical) sobre la foto del gabinete. */
	.eco-hero__bg {
		background:
			linear-gradient(180deg, rgba(254, 251, 251, 0.96) 0%, rgba(254, 251, 251, 0.90) 55%, rgba(255, 245, 245, 0.80) 100%),
			url('../images/familia-abrazo.webp') center / cover no-repeat;
	}

	.eco-thanks__card {
		padding: var(--sp-12) var(--sp-6);
	}
}

@media (max-width: 480px) {
	/* Móvil pequeño: el vídeo queda limpio, sin chips flotantes. */
	.eco-hero__chip {
		display: none;
	}

	.eco-thanks__actions {
		flex-direction: column;
	}

	.eco-thanks__actions .btn {
		width: 100%;
	}
}

/* ═══════════ ACCESIBILIDAD ═══════════ */

.eco-landing a:focus-visible,
.eco-landing button:focus-visible,
.eco-gracias a:focus-visible,
.eco-gracias button:focus-visible {
	outline: 3px solid var(--c-primary);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
	.eco-landing *,
	.eco-gracias * {
		transition: none !important;
		animation: none !important;
	}
}
