/* ==========================================================================
   EstéticaconSEO · Páginas de especialidad (clínicas dentales, dermatólogos y capilares)
   Solo se carga en las páginas de EC_SPECIALTY_PAGES. Tokens, botones, base de
   sección, FAQ y componentes compartidos en premium.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Iconos (máscaras: toman el color del fondo del elemento)
   -------------------------------------------------------------------------- */
.ec-ico--layers { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
.ec-ico--scan { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8V5.5A1.5 1.5 0 015.5 4H8M16 4h2.5A1.5 1.5 0 0120 5.5V8M20 16v2.5a1.5 1.5 0 01-1.5 1.5H16M8 20H5.5A1.5 1.5 0 014 18.5V16M4 12h16'/%3E%3C/svg%3E"); }
.ec-ico--eye { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.ec-ico--sparkle { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.6L19.5 10l-5.6 1.9L12 17.5l-1.9-5.6L4.5 10l5.6-1.4z'/%3E%3Cpath d='M18.5 16.5l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7z'/%3E%3C/svg%3E"); }
.ec-ico--tooth { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5.5C10 4 6 3.5 5 6.5c-1 3 .5 5 1 7s.8 6.5 2.5 6.5S10 15 12 15s1.8 5 3.5 5 2-4.5 2.5-6.5 2-4 1-7c-1-3-5-2.5-7-1z'/%3E%3C/svg%3E"); }
.ec-ico--aligner { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9c0 5 4 9 9 9s9-4 9-9'/%3E%3Cpath d='M6.5 9.5v2M10 10v3M14 10v3M17.5 9.5v2'/%3E%3Cpath d='M3 9h18'/%3E%3C/svg%3E"); }
.ec-ico--heart { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0112 7.3a4.3 4.3 0 017.5 2.5C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E"); }
.ec-ico--selfie { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2.5'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3Cpath d='M8.5 16c.8-1.6 2-2.4 3.5-2.4s2.7.8 3.5 2.4'/%3E%3C/svg%3E"); }

/* --------------------------------------------------------------------------
   1 · Banner
   -------------------------------------------------------------------------- */
.ec-shero.brxe-section {
	--mx: 70%;
	--my: 35%;
	--px: 0;
	--py: 0;
	--_fg: var(--ec-text-light);
	--_mute: var(--ec-mute-light);
	--_line: var(--ec-line-light);
	--_accent: var(--ec-champagne);
	position: relative;
	display: block;
	padding: calc(var(--ec-header-h) + clamp(2rem, 5vw, 4rem)) 0 clamp(5rem, 9vw, 7.5rem);
	background: var(--ec-ink);
	color: var(--_fg);
	font-family: var(--ec-font-body);
	overflow: clip;
	isolation: isolate;
}
.ec-shero::before {
	/* Luz ambiente + foco del cursor */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(640px circle at var(--mx) var(--my), rgba(230, 207, 167, 0.1), transparent 60%),
		radial-gradient(45% 60% at 82% 18%, rgba(230, 207, 167, 0.16), transparent 70%),
		radial-gradient(35% 45% at 100% 85%, rgba(212, 107, 202, 0.16), transparent 70%),
		radial-gradient(40% 55% at 0% 100%, rgba(184, 145, 90, 0.2), transparent 70%),
		linear-gradient(180deg, var(--ec-ink) 0%, var(--ec-ink-2) 100%);
}
.ec-shero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

.ec-wrap.ec-shero__wrap.brxe-container {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	align-items: center;
	gap: clamp(3rem, 6vw, 6rem);
}
.ec-shero__copy.brxe-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ec-shero__title.brxe-heading {
	margin: 0;
	max-width: 17ch;
	color: var(--ec-text-light);
	font-family: var(--ec-font-display);
	font-size: clamp(2.7rem, 1.2rem + 4.2vw, 5.6rem);
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.ec-shero .ec-accent {
	background: var(--ec-shimmer);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: ec-shimmer 7s linear infinite;
}
/* Con el título partido en palabras, el brillo pasa a cada palabra del acento */
.ec-shero__title.is-split .ec-accent {
	background: none;
	color: inherit;
	animation: none;
}
.ec-shero__title.is-split .ec-accent .ec-word__in {
	background: var(--ec-shimmer);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: ec-word-in 1.1s var(--ec-ease) both, ec-shimmer 7s linear infinite;
	animation-delay: calc(0.15s + var(--i) * 0.07s), 0s;
}

.ec-shero__lead {
	max-width: 35rem;
	margin: 1.75rem 0 0;
	color: var(--_mute);
	font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
	line-height: 1.65;
}
.ec-shero__lead strong {
	color: var(--ec-text-light);
	font-weight: 600;
}
.ec-shero__actions.brxe-block {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 2.25rem;
}

/* Datos */
.ec-shero__facts.brxe-block {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: start;
	gap: 0;
	width: auto;
	margin: clamp(2.5rem, 4vw, 3.25rem) 0 0;
	padding: 0;
	list-style: none;
}
.ec-shero__fact {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0 clamp(1rem, 2vw, 1.75rem);
	border-left: 1px solid var(--ec-line-light);
}
.ec-shero__fact:first-child {
	padding-left: 0;
	border-left: 0;
}
.ec-shero__fact strong {
	color: var(--ec-champagne);
	font-family: var(--ec-font-display);
	font-size: clamp(1.45rem, 1.2rem + 0.7vw, 1.9rem);
	font-weight: 400;
	line-height: 1.05;
}
.ec-shero__fact span {
	color: var(--_mute);
	font-size: 0.84rem;
}

/* Foto en arco */
.ec-shero__media.brxe-block {
	position: relative;
	width: min(100%, 460px);
	justify-self: center;
	transform: translate3d(calc(var(--px) * -16px), calc(var(--py) * -16px), 0);
	transition: transform 0.8s var(--ec-ease);
}
.ec-shero__photo.brxe-div {
	/* .ec-photo.brxe-div pisa el arco de .ec-photo--arch: se repite aquí */
	border-radius: 999px 999px var(--ec-radius) var(--ec-radius);
	animation: ec-card-in 1.4s var(--ec-ease) 0.2s both;
}
.ec-shero__photo img {
	object-position: 53% 0%;
	animation: ec-settle 2.4s var(--ec-ease) both;
}
.ec-shero__orbit.brxe-div {
	position: absolute;
	inset: -6% -13% -2% -13%;
	z-index: -1;
	border: 1px dashed rgba(230, 207, 167, 0.2);
	border-radius: 50%;
	animation: ec-spin 70s linear infinite;
	pointer-events: none;
}
.ec-shero__orbit::after {
	content: "";
	position: absolute;
	top: 12%;
	left: 12%;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ec-champagne);
	box-shadow: 0 0 18px 4px rgba(230, 207, 167, 0.6);
}
.ec-shero__orbit::before {
	content: "";
	position: absolute;
	inset: 9%;
	border: 1px solid rgba(235, 185, 226, 0.12);
	border-radius: 50%;
}

/* Tarjeta de cristal con el buscador que escribe */
.ec-shero__search.brxe-block {
	position: absolute;
	left: -22%;
	bottom: 11%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	width: min(350px, 82%);
	padding: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 22px;
	background: rgba(21, 18, 28, 0.72);
	box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
	animation: ec-float-in 1s var(--ec-ease) 0.9s both, ec-drift 7s ease-in-out 2s infinite alternate;
}
.ec-shero__label {
	padding-left: 0.3rem;
	color: var(--ec-champagne);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.ec-shero__search .ec-query__field.brxe-block {
	min-height: 50px;
	padding: 0.65rem 1rem;
	box-shadow: 0 0 0 4px rgba(230, 207, 167, 0.14);
}
.ec-shero__search .ec-query__item,
.ec-shero__search .ec-query__typed {
	font-size: 0.95rem;
}
.ec-shero__chip {
	position: absolute;
	top: 2%;
	right: -12%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.8rem 1.1rem 0.8rem 2.9rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	background: rgba(21, 18, 28, 0.72);
	box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.75);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
	color: var(--ec-text-light);
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
	animation: ec-float-in 1s var(--ec-ease) 1.1s both, ec-drift 6s ease-in-out 2.4s infinite alternate-reverse;
}
.ec-shero__chip::before {
	/* Chincheta de mapa que late */
	content: "";
	position: absolute;
	left: 0.95rem;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	background: var(--ec-champagne);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7.5 7.5 0 00-7.5 7.5C4.5 15.2 12 22 12 22s7.5-6.8 7.5-12.5A7.5 7.5 0 0012 2zm0 10.3a2.8 2.8 0 110-5.6 2.8 2.8 0 010 5.6z'/%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'%3E%3Cpath d='M12 2a7.5 7.5 0 00-7.5 7.5C4.5 15.2 12 22 12 22s7.5-6.8 7.5-12.5A7.5 7.5 0 0012 2zm0 10.3a2.8 2.8 0 110-5.6 2.8 2.8 0 010 5.6z'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: ec-hop 2.6s var(--ec-ease) 2s infinite;
}
.ec-shero__chip span {
	color: var(--ec-champagne);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Entrada (solo CSS: si el JS falla, todo se ve) */
.ec-shero .ec-crumbs { animation: ec-rise 0.9s var(--ec-ease) 0.05s both; }
.ec-shero .ec-eyebrow { animation: ec-rise 0.9s var(--ec-ease) 0.1s both; }
.ec-shero__title:not(.is-split) { animation: ec-rise 1s var(--ec-ease) 0.2s both; }
.ec-shero .ec-shero__lead { animation: ec-rise 0.9s var(--ec-ease) 0.55s both; }
.ec-shero .ec-shero__actions { animation: ec-rise 0.9s var(--ec-ease) 0.7s both; }
.ec-shero .ec-shero__facts { animation: ec-rise 0.9s var(--ec-ease) 0.85s both; }

@keyframes ec-card-in {
	from { opacity: 0; transform: translateY(30px) scale(0.96); }
	to { opacity: 1; transform: none; }
}
@keyframes ec-drift {
	from { translate: 0 0; }
	to { translate: 0 -12px; }
}
@keyframes ec-hop {
	0%, 60%, 100% { transform: translateY(0); }
	30% { transform: translateY(-4px); }
}

/* Cabecera de sección centrada */
.ec-head--center.brxe-block {
	align-items: center;
	margin-inline: auto;
	text-align: center;
}
.ec-head--center .ec-lead {
	margin-inline: auto;
}

/* --------------------------------------------------------------------------
   2 · El paciente ha cambiado
   -------------------------------------------------------------------------- */
.ec-shift__grid.brxe-block {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: stretch;
	gap: clamp(1rem, 2.5vw, 2rem);
	margin-top: clamp(3rem, 6vw, 4.5rem);
}
.ec-shift__card.brxe-block {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	padding: clamp(1.75rem, 3.5vw, 2.75rem);
	border-radius: calc(var(--ec-radius) + 6px);
	overflow: hidden;
	isolation: isolate;
}
.ec-shift__card--then.brxe-block {
	background: var(--ec-paper);
	box-shadow: inset 0 0 0 1px var(--ec-line-dark);
	color: var(--ec-text-dark);
}
.ec-shift__card--now.brxe-block {
	background:
		radial-gradient(80% 90% at 100% 0%, rgba(212, 107, 202, 0.2), transparent 60%),
		radial-gradient(70% 80% at 0% 100%, rgba(184, 145, 90, 0.22), transparent 60%),
		var(--ec-ink);
	box-shadow: var(--ec-shadow-deep);
	color: var(--ec-text-light);
	--ec-d: 0.2s;
}
.ec-shift__when {
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	background: var(--ec-sand);
	color: #7a5a2c;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.ec-shift__card--now .ec-shift__when {
	background: rgba(230, 207, 167, 0.14);
	color: var(--ec-champagne);
}
.ec-shift__title.brxe-heading {
	margin: 0;
	color: inherit;
	font-family: var(--ec-font-display);
	font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem);
	font-weight: 400;
	line-height: 1.05;
}
.ec-shift__bubble {
	position: relative;
	margin: 0.25rem 0 0.5rem;
	padding: 0.9rem 1.4rem;
	border-radius: 20px 20px 20px 4px;
	background: var(--ec-ivory);
	box-shadow: inset 0 0 0 1px var(--ec-line-dark);
	font-family: var(--ec-font-display);
	font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem);
	line-height: 1.1;
}
.ec-shift__text {
	margin: 0;
	color: var(--ec-mute-dark);
	font-size: 1rem;
	line-height: 1.7;
}
.ec-shift__text strong {
	color: var(--ec-text-dark);
	font-weight: 650;
}
.ec-shift__card--now .ec-shift__text {
	color: var(--ec-mute-light);
}
.ec-shift__card--now .ec-query__field.brxe-block {
	align-self: stretch;
	margin-top: auto;
}
/* El modelo antiguo se apaga al entrar */
.ec-shift__card--then::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(26, 22, 32, 0.025) 14px 15px);
}
.ec-shift__arrow.brxe-div {
	align-self: center;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
	box-shadow: 0 16px 34px -14px rgba(184, 145, 90, 0.8);
}
.ec-shift__arrow::before {
	content: "";
	width: 24px;
	height: 24px;
	background: var(--ec-ink);
	-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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: ec-nudge 2.4s var(--ec-ease-in-out) infinite;
}
@keyframes ec-nudge {
	0%, 100% { transform: translateX(-3px); }
	50% { transform: translateX(4px); }
}

.ec-shift__close.brxe-block {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	align-items: end;
	gap: clamp(2rem, 5vw, 5rem);
	margin-top: clamp(3.5rem, 7vw, 6rem);
}
.ec-shift__close .ec-lightup {
	margin: 0;
}

/* --------------------------------------------------------------------------
   3 · Diagnóstico
   -------------------------------------------------------------------------- */
.ec-wrap.ec-diag__wrap.brxe-container:has(> .ec-diag__copy) {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(3rem, 6vw, 6rem);
}
.ec-diag__copy .ec-prose {
	margin-top: 2rem;
}

/* Agenda */
.ec-agenda.brxe-block {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 0;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border: 1px solid var(--ec-line-light);
	border-radius: calc(var(--ec-radius) + 6px);
	background:
		radial-gradient(80% 60% at 100% 0%, rgba(230, 207, 167, 0.08), transparent 60%),
		rgba(255, 255, 255, 0.03);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
	--ec-d: 0.15s;
}
.ec-agenda__head.brxe-block {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}
.ec-agenda__title {
	color: var(--ec-text-light);
	font-family: var(--ec-font-display);
	font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.6rem);
	line-height: 1.1;
}
.ec-agenda__legend.brxe-block {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	width: auto;
}
.ec-agenda__key {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--ec-mute-light);
	font-size: 0.75rem;
}
.ec-agenda__key::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: rgba(246, 241, 234, 0.18);
}
.ec-agenda__key.is-high::before {
	background: linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
}
.ec-agenda__grid.brxe-block {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
}
.ec-agenda__col.brxe-block {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	min-width: 0;
}
.ec-agenda__day {
	padding-bottom: 0.35rem;
	color: var(--ec-champagne);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-align: center;
	text-transform: uppercase;
}
.ec-agenda__slot {
	display: grid;
	place-items: center;
	min-height: 48px;
	padding: 0.3rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	box-shadow: inset 0 0 0 1px var(--ec-line-light);
	color: var(--ec-mute-light);
	font-size: 0.78rem;
	font-weight: 500;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: opacity 0.6s var(--ec-ease), transform 0.7s var(--ec-ease);
	transition-delay: calc(0.35s + var(--i, 0) * 0.045s);
}
.ec-agenda__slot.is-high {
	background: linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
	box-shadow: 0 0 0 0 rgba(230, 207, 167, 0.5), 0 10px 26px -10px rgba(230, 207, 167, 0.7);
	color: var(--ec-ink);
	font-weight: 700;
	animation: ec-pulse 2.6s var(--ec-ease) 2s infinite;
}
.ec-js .ec-agenda:not(.is-in) .ec-agenda__slot {
	opacity: 0;
	transform: translateY(10px) scale(0.94);
}
.ec-agenda__foot {
	margin: 0;
	color: var(--ec-mute-light);
	font-size: 0.75rem;
}

/* Síntomas */
.ec-diag__symptoms.brxe-block {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 2rem);
	margin: clamp(1rem, 3vw, 2rem) 0 0;
	padding: 0;
	list-style: none;
}
.ec-symptom.brxe-block {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ec-line-light);
}
.ec-symptom:nth-child(2) { --ec-d: 0.12s; }
.ec-symptom:nth-child(3) { --ec-d: 0.24s; }
.ec-symptom__num {
	color: var(--ec-champagne);
	font-family: var(--ec-font-display);
	font-size: 2.2rem;
	line-height: 1;
}
.ec-symptom__text {
	margin: 0;
	color: var(--ec-mute-light);
	line-height: 1.7;
}
.ec-symptom__text strong {
	color: var(--ec-text-light);
	font-weight: 650;
}

/* Veredicto */
.ec-diag__verdict {
	grid-column: 1 / -1;
	justify-self: center;
	max-width: 22ch;
	margin: clamp(1.5rem, 4vw, 3rem) 0 0;
	color: var(--ec-text-light);
	font-family: var(--ec-font-display);
	font-size: clamp(2.1rem, 1.2rem + 3vw, 3.9rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-align: center;
	text-wrap: balance;
}
.ec-diag__verdict::before {
	content: "";
	display: block;
	width: 1px;
	height: 56px;
	margin: 0 auto 1.75rem;
	background: linear-gradient(180deg, transparent, var(--ec-champagne));
}

/* --------------------------------------------------------------------------
   4 · Filosofía: pilares que se apilan
   -------------------------------------------------------------------------- */
.ec-wrap.ec-pillars__wrap.brxe-container {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: start;
	gap: clamp(3rem, 6vw, 6rem);
}
.ec-pillars__aside.brxe-block {
	position: sticky;
	top: calc(var(--ec-header-h) + 1.5rem);
}
.ec-pillars__media.brxe-block {
	width: min(100%, 480px);
	margin-top: clamp(2rem, 4vw, 2.75rem);
}
.ec-pillars__photo.brxe-div {
	aspect-ratio: 5 / 4;
}
.ec-pillars__photo img {
	object-position: 50% 35%;
}
.ec-pillars__stack.brxe-block {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 3vw, 2rem);
}
.ec-pillar.brxe-block {
	position: sticky;
	top: calc(1.5rem + var(--n, 0) * 1.4rem);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.1rem;
	padding: clamp(1.75rem, 3.5vw, 2.75rem);
	border-radius: calc(var(--ec-radius) + 6px);
	background:
		radial-gradient(90% 70% at 100% 0%, rgba(230, 207, 167, 0.2), transparent 60%),
		var(--ec-ivory);
	box-shadow: inset 0 0 0 1px rgba(184, 145, 90, 0.18), 0 30px 60px -40px rgba(13, 11, 18, 0.45);
}
.ec-pillar:nth-child(2) { --n: 1; }
.ec-pillar:nth-child(3) { --n: 2; }
.ec-pillar__top.brxe-block {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}
.ec-pillar__num {
	background: linear-gradient(100deg, var(--ec-gold) 0%, #c99a62 45%, #b25aa8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--ec-font-display);
	font-size: clamp(3rem, 2.4rem + 2vw, 4.4rem);
	line-height: 0.9;
}
.ec-pillar__ico.brxe-div {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 18px;
	background: var(--ec-ink);
	box-shadow: inset 0 0 0 1px rgba(230, 207, 167, 0.25);
}
.ec-pillar__ico::before {
	content: "";
	width: 26px;
	height: 26px;
	background: var(--ec-champagne);
	-webkit-mask: var(--_ico) center / contain no-repeat;
	mask: var(--_ico) center / contain no-repeat;
}
.ec-pillar__title.brxe-heading {
	margin: 0;
	color: var(--ec-text-dark);
	font-family: var(--ec-font-display);
	font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem);
	font-weight: 400;
	line-height: 1.05;
}
.ec-pillar__text {
	margin: 0;
	color: var(--ec-mute-dark);
	font-size: 1.02rem;
	line-height: 1.75;
}
.ec-pillar .ec-prose ul {
	gap: 0.9rem;
}

/* Tecnología = Seguridad + Menos dolor */
.ec-formula.brxe-block {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0.75rem;
	margin: 0.25rem 0;
}
.ec-formula__term {
	padding: 0.6rem 1.1rem;
	border-radius: 999px;
	background: var(--ec-paper);
	box-shadow: inset 0 0 0 1px rgba(184, 145, 90, 0.35);
	color: var(--ec-text-dark);
	font-weight: 650;
}
.ec-formula__term.is-main {
	background: var(--ec-ink);
	box-shadow: none;
	color: var(--ec-champagne);
}
.ec-formula__op {
	color: var(--ec-gold);
	font-family: var(--ec-font-display);
	font-size: 2rem;
	line-height: 1;
}
.ec-pillar__quote {
	margin: 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--ec-gold);
	color: var(--ec-text-dark);
	font-family: var(--ec-font-display);
	font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem);
	line-height: 1.2;
}

/* Lista con marcas */
.ec-checks.brxe-block {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ec-checks li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: var(--ec-text-dark);
	line-height: 1.5;
}
.ec-checks li::before {
	content: "";
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 0.05em;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0b12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 13px no-repeat,
		linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
}

/* --------------------------------------------------------------------------
   5 · Tratamientos estrella
   -------------------------------------------------------------------------- */
.ec-treat__grid.brxe-block {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-top: clamp(3rem, 6vw, 4.5rem);
}
.ec-treat__card.brxe-block {
	--mx: 50%;
	--my: 0%;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.1rem;
	padding: clamp(1.6rem, 3vw, 2.25rem);
	border-radius: calc(var(--ec-radius) + 6px);
	background:
		radial-gradient(90% 60% at 100% 0%, rgba(230, 207, 167, 0.1), transparent 60%),
		var(--ec-ink);
	box-shadow: var(--ec-shadow-deep);
	color: var(--ec-text-light);
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.7s var(--ec-ease), box-shadow 0.7s var(--ec-ease), opacity 1s var(--ec-ease);
}
.ec-treat__card::before {
	/* Foco de luz que sigue al cursor */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(380px circle at var(--mx) var(--my), rgba(230, 207, 167, 0.16), transparent 60%);
	opacity: 0;
	transition: opacity 0.4s;
}
.ec-treat__card::after {
	/* Filo dorado */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(160deg, rgba(230, 207, 167, 0.55), rgba(230, 207, 167, 0.05) 40%, rgba(235, 185, 226, 0.3));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.ec-treat__card:hover {
	transform: translateY(-6px);
	box-shadow: 0 50px 90px -35px rgba(13, 11, 18, 0.7);
}
.ec-treat__card:hover::before {
	opacity: 1;
}
.ec-treat__card:nth-child(2) { --ec-d: 0.12s; }
.ec-treat__card:nth-child(3) { --ec-d: 0.24s; }
.ec-treat__top.brxe-block {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.9rem;
}
.ec-treat__ico.brxe-div {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 15px;
	background: linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
	transition: transform 0.6s var(--ec-ease);
}
.ec-treat__ico::before {
	content: "";
	width: 24px;
	height: 24px;
	background: var(--ec-ink);
	-webkit-mask: var(--_ico) center / contain no-repeat;
	mask: var(--_ico) center / contain no-repeat;
}
.ec-treat__card:hover .ec-treat__ico {
	transform: rotate(-8deg) scale(1.06);
}
.ec-treat__kicker {
	color: var(--ec-champagne);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.ec-treat__title.brxe-heading {
	margin: 0;
	color: var(--ec-text-light);
	font-family: var(--ec-font-display);
	font-size: clamp(1.75rem, 1.4rem + 0.9vw, 2.2rem);
	font-weight: 400;
	line-height: 1.05;
}
.ec-treat__intro {
	margin: 0;
	color: var(--ec-mute-light);
	line-height: 1.65;
}
.ec-treat__row.brxe-block {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	width: 100%;
	padding-top: 1rem;
	border-top: 1px solid var(--ec-line-light);
}
.ec-treat__label {
	color: var(--ec-champagne);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.ec-treat__value {
	margin: 0;
	color: var(--ec-text-light);
	line-height: 1.55;
}
.ec-treat__queries.brxe-block {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ec-treat__queries li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	box-shadow: inset 0 0 0 1px var(--ec-line-light);
	color: var(--ec-text-light);
	font-size: 0.88rem;
	transition: background-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ec-ease);
}
.ec-treat__queries li::before {
	content: "";
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	background: var(--ec-champagne);
	-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.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%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.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ec-treat__queries li:hover {
	background: rgba(230, 207, 167, 0.1);
	box-shadow: inset 0 0 0 1px rgba(230, 207, 167, 0.45);
	transform: translateX(4px);
}
.ec-treat__goal.brxe-block {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	width: 100%;
	margin-top: auto;
	padding: 1.1rem 1.2rem;
	border-radius: 16px;
	background: rgba(230, 207, 167, 0.08);
	box-shadow: inset 0 0 0 1px rgba(230, 207, 167, 0.2);
}
.ec-treat__goal .ec-treat__value {
	font-family: var(--ec-font-display);
	font-size: 1.25rem;
	line-height: 1.2;
}

/* En escritorio las filas de las tres tarjetas se alinean entre sí */
@media (min-width: 992px) {
	.ec-treat__grid.brxe-block {
		row-gap: 1.1rem;
	}
	.ec-treat__card.brxe-block {
		display: grid;
		grid-row: span 6;
		grid-template-rows: subgrid;
		justify-items: start;
	}
	.ec-treat__goal.brxe-block {
		align-self: end;
	}
}

/* --------------------------------------------------------------------------
   6 · Llamada intermedia
   -------------------------------------------------------------------------- */
.ec-band.brxe-section {
	padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}
.ec-wrap.ec-band__wrap.brxe-container {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
	align-items: end;
	gap: clamp(2rem, 5vw, 5rem);
}
.ec-band__title.brxe-heading {
	margin: 0;
	color: var(--ec-ink);
	font-family: var(--ec-font-display);
	font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.8rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.ec-band__lead {
	max-width: 40rem;
	margin: 1.5rem 0 0;
	color: #4a3d2c;
	font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
	line-height: 1.7;
}
.ec-band__lead strong {
	color: var(--ec-ink);
	font-weight: 650;
}
.ec-band__actions.brxe-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.1rem;
	--ec-d: 0.15s;
}
.ec-band__wa.brxe-text-link {
	color: #4a3d2c;
	font-size: 0.95rem;
	text-decoration: underline;
	text-decoration-color: rgba(13, 11, 18, 0.25);
	text-underline-offset: 5px;
	transition: color 0.3s, text-decoration-color 0.3s;
}
.ec-band__wa.brxe-text-link:hover {
	color: var(--ec-ink);
	text-decoration-color: var(--ec-ink);
}
/* Tres puntos que se unen (decorativo) */
.ec-band__dots.brxe-div {
	position: absolute;
	top: -2.5rem;
	right: var(--ec-gutter);
	width: 260px;
	height: 90px;
	opacity: 0.5;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 90' fill='none'%3E%3Cpath d='M8 78C60 78 70 14 128 14s70 64 124 64' stroke='%230d0b12' stroke-width='1.2' stroke-dasharray='4 6'/%3E%3Ccircle cx='8' cy='78' r='6' fill='%230d0b12'/%3E%3Ccircle cx='128' cy='14' r='6' fill='%230d0b12'/%3E%3Ccircle cx='252' cy='78' r='6' fill='%230d0b12'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}
.ec-js .ec-band__dots.ec-reveal {
	transition: clip-path 1.8s var(--ec-ease) 0.3s;
}
.ec-js .ec-band__dots.ec-reveal:not(.is-in) {
	opacity: 0.5;
	transform: none;
	clip-path: inset(0 100% 0 0);
}
.ec-js .ec-band__dots.ec-reveal.is-in {
	clip-path: inset(0 0 0 0);
}

/* --------------------------------------------------------------------------
   7 · SEO local
   -------------------------------------------------------------------------- */
.ec-wrap.ec-local__wrap.brxe-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(3rem, 6vw, 6rem);
}
.ec-local__copy .ec-prose {
	margin-top: 2rem;
}
.ec-local__steps.brxe-block {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	margin: 2.25rem 0 0;
	padding: 0;
	list-style: none;
}
.ec-local__steps::before {
	/* Hilo que une los pasos */
	content: "";
	position: absolute;
	top: 24px;
	bottom: 24px;
	left: 23px;
	width: 1px;
	background: linear-gradient(180deg, var(--ec-champagne), rgba(230, 207, 167, 0.1));
}
.ec-lstep.brxe-block {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 1.25rem;
}
.ec-lstep:nth-child(2) { --ec-d: 0.12s; }
.ec-lstep:nth-child(3) { --ec-d: 0.24s; }
.ec-lstep__num {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ec-ink);
	box-shadow: inset 0 0 0 1px rgba(230, 207, 167, 0.45);
	color: var(--ec-champagne);
	font-family: var(--ec-font-display);
	font-size: 1.25rem;
}
.ec-lstep__title.brxe-heading {
	margin: 0.6rem 0 0.4rem;
	color: var(--ec-text-light);
	font-family: var(--ec-font-body);
	font-size: 1.12rem;
	font-weight: 650;
	line-height: 1.3;
}
.ec-lstep__text {
	margin: 0;
	color: var(--ec-mute-light);
	font-size: 0.98rem;
	line-height: 1.7;
}

/* Ventana de Google Maps (ilustrativa) */
.ec-maps.brxe-block {
	--_row: 70px;
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	border-radius: calc(var(--ec-radius) + 8px);
	background: var(--ec-paper);
	box-shadow: 0 0 0 1px rgba(230, 207, 167, 0.25), 0 60px 120px -40px rgba(0, 0, 0, 0.85), 0 0 140px -40px rgba(230, 207, 167, 0.3);
	color: var(--ec-text-dark);
	overflow: hidden;
	--ec-d: 0.15s;
}
.ec-maps__bar.brxe-block {
	position: absolute;
	top: 1rem;
	left: 1rem;
	right: 1rem;
	z-index: 3;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.7rem;
	width: auto;
	padding: 0.8rem 1.1rem;
	border-radius: 999px;
	background: var(--ec-paper);
	box-shadow: 0 10px 26px -12px rgba(13, 11, 18, 0.45);
}
.ec-maps__bar::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: var(--ec-mute-dark);
	-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'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%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'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ec-maps__q {
	font-size: 0.95rem;
	font-weight: 500;
}
.ec-maps__map.brxe-block {
	position: relative;
	height: clamp(220px, 24vw, 280px);
	background:
		linear-gradient(32deg, transparent 47%, #fff 47% 50.5%, transparent 50.5%) 0 0 / 100% 100%,
		linear-gradient(-58deg, transparent 62%, #fff 62% 64%, transparent 64%) 0 0 / 100% 100%,
		repeating-linear-gradient(0deg, transparent 0 52px, rgba(255, 255, 255, 0.9) 52px 55px),
		repeating-linear-gradient(90deg, transparent 0 74px, rgba(255, 255, 255, 0.9) 74px 77px),
		radial-gradient(60px 40px at 78% 72%, #dfe6d3 0 98%, transparent 100%),
		var(--ec-sand);
	overflow: hidden;
}
/* Radio de 5-10 km alrededor de tu clínica */
.ec-maps__radius.brxe-div {
	position: absolute;
	left: 46%;
	top: 60%;
	width: 220px;
	height: 220px;
	margin: -110px 0 0 -110px;
	border: 1px dashed rgba(184, 145, 90, 0.75);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(230, 207, 167, 0.35), rgba(230, 207, 167, 0.08) 70%);
}
.ec-maps__radius::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(184, 145, 90, 0.6);
	animation: ec-ping 3s var(--ec-ease) infinite;
}
@keyframes ec-ping {
	from { transform: scale(0.2); opacity: 1; }
	to { transform: scale(1.25); opacity: 0; }
}
.ec-maps__pin.brxe-div {
	position: absolute;
	width: 20px;
	height: 20px;
	margin: -20px 0 0 -10px;
	border-radius: 50% 50% 50% 0;
	background: #a39b8f;
	box-shadow: 0 4px 8px -2px rgba(13, 11, 18, 0.35);
	transform: rotate(-45deg);
	transition: transform 0.8s var(--ec-ease), opacity 0.6s;
}
.ec-maps__pin::after {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	background: var(--ec-paper);
}
.ec-maps__pin--a { left: 18%; top: 58%; }
.ec-maps__pin--b { left: 76%; top: 46%; }
.ec-maps__pin--c { left: 64%; top: 82%; }
.ec-maps__pin--you.brxe-div {
	left: 46%;
	top: 60%;
	z-index: 2;
	width: 34px;
	height: 34px;
	margin: -34px 0 0 -17px;
	background: linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
	box-shadow: 0 10px 20px -6px rgba(110, 79, 36, 0.7);
}
.ec-maps__pin--you::after {
	inset: 10px;
	background: var(--ec-ink);
}
.ec-js .ec-maps:not(.is-in) .ec-maps__pin--you {
	transform: rotate(-45deg) translate(30px, -30px) scale(0.4);
	opacity: 0;
}
.ec-maps.is-in .ec-maps__pin--you {
	transition-delay: 0.6s;
}

/* Resultados: tu clínica sube al primer puesto */
.ec-maps__list.brxe-block {
	position: relative;
	display: block;
	height: calc(var(--_row) * 3);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: hidden;
}
.ec-maps__row.brxe-block {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(var(--pos) * var(--_row));
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
	height: var(--_row);
	padding: 0 1.4rem;
	border-top: 1px solid var(--ec-line-dark);
	background: var(--ec-paper);
	transition: top 1.2s var(--ec-ease), background-color 0.6s, box-shadow 0.6s;
}
/* Estado final (sin JS se ve directamente) */
.ec-maps__row.is-you { --pos: 0; z-index: 2; }
.ec-maps__row.is-a { --pos: 1; }
.ec-maps__row.is-b { --pos: 2; }
.ec-maps__row.is-c { --pos: 3; }
.ec-maps__row.is-you {
	background: linear-gradient(90deg, rgba(230, 207, 167, 0.35), rgba(255, 244, 223, 0.5));
	box-shadow: inset 3px 0 0 var(--ec-gold);
}
.ec-maps.is-in .ec-maps__row {
	transition-delay: 0.9s, 1.6s, 1.6s;
}
/* Estado inicial (con JS, antes de entrar en pantalla) */
.ec-js .ec-maps:not(.is-in) .ec-maps__row.is-a { --pos: 0; }
.ec-js .ec-maps:not(.is-in) .ec-maps__row.is-b { --pos: 1; }
.ec-js .ec-maps:not(.is-in) .ec-maps__row.is-c { --pos: 2; }
.ec-js .ec-maps:not(.is-in) .ec-maps__row.is-you {
	--pos: 3;
	background: var(--ec-paper);
	box-shadow: none;
}
.ec-maps__row.is-you::after {
	content: "1.º";
	position: absolute;
	top: 50%;
	right: 1.2rem;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border-radius: 50%;
	background: var(--ec-ink);
	color: var(--ec-champagne);
	font-family: var(--ec-font-display);
	font-size: 1.05rem;
	transition: transform 0.7s var(--ec-ease) 1.9s, opacity 0.5s 1.9s;
}
.ec-js .ec-maps:not(.is-in) .ec-maps__row.is-you::after {
	transform: scale(0.4);
	opacity: 0;
}
.ec-maps__name {
	color: var(--ec-text-dark);
	font-size: 0.98rem;
	font-weight: 700;
}
.ec-maps__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	color: var(--ec-mute-dark);
	font-size: 0.8rem;
}
.ec-maps__meta b {
	color: var(--ec-text-dark);
	font-weight: 700;
}
.ec-maps__stars {
	display: inline-block;
	width: 70px;
	height: 13px;
	background: linear-gradient(90deg, #e2a63b calc(var(--r) / 5 * 100%), #dcd5ca 0);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 13'%3E%3Cpath d='M7 .5l1.9 4 4.4.5-3.3 3 .9 4.4L7 10.2 3.1 12.4 4 8 .7 5l4.4-.5z'/%3E%3C/svg%3E") 0 0 / 14px 13px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 13'%3E%3Cpath d='M7 .5l1.9 4 4.4.5-3.3 3 .9 4.4L7 10.2 3.1 12.4 4 8 .7 5l4.4-.5z'/%3E%3C/svg%3E") 0 0 / 14px 13px repeat-x;
}
.ec-maps__foot {
	align-self: stretch;
	margin: 0;
	padding: 0.85rem 1.4rem;
	border-top: 1px solid var(--ec-line-dark);
	background: var(--ec-ivory);
	color: var(--ec-mute-dark);
	font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   8 · Por qué EstéticaconSEO
   -------------------------------------------------------------------------- */
.ec-wrap.ec-why__wrap.brxe-container {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(3rem, 6vw, 6rem);
}
.ec-why__media.brxe-block {
	--rx: 0deg;
	--ry: 0deg;
	position: relative;
	width: min(100%, 460px);
	justify-self: center;
}
.ec-why__frame.brxe-div {
	position: absolute;
	inset: 1.5rem -1.5rem -1.5rem 1.5rem;
	z-index: -1;
	border: 1px solid rgba(184, 145, 90, 0.45);
	border-radius: var(--ec-radius);
}
.ec-why__photo.brxe-div {
	transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform 0.8s var(--ec-ease), clip-path 1.4s var(--ec-ease);
}
.ec-why__photo img {
	object-position: 55% 30%;
}
.ec-why__badge {
	position: absolute;
	left: -1.25rem;
	bottom: 2rem;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	max-width: 230px;
	padding: 0.9rem 1.2rem;
	border-radius: 18px;
	background: var(--ec-ink);
	box-shadow: var(--ec-shadow-deep);
	color: var(--ec-text-light);
	font-size: 0.82rem;
	line-height: 1.35;
}
.ec-why__badge strong {
	color: var(--ec-champagne);
	font-family: var(--ec-font-display);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.1;
}
.ec-why__badge span {
	color: var(--ec-mute-light);
}
.ec-why__copy .ec-prose {
	margin-top: 1.75rem;
}

.ec-reasons.brxe-block {
	display: grid;
	gap: 1.25rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	--ec-d: 0.1s;
}
.ec-reason.brxe-block {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: start;
	gap: 1.1rem;
}
.ec-reason__ico.brxe-div {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 15px;
	background: var(--ec-ivory);
	box-shadow: inset 0 0 0 1px rgba(184, 145, 90, 0.3);
}
.ec-reason__ico::before {
	content: "";
	width: 22px;
	height: 22px;
	background: var(--ec-gold);
	-webkit-mask: var(--_ico) center / contain no-repeat;
	mask: var(--_ico) center / contain no-repeat;
}
.ec-reason__text {
	margin: 0;
	color: var(--ec-mute-dark);
	line-height: 1.7;
}
.ec-reason__text strong {
	color: var(--ec-text-dark);
	font-weight: 650;
}
.ec-why__more.brxe-text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 2rem;
	color: #8a6430;
	font-weight: 650;
	text-decoration: underline;
	text-decoration-color: rgba(184, 145, 90, 0.4);
	text-underline-offset: 5px;
	transition: color 0.3s, text-decoration-color 0.3s;
}
.ec-why__more::after {
	content: "→";
	transition: transform 0.5s var(--ec-ease);
}
.ec-why__more:hover {
	color: var(--ec-text-dark);
	text-decoration-color: var(--ec-gold);
}
.ec-why__more:hover::after {
	transform: translateX(4px);
}

/* Compromisos */
.ec-pacts.brxe-block {
	grid-column: 1 / -1;
	display: grid;
	align-items: stretch;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin: clamp(1.5rem, 4vw, 3rem) 0 0;
	padding: 0;
	list-style: none;
}
.ec-pacts .ec-pact.brxe-block {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.5rem;
	border-radius: 20px;
	background: var(--ec-ivory);
	box-shadow: inset 0 0 0 1px var(--ec-line-dark);
	transition: transform 0.6s var(--ec-ease), box-shadow 0.6s var(--ec-ease), background-color 0.4s;
}
.ec-pacts .ec-pact:hover {
	transform: translateY(-4px);
	background: var(--ec-paper);
	box-shadow: inset 0 0 0 1px rgba(184, 145, 90, 0.35), var(--ec-shadow-soft);
}
.ec-pacts .ec-pact .ec-pact__title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--ec-text-dark);
	font-family: var(--ec-font-display);
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 1.1;
}
.ec-pacts .ec-pact .ec-pact__title::before {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0b12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 12px no-repeat,
		linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
}
.ec-pacts .ec-pact__text {
	color: var(--ec-mute-dark);
	font-size: 0.92rem;
	line-height: 1.6;
}

/* Otras especialidades (enlaces internos) */
.ec-why .ec-specs.brxe-block {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	padding-top: clamp(1.75rem, 3vw, 2.25rem);
	border-top: 1px solid var(--ec-line-dark);
}
.ec-why .ec-specs__t {
	margin: 0;
	color: var(--ec-gold);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.ec-why .ec-specs__list.brxe-block {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.6rem;
	width: auto;
}
.ec-why .ec-chip.brxe-text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0 1.1rem;
	border: 1px solid var(--ec-line-dark);
	border-radius: 999px;
	color: var(--ec-text-dark);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.4s, background-color 0.4s, color 0.4s;
}
.ec-why .ec-chip::after {
	content: "";
	width: 0.95em;
	height: 0.95em;
	background: currentColor;
	-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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.4s var(--ec-ease);
}
.ec-why .ec-chip:hover {
	border-color: var(--ec-ink);
	background: var(--ec-ink);
	color: var(--ec-champagne);
}
.ec-why .ec-chip:hover::after {
	transform: translate(2px, -2px);
}
.ec-why .ec-chip:focus-visible,
.ec-why__more:focus-visible,
.ec-band__wa:focus-visible {
	outline: 2px solid var(--ec-gold);
	outline-offset: 3px;
}

/* ==========================================================================
   Dermatología: ruido, aparatología, dermatoscopio y contenido E-E-A-T
   ========================================================================== */
.ec-ico--drop { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s6.5 7 6.5 11.5a6.5 6.5 0 01-13 0C5.5 10 12 3 12 3z'/%3E%3Cpath d='M9 15a3 3 0 003 3'/%3E%3C/svg%3E"); }
.ec-ico--zap { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2.5L5 13.5h6l-1 8 8-11h-6z'/%3E%3C/svg%3E"); }
.ec-ico--badge { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M9.5 9l1.8 1.8L14.8 7.3'/%3E%3Cpath d='M8.5 14l-1.5 7.5 5-2.5 5 2.5-1.5-7.5'/%3E%3C/svg%3E"); }
.ec-ico--lens { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Ccircle cx='10.5' cy='10.5' r='2.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E"); }
.ec-ico--flask { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6L4.8 18.2A1.9 1.9 0 006.4 21h11.2a1.9 1.9 0 001.6-2.8L14 9V3'/%3E%3Cpath d='M7.5 15h9'/%3E%3C/svg%3E"); }
.ec-ico--shield { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.5c0 4.6-3.2 8.3-7.5 9.5-4.3-1.2-7.5-4.9-7.5-9.5V6z'/%3E%3Cpath d='M8.8 12l2.2 2.2 4.3-4.4'/%3E%3C/svg%3E"); }

/* El chip del banner cambia la chincheta por un escudo médico */
.ec-shero__chip--shield::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8.5 3.4v6.1c0 5.1-3.6 9.3-8.5 10.5-4.9-1.2-8.5-5.4-8.5-10.5V5.4zm-1.1 13.2l5.7-5.8-1.5-1.4-4.2 4.3-2.1-2.1-1.5 1.4z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8.5 3.4v6.1c0 5.1-3.6 9.3-8.5 10.5-4.9-1.2-8.5-5.4-8.5-10.5V5.4zm-1.1 13.2l5.7-5.8-1.5-1.4-4.2 4.3-2.1-2.1-1.5 1.4z'/%3E%3C/svg%3E");
}

/* El ruido: los mensajes sin médico se tachan al entrar */
.ec-noise.brxe-block {
	display: grid;
	gap: 0.6rem;
	width: 100%;
	margin: 0.25rem 0;
	padding: 0;
	list-style: none;
}
.ec-noise__item {
	position: relative;
	display: block;
	padding: 0.85rem 1rem 0.85rem 2.85rem;
	border-radius: 14px;
	background: var(--ec-ivory);
	box-shadow: inset 0 0 0 1px var(--ec-line-dark);
	color: var(--ec-text-dark);
	font-size: 0.95rem;
	line-height: 1.45;
	transition: color 0.6s, background-color 0.6s;
	transition-delay: calc(0.7s + var(--n, 0) * 0.35s);
}
.ec-noise__item:nth-child(2) { --n: 1; }
.ec-noise__item:nth-child(3) { --n: 2; }
.ec-noise__item b {
	font-weight: 700;
}
.ec-noise__item::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: calc(0.85rem + 0.1em);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 11px no-repeat,
		#b4505f;
}
.ec-noise__item > span {
	/* Raya que tacha el mensaje, línea tras línea */
	background: linear-gradient(#b4505f, #b4505f) 0 58% / 100% 2px no-repeat;
	transition: background-size 0.9s var(--ec-ease);
	transition-delay: calc(0.6s + var(--n, 0) * 0.35s);
}
.ec-shift__card--then.is-in .ec-noise__item {
	background: transparent;
	color: var(--ec-mute-dark);
}
.ec-js .ec-shift__card--then:not(.is-in) .ec-noise__item > span {
	background-size: 0% 2px;
}

/* Equipos que posicionamos */
.ec-devices.brxe-block {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.25rem 0;
	padding: 0;
	list-style: none;
}
.ec-devices__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	background: var(--ec-paper);
	box-shadow: inset 0 0 0 1px rgba(184, 145, 90, 0.35);
	color: var(--ec-text-dark);
	font-size: 0.9rem;
	font-weight: 600;
	transition: background-color 0.4s, color 0.4s, transform 0.5s var(--ec-ease);
}
.ec-devices__item::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ec-gold);
	box-shadow: 0 0 0 3px rgba(184, 145, 90, 0.2);
}
.ec-devices__item:hover {
	background: var(--ec-ink);
	color: var(--ec-champagne);
	transform: translateY(-2px);
}

/* Lista con marcas sobre fondo oscuro */
.ec-checks--light li {
	color: var(--ec-text-light);
}

/* --------------------------------------------------------------------------
   Dermatoscopio: una lupa enfoca tu clínica entre el ruido de Google (la mueve el cursor; si no, pasea sola)
   -------------------------------------------------------------------------- */
@property --lx {
	syntax: "<number>";
	inherits: true;
	initial-value: 0.5;
}
@property --ly {
	syntax: "<number>";
	inherits: true;
	initial-value: 0.47;
}
.ec-wrap.ec-scope__wrap.brxe-container {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(3rem, 6vw, 6rem);
}
.ec-scope__copy .ec-prose {
	margin-top: 1.75rem;
}
.ec-scope__points.brxe-block {
	display: grid;
	gap: 0;
	margin: 2.25rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: ec-point;
	--ec-d: 0.12s;
}
.ec-scope__point {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	column-gap: 0.75rem;
	padding: 1.1rem 0;
	border-top: 1px solid var(--ec-line-light);
	counter-increment: ec-point;
}
.ec-scope__point::before {
	content: "0" counter(ec-point);
	grid-row: span 2;
	color: var(--ec-champagne);
	font-family: var(--ec-font-display);
	font-size: 1.5rem;
	line-height: 1.1;
}
.ec-scope__point strong {
	color: var(--ec-text-light);
	font-weight: 650;
}
.ec-scope__point span {
	color: var(--ec-mute-light);
	font-size: 0.95rem;
	line-height: 1.6;
}

.ec-scope__view.brxe-block {
	position: relative;
	margin: 0;
	--ec-d: 0.15s;
}
.ec-scope__frame.brxe-div {
	--lx: 0.5;
	--ly: 0.47;
	--L: clamp(160px, 19vw, 250px);
	position: relative;
	padding: clamp(1rem, 2.5vw, 1.6rem);
	border-radius: calc(var(--ec-radius) + 8px);
	background: var(--ec-paper);
	box-shadow: 0 0 0 1px rgba(230, 207, 167, 0.22), 0 60px 120px -40px rgba(0, 0, 0, 0.85), 0 0 140px -40px rgba(230, 207, 167, 0.28);
	color: var(--ec-text-dark);
	overflow: hidden;
	isolation: isolate;
	cursor: crosshair;
}
.ec-scope__frame.is-wander {
	animation: ec-scope-wander 15s var(--ec-ease-in-out) infinite;
}
.ec-scope__frame.is-manual {
	animation: none;
}

/* Página de resultados (ilustrativa) */
.ec-scope__frame .ec-serp__bar.brxe-block {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.7rem;
	padding: 0.8rem 1.1rem;
	border-radius: 999px;
	background: var(--ec-ivory);
	box-shadow: inset 0 0 0 1px var(--ec-line-dark);
}
.ec-scope__frame .ec-serp__bar::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: var(--ec-mute-dark);
	-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'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%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'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ec-scope__frame .ec-serp__q {
	font-size: 0.95rem;
	font-weight: 500;
}
.ec-scope__frame .ec-serp__list.brxe-block {
	display: block;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}
.ec-scope__frame .ec-serp__row.brxe-block {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.95rem 0.9rem;
	border-top: 1px solid var(--ec-line-dark);
}
.ec-scope__frame .ec-serp__row:first-child {
	border-top: 0;
}
.ec-scope__frame .ec-serp__url {
	color: var(--ec-mute-dark);
	font-size: 0.75rem;
}
.ec-scope__frame .ec-serp__title {
	color: #33408f;
	font-family: var(--ec-font-display);
	font-size: clamp(1.15rem, 1rem + 0.45vw, 1.4rem);
	line-height: 1.15;
}
.ec-scope__frame .ec-serp__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	color: var(--ec-mute-dark);
	font-size: 0.78rem;
}
.ec-scope__frame .ec-serp__meta b {
	color: var(--ec-text-dark);
	font-weight: 700;
}
.ec-scope__frame .ec-serp__row.is-you {
	border-radius: 14px;
	background: linear-gradient(90deg, rgba(230, 207, 167, 0.4), rgba(255, 244, 223, 0.55));
	box-shadow: inset 3px 0 0 var(--ec-gold);
}
.ec-scope__frame .ec-serp__row.is-you + .ec-serp__row {
	border-top: 0;
}
.ec-scope__frame .ec-serp__row.is-you .ec-serp__title {
	color: var(--ec-ink);
}

/* Todo lo que queda fuera de la lupa se desenfoca y pierde el color */
.ec-scope__blur.brxe-div {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(255, 255, 255, 0.3);
	-webkit-backdrop-filter: blur(3.5px) grayscale(0.8);
	backdrop-filter: blur(3.5px) grayscale(0.8);
	-webkit-mask: radial-gradient(circle calc(var(--L) / 2) at calc(var(--lx) * 100%) calc(var(--ly) * 100%), transparent 97%, #000 100%);
	mask: radial-gradient(circle calc(var(--L) / 2) at calc(var(--lx) * 100%) calc(var(--ly) * 100%), transparent 97%, #000 100%);
	opacity: 0;
	transition: opacity 1s var(--ec-ease);
	pointer-events: none;
}
.ec-scope__frame.is-ready .ec-scope__blur {
	opacity: 1;
}
.ec-scope__lens.brxe-div {
	position: absolute;
	left: calc(var(--lx) * 100% - var(--L) / 2);
	top: calc(var(--ly) * 100% - var(--L) / 2);
	z-index: 2;
	width: var(--L);
	height: var(--L);
	border-radius: 50%;
	background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 38%);
	box-shadow:
		0 0 0 2px var(--ec-champagne),
		0 0 0 9px rgba(13, 11, 18, 0.82),
		0 0 0 10px rgba(230, 207, 167, 0.5),
		0 30px 60px -10px rgba(13, 11, 18, 0.55);
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.6s var(--ec-ease), transform 0.8s var(--ec-ease);
	pointer-events: none;
}
.ec-scope__frame.is-ready .ec-scope__lens {
	opacity: 1;
	transform: none;
}
.ec-scope__lens::before {
	/* Graduación del anillo */
	content: "";
	position: absolute;
	inset: -9px;
	border-radius: 50%;
	background: repeating-conic-gradient(rgba(230, 207, 167, 0.85) 0 1deg, transparent 1deg 10deg);
	-webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
	mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
	animation: ec-spin 40s linear infinite;
}
.ec-scope__lens::after {
	/* Retícula */
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	background:
		linear-gradient(rgba(184, 145, 90, 0.8), rgba(184, 145, 90, 0.8)) center / 1px 100% no-repeat,
		linear-gradient(rgba(184, 145, 90, 0.8), rgba(184, 145, 90, 0.8)) center / 100% 1px no-repeat;
	opacity: 0.7;
}
@keyframes ec-scope-wander {
	0%, 100% { --lx: 0.28; --ly: 0.3; }
	16% { --lx: 0.68; --ly: 0.3; }
	30%, 56% { --lx: 0.5; --ly: 0.47; }
	72% { --lx: 0.72; --ly: 0.66; }
	86% { --lx: 0.36; --ly: 0.84; }
}

.ec-scope__foot {
	margin: 1rem 0 0;
	color: var(--ec-mute-light);
	font-size: 0.75rem;
}
.ec-scope__tag {
	position: absolute;
	top: -1.1rem;
	left: 1.5rem;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.75rem 1.1rem 0.75rem 2.8rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	background: rgba(21, 18, 28, 0.78);
	box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.75);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
	color: var(--ec-text-light);
	font-size: 0.92rem;
	font-weight: 600;
	white-space: nowrap;
}
.ec-scope__tag::before {
	content: "";
	position: absolute;
	left: 0.95rem;
	top: 50%;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	background: var(--ec-champagne);
	-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'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Ccircle cx='10.5' cy='10.5' r='2.2'/%3E%3Cpath d='M15.5 15.5L21 21'/%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'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Ccircle cx='10.5' cy='10.5' r='2.2'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ec-scope__tag span {
	color: var(--ec-champagne);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   E-E-A-T: artículo revisado por un médico
   -------------------------------------------------------------------------- */
.ec-wrap.ec-eeat__wrap.brxe-container {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(3rem, 6vw, 6rem);
}
.ec-eeat__copy .ec-prose {
	margin-top: 1.75rem;
}
.ec-eeat__copy .ec-checks {
	margin-top: 1.75rem;
	--ec-d: 0.1s;
}
.ec-eeat__note {
	margin: 1.75rem 0 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--ec-champagne);
	color: var(--ec-text-light);
	font-family: var(--ec-font-display);
	font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem);
	line-height: 1.2;
	--ec-d: 0.2s;
}

.ec-review.brxe-block {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
	width: min(100%, 520px);
	justify-self: center;
	margin: 0;
	padding: clamp(1.5rem, 3vw, 2.1rem);
	border-radius: calc(var(--ec-radius) + 8px);
	background: var(--ec-paper);
	box-shadow: 0 0 0 1px rgba(230, 207, 167, 0.25), 0 60px 120px -40px rgba(0, 0, 0, 0.85), 0 0 140px -40px rgba(230, 207, 167, 0.3);
	color: var(--ec-text-dark);
	--ec-d: 0.15s;
}
.ec-review__head.brxe-block {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}
.ec-review__type {
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	background: var(--ec-sand);
	color: #7a5a2c;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.ec-review__url {
	color: var(--ec-mute-dark);
	font-size: 0.8rem;
}
.ec-review__title {
	margin: 0;
	color: var(--ec-text-dark);
	font-family: var(--ec-font-display);
	font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem);
	line-height: 1.08;
	text-wrap: balance;
}
.ec-review__byline.brxe-block {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 64px;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 0;
	border-block: 1px solid var(--ec-line-dark);
}
.ec-review__avatar.brxe-div {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6cfa7' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='9' r='3.5'/%3E%3Cpath d='M5.5 19.5c1.2-3 3.6-4.5 6.5-4.5s5.3 1.5 6.5 4.5'/%3E%3C/svg%3E") center / 24px no-repeat,
		var(--ec-ink);
}
.ec-review__who {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	font-size: 0.85rem;
	line-height: 1.35;
}
.ec-review__who strong {
	color: var(--ec-text-dark);
	font-weight: 700;
}
.ec-review__who span {
	color: var(--ec-mute-dark);
}
/* Sello que se estampa al entrar */
.ec-review__seal.brxe-div {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0b12' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 26px no-repeat,
		linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
	box-shadow: 0 0 0 4px var(--ec-paper), 0 0 0 5px rgba(184, 145, 90, 0.5), 0 14px 28px -10px rgba(110, 79, 36, 0.7);
	transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s, opacity 0.4s 0.9s;
}
.ec-review__seal::after {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	border: 1px dashed rgba(184, 145, 90, 0.6);
	animation: ec-spin 24s linear infinite;
}
.ec-js .ec-review:not(.is-in) .ec-review__seal {
	transform: scale(1.8) rotate(-25deg);
	opacity: 0;
}
.ec-review__lines.brxe-block {
	display: grid;
	gap: 0.55rem;
}
.ec-review__line.brxe-div {
	height: 9px;
	border-radius: 9px;
	background: linear-gradient(90deg, var(--ec-sand), var(--ec-ivory));
}
.ec-review__line.is-short {
	width: 62%;
}
.ec-review__bars.brxe-block {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem 1.25rem;
	margin: 0.25rem 0 0;
	padding: 1.1rem;
	border-radius: 18px;
	background: var(--ec-ivory);
	box-shadow: inset 0 0 0 1px var(--ec-line-dark);
	list-style: none;
}
.ec-review__bar.brxe-block {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}
.ec-review__k {
	color: var(--ec-text-dark);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.ec-review__fill.brxe-div {
	position: relative;
	width: 100%;
	height: 8px;
	border-radius: 8px;
	background: var(--ec-sand);
	overflow: hidden;
}
.ec-review__fill::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ec-gold), var(--ec-champagne));
	transform-origin: left;
	transition: transform 1.3s var(--ec-ease);
	transition-delay: calc(0.4s + var(--i, 0) * 0.15s);
}
.ec-js .ec-review:not(.is-in) .ec-review__fill::before {
	transform: scaleX(0);
}
.ec-review__foot {
	margin: 0;
	color: var(--ec-mute-dark);
	font-size: 0.75rem;
}

@media (max-width: 991.98px) {
	.ec-wrap.ec-scope__wrap.brxe-container,
	.ec-wrap.ec-eeat__wrap.brxe-container {
		grid-template-columns: minmax(0, 1fr);
	}
	.ec-scope__view.brxe-block {
		width: 100%;
		max-width: 680px;
		margin-top: 1rem;
	}
	.ec-scope__frame.brxe-div {
		--L: clamp(120px, 30vw, 200px);
	}
}
@media (max-width: 767.98px) {
	.ec-scope__tag {
		left: 1rem;
		padding: 0.6rem 0.85rem 0.6rem 2.4rem;
		font-size: 0.8rem;
	}
	.ec-scope__tag::before {
		left: 0.75rem;
		width: 17px;
		height: 17px;
		margin-top: -8.5px;
	}
	.ec-review__byline.brxe-block {
		grid-template-columns: 40px minmax(0, 1fr) 54px;
		gap: 0.7rem;
	}
	.ec-review__avatar.brxe-div {
		width: 40px;
		height: 40px;
	}
	.ec-review__seal.brxe-div {
		width: 54px;
		height: 54px;
		background-size: 22px, auto;
	}
	.ec-review__bars.brxe-block {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}
	.ec-noise__item {
		font-size: 0.9rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ec-scope__frame.is-wander {
		animation: none;
	}
	.ec-scope__lens::before,
	.ec-review__seal::after {
		animation: none;
	}
}

/* ==========================================================================
   Clínicas capilares: preguntas del postoperatorio, 12 meses de seguimiento y escala Norwood
   ========================================================================== */
.ec-ico--pin { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.9-6.5-11a6.5 6.5 0 0113 0c0 5.1-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E"); }
.ec-ico--hair { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5h17'/%3E%3Cpath d='M7.5 20.5c0-5-2.5-8.5-2-15'/%3E%3Cpath d='M12 20.5c0-6 .5-10.5 2-16'/%3E%3Cpath d='M16.5 20.5c0-4.5 2-8 3-12'/%3E%3C/svg%3E"); }
.ec-ico--repair { --_ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 11-2.4-5.7'/%3E%3Cpath d='M20 4v4.5h-4.5'/%3E%3Cpath d='M8.8 12.2l2.2 2.2 4.2-4.3'/%3E%3C/svg%3E"); }

/* Las preguntas que una clínica lejana no puede responder */
.ec-asks.brxe-block {
	display: grid;
	gap: 0.55rem;
	width: 100%;
	margin: 0.25rem 0;
	padding: 0;
	list-style: none;
}
.ec-asks__item {
	position: relative;
	padding: 0.85rem 1.1rem 0.85rem 3.1rem;
	border-radius: 18px 18px 18px 4px;
	background: var(--ec-paper);
	box-shadow: inset 0 0 0 1px rgba(184, 145, 90, 0.3);
	color: var(--ec-text-dark);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.4;
	transition: transform 0.5s var(--ec-ease), box-shadow 0.5s var(--ec-ease);
}
.ec-asks__item::before {
	content: "?";
	position: absolute;
	left: 0.95rem;
	top: 50%;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
	color: var(--ec-ink);
	font-family: var(--ec-font-display);
	font-size: 1.15rem;
	line-height: 1;
}
.ec-asks__item:hover {
	transform: translateX(4px);
	box-shadow: inset 0 0 0 1px rgba(184, 145, 90, 0.6), var(--ec-shadow-soft);
}

/* --------------------------------------------------------------------------
   Los 12 meses después del injerto: el hilo dorado se dibuja al entrar
   -------------------------------------------------------------------------- */
.ec-care.brxe-block {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 0;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border: 1px solid var(--ec-line-light);
	border-radius: calc(var(--ec-radius) + 6px);
	background:
		radial-gradient(80% 60% at 100% 0%, rgba(230, 207, 167, 0.09), transparent 60%),
		rgba(255, 255, 255, 0.03);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
	--ec-d: 0.15s;
}
.ec-care__head.brxe-block {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}
.ec-care__title {
	color: var(--ec-text-light);
	font-family: var(--ec-font-display);
	font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.6rem);
	line-height: 1.1;
}
.ec-care__legend.brxe-block {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	width: auto;
}
.ec-care__key {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--ec-mute-light);
	font-size: 0.75rem;
}
.ec-care__key::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: rgba(246, 241, 234, 0.18);
}
.ec-care__key.is-you::before {
	background: linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
}
.ec-care__list.brxe-block {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ec-care__list::before,
.ec-care__list::after {
	/* Raíl y progreso dorado */
	content: "";
	position: absolute;
	top: 1.6rem;
	bottom: 1.6rem;
	left: 7px;
	width: 2px;
	border-radius: 2px;
	background: rgba(246, 241, 234, 0.1);
}
.ec-care__list::after {
	background: linear-gradient(180deg, var(--ec-champagne), var(--ec-gold));
	box-shadow: 0 0 14px rgba(230, 207, 167, 0.5);
	transform-origin: top;
	transition: transform 2.4s var(--ec-ease-in-out) 0.35s;
}
.ec-js .ec-care:not(.is-in) .ec-care__list::after {
	transform: scaleY(0);
}
.ec-care__row.brxe-block {
	--r: 0;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 0.75rem;
	padding: 0.8rem 0 0.8rem 2.1rem;
	border-top: 1px solid var(--ec-line-light);
	transition: opacity 0.7s var(--ec-ease), transform 0.8s var(--ec-ease);
	transition-delay: calc(0.3s + var(--r) * 0.38s);
}
.ec-care__row:first-child {
	border-top: 0;
}
.ec-care__row:nth-child(2) { --r: 1; }
.ec-care__row:nth-child(3) { --r: 2; }
.ec-care__row:nth-child(4) { --r: 3; }
.ec-care__row:nth-child(5) { --r: 4; }
.ec-care__row:nth-child(6) { --r: 5; }
.ec-care__row::before {
	/* Hito: se enciende cuando el hilo lo alcanza */
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border-radius: 50%;
	background: var(--ec-ink);
	box-shadow: inset 0 0 0 2px rgba(230, 207, 167, 0.5);
	transition: background-color 0.5s, box-shadow 0.5s;
	transition-delay: calc(0.6s + var(--r) * 0.38s);
}
.ec-care.is-in .ec-care__row::before {
	background: var(--ec-champagne);
	box-shadow: 0 0 0 4px rgba(230, 207, 167, 0.18), 0 0 16px rgba(230, 207, 167, 0.6);
}
.ec-js .ec-care:not(.is-in) .ec-care__row {
	opacity: 0;
	transform: translateX(-12px);
}
.ec-care__when.brxe-block {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}
.ec-care__t {
	color: var(--ec-champagne);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.ec-care__what {
	color: var(--ec-text-light);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
}
.ec-care__there,
.ec-care__here {
	position: relative;
	display: block;
	padding: 0.6rem 0.75rem 0.6rem 2.1rem;
	border-radius: 12px;
	font-size: 0.82rem;
	line-height: 1.35;
}
.ec-care__there::before,
.ec-care__here::before {
	content: "";
	position: absolute;
	left: 0.7rem;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border-radius: 50%;
}
.ec-care__there {
	background: rgba(255, 255, 255, 0.03);
	box-shadow: inset 0 0 0 1px var(--ec-line-light);
	color: var(--ec-mute-light);
}
.ec-care__there::before {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 9px no-repeat,
		rgba(180, 80, 95, 0.75);
}
.ec-care__here {
	background: rgba(230, 207, 167, 0.1);
	box-shadow: inset 0 0 0 1px rgba(230, 207, 167, 0.3);
	color: var(--ec-text-light);
	font-weight: 600;
}
.ec-care__here::before,
.ec-care__row.is-same .ec-care__there::before {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0b12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 10px no-repeat,
		linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
}
.ec-care__row.is-same .ec-care__there::before {
	opacity: 0.6;
}
/* Etiqueta de columna: solo la leen los lectores de pantalla en escritorio; se ve en móvil */
.ec-care__k {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.ec-care__foot {
	margin: 0;
	color: var(--ec-mute-light);
	font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Escala Norwood: cuero cabelludo visto desde arriba; cada punto es un folículo
   -------------------------------------------------------------------------- */
@property --nw-fw { syntax: "<percentage>"; inherits: true; initial-value: 32%; }
@property --nw-fd { syntax: "<percentage>"; inherits: true; initial-value: 9%; }
@property --nw-tw { syntax: "<percentage>"; inherits: true; initial-value: 15%; }
@property --nw-th { syntax: "<percentage>"; inherits: true; initial-value: 17%; }
@property --nw-cw { syntax: "<percentage>"; inherits: true; initial-value: 0.1%; }
@property --nw-ch { syntax: "<percentage>"; inherits: true; initial-value: 0.1%; }

.ec-wrap.ec-nw__wrap.brxe-container {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(3rem, 6vw, 6rem);
}
.ec-nw__copy .ec-prose {
	margin-top: 1.75rem;
}
.ec-nw__view.brxe-block {
	/* Grado 3 por defecto (sin JS) */
	--nw-fw: 32%;
	--nw-fd: 9%;
	--nw-tw: 15%;
	--nw-th: 17%;
	--nw-cw: 0.1%;
	--nw-ch: 0.1%;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	grid-template-areas:
		"stage tabs"
		"stage panels"
		"foot foot";
	grid-template-rows: auto 1fr auto;
	align-items: center;
	gap: 1.25rem clamp(1.5rem, 3vw, 2.5rem);
	margin: 0;
	padding: 3.5rem clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
	border: 1px solid var(--ec-line-light);
	border-radius: calc(var(--ec-radius) + 8px);
	background:
		radial-gradient(55% 60% at 22% 45%, rgba(230, 207, 167, 0.12), transparent 70%),
		radial-gradient(60% 50% at 100% 100%, rgba(212, 107, 202, 0.1), transparent 70%),
		rgba(255, 255, 255, 0.03);
	box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.85);
	/* Sustituye la transición de .ec-reveal: añade las variables del dibujo */
	transition: --nw-fw 1.3s var(--ec-ease), --nw-fd 1.3s var(--ec-ease), --nw-tw 1.3s var(--ec-ease), --nw-th 1.3s var(--ec-ease), --nw-cw 1.3s var(--ec-ease), --nw-ch 1.3s var(--ec-ease), opacity 1s var(--ec-ease), transform 1.1s var(--ec-ease);
}
.ec-nw__view[data-stage="2"] { --nw-fw: 26%; --nw-fd: 4%; --nw-tw: 10%; --nw-th: 9%; --nw-cw: 0.1%; --nw-ch: 0.1%; }
.ec-nw__view[data-stage="3"] { --nw-fw: 32%; --nw-fd: 9%; --nw-tw: 15%; --nw-th: 17%; --nw-cw: 0.1%; --nw-ch: 0.1%; }
.ec-nw__view[data-stage="5"] { --nw-fw: 36%; --nw-fd: 22%; --nw-tw: 18%; --nw-th: 26%; --nw-cw: 20%; --nw-ch: 16%; }
.ec-nw__view[data-stage="6"] { --nw-fw: 40%; --nw-fd: 58%; --nw-tw: 18%; --nw-th: 30%; --nw-cw: 30%; --nw-ch: 26%; }

.ec-nw__stage.brxe-block {
	grid-area: stage;
	position: relative;
	display: grid;
	place-items: center;
	padding: 1.75rem 0;
}
.ec-nw__scalp.brxe-block {
	position: relative;
	width: min(100%, 240px);
	aspect-ratio: 4 / 5;
	border-radius: 50% 50% 48% 48% / 46% 46% 54% 54%;
	background: radial-gradient(70% 60% at 50% 38%, #f4e9d9 0%, #e2cdb0 55%, #bf9f7b 100%);
	box-shadow:
		inset 0 -14px 34px rgba(90, 60, 30, 0.35),
		0 0 0 1px rgba(230, 207, 167, 0.3),
		0 40px 80px -30px rgba(0, 0, 0, 0.85),
		0 0 90px -20px rgba(230, 207, 167, 0.35);
	isolation: isolate;
}
.ec-nw__scalp::before {
	/* Orejas */
	content: "";
	position: absolute;
	inset: 36% -7% 40%;
	z-index: -1;
	background:
		radial-gradient(closest-side, #d6bc99 90%, transparent 100%) left / 16% 100% no-repeat,
		radial-gradient(closest-side, #d6bc99 90%, transparent 100%) right / 16% 100% no-repeat;
}
.ec-nw__scalp::after {
	/* Barrido de escáner */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg, transparent 0 42%, rgba(255, 244, 223, 0.55) 50%, transparent 58% 100%) 0 0 / 100% 250% no-repeat;
	mix-blend-mode: soft-light;
	animation: ec-nw-scan 4.5s var(--ec-ease-in-out) infinite;
	pointer-events: none;
}
@keyframes ec-nw-scan {
	from { background-position: 0 100%; }
	to { background-position: 0 0%; }
}
.ec-nw__hair.brxe-div {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	/* Mechones que nacen del remolino de la coronilla, con un brillo suave */
	background:
		radial-gradient(55% 40% at 36% 28%, rgba(255, 236, 210, 0.2), transparent 70%),
		radial-gradient(circle at 50% 62%, #2a1f24 0 4%, rgba(42, 31, 36, 0.85) 9%, transparent 24%),
		repeating-conic-gradient(from 0deg at 50% 62%, #2a1f24 0deg 1.4deg, #4a383b 1.4deg 2.6deg, #33262a 2.6deg 4deg);
	-webkit-mask:
		radial-gradient(var(--nw-fw) var(--nw-fd) at 50% 0%, transparent 86%, #000 100%),
		radial-gradient(var(--nw-tw) var(--nw-th) at 24% 4%, transparent 86%, #000 100%),
		radial-gradient(var(--nw-tw) var(--nw-th) at 76% 4%, transparent 86%, #000 100%),
		radial-gradient(var(--nw-cw) var(--nw-ch) at 50% 62%, transparent 78%, #000 100%);
	-webkit-mask-composite: source-in;
	mask:
		radial-gradient(var(--nw-fw) var(--nw-fd) at 50% 0%, transparent 86%, #000 100%),
		radial-gradient(var(--nw-tw) var(--nw-th) at 24% 4%, transparent 86%, #000 100%),
		radial-gradient(var(--nw-tw) var(--nw-th) at 76% 4%, transparent 86%, #000 100%),
		radial-gradient(var(--nw-cw) var(--nw-ch) at 50% 62%, transparent 78%, #000 100%);
	mask-composite: intersect;
}
.ec-nw__label {
	position: absolute;
	left: 50%;
	color: var(--ec-mute-light);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	white-space: nowrap;
	transform: translateX(-50%);
}
.ec-nw__label--front { top: -1.6rem; }
.ec-nw__label--crown { bottom: -1.6rem; }
.ec-nw__num {
	position: absolute;
	right: 4%;
	bottom: 10%;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--ec-ink);
	box-shadow: 0 0 0 1px rgba(230, 207, 167, 0.5), 0 0 0 6px rgba(13, 11, 18, 0.6), 0 18px 34px -12px rgba(0, 0, 0, 0.8);
	color: var(--ec-champagne);
	font-family: var(--ec-font-display);
	font-size: 1.6rem;
	line-height: 1;
}

/* Pestañas (las crea el JS) */
.ec-nw__tabs {
	grid-area: tabs;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-self: end;
}
.ec-nw__tab {
	position: relative;
	min-width: 56px;
	min-height: 44px;
	padding: 0 1rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	box-shadow: inset 0 0 0 1px var(--ec-line-light);
	color: var(--ec-text-light);
	font: 650 0.92rem/1 var(--ec-font-body);
	cursor: pointer;
	overflow: hidden;
	transition: background-color 0.4s, box-shadow 0.4s, color 0.4s;
}
.ec-nw__tab:hover {
	box-shadow: inset 0 0 0 1px rgba(230, 207, 167, 0.55);
}
.ec-nw__tab:focus-visible {
	outline: 2px solid var(--ec-champagne);
	outline-offset: 3px;
}
.ec-nw__tab.is-on {
	background: linear-gradient(140deg, var(--ec-champagne), var(--ec-gold));
	box-shadow: 0 10px 26px -10px rgba(230, 207, 167, 0.7);
	color: var(--ec-ink);
}
.ec-nw__tab::after {
	/* Cuenta atrás del pase automático */
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: rgba(13, 11, 18, 0.35);
	transform: scaleX(0);
	transform-origin: left;
}
.ec-nw__view.is-auto .ec-nw__tab.is-on::after {
	animation: ec-nw-count 5s linear both;
}
@keyframes ec-nw-count {
	to { transform: scaleX(1); }
}

.ec-nw__panels.brxe-block {
	grid-area: panels;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-self: start;
}
.ec-nw__panel.brxe-block {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}
/* Con JS los grados se apilan en la misma celda y solo se ve el activo (sin saltos de altura) */
.ec-nw__view.is-ready .ec-nw__panels.brxe-block {
	display: grid;
}
.ec-nw__view.is-ready .ec-nw__panel.brxe-block {
	grid-area: 1 / 1;
	transition: opacity 0.6s var(--ec-ease), transform 0.7s var(--ec-ease), visibility 0.6s;
}
.ec-nw__view.is-ready .ec-nw__panel:not(.is-on) {
	visibility: hidden;
	opacity: 0;
	transform: translateY(10px);
}
.ec-nw__name {
	margin: 0;
	color: var(--ec-text-light);
	font-family: var(--ec-font-display);
	font-size: clamp(1.5rem, 1.25rem + 0.7vw, 1.9rem);
	line-height: 1.1;
}
.ec-nw__rows.brxe-block {
	display: grid;
	gap: 0.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ec-nw__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3rem;
	padding-top: 0.8rem;
	border-top: 1px solid var(--ec-line-light);
	color: var(--ec-mute-light);
	font-size: 0.95rem;
	line-height: 1.55;
}
.ec-nw__k {
	color: var(--ec-champagne);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.ec-nw__q {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.95rem;
	border-radius: 999px;
	background: rgba(230, 207, 167, 0.1);
	box-shadow: inset 0 0 0 1px rgba(230, 207, 167, 0.35);
	color: var(--ec-text-light);
	font-size: 0.88rem;
}
.ec-nw__q::before {
	content: "";
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	background: var(--ec-champagne);
	-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.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%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.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ec-nw__tag::before {
	-webkit-mask-image: 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'%3E%3Cpath d='M3.5 20.5h17M7.5 20.5c0-5-2.5-8.5-2-15M12 20.5c0-6 .5-10.5 2-16M16.5 20.5c0-4.5 2-8 3-12'/%3E%3C/svg%3E");
	mask-image: 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'%3E%3Cpath d='M3.5 20.5h17M7.5 20.5c0-5-2.5-8.5-2-15M12 20.5c0-6 .5-10.5 2-16M16.5 20.5c0-4.5 2-8 3-12'/%3E%3C/svg%3E");
}
.ec-nw__foot {
	grid-area: foot;
	margin: 0;
	color: var(--ec-mute-light);
	font-size: 0.75rem;
}

@media (max-width: 991.98px) {
	.ec-wrap.ec-nw__wrap.brxe-container {
		grid-template-columns: minmax(0, 1fr);
	}
	.ec-care.brxe-block,
	.ec-nw__view.brxe-block {
		width: 100%;
		max-width: 680px;
	}
}
@media (max-width: 767.98px) {
	.ec-care__row.brxe-block {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0.5rem;
		padding-left: 1.9rem;
	}
	.ec-care__when.brxe-block {
		grid-column: 1 / -1;
	}
	.ec-care__there,
	.ec-care__here {
		align-self: stretch;
		padding: 0.55rem 0.6rem 0.55rem 1.9rem;
		font-size: 0.78rem;
	}
	.ec-care__there::before,
	.ec-care__here::before {
		left: 0.55rem;
		top: 0.7rem;
		margin-top: 0;
	}
	.ec-care__k {
		position: static;
		display: block;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
		margin-bottom: 0.15rem;
		color: var(--ec-champagne);
		font-size: 0.6rem;
		font-weight: 700;
		letter-spacing: 0.14em;
		text-transform: uppercase;
	}
	.ec-care__there .ec-care__k {
		color: var(--ec-mute-light);
	}
	.ec-care__row.brxe-block {
		transition-delay: calc(0.2s + var(--r) * 0.25s);
	}
	.ec-nw__view.brxe-block {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"stage"
			"tabs"
			"panels"
			"foot";
		grid-template-rows: auto;
		padding-top: 3.75rem;
	}
	.ec-nw__stage.brxe-block {
		padding: 1.5rem 0 1.25rem;
	}
	.ec-nw__scalp.brxe-block {
		width: min(62%, 200px);
	}
	.ec-nw__num {
		right: 8%;
		width: 56px;
		height: 56px;
		font-size: 1.4rem;
	}
	.ec-nw__tabs {
		justify-content: center;
	}
	.ec-nw__tab {
		flex: 1 1 0;
		min-width: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ec-nw__scalp::after {
		animation: none;
		opacity: 0;
	}
	.ec-nw__view.brxe-block {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
	.ec-shero__search.brxe-block { left: -10%; }
	.ec-shero__chip { right: -6%; }
}
@media (max-width: 991.98px) {
	.ec-wrap.ec-shero__wrap.brxe-container,
	.ec-wrap.ec-diag__wrap.brxe-container:has(> .ec-diag__copy),
	.ec-wrap.ec-pillars__wrap.brxe-container,
	.ec-wrap.ec-local__wrap.brxe-container,
	.ec-wrap.ec-why__wrap.brxe-container,
	.ec-wrap.ec-band__wrap.brxe-container,
	.ec-shift__close.brxe-block {
		grid-template-columns: minmax(0, 1fr);
	}
	.ec-shero__title.brxe-heading {
		max-width: 16ch;
	}
	.ec-shero__media.brxe-block {
		width: min(100%, 400px);
		margin: 1rem 0 2.5rem;
	}
	.ec-shift__grid.brxe-block {
		grid-template-columns: minmax(0, 1fr);
	}
	.ec-shift__arrow.brxe-div {
		justify-self: center;
		transform: rotate(90deg);
	}
	.ec-agenda.brxe-block,
	.ec-maps.brxe-block {
		width: 100%;
		max-width: 620px;
	}
	.ec-pillars__aside.brxe-block {
		position: static;
	}
	.ec-treat__grid.brxe-block {
		grid-template-columns: minmax(0, 1fr);
		max-width: 620px;
		margin-inline: auto;
	}
	.ec-treat__card:nth-child(n) { --ec-d: 0s; }
	.ec-band__dots.brxe-div {
		display: none;
	}
	.ec-why__media.brxe-block {
		width: min(100%, 400px);
		margin-bottom: 1rem;
	}
	.ec-pacts.brxe-block {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767.98px) {
	.ec-shero__facts.brxe-block {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}
	.ec-shero__fact {
		flex-direction: row;
		align-items: baseline;
		gap: 0.6rem;
		padding: 0;
		border-left: 0;
	}
	.ec-shero__actions.brxe-block,
	.ec-shero__actions .ec-btn,
	.ec-band__actions.brxe-block,
	.ec-band__actions .ec-btn {
		width: 100%;
	}
	.ec-band__actions.brxe-block {
		align-items: center;
	}
	.ec-shero__media.brxe-block {
		width: min(80%, 330px);
		justify-self: center;
		margin-bottom: 4.5rem;
	}
	/* El buscador baja bajo la foto y ocupa el ancho; la chincheta sube a la esquina */
	.ec-shero__search.brxe-block {
		left: 50%;
		bottom: -4rem;
		width: min(124%, 360px);
		padding: 0.8rem;
		transform: translateX(-50%);
		animation: ec-float-in 1s var(--ec-ease) 0.9s both;
	}
	.ec-shero__chip {
		top: -1.25rem;
		right: -12%;
		padding: 0.6rem 0.85rem 0.6rem 2.4rem;
		font-size: 0.8rem;
	}
	.ec-shero__chip::before {
		left: 0.75rem;
		width: 18px;
		height: 18px;
		margin-top: -9px;
	}
	.ec-agenda__grid.brxe-block,
	.ec-agenda__col.brxe-block {
		gap: 0.35rem;
	}
	.ec-agenda__slot {
		min-height: 42px;
		padding: 0.2rem;
		border-radius: 9px;
		font-size: 0.66rem;
	}
	.ec-diag__symptoms.brxe-block {
		grid-template-columns: minmax(0, 1fr);
	}
	.ec-symptom:nth-child(n) { --ec-d: 0s; }
	.ec-pillar.brxe-block {
		position: relative;
		top: 0;
	}
	.ec-maps.brxe-block {
		--_row: 66px;
	}
	.ec-maps__row.brxe-block {
		padding: 0 1rem;
	}
	.ec-maps__row.is-you::after {
		right: 0.9rem;
		width: 34px;
		height: 34px;
		margin-top: -17px;
		font-size: 0.9rem;
	}
	.ec-maps__radius.brxe-div {
		width: 170px;
		height: 170px;
		margin: -85px 0 0 -85px;
	}
	.ec-why__badge {
		left: -0.5rem;
		bottom: 1.25rem;
	}
	.ec-why__frame.brxe-div {
		inset: 1rem -0.9rem -0.9rem 1rem;
	}
	.ec-pacts.brxe-block {
		grid-template-columns: minmax(0, 1fr);
	}
	.ec-why .ec-specs.brxe-block {
		flex-direction: column;
		align-items: flex-start;
	}
}
@media (max-width: 420px) {
	.ec-shero__chip {
		right: -10%;
	}
}
