/*
 * Estilos de los bloques de ecristia-core. Réplica de los componentes React (commit 0dacf88).
 *
 * Los colores salen de los colores globales de GeneratePress (--bruma, --grafito, etc.), que registra el tema hijo.
 * Reglas heredadas de las auditorías:
 *  - AUD-031: el precio baja de tamaño entre 1024 y 1279 px para que entre en las tarjetas de 3 columnas.
 *  - AUD-020: los íconos de los botones no se encogen.
 *  - Ningún texto fuera de su tarjeta: los contenedores usan min-width: 0 y los textos largos se parten.
 */

/* ---------- Base de los bloques ---------- */
.ec-block {
	box-sizing: border-box;
	font-family: var(--ec-font-inter, 'Inter', ui-sans-serif, system-ui, sans-serif);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--grafito);
}

.ec-block *,
.ec-block *::before,
.ec-block *::after {
	box-sizing: border-box;
}

.ec-block :where(p, ul, ol, h2, h3, h4, dl, dd, figure) {
	margin: 0;
	padding: 0;
}

.ec-block :where(ul, ol) {
	list-style: none;
}

.ec-block :where(h2, h3, h4) {
	font-family: var(--ec-font-syne, 'Syne', ui-sans-serif, system-ui, sans-serif);
	color: var(--grafito);
	line-height: 1.25;
}

/* El atributo hidden gana a cualquier display de los componentes */
.ec-block [hidden] {
	display: none !important;
}

.ec-block .ec-icon {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
}

/* Botones: el enlace ocupa todo el ancho de su tarjeta cuando lo pide */
.ec-block .ec-btn--full {
	width: 100%;
	text-align: center;
}

.ec-block .ec-btn .ec-icon {
	width: 1rem;
	height: 1rem;
}

.ec-block .ec-btn .ec-icon--lg {
	width: 1.25rem;
	height: 1.25rem;
}

/* Etiqueta flotante (Recomendado) */
.ec-badge-float {
	position: absolute;
	top: -0.875rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.25rem 1rem;
	border-radius: 9999px;
	background-color: var(--arcilla);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1rem;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: var(--ec-shadow-suave);
}

/* Lista con marcas de verificación */
.ec-check-list {
	margin-bottom: 2rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-check-list > li + li {
	margin-top: 0.75rem;
}

.ec-check-list > li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
}

.ec-check-list > li > span {
	min-width: 0;
	overflow-wrap: break-word;
}

.ec-check-list .ec-icon {
	margin-top: 0.125rem;
	color: var(--salvia);
}

/* Notas */
.ec-note {
	margin-bottom: 1.5rem;
	padding: 0 0.25rem;
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1.625;
}

/* ---------- Tarjetas de webs y planes ---------- */
.ec-pricing-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: 2rem;
	margin-bottom: 3rem;
}

.ec-plans .ec-pricing-grid {
	margin-bottom: 2rem;
}

@media (min-width: 1024px) {
	.ec-pricing-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ec-pricing-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	padding: 1.5rem;
	border: 1px solid var(--linea);
	border-radius: 24px;
	background-color: var(--bruma);
	color: var(--grafito);
	box-shadow: var(--ec-shadow-suave);
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.ec-plans .ec-pricing-card {
	background-color: var(--nieve);
}

@media (min-width: 640px) {
	.ec-pricing-card {
		padding: 2rem;
	}
}

.ec-pricing-card:not(.is-featured):hover {
	border-color: var(--fiordo);
	box-shadow: 0 4px 12px -2px rgba(22, 24, 28, 0.08), 0 12px 24px -6px rgba(22, 24, 28, 0.12);
	transform: translateY(-2px);
}

.ec-pricing-card.is-featured {
	border-color: var(--fiordo);
	background-color: var(--fiordo);
	color: var(--bruma);
}

.ec-plans .ec-pricing-card.is-featured {
	background-color: var(--nieve);
	color: var(--grafito);
}

@media (min-width: 1024px) {
	.ec-pricing-card.is-featured {
		transform: translateY(-0.5rem);
	}
}

.ec-pricing-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.ec-plans .ec-pricing-card__meta {
	margin-bottom: 0.5rem;
}

.ec-pricing-delivery {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.625rem;
	border: 1px solid var(--linea);
	border-radius: 9999px;
	background-color: var(--arena);
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-pricing-card.is-featured .ec-pricing-delivery {
	border-color: rgba(217, 211, 198, 0.2);
	background-color: var(--fiordo-900);
	color: var(--bruma);
}

.ec-pricing-delivery .ec-icon {
	width: 0.875rem;
	height: 0.875rem;
}

.ec-pricing-card__icon {
	display: flex;
	color: var(--pizarra);
}

.ec-pricing-card.is-featured .ec-pricing-card__icon {
	color: var(--fiordo);
}

.ec-block .ec-pricing-card__name {
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 2rem;
	overflow-wrap: break-word;
}

.ec-pricing-card.is-featured:not(.ec-plan) .ec-pricing-card__name {
	color: var(--bruma);
}

.ec-pricing-card__subtitle {
	min-height: 44px;
	margin-bottom: 1.5rem;
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-pricing-card.is-featured:not(.ec-plan) .ec-pricing-card__subtitle {
	color: rgba(243, 239, 231, 0.8);
}

.ec-pricing-card__price {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--linea);
}

.ec-pricing-card.is-featured:not(.ec-plan) .ec-pricing-card__price {
	border-bottom-color: rgba(217, 211, 198, 0.2);
}

.ec-price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
}

/* AUD-031: 30 px entre 1024 y 1279 px; 36 px en el resto (desde 640 px) */
.ec-price {
	display: block;
	font-family: var(--ec-font-syne, 'Syne', ui-sans-serif, system-ui, sans-serif);
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1;
	color: var(--grafito);
}

.ec-price-row .ec-price {
	display: inline;
	line-height: 2.25rem;
}

/* Mismo interlineado que Tailwind en cada tamaño: text-3xl = 36 px, text-4xl = 40 px */
@media (min-width: 640px) {
	.ec-price-row .ec-price {
		line-height: 2.5rem;
	}
}

@media (min-width: 1024px) {
	.ec-price-row .ec-price {
		line-height: 2.25rem;
	}
}

@media (min-width: 1280px) {
	.ec-price-row .ec-price {
		line-height: 2.5rem;
	}
}

/* GeneratePress deja overflow-wrap: break-word en el cuerpo; el número del precio no se parte, como en React */
.ec-block .ec-price {
	overflow-wrap: normal;
	word-break: normal;
}

/*
 * AUD-WP-016: en una columna angosta (menos de 640 px) cada precio queda en una sola línea ("Gs" y el monto no se
 * separan) y el tamaño de los precios grandes sigue el ancho de la tarjeta, para que "Gs 7.500.000" quepa sin salirse de
 * ella (la tarjeta mide el ancho de la pantalla menos 90 px; se restan 17 px más por la barra de desplazamiento).
 * Desde 640 px, ver AUD-WP-020 más abajo.
 */
@media (max-width: 639px) {
	.ec-price,
	.ec-quote__big,
	.ec-quote__accent,
	.ec-quote__medium,
	.ec-offer-savings del,
	.ec-offer-savings strong {
		white-space: nowrap;
	}

	.ec-pricing-card .ec-price {
		font-size: min(1.875rem, calc((100vw - 107px) / 10.9));
	}

	/* AUD-WP-019: el monto no se parte; si "/ mes" no entra a su lado, pasa a la línea siguiente (sin salirse de la tarjeta). */
	.ec-addon-option__price {
		flex-wrap: wrap;
		column-gap: 0.5rem;
		row-gap: 0;
	}
}

/*
 * AUD-WP-020 (CRO-7), desde 640 px: cada precio va en UNA sola línea ("Gs" y el monto nunca se separan) en Precios y en
 * Mantenimiento, y el tamaño sigue el ancho de la tarjeta con unidades de contenedor (no dependen de la barra de
 * desplazamiento): el monto más largo, "Gs 7.500.000", mide 10,7 veces el tamaño de la letra, así que 9,2 cqw le deja
 * margen. Sin pasar del tamaño de cada rango (36 px, y 30 px entre 1024 y 1279 px) y sin bajar de 1,25rem: a 1024 px la tarjeta de Precios
 * deja 217 px de ancho útil y "Gs 7.500.000" solo entra, dentro del relleno, a unos 20 px (con 1,5rem se salía hasta 39 px). Reemplaza a
 * AUD-WP-017 y a la regla heredada de la versión React en que el "Gs" bajaba a su propia línea.
 */
@media (min-width: 640px) {
	.ec-pricing-card__price {
		container-type: inline-size;
	}

	.ec-price {
		white-space: nowrap;
		font-size: 2.25rem;
	}

	.ec-pricing-card .ec-price {
		font-size: clamp(1.25rem, 9.2cqw, 2.25rem);
	}
}

@media (min-width: 1024px) and (max-width: 1279px) {
	.ec-pricing-card .ec-price {
		font-size: clamp(1.25rem, 9.2cqw, 1.875rem);
	}
}

.ec-pricing-card.is-featured:not(.ec-plan) .ec-price {
	color: var(--bruma);
}

.ec-price-note {
	display: block;
	margin-top: 0.375rem;
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-pricing-card.is-featured:not(.ec-plan) .ec-price-note {
	color: rgba(243, 239, 231, 0.7);
}

.ec-per-month {
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-pricing-card.is-featured:not(.ec-plan) .ec-check-list {
	color: var(--bruma);
}

/* Cómo se paga */
.ec-pay-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	width: 100%;
	padding: 1.5rem;
	border: 1px solid var(--linea);
	border-radius: 24px;
	background-color: var(--nieve);
	box-shadow: var(--ec-shadow-suave);
}

@media (min-width: 640px) {
	.ec-pay-box {
		padding: 2rem;
	}
}

@media (min-width: 768px) {
	.ec-pay-box {
		flex-direction: row;
		align-items: center;
	}
}

.ec-pay-box__main {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	min-width: 0;
}

@media (min-width: 640px) {
	.ec-pay-box__main {
		align-items: center;
	}
}

.ec-pay-box__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	background-color: var(--salvia-100);
	color: var(--salvia);
}

.ec-pay-box__icon .ec-icon {
	width: 1.5rem;
	height: 1.5rem;
}

.ec-pay-box__kicker {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--fiordo);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1rem;
	text-transform: uppercase;
}

.ec-pay-box__text {
	color: var(--grafito);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

@media (min-width: 640px) {
	.ec-pay-box__text {
		font-size: 1rem;
		line-height: 1.5rem;
	}
}

.ec-pay-box__text strong {
	color: var(--fiordo);
	font-weight: 700;
}

.ec-pay-box__chip {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--linea);
	border-radius: 9999px;
	background-color: var(--arena);
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-pay-box__chip::before {
	content: '';
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
	background-color: var(--salvia);
}

/* ---------- Planes: franja de condiciones ---------- */
.ec-terms {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	padding: 1rem;
	border: 1px solid var(--linea);
	border-radius: 24px;
	background-color: var(--nieve);
	box-shadow: var(--ec-shadow-suave);
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
	text-align: center;
}

@media (min-width: 640px) {
	.ec-terms {
		padding: 1.25rem;
		font-size: 0.875rem;
		line-height: 1.25rem;
	}
}

.ec-terms__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.ec-terms__item::before {
	content: '';
	flex-shrink: 0;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
	background-color: var(--fiordo);
}

.ec-terms__item--highlight {
	color: var(--fiordo);
	font-weight: 700;
}

.ec-terms__item--highlight::before {
	display: none;
}

.ec-terms__item--highlight .ec-icon {
	width: 0.875rem;
	height: 0.875rem;
}

/* ---------- Complementos ---------- */
.ec-addons-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 48rem;
	margin: 0 auto 4rem;
	text-align: center;
}

.ec-addons-header .ec-tag {
	margin-bottom: 0.75rem;
}

.ec-block .ec-addons-header h2 {
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

@media (min-width: 640px) {
	.ec-block .ec-addons-header h2 {
		font-size: 2.25rem;
		line-height: 1.1111;
	}
}

@media (min-width: 1024px) {
	.ec-block .ec-addons-header h2 {
		font-size: 3rem;
		line-height: 1;
	}
}

.ec-addons-header p {
	margin-top: 0.75rem;
	color: var(--pizarra);
	font-size: 1rem;
	line-height: 1.5rem;
}

@media (min-width: 640px) {
	.ec-addons-header p {
		font-size: 1.125rem;
		line-height: 1.75rem;
	}
}

.ec-addons-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.ec-addons-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ec-addon-card {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.5rem;
	border: 1px solid var(--linea);
	border-radius: 24px;
	background-color: var(--nieve);
	box-shadow: var(--ec-shadow-suave);
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
	.ec-addon-card {
		padding: 2rem;
	}
}

.ec-addon-card:hover {
	border-color: var(--fiordo);
	box-shadow: 0 4px 12px -2px rgba(22, 24, 28, 0.08), 0 12px 24px -6px rgba(22, 24, 28, 0.12);
	transform: translateY(-2px);
}

.ec-block .ec-addon-card h3 {
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 2rem;
}

.ec-addon-card__desc {
	margin-bottom: 1.5rem;
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-addon-options {
	margin-top: auto;
}

.ec-addon-option {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem 0;
	border-top: 1px solid var(--linea);
}

@media (min-width: 640px) {
	.ec-addon-option {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.ec-addon-option__info {
	min-width: 0;
}

/*
 * AUD-WP-020 (CRO-7): cuando la tarjeta es angosta (las 2 columnas entre 1024 y unos 1200 px) el monto en una sola línea no
 * entra al lado del botón, así que la opción pasa a columna (botón debajo, como en el celular) en lugar de apretar el monto.
 */
@container (max-width: 400px) {
	.ec-addon-option {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
	}

	.ec-addon-option .ec-btn {
		width: 100%;
	}
}

.ec-addon-option__label {
	color: var(--grafito);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-addon-option__price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.ec-addon-option__price .ec-price {
	display: inline;
	font-size: 1.5rem;
	line-height: 2rem;
}

.ec-addon-option .ec-btn {
	flex-shrink: 0;
	width: 100%;
}

@media (min-width: 640px) {
	.ec-addon-option .ec-btn {
		width: auto;
	}
}

/* ---------- Cotizador ---------- */
.ec-quote-header {
	max-width: 48rem;
	margin-bottom: 3.5rem;
}

.ec-quote-header .ec-tag {
	margin-bottom: 0.75rem;
}

.ec-quote-header .ec-tag .ec-icon {
	width: 0.875rem;
	height: 0.875rem;
}

.ec-block .ec-quote-header h2 {
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

@media (min-width: 640px) {
	.ec-block .ec-quote-header h2 {
		font-size: 2.25rem;
	}
}

@media (min-width: 1024px) {
	.ec-block .ec-quote-header h2 {
		font-size: 3rem;
		line-height: 1;
	}
}

.ec-quote-header h2 span {
	color: var(--fiordo);
}

.ec-quote-header p {
	margin-top: 0.75rem;
	color: var(--pizarra);
	font-size: 1rem;
	line-height: 1.5rem;
}

@media (min-width: 640px) {
	.ec-quote-header p {
		font-size: 1.125rem;
		line-height: 1.75rem;
	}
}

.ec-quote {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.ec-quote {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.ec-quote__selectors {
		grid-column: span 7 / span 7;
	}

	.ec-quote__summary {
		grid-column: span 5 / span 5;
	}
}

.ec-quote__selectors {
	min-width: 0;
}

.ec-quote__selectors > * + * {
	margin-top: 1.5rem;
}

.ec-quote__panel {
	padding: 1.5rem;
	border: 1px solid var(--linea);
	border-radius: 24px;
	background-color: var(--nieve);
	box-shadow: var(--ec-shadow-suave);
}

@media (min-width: 640px) {
	.ec-quote__panel {
		padding: 1.75rem;
	}
}

.ec-quote__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.ec-quote__panel-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--ec-font-syne, 'Syne', ui-sans-serif, system-ui, sans-serif);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.25rem;
	text-transform: uppercase;
	color: var(--grafito);
}

.ec-quote__panel-title::before {
	content: '';
	flex-shrink: 0;
	width: 0.375rem;
	height: 1rem;
	border-radius: 9999px;
	background-color: var(--fiordo);
}

.ec-quote__panel-aside {
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-quote__options {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.ec-quote__options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ec-quote__option {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	padding: 1rem;
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: var(--nieve);
	color: var(--grafito);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: all 0.15s;
}

.ec-quote__option:hover {
	background-color: rgba(243, 239, 231, 0.6);
	color: var(--grafito);
}

.ec-quote__option:focus-visible {
	outline: 2px solid var(--arcilla-700);
	outline-offset: 2px;
}

.ec-quote__option.is-selected {
	border-color: var(--fiordo);
	background-color: var(--arena);
	box-shadow: var(--ec-shadow-suave);
}

.ec-quote__option-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
}

.ec-quote__option-name {
	min-width: 0;
	font-family: var(--ec-font-syne, 'Syne', ui-sans-serif, system-ui, sans-serif);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25rem;
	color: var(--grafito);
}

@media (min-width: 640px) {
	.ec-quote__option-name {
		font-size: 1rem;
		line-height: 1.5rem;
	}
}

.ec-quote__dot {
	flex-shrink: 0;
	width: 0.625rem;
	height: 0.625rem;
	margin-top: 0.375rem;
	border-radius: 9999px;
	background-color: var(--linea);
}

.is-selected > .ec-quote__option-top > .ec-quote__dot {
	background-color: var(--fiordo);
}

.ec-quote__option-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 0.5rem;
	width: 100%;
	margin-top: 0.75rem;
}

.ec-quote__option-price {
	color: var(--fiordo);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1rem;
}

.ec-quote__option-desc {
	color: var(--pizarra);
	font-size: 0.6875rem;
	line-height: 1rem;
}

.ec-quote__badge {
	padding: 0.125rem 0.5rem;
	border-radius: 9999px;
	background-color: var(--salvia-100);
	color: var(--fiordo);
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1rem;
}

.ec-quote__vat {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0 0.25rem;
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-quote__vat .ec-icon {
	width: 1rem;
	height: 1rem;
	color: var(--fiordo);
}

.ec-quote__summary {
	position: relative;
	min-width: 0;
	overflow: hidden;
	padding: 1.5rem;
	border: 1px solid var(--linea);
	border-radius: 24px;
	background-color: var(--nieve);
	box-shadow: var(--ec-shadow-suave);
}

@media (min-width: 640px) {
	.ec-quote__summary {
		padding: 2rem;
	}
}

@media (min-width: 1024px) {
	.ec-quote__summary {
		position: sticky;
		top: 2rem;
	}
}

.ec-quote__summary-title {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--linea);
	color: var(--pizarra);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1rem;
	text-transform: uppercase;
}

.ec-quote__body > * + * {
	margin-top: 1.5rem;
}

.ec-quote__label {
	display: block;
	color: var(--pizarra);
	font-size: 0.75rem;
	letter-spacing: 0.025em;
	line-height: 1rem;
	text-transform: uppercase;
}

.ec-quote__big {
	margin-top: 0.25rem;
	font-family: var(--ec-font-syne, 'Syne', ui-sans-serif, system-ui, sans-serif);
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 2.25rem;
	color: var(--grafito);
	overflow-wrap: anywhere;
}

@media (min-width: 640px) {
	.ec-quote__big {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}
}

/* AUD-WP-016: el total no se parte ni se sale de la tarjeta en pantallas angostas (ver .ec-price). */
@media (max-width: 639px) {
	.ec-quote__big {
		font-size: min(1.875rem, calc((100vw - 107px) / 10.9));
		overflow-wrap: normal;
	}
}

.ec-quote__project-name {
	display: block;
	margin-top: 0.25rem;
	color: var(--fiordo);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-quote__split {
	margin-top: 0.75rem;
	color: var(--grafito);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-quote__split > div {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0 0.75rem;
}

.ec-quote__split > div + div {
	margin-top: 0.375rem;
}

.ec-quote__split dt {
	color: var(--pizarra);
	font-weight: 400;
}

.ec-quote__split dd {
	font-weight: 600;
}

.ec-quote__rule {
	width: 100%;
	height: 1px;
	margin: 1.5rem 0 0;
	border: 0;
	background-color: var(--linea);
}

.ec-quote__sublabel {
	display: block;
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-quote__line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.5rem;
}

.ec-quote__block {
	margin-top: 0.5rem;
}

.ec-quote__block + .ec-quote__block {
	margin-top: 0.75rem;
}

.ec-quote__accent {
	font-family: var(--ec-font-syne, 'Syne', ui-sans-serif, system-ui, sans-serif);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 2rem;
	color: var(--fiordo);
	overflow-wrap: anywhere;
}

@media (min-width: 640px) {
	.ec-quote__accent {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}
}

.ec-quote__medium {
	font-family: var(--ec-font-syne, 'Syne', ui-sans-serif, system-ui, sans-serif);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.75rem;
	color: var(--grafito);
}

.ec-quote__unit {
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

/* Línea de la oferta en el resumen (CRO-10): aparece y desaparece con una transición suave de altura y transparencia. */
.ec-quote__offer {
	display: grid;
	grid-template-rows: 0fr;
	margin-top: 0;
	opacity: 0;
	visibility: hidden;
	transition: grid-template-rows 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
}

.ec-quote__offer.is-open {
	grid-template-rows: 1fr;
	margin-top: 1.25rem;
	opacity: 1;
	visibility: visible;
	transition: grid-template-rows 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease, visibility 0s;
}

.ec-quote__offer-inner {
	min-height: 0;
	overflow: hidden;
}

.ec-quote__offer p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.25rem;
	text-align: center;
}

.ec-quote__offer a {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.ec-quote__offer,
	.ec-quote__offer.is-open {
		transition: none;
	}
}


.ec-quote__note {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	padding: 1rem;
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: var(--arena);
	color: var(--grafito);
	font-size: 0.75rem;
	line-height: 1.625;
}

@media (min-width: 640px) {
	.ec-quote__note {
		font-size: 0.875rem;
	}
}

.ec-quote__note .ec-icon {
	margin-top: 0.125rem;
	color: var(--salvia);
}

.ec-quote__cta-wrap {
	margin-top: 1.5rem;
}

/* Enlace de la nota de la oferta (TD-31): subrayado; el color no cambia. */
.ec-quote__launch-note a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Nota en letra chica bajo la lista de una tarjeta de precios (TD-31) */
.ec-pricing-card__footnote {
	margin: -1rem 0 1.5rem;
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-pricing-card__footnote a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ec-quote__cta.ec-btn {
	width: 100%;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

/* ---------- Oferta de lanzamiento ---------- */
.ec-offer-card {
	position: relative;
	overflow: hidden;
	padding: 1.5rem;
	border: 2px solid var(--arcilla);
	border-radius: 24px;
	background-color: var(--nieve);
	box-shadow: var(--ec-shadow-suave);
}

@media (min-width: 640px) {
	.ec-offer-card {
		padding: 3rem;
	}
}

@media (min-width: 1024px) {
	.ec-offer-card {
		padding: 3.5rem;
	}
}

.ec-offer-card__inner {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.ec-offer-card__inner {
		flex-direction: row;
		align-items: center;
	}
}

.ec-offer-card__main {
	width: 100%;
	min-width: 0;
	max-width: 42rem;
}

.ec-offer-card__label {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-bottom: 1rem;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--linea);
	border-radius: 9999px;
	background-color: var(--salvia-100);
	color: var(--fiordo);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1rem;
	text-transform: uppercase;
}

.ec-offer-card__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 1rem;
	margin: 0.5rem 0;
}

.ec-offer-card__highlight {
	font-family: var(--ec-font-syne, 'Syne', ui-sans-serif, system-ui, sans-serif);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 2rem;
	color: var(--arcilla);
}

@media (min-width: 380px) {
	.ec-offer-card__highlight {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}
}

@media (min-width: 640px) {
	.ec-offer-card__highlight {
		font-size: 3.75rem;
		line-height: 1;
	}
}

.ec-block .ec-offer-card__title h3 {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.75rem;
}

@media (min-width: 380px) {
	.ec-block .ec-offer-card__title h3 {
		font-size: 1.5rem;
		line-height: 2rem;
	}
}

@media (min-width: 640px) {
	.ec-block .ec-offer-card__title h3 {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}
}

.ec-offer-card__text {
	margin-top: 1rem;
	color: var(--pizarra);
	font-size: 1rem;
	line-height: 1.625;
}

@media (min-width: 640px) {
	.ec-offer-card__text {
		font-size: 1.125rem;
	}
}

.ec-offer-savings {
	margin-top: 1.5rem;
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: var(--arena);
}

.ec-offer-savings > li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding: 0.75rem 1rem;
}

.ec-offer-savings > li + li {
	border-top: 1px solid var(--linea);
}

.ec-offer-savings__name {
	color: var(--grafito);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
}

.ec-offer-savings__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.5rem;
	max-width: 100%;
	min-width: 0;
}

.ec-offer-savings del,
.ec-offer-savings strong {
	white-space: nowrap;
}

.ec-offer-savings del {
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-offer-savings strong {
	font-family: var(--ec-font-syne, 'Syne', ui-sans-serif, system-ui, sans-serif);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.5rem;
	color: var(--fiordo);
}

@media (min-width: 640px) {
	.ec-offer-savings strong {
		font-size: 1.125rem;
		line-height: 1.75rem;
	}
}

.ec-offer-card__excluded {
	margin-top: 0.75rem;
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-offer-card__counter {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: fit-content;
	max-width: 100%;
	margin-top: 1.5rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: var(--arena);
}

.ec-offer-card__dots {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ec-offer-card__dots span {
	width: 0.875rem;
	height: 0.875rem;
	border-radius: 9999px;
	background-color: var(--linea);
}

.ec-offer-card__dots span.is-on {
	background-color: var(--arcilla);
}

.ec-offer-card__counter strong {
	color: var(--arcilla-700);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25rem;
}

.ec-offer-card__cta {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	gap: 0.75rem;
	width: 100%;
}

@media (min-width: 640px) {
	.ec-offer-card__cta {
		width: auto;
	}
}

.ec-offer-card__cta .ec-btn {
	padding: 0.625rem 1.5rem;
}

.ec-offer-card__reply {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
	text-align: center;
}

.ec-offer-card__reply .ec-icon {
	width: 0.875rem;
	height: 0.875rem;
	color: var(--arcilla-700);
}

/* ---------- Formularios ---------- */
.ec-form-card {
	max-width: 48rem;
	margin: 0 auto;
	padding: 1.5rem;
	border: 1px solid var(--linea);
	border-radius: 24px;
	background-color: var(--nieve);
	color: var(--grafito);
	box-shadow: var(--ec-shadow-suave);
}

@media (min-width: 640px) {
	.ec-form-card {
		padding: 2.5rem;
	}
}

.ec-form {
	display: block;
}

.ec-form > * + * {
	margin-top: 1.5rem;
}

.ec-form__honeypot {
	display: none !important;
}

/* El campo oculto no cuenta: la primera fila no lleva margen arriba (space-y-6 de la versión React) */
.ec-form > .ec-form__honeypot + * {
	margin-top: 0;
}

.ec-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.ec-form__row--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ec-form__field {
	min-width: 0;
}

.ec-form__label {
	display: block;
	margin-bottom: 0.375rem;
	padding: 0;
	color: var(--grafito);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1rem;
	text-transform: uppercase;
}

.ec-form__optional {
	color: var(--pizarra);
	font-weight: 400;
}

.ec-form .ec-form__control {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: var(--nieve);
	color: var(--grafito);
	font-family: var(--ec-font-inter, 'Inter', ui-sans-serif, system-ui, sans-serif);
	font-size: 0.875rem;
	line-height: 1.25rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ec-form__control::placeholder {
	color: rgba(85, 99, 109, 0.6);
}

.ec-form__control:focus {
	outline: none;
	border-color: var(--arcilla-700);
	box-shadow: 0 0 0 2px var(--arcilla-700);
}

.ec-form__control[aria-invalid='true'] {
	border-color: #dc2626;
}

.ec-form__control[aria-invalid='true']:focus {
	border-color: #dc2626;
	box-shadow: 0 0 0 2px #dc2626;
}

textarea.ec-form__control {
	resize: vertical;
}

/* Como en la versión React, el área de texto es "en línea": deja el espacio de la línea de texto debajo */
.ec-form textarea.ec-form__control {
	display: inline-block;
}

.ec-form__error {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 0.25rem;
	color: #b91c1c;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1rem;
}

.ec-form__error[hidden] {
	display: none;
}

.ec-form__error .ec-icon {
	width: 0.75rem;
	height: 0.75rem;
}

.ec-form__radios {
	display: flex;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	border: 0;
}

.ec-form__radio {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: var(--nieve);
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.25rem;
	cursor: pointer;
	transition: all 0.15s;
}

@media (min-width: 640px) {
	.ec-form__radio {
		flex: 0 0 auto;
		min-width: 120px;
	}
}

.ec-form__radio:focus-within {
	box-shadow: 0 0 0 2px var(--arcilla-700);
}

.ec-form__radio.is-checked {
	border-color: var(--fiordo);
	background-color: var(--arena);
	color: var(--grafito);
	font-weight: 600;
}

.ec-form__radios[aria-invalid='true'] .ec-form__radio {
	border-color: #dc2626;
}

.ec-form__radio input {
	accent-color: var(--fiordo);
}

.ec-form__submit.ec-btn {
	width: 100%;
	font-size: 1rem;
	letter-spacing: 0.025em;
}

.ec-form__submit-note {
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
	text-align: center;
}

.ec-form__done {
	padding: 2rem 0;
	text-align: center;
}

.ec-form__done[hidden],
.ec-form[hidden] {
	display: none;
}

.ec-form__done > * + * {
	margin-top: 1rem;
}

.ec-form__done-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin-right: auto;
	margin-left: auto;
	border-radius: 9999px;
	background-color: var(--salvia-100);
	color: var(--salvia);
}

.ec-form__done-icon .ec-icon {
	width: 2rem;
	height: 2rem;
}

.ec-block .ec-form__done h3 {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 2rem;
}

.ec-form__done p {
	max-width: 28rem;
	margin-right: auto;
	margin-left: auto;
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.625;
}

.ec-form__done-actions {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	padding-top: 1rem;
}

@media (min-width: 640px) {
	.ec-form__done-actions {
		flex-direction: row;
	}
}

.ec-form__channels {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--linea);
}

@media (min-width: 640px) {
	.ec-form__channels {
		flex-direction: row;
	}
}

.ec-form__channel {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.25rem;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color 0.15s;
}

.ec-form__channel:hover {
	color: var(--arcilla-700);
}

.ec-form__channel .ec-icon {
	color: var(--arcilla-700);
}

/* ---------- Tiempo de lectura e índice ---------- */
.ec-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.ec-reading-time .ec-icon {
	width: 0.875rem;
	height: 0.875rem;
}

.ec-toc {
	max-width: 70ch;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--linea);
	border-radius: 14px;
	background-color: var(--arena);
}

.ec-toc__title {
	margin-bottom: 0.75rem;
	color: var(--grafito);
	font-family: var(--ec-font-syne, 'Syne', ui-sans-serif, system-ui, sans-serif);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5rem;
}

.ec-toc ol {
	counter-reset: ec-toc;
}

.ec-toc li {
	counter-increment: ec-toc;
	display: flex;
	gap: 0.625rem;
	font-size: 0.9375rem;
	line-height: 1.5rem;
}

.ec-toc li + li {
	margin-top: 0.375rem;
}

.ec-toc li::before {
	content: counter(ec-toc) '.';
	flex-shrink: 0;
	min-width: 1.25rem;
	color: var(--pizarra);
}

.ec-toc a {
	min-width: 0;
	color: var(--fiordo);
	text-decoration: none;
	overflow-wrap: break-word;
}

.ec-toc a:hover {
	color: var(--arcilla-700);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ec-toc__empty {
	color: var(--pizarra);
	font-size: 0.875rem;
}

/* ---------- Guías: tarjetas (Inicio, listado /guias/ y relacionadas) ---------- */
.ec-guides__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

@media (min-width: 640px) {
	.ec-guides__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ec-guides__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ec-guide-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--linea);
	border-radius: 24px;
	background-color: var(--nieve);
	box-shadow: var(--ec-shadow-suave);
	color: var(--grafito);
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.ec-guide-card:hover {
	border-color: var(--fiordo);
	transform: translateY(-2px);
}

.ec-guide-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: var(--arena);
}

.ec-guide-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ec-guide-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.ec-guide-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.5rem;
}

.ec-guide-card__body > * {
	margin: 0;
}

.ec-guide-card__cat.ec-tag {
	margin-bottom: 0.75rem;
	text-decoration: none;
}

.ec-block .ec-guide-card__title {
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.75rem;
	overflow-wrap: break-word;
}

.ec-guide-card__title a {
	color: var(--grafito);
	text-decoration: none;
}

.ec-guide-card__title a:hover,
.ec-guide-card__title a:focus-visible {
	color: var(--fiordo);
}

.ec-guide-card__excerpt {
	margin-bottom: 1rem;
	color: var(--pizarra);
	font-size: 0.875rem;
	line-height: 1.625;
}

.ec-guide-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	margin-top: auto;
	padding-top: 0.25rem;
	color: var(--pizarra);
	font-size: 0.75rem;
	line-height: 1rem;
}

.ec-guide-card__dot {
	color: var(--linea);
}

.ec-guide-card__reading {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.ec-guide-card__reading .ec-icon {
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
}

.ec-guides__all {
	display: flex;
	justify-content: center;
	margin: 3rem 0 0;
}

/* CRO-1, R6: por debajo de 640 px los canales directos y las opciones de radio miden 44 px de alto o más */
@media (max-width: 639px) {
	.ec-form__channel,
	.ec-form__radio {
		min-height: 44px;
	}
}
