/*
 * Secciones del Inicio (patrones de inc/patterns-sections.php).
 * Réplica de los estilos de la versión React (Tailwind, commit 0dacf88). Usa solo los colores globales del tema.
 * Las clases se aplican con "Clase CSS adicional"; cada sección lleva ec-sec.
 *
 * Puntos de corte de Tailwind: sm 640 px · md 768 px · lg 1024 px.
 */

/* ---------- Base de las secciones ---------- */
.ec-sec {
	color: var(--grafito);
	font-family: var(--ec-font-inter);
	font-size: 1rem;
	line-height: 1.5;
	/* GeneratePress parte las palabras largas en cualquier letra; la versión React no lo hace */
	overflow-wrap: normal;
}

/* Reinicio de márgenes de GeneratePress en el texto de las secciones (no dentro de los bloques de ecristia-core, que traen los suyos) */
.ec-sec :is(h1, h2, h3, h4, p, ul, ol, figure):not(:where(.ec-block *)) {
	margin: 0;
}

/* Las secciones van pegadas unas a otras: sin el margen que WordPress/GeneratePress agregan entre bloques */
body .entry-content > .wp-block-group.ec-sec:not(:last-child),
body .entry-content > .wp-block-group.ec-demos:not(:last-child),
body .entry-content > .wp-block-group.ec-sec,
body .entry-content > .wp-block-group.ec-demos {
	margin-top: 0;
	margin-bottom: 0;
}

.ec-sec .ec-note {
	margin-bottom: 1.5rem;
}

/* Frase de confianza bajo las tarjetas de Precios (CRO-1, R2) */
.ec-sec .ec-price-assurance {
	max-width: 42rem;
	margin: 2rem auto 1.5rem;
	color: var(--grafito);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5rem;
	text-align: center;
}

@media (min-width: 640px) {
	.ec-sec .ec-price-assurance {
		font-size: 1.125rem;
		line-height: 1.75rem;
	}
}

.ec-sec ul {
	padding: 0;
	list-style: none;
}

.ec-sec :is(h1, h2, h3, h4) {
	font-family: var(--ec-font-syne);
	color: var(--grafito);
}

.ec-sec mark.has-inline-color {
	background-color: transparent;
}

.ec-sec .has-fiordo-color {
	color: var(--fiordo);
}

.ec-sec .has-arcilla-color {
	color: var(--arcilla);
}

.ec-sec .has-bruma-color {
	color: var(--bruma);
}

.ec-wrap {
	max-width: 80rem;
	margin-right: auto;
	margin-left: auto;
}

/* max-w-3xl de la versión React incluye el relleno lateral: 728 px de texto en celular, 704 desde 640 px y 672 px desde 1024 px */
.ec-wrap--narrow {
	max-width: 45.5rem;
}

@media (min-width: 640px) {
	.ec-wrap--narrow {
		max-width: 44rem;
	}
}

@media (min-width: 1024px) {
	.ec-wrap--narrow {
		max-width: 42rem;
	}
}

.ec-band.ec-band--stats {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
	border-top: 1px solid var(--linea);
	border-bottom: 1px solid var(--linea);
}

.ec-band.ec-band--line-top {
	border-top: 1px solid var(--linea);
}

.ec-band.ec-band--flush-top {
	padding-top: 1rem;
}

/* La oferta no deja hueco cuando el bloque no muestra nada (0 cupos) */
.ec-band--offer:not(:has(.ec-offer)) {
	display: none;
}

/* ---------- Encabezados de sección ---------- */
.ec-sec-head {
	max-width: 48rem;
}

.ec-sec-head--mb14 {
	margin-bottom: 3.5rem;
}

.ec-sec-head--mb16 {
	margin-bottom: 4rem;
}

.ec-sec-head--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.ec-sec-head--center:not(.ec-sec-head--mb14):not(.ec-sec-head--mb16) {
	margin-bottom: 4rem;
}

.ec-sec-head--split {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: none;
	margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
	.ec-sec-head--split {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}

.ec-sec-head__main {
	max-width: 42rem;
}

.ec-sec-head--end .ec-sec-head__main {
	max-width: none;
}

.ec-sec-head__aside {
	max-width: 28rem;
	color: var(--pizarra);
	font-size: 1rem;
	line-height: 1.5;
}

p.ec-tag {
	margin: 0 0 0.75rem;
}

p.ec-tag.ec-tag--mb2 {
	margin-bottom: 0.5rem;
}

.ec-tag--dot::before {
	content: '';
	flex: none;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 9999px;
	background-color: var(--fiordo);
}

.ec-tag--dark {
	border: 1px solid rgba(217, 211, 198, 0.2);
	background-color: var(--fiordo-900);
	color: var(--bruma);
}

.ec-sec .ec-h2 {
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

@media (min-width: 640px) {
	.ec-sec .ec-h2 {
		font-size: 2.25rem;
		line-height: 1.1111;
	}
}

@media (min-width: 1024px) {
	.ec-sec .ec-h2.ec-h2--lg {
		font-size: 3rem;
		line-height: 1;
	}
}

.ec-sec .ec-lead {
	margin-top: 0.75rem;
	color: var(--pizarra);
	font-size: 1rem;
	line-height: 1.5rem;
}

@media (min-width: 640px) {
	.ec-sec .ec-lead {
		font-size: 1.125rem;
		line-height: 1.75rem;
	}
}

.ec-sec.ec-band--fiordo :is(h1, h2, h3) {
	color: var(--bruma);
}

.ec-band--fiordo .ec-lead {
	color: rgba(243, 239, 231, 0.85);
}

.ec-band--fiordo h2 span[style*='underline'] {
	text-decoration-color: var(--arcilla);
	text-decoration-thickness: 4px;
	text-underline-offset: 8px;
}

/* ---------- Mallas ---------- */
.ec-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.ec-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ec-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ec-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ec-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ec-grid--2 {
	gap: 2rem;
}

/* Sección Demos del Inicio (CRO-8): 4 tarjetas, en 2 × 2 desde 640 px y en una columna en el celular */
.ec-grid--demos {
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.ec-grid--demos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ec-grid--demos {
		gap: 2rem;
	}
}

/* ---------- Botones de bloque (el contenedor no tiene aspecto; el enlace sí) ---------- */
.ec-sec .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
}

.ec-sec .wp-block-button.ec-btn {
	display: block;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	transform: none;
}

.ec-sec .wp-block-button.ec-btn:hover,
.ec-sec .wp-block-button.ec-btn:active,
.ec-sec .wp-block-button.ec-btn.ec-btn--sec,
.ec-sec .wp-block-button.ec-btn.ec-btn--sec:hover {
	border: 0;
	background: none;
	box-shadow: none;
	transform: none;
}

.ec-sec .wp-block-button.ec-btn .wp-block-button__link {
	width: 100%;
	text-decoration: none;
}

/* Colores del enlace (GeneratePress pinta de gris los botones de bloque con una regla más específica que ec-btn) */
.ec-sec .wp-block-button.ec-btn:not(.ec-btn--sec) .wp-block-button__link {
	border: 0;
	background-color: var(--arcilla);
	color: #fff;
}

.ec-sec .wp-block-button.ec-btn:not(.ec-btn--sec) .wp-block-button__link:hover,
.ec-sec .wp-block-button.ec-btn:not(.ec-btn--sec) .wp-block-button__link:focus {
	background-color: var(--arcilla-700);
	color: #fff;
}

.ec-sec .wp-block-button.ec-btn.ec-btn--sec .wp-block-button__link {
	border: 1px solid var(--linea);
	background-color: var(--nieve);
	color: var(--fiordo);
	font-weight: 600;
}

.ec-sec .wp-block-button.ec-btn.ec-btn--sec .wp-block-button__link:hover,
.ec-sec .wp-block-button.ec-btn.ec-btn--sec .wp-block-button__link:focus {
	border-color: var(--fiordo);
	background-color: var(--nieve);
	color: var(--fiordo);
}

/* Íconos de los botones: van dentro del enlace */
.wp-block-button.ec-i::before,
.wp-block-button.ec-i-after::after {
	content: none;
}

.wp-block-button.ec-i .wp-block-button__link::before,
.wp-block-button.ec-i-after .wp-block-button__link::after {
	content: '';
	display: inline-block;
	flex: none;
	width: var(--ec-i-size, 1rem);
	height: var(--ec-i-size, 1rem);
	background-color: var(--ec-i-color, currentColor);
	-webkit-mask: var(--ec-i-mask) center / contain no-repeat;
	mask: var(--ec-i-mask) center / contain no-repeat;
}

.wp-block-button.ec-i-after .wp-block-button__link::before {
	content: none;
}

/* ---------- Círculos con ícono ---------- */
.ec-bubble {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.25rem;
	border-radius: 9999px;
	background-color: var(--salvia-100);
	color: var(--salvia);
	transition: transform 0.15s ease;
}

.ec-bubble svg {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
}

.ec-bubble--banner {
	margin-bottom: 0;
}

.ec-bubble--banner svg {
	width: 1.5rem;
	height: 1.5rem;
}

.ec-bubble--sm {
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
}

.ec-bubble--sm svg {
	flex: none;
	width: 1rem;
	height: 1rem;
}

/* El círculo del ícono no se achica nunca (AUD-WP-006) */
.ec-box__google-info .ec-bubble {
	flex: 0 0 auto;
}

.ec-step__head .ec-bubble,
.ec-niche__head .ec-bubble {
	margin-bottom: 0;
}

.ec-diag:hover .ec-bubble,
.ec-niche:hover .ec-bubble {
	transform: scale(1.1);
}

.ec-bento:hover .ec-bubble {
	transform: scale(1.05);
}

/* ---------- Tarjetas: piezas comunes ---------- */
@media (min-width: 640px) {
	.ec-card.ec-card--p7 {
		padding: 1.75rem;
	}
}

.ec-sec .ec-card__title {
	margin-bottom: 0.5rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.75rem;
	transition: color 0.15s ease;
}

.ec-sec .ec-card__text {
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.625;
}

.ec-sec .ec-card__foot {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--linea);
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-card__foot strong {
	color: var(--fiordo);
	font-weight: 700;
}

.ec-badge {
	flex: none;
	padding: 0.25rem 0.625rem;
	border-radius: 9999px;
	background-color: var(--salvia-100);
	color: var(--fiordo);
	font-size: 10px;
	font-weight: 700;
}

.ec-sec p.ec-badge--xs,
.ec-sec p.ec-badge--sm {
	flex: 0 1 auto;
	display: inline-block;
	padding: 0.125rem 0.625rem;
	border: 1px solid var(--linea);
	font-weight: 400;
	line-height: 1.5;
	text-transform: uppercase;
}

.ec-sec p.ec-badge--xs {
	font-size: 11px;
}

.ec-sec p.ec-badge--sm {
	margin-bottom: 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1rem;
}

.ec-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--linea);
	border-radius: 9999px;
	background-color: var(--arena);
	color: var(--grafito);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-chip--dot::before {
	content: '';
	flex: none;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 9999px;
	background-color: var(--fiordo);
}

/* ---------- Hero ---------- */
.ec-hero {
	position: relative;
	padding: 3rem 1rem 5rem;
	overflow: hidden;
	background-color: var(--bruma);
}

@media (min-width: 640px) {
	.ec-hero {
		padding-top: 3.5rem;
		padding-right: 2rem;
		padding-left: 2rem;
	}
}

@media (min-width: 901px) {
	.ec-hero {
		padding-bottom: 7rem;
	}
}

@media (min-width: 1024px) {
	.ec-hero {
		padding-right: 3rem;
		padding-left: 3rem;
	}
}

.ec-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	align-items: center;
	max-width: 80rem;
	margin-right: auto;
	margin-left: auto;
}

@media (min-width: 1024px) {
	.ec-hero__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 4rem;
	}

	.ec-hero__copy {
		grid-column: span 7;
	}

	.ec-hero__media {
		grid-column: span 5;
	}
}

.ec-hero__copy {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	min-width: 0;
}

.ec-hero__copy > * {
	max-width: 100%;
}

.ec-hero__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	padding: 0.375rem 0.875rem;
	border: 1px solid var(--linea);
	border-radius: 9999px;
	background-color: var(--nieve);
	box-shadow: var(--ec-shadow-suave);
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-hero__tag p {
	color: var(--pizarra);
	font-weight: 500;
	line-height: 1.375;
}

.ec-hero__dot {
	display: inline-block;
	flex: none;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
	background-color: var(--arcilla);
	animation: ec-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes ec-pulse {
	50% {
		opacity: 0.5;
	}
}

.ec-sec .ec-hero__title {
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

@media (min-width: 640px) {
	.ec-sec .ec-hero__title {
		font-size: 3rem;
	}
}

@media (min-width: 1024px) {
	.ec-sec .ec-hero__title {
		font-size: 3.75rem;
	}
}

.ec-sec .ec-hero__sub {
	max-width: 42rem;
	margin-top: 1.5rem;
	color: var(--pizarra);
	font-size: 1rem;
	line-height: 1.625;
}

@media (min-width: 640px) {
	.ec-sec .ec-hero__sub {
		font-size: 1.25rem;
	}
}

.ec-sec .ec-hero__actions {
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	margin-top: 2rem;
}

@media (min-width: 640px) {
	.ec-sec .ec-hero__actions {
		flex-direction: row;
		align-items: flex-start;
		width: auto;
	}
}

.ec-hero__cta .wp-block-button__link {
	font-size: 0.875rem;
	line-height: 1.25rem;
}

@media (min-width: 640px) {
	.ec-hero__cta .wp-block-button__link {
		font-size: 1rem;
		line-height: 1.5rem;
	}
}

.ec-hero__points {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--linea);
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-hero__point {
	display: flex;
	flex: 0 1 auto;
	min-width: 0;
	align-items: flex-start;
	gap: 0.375rem;
}

.ec-hero__check {
	flex: none;
	width: 1rem;
	height: 1rem;
	margin-top: 0.125rem;
	color: var(--salvia);
}

/* Con 4 puntos de confianza la línea pasa a 2 renglones; el separador quedaría suelto al final del primero, así que no se muestra
   (los puntos se separan por el espacio entre ellos). */
.ec-hero__sep {
	display: none;
	color: var(--linea);
}

.ec-hero__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 1rem 0;
}

.ec-sec figure.ec-hero__photo {
	display: flex;
	justify-content: center;
	width: 100%;
}

.ec-hero__photo img {
	display: block;
	width: 100%;
	max-width: 340px;
	height: auto;
	max-height: min(620px, 80vh);
	aspect-ratio: 3 / 4;
	border-radius: 24px;
	box-shadow: 0 2px 4px rgba(22, 24, 28, 0.06), 0 18px 32px -10px rgba(22, 24, 28, 0.25), 0 48px 72px -24px rgba(22, 24, 28, 0.35);
	object-fit: cover;
	-webkit-user-select: none;
	user-select: none;
}

@media (min-width: 640px) {
	.ec-hero__photo img {
		max-width: 400px;
	}
}

@media (min-width: 1024px) {
	.ec-hero__photo img {
		max-width: 420px;
	}
}

/* ---------- Cifras ---------- */
.ec-stat__value {
	color: var(--arcilla);
	font-family: var(--ec-font-syne);
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 2.5rem;
	letter-spacing: -0.025em;
}

@media (min-width: 640px) {
	.ec-stat__value {
		font-size: 3rem;
		line-height: 1;
	}
}

.ec-sec .ec-stat__title {
	margin-top: 0.5rem;
	color: var(--grafito);
	font-family: var(--ec-font-syne);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.75rem;
}

.ec-sec .ec-stat__text {
	margin-top: 0.25rem;
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

/* ---------- Diagnóstico ---------- */
.ec-diag {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.ec-sec .ec-diag .ec-card__title {
	margin-bottom: 0;
	line-height: 1.375;
}

.ec-sec .ec-diag .ec-card__text {
	margin-top: 0.75rem;
	line-height: 1.625;
}

.ec-diag:hover .ec-card__title,
.ec-niche:hover .ec-card__title {
	color: var(--fiordo);
}

.ec-banner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 3rem;
}

.ec-banner--steps {
	margin-top: 3.5rem;
}

@media (min-width: 768px) {
	.ec-banner {
		flex-direction: row;
		align-items: center;
	}
}

.ec-banner__info {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

@media (min-width: 640px) {
	.ec-banner__info {
		align-items: center;
	}
}

.ec-sec .ec-banner__title {
	color: var(--grafito);
	font-family: var(--ec-font-syne);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.75rem;
}

.ec-sec h4.ec-banner__title {
	font-size: 1.25rem;
}

.ec-sec .ec-banner__sub {
	margin-top: 0.125rem;
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-banner--steps .ec-banner__sub {
	margin-top: 0.25rem;
}

.ec-sec .ec-banner__actions {
	width: 100%;
	margin: 0;
}

@media (min-width: 768px) {
	.ec-sec .ec-banner__actions {
		flex: none;
		width: auto;
	}
}

.ec-banner__actions .wp-block-button {
	width: 100%;
}

@media (min-width: 768px) {
	.ec-banner__actions .wp-block-button {
		width: auto;
	}
}

.ec-banner__cta--sm .wp-block-button__link {
	font-size: 0.875rem;
	line-height: 1.25rem;
}

/* ---------- Servicios ---------- */
.ec-bento-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.ec-bento-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.ec-bento--a {
		grid-column: span 7;
	}

	.ec-bento--b {
		grid-column: span 5;
	}

	/* Entre 768 y 1023 px las tres tarjetas chicas no caben en tres columnas: dos y la tercera a todo el ancho (AUD-WP-006) */
	.ec-bento--c,
	.ec-bento--d {
		grid-column: span 6;
	}

	.ec-bento--e {
		grid-column: span 12;
	}
}

@media (min-width: 1024px) {
	.ec-bento--c,
	.ec-bento--d,
	.ec-bento--e {
		grid-column: span 4;
	}
}

.ec-bento {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.ec-bento__top--wide {
	max-width: 32rem;
}

.ec-sec .ec-bento__title {
	margin-bottom: 0.5rem;
	color: var(--grafito);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.75rem;
}

.ec-sec .ec-bento__text {
	margin-bottom: 1.5rem;
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-sec .ec-bento__title.ec-bento__title--lg {
	font-size: 1.25rem;
}

@media (min-width: 640px) {
	.ec-sec .ec-bento__title {
		font-size: 1.25rem;
	}

	.ec-sec .ec-bento__title.ec-bento__title--lg {
		font-size: 1.5rem;
		line-height: 2rem;
	}

	.ec-sec .ec-bento__text.ec-bento__text--lg {
		font-size: 1rem;
		line-height: 1.5rem;
	}
}

.ec-sec ul.ec-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.ec-chips li {
	padding: 0.25rem 0.875rem;
	border: 1px solid var(--linea);
	border-radius: 9999px;
	background-color: var(--arena);
	color: var(--grafito);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1rem;
}

.ec-box {
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: var(--arena);
}

.ec-sec ul.ec-box--list {
	padding: 1rem;
	color: var(--grafito);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-box--list li + li {
	margin-top: 0.625rem;
}

.ec-box--list strong {
	color: var(--fiordo);
	font-weight: 700;
}

.ec-box--rows {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.875rem;
}

.ec-box__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-box__row strong {
	color: var(--fiordo);
	font-weight: 700;
}

.ec-box--google {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.875rem;
}

.ec-box__google-info {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.ec-box__google-text {
	min-width: 0;
}

.ec-box__google-title {
	color: var(--grafito);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1rem;
}

.ec-box__google-sub {
	color: var(--pizarra);
	font-size: 11px;
}

.ec-box--price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.875rem;
}

.ec-box__kicker {
	display: block;
	color: var(--pizarra);
	font-size: 11px;
}

.ec-box__price {
	display: block;
	color: var(--grafito);
	font-family: var(--ec-font-syne);
	font-size: 1rem;
	font-weight: 800;
}

.ec-mock {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: var(--arena);
}

.ec-mock__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--linea);
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-mock__dots {
	display: flex;
	gap: 0.375rem;
}

.ec-mock__dots span {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 9999px;
}

.ec-mock--phone .ec-mock__dots span:nth-child(1) {
	background-color: rgba(239, 68, 68, 0.8);
}

.ec-mock--phone .ec-mock__dots span:nth-child(2) {
	background-color: rgba(245, 158, 11, 0.8);
}

.ec-mock--phone .ec-mock__dots span:nth-child(3) {
	background-color: rgba(16, 185, 129, 0.8);
}

.ec-mock__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 1rem 0;
}

.ec-mock__col {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 4rem;
	padding: 0.5rem;
	border: 1px solid var(--linea);
	border-radius: 10px;
	background-color: var(--nieve);
}

.ec-mock__col--on {
	border-color: rgba(22, 24, 28, 0.4);
	background-color: var(--salvia-100);
}

.ec-mock__line {
	display: block;
	height: 0.5rem;
	border-radius: 9999px;
}

.ec-mock__line--a {
	width: 2rem;
	background-color: rgba(22, 24, 28, 0.3);
}

.ec-mock__line--b {
	width: 2.5rem;
	background-color: var(--fiordo);
}

.ec-mock__line--c {
	width: 1.75rem;
	background-color: var(--arena);
}

.ec-mock__bar2 {
	display: block;
	width: 100%;
	height: 0.375rem;
	border-radius: 9999px;
	background-color: var(--arena);
}

.ec-mock__bar2 + .ec-mock__bar2 {
	margin-top: 0.25rem;
}

.ec-mock__bar2--w2 {
	width: 66.6667%;
}

.ec-mock__bar2--w3 {
	width: 75%;
}

.ec-mock__bar2--half {
	width: 50%;
}

.ec-mock__bar2--on {
	background-color: rgba(22, 24, 28, 0.2);
}

.ec-mock__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

/* ---------- Precios ---------- */
.ec-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--linea);
	border-radius: 9999px;
	background-color: var(--nieve);
	box-shadow: var(--ec-shadow-suave);
	color: var(--grafito);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-pill p {
	font-weight: 500;
}

.ec-pill__icon {
	flex: none;
	width: 1rem;
	height: 1rem;
	color: var(--fiordo);
}

/* ---------- Cómo trabajo ---------- */
.ec-step {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.ec-step__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.ec-sec .ec-step__number {
	color: var(--fiordo);
	font-family: var(--ec-font-syne);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 2rem;
}

/* ---------- Quién soy ---------- */
.ec-sec .ec-about__title {
	margin-bottom: 1.5rem;
}

.ec-sec .ec-about__body > * + * {
	margin-top: 1rem;
}

.ec-sec .ec-about__text {
	color: var(--pizarra);
	font-size: 1rem;
	line-height: 1.625;
}

@media (min-width: 640px) {
	.ec-sec .ec-about__text {
		font-size: 1.125rem;
	}
}

/* Con foto (CRO-5): en el celular la foto va arriba y el texto debajo; desde 900 px, foto a la izquierda y texto a la derecha */
.ec-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	align-items: center;
}

.ec-about__media {
	display: flex;
	justify-content: center;
	min-width: 0;
}

.ec-about__copy {
	min-width: 0;
}

.ec-sec figure.ec-about__photo {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0;
}

.ec-about__photo img {
	display: block;
	width: 100%;
	max-width: 340px;
	height: auto;
	border-radius: 24px;
	box-shadow: 0 2px 4px rgba(22, 24, 28, 0.06), 0 18px 32px -10px rgba(22, 24, 28, 0.25), 0 48px 72px -24px rgba(22, 24, 28, 0.35);
	-webkit-user-select: none;
	user-select: none;
}

@media (min-width: 640px) {
	.ec-about__photo img {
		max-width: 400px;
	}
}

@media (min-width: 900px) {
	.ec-about__grid {
		grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
		gap: 3rem 4rem;
	}

	.ec-about__photo img {
		max-width: 380px;
	}
}

/* ---------- Para quién trabajo y ejemplos ---------- */
.ec-niche__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.ec-demo {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.ec-sec .ec-demo__title {
	margin-bottom: 1rem;
	color: var(--grafito);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 2rem;
}

.ec-demo__frame {
	position: relative;
	width: 100%;
	margin-bottom: 1.5rem;
	padding: 1rem;
	overflow: hidden;
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: var(--arena);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ec-demo__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--linea);
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-demo__bar .ec-mock__dots span:nth-child(1) {
	background-color: #f87171;
}

.ec-demo__bar .ec-mock__dots span:nth-child(2) {
	background-color: #fbbf24;
}

.ec-demo__bar .ec-mock__dots span:nth-child(3) {
	background-color: #34d399;
}

.ec-demo__url {
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ec-demo__bar-end {
	width: 1rem;
}

.ec-demo__page {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem;
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: var(--nieve);
}

.ec-demo__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	color: var(--grafito);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1rem;
}

.ec-demo__zone {
	color: var(--fiordo);
	font-size: 10px;
}

.ec-demo__kicker {
	display: block;
	color: var(--fiordo);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ec-sec .ec-demo__headline {
	margin: 0.25rem 0 0;
	color: var(--grafito);
	font-family: var(--ec-font-syne);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.375;
}

.ec-demo__ctas {
	display: flex;
	gap: 0.5rem;
	padding-top: 0.25rem;
}

.ec-demo__cta {
	padding: 0.375rem 0.875rem;
	border-radius: 9999px;
	background-color: var(--fiordo);
	color: var(--bruma);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1rem;
}

.ec-demo__cta--sec {
	border: 1px solid var(--linea);
	background-color: var(--arena);
	color: var(--pizarra);
	font-weight: 400;
}

.ec-demo__props {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.ec-demo__prop {
	padding: 0.625rem;
	border: 1px solid var(--linea);
	border-radius: 10px;
	background-color: var(--arena);
}

.ec-demo__prop-name {
	color: var(--grafito);
	font-size: 11px;
	font-weight: 700;
}

.ec-demo__prop-price {
	color: var(--fiordo);
	font-size: 10px;
	font-weight: 600;
}

.ec-demo__filter {
	padding: 0.25rem 0.5rem;
	border: 1px solid var(--linea);
	border-radius: 8px;
	background-color: var(--arena);
	color: var(--pizarra);
	font-size: 10px;
}

.ec-sec ul.ec-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-pills li {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--linea);
	border-radius: 9999px;
	background-color: var(--arena);
}

.ec-pills svg {
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
	color: var(--fiordo);
}

.ec-sec .ec-demo__actions {
	display: block;
}

.ec-demo__actions .wp-block-button {
	width: 100%;
}

/* ---------- Preguntas frecuentes (bloque de Rank Math) ---------- */
.ec-faq {
	max-width: 56rem;
}

.ec-faq .rank-math-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	counter-reset: ec-faq;
}

.ec-faq .rank-math-list-item {
	counter-increment: ec-faq;
	overflow: hidden;
	border: 1px solid var(--linea);
	border-radius: 24px;
	background-color: var(--nieve);
	box-shadow: var(--ec-shadow-suave);
}

.ec-faq .rank-math-question {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 1.25rem;
	color: var(--grafito);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5rem;
}

.ec-faq .rank-math-question::before {
	content: counter(ec-faq, decimal-leading-zero) '.';
	flex: none;
	color: var(--fiordo);
	font-family: var(--ec-font-inter);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25rem;
}

@media (min-width: 640px) {
	.ec-faq .rank-math-question {
		padding: 1.5rem;
		font-size: 1.125rem;
		line-height: 1.75rem;
	}
}

.ec-faq .rank-math-answer {
	padding: 1.5rem 1.25rem;
	border-top: 1px solid var(--linea);
}

@media (min-width: 640px) {
	.ec-faq .rank-math-answer {
		padding-right: 1.5rem;
		padding-left: 1.5rem;
	}
}

.ec-faq .rank-math-answer p {
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: rgba(243, 239, 231, 0.6);
	color: var(--grafito);
	font-size: 0.875rem;
	line-height: 1.625;
	text-align: left;
}

@media (min-width: 640px) {
	.ec-faq .rank-math-answer p {
		font-size: 1rem;
	}
}

/* Con JavaScript (faq.js) cada pregunta es un botón que abre y cierra su respuesta; sin JavaScript, todo queda abierto */
.ec-faq.is-enhanced .rank-math-question {
	padding: 0;
}

.ec-faq.is-enhanced .rank-math-question button {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 1.25rem;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-align: left;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

@media (min-width: 640px) {
	.ec-faq.is-enhanced .rank-math-question button {
		padding: 1.5rem;
	}
}

.ec-faq .ec-faq__num {
	flex: none;
	color: var(--fiordo);
	font-family: var(--ec-font-inter);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25rem;
}

.ec-faq.is-enhanced .rank-math-question::before {
	content: none;
}

.ec-faq.is-enhanced .rank-math-question button::after {
	content: '';
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-left: auto;
	background-color: var(--fiordo);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.3s ease;
}

.ec-faq.is-enhanced .rank-math-question button[aria-expanded='true']::after {
	transform: rotate(180deg);
}

.ec-faq.is-enhanced .rank-math-question button:hover {
	color: var(--fiordo);
}

.ec-faq.is-enhanced .rank-math-question button:focus-visible {
	outline: 2px solid var(--arcilla-700);
	outline-offset: -2px;
}

.ec-faq.is-enhanced .rank-math-answer[hidden] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.ec-faq.is-enhanced .rank-math-question button::after {
		transition: none;
	}
}

/* ---------- Páginas de lectura: Políticas, Pedir cambios y 404 ---------- */
.ec-page {
	padding: 8rem 1.25rem 5rem;
	background-color: var(--bruma);
}

@media (min-width: 640px) {
	.ec-page {
		padding-right: 2rem;
		padding-left: 2rem;
	}
}

/* max-w-3xl de la versión React incluye el relleno lateral: 728 px de texto en celular y 704 desde 640 px */
.ec-page__inner {
	max-width: 45.5rem;
	margin-right: auto;
	margin-left: auto;
}

@media (min-width: 640px) {
	.ec-page__inner {
		max-width: 44rem;
	}
}

.ec-sec p.ec-back {
	margin-bottom: 2rem;
}

.ec-back a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--pizarra);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ec-back a::before {
	content: '';
	flex: none;
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask: var(--ec-i-mask) center / contain no-repeat;
	mask: var(--ec-i-mask) center / contain no-repeat;
	transition: transform 0.15s ease;
}

.ec-back a:hover,
.ec-back a:focus-visible {
	color: var(--fiordo);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.ec-back a:hover::before {
	transform: translateX(-4px);
}

.ec-sec .ec-page__title {
	margin-bottom: 1.5rem;
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 2.25rem;
	letter-spacing: -0.025em;
}

@media (min-width: 640px) {
	.ec-sec .ec-page__title {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}
}

.ec-sec .ec-page__title.ec-page__title--mb4 {
	margin-bottom: 1rem;
}

.ec-sec .ec-page__title.ec-page__title--mb8 {
	margin-bottom: 2rem;
}

.ec-sec .ec-page__lead {
	margin-bottom: 2rem;
	color: var(--pizarra);
	font-size: 1rem;
	line-height: 1.5rem;
}

@media (min-width: 640px) {
	.ec-sec .ec-page__lead {
		font-size: 1.125rem;
		line-height: 1.75rem;
	}
}

.ec-sec .ec-page__actions {
	margin: 0;
}

/* Políticas: tarjeta blanca de los 8 apartados (los mismos valores de la versión React) */
.ec-policy {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	padding: 2rem;
	border: 1px solid var(--linea);
	border-radius: 16px;
	background-color: #fff;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
	.ec-policy {
		padding: 3rem;
	}
}

.ec-policy__section {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(217, 211, 198, 0.6);
}

.ec-policy__section:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ec-sec .ec-policy h2 {
	color: var(--fiordo);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 2rem;
	letter-spacing: -0.025em;
}

.ec-sec .ec-policy p {
	color: rgba(22, 24, 28, 0.85);
	font-size: 1rem;
	line-height: 1.625;
}

.ec-policy a {
	color: var(--fiordo);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.ec-policy a:hover {
	color: var(--fiordo-900);
}

/* CRO-1, R6: "Volver al inicio" de 44 px o más por debajo de 640 px */
@media (max-width: 639px) {
	.ec-back a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}
