/*
 * Recuperación Emocional — estilos del tema.
 * Los colores, fuentes y tamaños base viven en theme.json.
 */

/* ---------------------------------------------------------------
 * 1. Variables, íconos y base
 * ------------------------------------------------------------ */
:root {
	--re-gutter: var(--wp--custom--gutter, clamp(20px, 4vw, 56px));
	--re-seccion: var(--wp--custom--seccion, clamp(96px, 10vw, 160px));
	--re-curva: cubic-bezier(.2, .7, .2, 1);
	--re-linea: rgba(34, 48, 42, .16);
	--re-linea-media: rgba(34, 48, 42, .25);
	--re-linea-fuerte: rgba(34, 48, 42, .35);
	--re-lino: #F6F0E8;
	--re-tinta: #22302A;
	--re-sec: #5C6660;
	--re-sec-salvia: #4F5953;
	--re-salvia: #E5EAE0;
	--re-arena: #EFE6D9;
	--re-vela: #BF5F38;
	--re-vela-texto: #A34E2C;
	--re-wa: #2E6B4E;
	--re-wa-hover: #245A41;
	--re-serif: 'Fraunces', Georgia, serif;
	--re-mono: 'DM Mono', ui-monospace, monospace;

	--re-ico-tel: 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.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E");
	--re-ico-correo: 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.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
	--re-ico-wa: 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.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20.5l1.6-5.2A8.5 8.5 0 1 1 21 11.5z'/%3E%3Ccircle cx='8.5' cy='11.5' r='0.7' fill='black'/%3E%3Ccircle cx='12.3' cy='11.5' r='0.7' fill='black'/%3E%3Ccircle cx='16.1' cy='11.5' r='0.7' fill='black'/%3E%3C/svg%3E");
	--re-ico-diagonal: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E");
	--re-ico-abajo: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E");
	--re-ico-arriba: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E");
}

html,
body {
	overflow-x: clip;
}

/* Las anclas llegan con aire y sin quedar bajo la cabecera fija ni la barra de WordPress (tema.js mide la cabecera). */
html {
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--re-alto-cabecera, 0px));
}

:where([id]) {
	scroll-margin-top: clamp(24px, 3vw, 40px);
}

/* Dentro de la página el navegador suaviza la salida y la llegada, también con teclado.
   tema.js agrega «re-suave» después de la carga: al llegar desde otra página a /#sobre
   el salto es directo y no una animación larga que se corta o termina en otro lugar. */
@media (prefers-reduced-motion: no-preference) {
	html.re-suave {
		scroll-behavior: smooth;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-optical-sizing: auto;
}

/* El tema maneja sus propios espacios: sin márgenes heredados entre bloques. */
.wp-site-blocks > * {
	margin-block: 0;
}

body [class*=" re-"].is-layout-flow > *,
body [class*=" re-"].is-layout-constrained > *,
body .re-main > * {
	margin-block: 0;
}

h1, h2, h3, h4, h5, h6 {
	overflow-wrap: break-word;
	font-variation-settings: normal;
}

/*
 * Sin viudas: la última línea nunca queda con una sola palabra.
 * En los textos corridos lo garantiza también inc/tipografia.php con &nbsp;.
 */
h1, h2, h3, h4, h5, h6,
p, li, dt, dd, blockquote, figcaption, summary, cite {
	text-wrap: pretty;
}

/* Navegadores sin «pretty»: los títulos se equilibran. */
@supports not (text-wrap: pretty) {
	h1, h2, h3, h4, h5, h6 {
		text-wrap: balance;
	}
}

img {
	max-width: 100%;
	height: auto;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

:where(a, button, summary, input, [tabindex]):focus-visible {
	outline: 2px solid var(--re-tinta);
	outline-offset: 3px;
	border-radius: 2px;
}

:where(.re-barra-contacto, .re-cta-oscuro, .re-banda) :focus-visible {
	outline-color: var(--re-lino);
}

.re-mono,
.is-style-etiqueta {
	font-family: var(--re-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.6;
}

.is-style-etiqueta {
	color: var(--re-sec);
}

.re-fondo-salvia .is-style-etiqueta {
	color: var(--re-sec-salvia);
}

.is-style-etiqueta a {
	color: inherit;
}

.re-texto-secundario {
	color: var(--re-sec);
}

.re-fondo-salvia {
	background: var(--re-salvia);
}

.re-fondo-arena {
	background: var(--re-arena);
}

.re-seccion {
	padding: var(--re-seccion) var(--re-gutter);
}

/* Etiqueta con punto pulsante. */
.is-style-en-linea {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--re-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--re-wa);
}

.is-style-en-linea::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--re-wa);
	flex: none;
	animation: re-pulso 2.4s ease-in-out infinite;
}

/* Subrayado que se dibuja al pasar el cursor. */
.re-enlace-linea a,
.re-nav .wp-block-navigation-item__content {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	color: var(--re-tinta);
	text-decoration: none;
}

.re-enlace-linea a::after,
.re-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .5s var(--re-curva);
}

.re-enlace-linea a:hover::after,
.re-enlace-linea a:focus-visible::after,
.re-nav .wp-block-navigation-item__content:hover::after,
.re-nav .wp-block-navigation-item__content:focus-visible::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Enlace que cubre toda la tarjeta o fila. */
.re-programa__titulo a::after,
.re-gran-cta__texto a::after,
.re-adelanto__titulo a::after,
.re-destacado__titulo a::after,
.re-fila__titulo a::after,
.re-relacionado__titulo a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ---------------------------------------------------------------
 * 2. Botones
 * ------------------------------------------------------------ */
.wp-block-buttons {
	gap: 8px;
}

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	text-decoration: none;
	transition: background-color .4s, color .4s, border-color .4s, transform .35s, box-shadow .35s;
}

/* Ícono pintado con máscara: toma el color del texto. */
.is-style-whatsapp .wp-block-button__link::before,
.is-style-whatsapp-grande .wp-block-button__link::before,
.re-icono-telefono a::before,
.re-icono-correo a::before,
.re-icono-telefono .wp-block-button__link::before,
.re-icono-correo .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--re-ico-wa) center / contain no-repeat;
	mask: var(--re-ico-wa) center / contain no-repeat;
}

.re-icono-telefono a::before,
.re-icono-telefono .wp-block-button__link::before {
	-webkit-mask-image: var(--re-ico-tel);
	mask-image: var(--re-ico-tel);
	width: 16px;
	height: 16px;
}

.re-icono-correo a::before,
.re-icono-correo .wp-block-button__link::before {
	-webkit-mask-image: var(--re-ico-correo);
	mask-image: var(--re-ico-correo);
	width: 16px;
	height: 16px;
}

/* WhatsApp */
.is-style-whatsapp .wp-block-button__link {
	min-height: 48px;
	padding: 0 22px 0 16px;
	background: var(--re-wa);
	color: #fff;
	font-size: 15px;
	letter-spacing: .01em;
}

.is-style-whatsapp .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--re-wa-hover);
	color: #fff;
	transform: translateY(-2px);
}

/* WhatsApp grande (tarjeta de la portada) */
.is-style-whatsapp-grande {
	width: 100%;
}

.is-style-whatsapp-grande .wp-block-button__link {
	position: relative;
	display: block;
	width: 100%;
	min-height: 76px;
	padding: 14px 76px 14px 66px;
	background: var(--re-wa);
	color: #fff;
	text-align: left;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
}

.is-style-whatsapp-grande .wp-block-button__link strong {
	font-size: 19px;
	font-weight: 600;
}

.is-style-whatsapp-grande .wp-block-button__link::before {
	position: absolute;
	left: 24px;
	top: 50%;
	width: 28px;
	height: 28px;
	transform: translateY(-50%);
}

.is-style-whatsapp-grande .wp-block-button__link::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 52px;
	height: 52px;
	margin-top: -26px;
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6B4E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
	transition: transform .5s var(--re-curva);
}

.is-style-whatsapp-grande .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--re-wa-hover);
	color: #fff;
	transform: translateY(-2px);
}

.is-style-whatsapp-grande .wp-block-button__link:is(:hover, :focus-visible)::after {
	transform: translateX(4px);
}

/* Contorno */
.is-style-contorno .wp-block-button__link {
	min-height: 48px;
	padding: 0 20px;
	background: transparent;
	color: var(--re-tinta);
	border: 1px solid var(--re-linea-fuerte);
	font-size: 15px;
}

.is-style-contorno .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--re-vela-texto);
	border-color: var(--re-vela-texto);
	color: var(--re-lino);
}

/* Punto pulsante antes del texto (botón «Hablemos»). */
.re-con-punto .wp-block-button__link::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--re-vela);
	animation: re-pulso 2.4s ease-in-out infinite;
}

.re-con-punto .wp-block-button__link {
	min-height: 44px;
}

.re-con-punto .wp-block-button__link:is(:hover, :focus-visible)::before {
	background: var(--re-lino);
}

/* Claro y oscuro con círculo de flecha */
.is-style-claro .wp-block-button__link,
.is-style-oscuro .wp-block-button__link {
	gap: 14px;
	min-height: 60px;
	padding: 0 10px 0 28px;
}

.is-style-claro .wp-block-button__link {
	background: var(--re-lino);
	color: var(--re-tinta);
}

.is-style-oscuro .wp-block-button__link {
	background: var(--re-tinta);
	color: var(--re-lino);
}

.is-style-claro .wp-block-button__link::after,
.is-style-oscuro .wp-block-button__link::after {
	content: "";
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 50%;
	background: var(--re-vela) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F0E8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: transform .5s var(--re-curva);
}

.is-style-claro .wp-block-button__link:is(:hover, :focus-visible),
.is-style-oscuro .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--re-vela-texto);
	color: var(--re-lino);
}

.is-style-claro .wp-block-button__link:is(:hover, :focus-visible)::after,
.is-style-oscuro .wp-block-button__link:is(:hover, :focus-visible)::after {
	transform: rotate(-45deg);
}

/* Chip */
.is-style-chip .wp-block-button__link {
	min-height: 44px;
	padding: 0 18px;
	background: transparent;
	color: var(--re-tinta);
	border: 1px solid var(--re-linea-media);
	font-family: var(--re-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.is-style-chip .wp-block-button__link:is(:hover, :focus-visible) {
	background: transparent;
	color: var(--re-tinta);
	border-color: var(--re-tinta);
}

/* ---------------------------------------------------------------
 * 3. Barra de contacto, cabecera, pie y botón flotante
 * ------------------------------------------------------------ */
.re-barra-contacto {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 24px;
	padding: 0 var(--re-gutter);
	background: var(--re-tinta);
	color: var(--re-lino);
	font-size: 14px;
}

.re-barra-contacto .is-style-etiqueta {
	padding: 12px 0;
	font-size: 12px;
	color: var(--re-lino);
}

.re-barra-contacto__enlaces {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 28px;
}

.re-barra-contacto a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--re-lino);
	text-decoration: none;
}

.re-barra-contacto a:hover {
	color: #fff;
	text-decoration: underline;
}

.re-barra-contacto a::before {
	width: 15px;
	height: 15px;
}

.re-barra-contacto__wa a {
	color: var(--wp--preset--color--durazno);
	font-weight: 500;
}

.re-cabecera {
	--re-cabecera-aire: 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding: var(--re-cabecera-aire) var(--re-gutter);
}

/*
 * Cabecera fija: el menú está siempre a mano. Al bajar, tema.js añade «es-fija»:
 * fondo de lino, una línea y menos aire. El margen inferior devuelve el aire que
 * se quita, así el contenido no salta. La franja de ese margen deja pasar los clics.
 */
.re-parte-cabecera {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	display: flow-root;
	pointer-events: none;
}

.re-parte-cabecera .re-cabecera {
	pointer-events: auto;
	transition: padding .45s var(--re-curva), margin .45s var(--re-curva), background-color .45s ease, box-shadow .45s ease;
}

.re-parte-cabecera.es-fija .re-cabecera {
	padding-top: 12px;
	padding-bottom: 12px;
	margin-bottom: calc(2 * (var(--re-cabecera-aire) - 12px));
	background-color: var(--re-lino);
	box-shadow: 0 1px 0 var(--re-linea), 0 18px 36px -30px rgba(34, 48, 42, .5);
}

/* El menú compartido no crea caja propia dentro de la cabecera. */
.re-parte-menu {
	display: contents;
}

.re-marca {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	color: var(--re-tinta);
	text-decoration: none;
}

.re-marca:hover {
	color: var(--re-tinta);
}

.re-marca__logo {
	flex: none;
}

.re-marca__logo--icono {
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgb(34 48 42 / .14);
}

.re-marca__nombre {
	font-family: var(--re-serif);
	font-size: 24px;
	font-weight: 350;
	letter-spacing: -.01em;
	line-height: 1;
}

.re-cabecera__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 24px;
}

.re-nav,
.re-nav .wp-block-navigation__container {
	gap: 4px 28px;
}

.re-nav .wp-block-navigation-item {
	font-family: var(--re-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/*
 * Página o sección actual: color de vela y la línea ya dibujada, para que no
 * dependa solo del color. «Pérdidas» se marca cuando se está en una de sus
 * páginas. En la portada, tema.js mueve la marca según la sección a la vista.
 */
.re-nav .current-menu-item > .wp-block-navigation-item__content,
.re-nav .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--re-vela-texto);
}

.re-nav .current-menu-item > .wp-block-navigation-item__content::after,
.re-nav .current-menu-ancestor > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Submenú «Pérdidas»: se abre al hacer clic o tocar (botón con aria-expanded del bloque Navegación). */
.re-cabecera .re-nav.wp-block-navigation .re-nav-perdidas.has-child > .wp-block-navigation-submenu__toggle {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
}

.re-nav .wp-block-navigation-submenu__toggle .wp-block-navigation-item__label::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 2px 3px 8px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
	transition: transform .4s var(--re-curva), margin .4s var(--re-curva);
}

.re-nav .wp-block-navigation-submenu__toggle[aria-expanded="true"] .wp-block-navigation-item__label::after {
	margin-bottom: -1px;
	transform: rotate(-135deg);
}

.re-nav .wp-block-navigation__submenu-icon {
	display: none;
}

.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container {
	z-index: 30;
	top: calc(100% + 6px);
	left: -20px;
	padding: 10px 8px;
	background: var(--re-lino);
	color: var(--re-tinta);
	border: 1px solid var(--re-linea-media);
	border-radius: 6px;
	box-shadow: 0 28px 56px -28px rgba(34, 48, 42, .45);
}

/* Abierto: ancho propio (el bloque Navegación lo deja en 200 px). */
.re-cabecera .re-nav.wp-block-navigation .re-nav-perdidas.has-child > button[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	width: 340px;
	min-width: 0;
	margin: 0;
}

/* Opciones del panel: serif, sin mayúsculas, 44 px de alto. */
.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item,
.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--re-serif);
	font-size: 18px;
	letter-spacing: 0;
	text-transform: none;
}

.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex;
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	line-height: 1.25;
}

.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	left: 12px;
	right: 12px;
}

.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: var(--re-vela-texto);
}

.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container .re-nav-perdidas__todas {
	margin-bottom: 6px;
	border-bottom: 1px solid var(--re-linea);
}

.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container .re-nav-perdidas__todas > a {
	font-family: var(--re-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--re-vela-texto);
}

.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container .re-nav-perdidas__todas > a::before {
	content: "→";
	order: 2;
	margin-left: 8px;
}

/* En teléfonos el panel ocupa el ancho de la cabecera, para no salirse de la pantalla. */
@media (max-width: 600px) {
	.re-cabecera {
		position: relative;
	}

	.re-cabecera .re-cabecera__menu,
	.re-cabecera .re-nav,
	.re-cabecera .re-nav .wp-block-navigation__container,
	.re-cabecera .re-nav li.re-nav-perdidas {
		position: static;
	}

	.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container {
		top: calc(100% - 12px);
		left: var(--re-gutter);
		right: var(--re-gutter);
	}

	.re-cabecera .re-nav.wp-block-navigation .re-nav-perdidas.has-child > button[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
		width: auto;
	}

	.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item,
	.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		font-size: 17px;
	}
}

/*
 * Teléfonos: el menú se abre en un panel a pantalla completa con las mismas
 * opciones y en el mismo orden. «Pérdidas» se muestra desplegado.
 */
.re-nav .wp-block-navigation__responsive-container-open,
.re-nav .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--re-tinta);
}

.re-nav .wp-block-navigation__responsive-container-open svg,
.re-nav .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

.re-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 20px var(--re-gutter) 48px;
}

.re-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 64px;
}

.re-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 4px;
	width: 100%;
}

.re-cabecera .re-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	font-family: var(--re-serif);
	font-size: 28px;
	letter-spacing: -.01em;
	text-transform: none;
}

.re-cabecera .re-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	min-height: 52px;
}

.re-cabecera .re-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
	cursor: default;
}

.re-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle .wp-block-navigation-item__label::after {
	display: none;
}

.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	width: 100%;
	margin: 0 0 12px;
	padding: 4px 0 4px 16px;
	background: none;
	border-left: 1px solid var(--re-linea-media);
	border-radius: 0;
	box-shadow: none;
}

.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item,
.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 18px;
}

.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	min-height: 44px;
	padding: 0 4px;
}

/*
 * Tabletas y portátiles pequeños: el menú completo no cabe en una fila junto al
 * nombre y el botón, así que también se abre en el panel (el bloque Navegación
 * solo lo hace por debajo de 600 px).
 */
@media (min-width: 600px) and (max-width: 1199.98px) {
	.re-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.re-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	/* El botón de contacto queda antes del botón de menú, que cierra la fila a la derecha. */
	.re-cabecera .re-cabecera__boton {
		order: -1;
	}
}

/* Portada entre 1200 y 1279 px: el botón verde no cabe junto al menú; el de la portada y el flotante cumplen esa función. */
@media (min-width: 1200px) and (max-width: 1279.98px) {
	.home .re-cabecera .re-cabecera__boton {
		display: none;
	}
}

/* Teléfonos: nombre y botón de menú en una sola fila. */
@media (max-width: 600px) {
	.re-cabecera {
		column-gap: 12px;
	}

	.re-cabecera .re-marca {
		gap: 10px;
	}

	.re-cabecera .re-marca__nombre {
		font-size: clamp(18px, 5.3vw, 24px);
	}
}

.re-cabecera .re-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .re-nav-perdidas__todas > a {
	justify-content: flex-start;
	font-family: var(--re-mono);
	font-size: 12px;
}

/* Con el panel abierto, el botón flotante de WhatsApp no lo tapa. */
.has-modal-open .re-flotante {
	visibility: hidden;
}

.re-pie {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 40px var(--re-gutter) 32px;
	overflow: hidden;
}

.re-marca-gigante {
	margin: 0;
	font-family: var(--re-serif);
	font-size: 7.4vw;
	font-weight: 350;
	line-height: .9;
	letter-spacing: -.04em;
	color: #E8DDCD;
	white-space: nowrap;
}

.re-marca-gigante [data-t]::before {
	content: attr(data-t);
}

.re-pie__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
}

.re-pie__legal .is-style-etiqueta {
	font-size: 12px;
}

.re-pie__legal a {
	color: inherit;
	text-decoration: none;
}

.re-pie__legal a:hover {
	text-decoration: underline;
}

.re-flotante {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 70;
	margin: 0;
}

.re-flotante .wp-block-button__link {
	min-height: 60px;
	padding: 0 24px 0 20px;
	font-size: 16px;
	box-shadow: 0 16px 40px -12px rgba(34, 48, 42, .5);
}

.re-flotante .wp-block-button__link::before {
	width: 22px;
	height: 22px;
}

/* ---------------------------------------------------------------
 * 4. Inicio
 * ------------------------------------------------------------ */

/* Portada: la acuarela se extiende detrás de la cabecera. */
.re-portada {
	position: relative;
	isolation: isolate;
	overflow: clip;
}

/*
 * Portada. El alto se ajusta a la pantalla para que la banda naranja se vea al
 * cargar: el título crece con el ancho pero no pasa del 13,5 % del alto.
 * En escritorio: título e introducción a la izquierda, tarjeta a la derecha.
 */
.re-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: end;
	gap: 28px;
	padding: clamp(24px, 3svh, 56px) var(--re-gutter) 28px;
}

/* La fila del patrón no crea caja propia: introducción y tarjeta se ubican en la cuadrícula. */
.re-hero__fila {
	display: contents;
}

/*
 * Acuarela y movimiento de la portada. Todo gira en torno a un punto de luz
 * (--re-luz-x, --re-luz-y): un amanecer cálido que sube al cargar y respira,
 * ondas que nacen de él como en el agua, una órbita lenta con un punto de vela
 * y motas de luz que suben despacio (las crea tema.js).
 */
.re-hero__fondo,
.re-hero__ondas {
	--re-luz-x: 42%;
	--re-luz-y: 50%;
	position: absolute;
	top: -320px;
	right: 0;
	bottom: 0;
	width: max(48%, 340px);
	margin: 0;
	overflow: hidden;
	z-index: -1;
	pointer-events: none;
}

.re-hero__fondo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform-origin: var(--re-luz-x) var(--re-luz-y);
	animation: re-acuarela-llega 2.8s var(--re-curva) both, re-deriva 36s ease-in-out 2.8s infinite;
}

.re-hero__fondo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(90deg, #F6F0E8 0%, rgba(246, 240, 232, .6) 30%, rgba(246, 240, 232, 0) 65%);
}

/* Órbita: un anillo punteado que gira muy despacio, con un punto de vela. Va sobre la imagen y bajo el velado. */
.re-hero__fondo::before {
	content: "";
	position: absolute;
	z-index: 1;
	left: var(--re-luz-x);
	top: var(--re-luz-y);
	width: clamp(260px, 50%, 560px);
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: 50%;
	border: 1px dashed rgba(34, 48, 42, .2);
	background: radial-gradient(circle at 50% 4px, var(--re-vela) 0 3.5px, rgba(191, 95, 56, 0) 4.5px);
	animation: re-aparecer 2.4s ease 1.4s both, re-girar 160s linear infinite;
}

/* Luz cálida (amanecer) y, por debajo, un velo de salvia que va y viene. */
/* Las ondas y la luz se desvanecen hacia el texto en lugar de cortarse en el borde. */
.re-hero__ondas {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
	mask-image: linear-gradient(90deg, transparent, #000 22%);
}

.re-hero__ondas::before,
.re-hero__ondas::after {
	content: "";
	position: absolute;
	left: var(--re-luz-x);
	top: var(--re-luz-y);
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: 50%;
}

.re-hero__ondas::before {
	width: clamp(360px, 82%, 820px);
	background: radial-gradient(closest-side, rgba(246, 200, 150, .62), rgba(240, 214, 184, .3) 48%, rgba(246, 240, 232, 0));
	animation: re-amanecer 3.6s var(--re-curva) .2s both, re-luz 16s ease-in-out 3.8s infinite;
}

.re-hero__ondas::after {
	width: clamp(280px, 60%, 600px);
	background: radial-gradient(closest-side, rgba(150, 175, 148, .32), rgba(229, 234, 224, 0));
	transform: translate(-22%, 30%);
	animation: re-vaiven 28s ease-in-out infinite;
}

/* Ondas que nacen de la luz: suaves al aparecer, lentas al abrirse. */
.re-hero__ondas > span {
	position: absolute;
	left: var(--re-luz-x);
	top: var(--re-luz-y);
	width: clamp(320px, 64%, 660px);
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: 50%;
	border: 1px solid var(--re-vela);
	transform: scale(.08);
	opacity: 0;
	animation: re-onda 13.5s cubic-bezier(.22, .5, .3, 1) 1.2s infinite;
}

.re-hero__ondas > span:nth-child(2) {
	border-color: rgba(34, 48, 42, .55);
	animation-delay: 5.7s;
}

.re-hero__ondas > span:nth-child(3) {
	border-width: 1.5px;
	animation-delay: 10.2s;
}

/* Motas de luz que suben y se mecen; cada una trae su posición y su ritmo desde tema.js. */
.re-hero__mota {
	position: absolute;
	left: var(--x, 50%);
	bottom: 4%;
	width: var(--s, 4px);
	height: var(--s, 4px);
	border-radius: 50%;
	background: #FFF3E2;
	box-shadow: 0 0 calc(var(--s, 4px) * 3) rgba(236, 170, 110, .75);
	opacity: 0;
	animation: re-mota var(--d, 20s) linear var(--t, 0s) infinite;
}

.re-hero__mota:nth-child(3n) {
	background: #E39A73;
	box-shadow: 0 0 calc(var(--s, 4px) * 2.5) rgba(191, 95, 56, .45);
}

/* Fuera de la pantalla, la portada se queda quieta (lo decide tema.js). */
.re-hero.is-quieta .re-hero__fondo img,
.re-hero.is-quieta .re-hero__fondo::before,
.re-hero.is-quieta .re-hero__ondas::before,
.re-hero.is-quieta .re-hero__ondas::after,
.re-hero.is-quieta .re-hero__ondas > * {
	animation-play-state: paused;
}

.re-hero__titulo {
	font-size: clamp(60px, min(10.6vw, 13.5svh), 180px);
	font-weight: 350;
	line-height: .9;
	letter-spacing: -.04em;
}

.re-hero__titulo em {
	display: inline-block;
	padding-left: .9em;
}

.re-hero__intro {
	max-width: 700px;
	font-size: clamp(20px, 1.1vw + 8px, 26px);
	line-height: 1.45;
	color: #3B4641;
}

.re-tarjeta-wa {
	max-width: 460px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px;
	border-radius: 22px;
	background: var(--wp--preset--color--papel);
	border: 1px solid rgba(34, 48, 42, .12);
	box-shadow: 0 30px 70px -30px rgba(34, 48, 42, .35);
}

.re-tarjeta-wa__titulo {
	font-family: var(--re-serif);
	font-size: 28px;
	font-weight: 350;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--re-tinta);
}

.re-tarjeta-wa__alternativas .wp-block-button {
	flex: 1 1 150px;
}

.re-tarjeta-wa__alternativas .wp-block-button__link {
	width: 100%;
	gap: 8px;
	border-color: var(--re-linea-media);
}

.re-tarjeta-wa__alternativas .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--re-arena);
	border-color: var(--re-tinta);
	color: var(--re-tinta);
}

.re-tarjeta-wa__nota {
	font-size: 14px;
	color: var(--re-sec);
}

@media (min-width: 901px) {
	.re-hero {
		grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
		grid-template-areas:
			"etiqueta etiqueta"
			"titulo   tarjeta"
			"intro    tarjeta"
			"pie      pie";
		column-gap: clamp(40px, 6vw, 120px);
		row-gap: clamp(16px, 2.2svh, 32px);
		/*
		 * En pantallas anchas el texto se aleja del borde: la sangría crece desde
		 * 1280 px y en 1920 px llega a 284 px, la misma columna en la que empieza
		 * el texto del manifiesto (etiqueta de 220 px + 64 px de espacio).
		 */
		--re-hero-sangria: clamp(0px, (100vw - 1280px) * .45, 284px);
	}

	.re-hero__etiqueta,
	.re-hero__titulo,
	.re-hero__intro {
		margin-left: var(--re-hero-sangria);
	}

	.re-hero__etiqueta {
		grid-area: etiqueta;
	}

	.re-hero__titulo {
		grid-area: titulo;
		align-self: end;
	}

	.re-hero__intro {
		grid-area: intro;
	}

	.re-tarjeta-wa {
		grid-area: tarjeta;
		align-self: end;
	}

	.re-hero__pie {
		grid-area: pie;
	}
}

/* Tabletas horizontales: título algo menor para que la banda asome. */
@media (min-width: 901px) and (max-width: 1100px) {
	.re-hero__titulo {
		font-size: min(8.5vw, 13svh);
	}
}

/*
 * Móvil y tableta vertical: no cabe todo en el primer pantallazo, así que la
 * banda naranja sube justo después de la introducción y la tarjeta de WhatsApp
 * (con el pie) queda debajo de ella. Se hace con «order» sobre los mismos
 * bloques: no se quita nada y en el editor el patrón se ve igual.
 */
@media (max-width: 900px) {
	body:not(.editor-styles-wrapper) .re-main {
		display: flex;
		flex-direction: column;
	}

	body:not(.editor-styles-wrapper) .re-main > * {
		order: 4;
	}

	body:not(.editor-styles-wrapper) .re-main > .re-hero {
		display: contents;
	}

	body:not(.editor-styles-wrapper) .re-hero > *,
	body:not(.editor-styles-wrapper) .re-hero__fila > * {
		margin-inline: var(--re-gutter);
	}

	body:not(.editor-styles-wrapper) .re-hero__etiqueta {
		order: 1;
		margin-top: 28px;
	}

	body:not(.editor-styles-wrapper) .re-hero__titulo {
		order: 1;
		margin-top: 16px;
	}

	body:not(.editor-styles-wrapper) .re-hero__intro {
		order: 1;
		margin-top: 16px;
		margin-bottom: 28px;
	}

	body:not(.editor-styles-wrapper) .re-main > .re-banda {
		order: 2;
	}

	body:not(.editor-styles-wrapper) .re-tarjeta-wa {
		order: 3;
		margin-top: 32px;
	}

	body:not(.editor-styles-wrapper) .re-hero__pie {
		order: 3;
		margin-top: 28px;
		margin-bottom: 40px;
	}

	/* Sin la caja del hero, la acuarela se mide desde la parte superior de la portada. */
	body:not(.editor-styles-wrapper) .re-hero__fondo,
	body:not(.editor-styles-wrapper) .re-hero__ondas {
		top: 0;
		bottom: auto;
		height: 100svh;
		margin: 0;
		-webkit-mask-image: linear-gradient(#000 65%, transparent);
		mask-image: linear-gradient(#000 65%, transparent);
	}

	/* La luz también se desvanece hacia la izquierda: las dos máscaras se cruzan. */
	body:not(.editor-styles-wrapper) .re-hero__ondas {
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(#000 65%, transparent);
		-webkit-mask-composite: source-in;
		mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(#000 65%, transparent);
		mask-composite: intersect;
	}
}

/* Teléfonos pequeños: el título baja un poco del mínimo de 60 px. */
@media (max-width: 600px) {
	.re-hero__titulo {
		font-size: clamp(52px, 15vw, 60px);
	}
}

/* Hasta 1100 px el lema de la barra repite la etiqueta y el pie del hero: se oculta para no partir la barra en dos líneas. */
@media (max-width: 1100px) {
	.re-barra-contacto__lema {
		display: none;
	}
}

/* Pantallas bajas (portátiles): cabecera y tarjeta más compactas para ganar alto en el primer pantallazo. */
@media (min-width: 601px) and (max-height: 820px) {
	.re-cabecera {
		--re-cabecera-aire: 18px;
	}

	.re-tarjeta-wa {
		gap: 14px;
		padding: 22px 24px;
	}
}

.re-hero__pie {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 40px;
	padding-top: 22px;
	border-top: 1px solid var(--re-linea);
}

/*
 * Entrada de la portada, una sola vez al cargar: la etiqueta, el título que se
 * descubre de arriba abajo con «no es» llegando un instante después, la
 * introducción, la tarjeta y la línea del pie que se dibuja. Solo transform,
 * opacity y clip-path: nada se mueve de sitio y la banda no cambia de posición.
 * La acuarela (LCP) nunca arranca transparente. En el editor todo queda quieto.
 */
@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .re-hero__etiqueta {
		animation: re-subir 1s var(--re-curva) .1s both;
	}

	/*
	 * El título se descubre con una máscara de borde suave. La máscara recorta
	 * todo lo que sale de la caja, así que la caja se agranda con padding y el
	 * margen negativo lo compensa: el diseño no se mueve ni un píxel.
	 */
	body:not(.editor-styles-wrapper) .re-hero__titulo {
		padding-block: .3em;
		margin-block: -.3em;
		animation: re-descubrir 1.9s cubic-bezier(.33, .3, .2, 1) .2s backwards;
	}

	body:not(.editor-styles-wrapper) .re-hero__titulo em {
		animation: re-acento 1.6s var(--re-curva) .75s backwards;
	}

	body:not(.editor-styles-wrapper) .re-hero__intro {
		animation: re-subir 1.1s var(--re-curva) .8s both;
	}

	body:not(.editor-styles-wrapper) .re-tarjeta-wa {
		animation: re-subir-tarjeta 1.2s var(--re-curva) .6s both;
	}

	body:not(.editor-styles-wrapper) .re-hero__pie {
		position: relative;
		border-top-color: transparent;
	}

	body:not(.editor-styles-wrapper) .re-hero__pie::before {
		content: "";
		position: absolute;
		top: -1px;
		left: 0;
		right: 0;
		height: 1px;
		background: var(--re-linea);
		transform-origin: left;
		animation: re-crecer 1.8s var(--re-curva) 1s both;
		transform: scaleX(0);
	}

	body:not(.editor-styles-wrapper) .re-hero__pie > * {
		animation: re-subir .9s var(--re-curva) both;
		animation-delay: calc(1.2s + var(--re-orden, 0) * .12s);
	}

	body:not(.editor-styles-wrapper) .re-hero__pie > :nth-child(2) {
		--re-orden: 1;
	}

	body:not(.editor-styles-wrapper) .re-hero__pie > :nth-child(3) {
		--re-orden: 2;
	}

	body:not(.editor-styles-wrapper) .re-hero__pie > :nth-child(4) {
		--re-orden: 3;
	}
}

@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
	body:not(.editor-styles-wrapper) .re-hero__titulo {
		margin-top: calc(16px - .3em);
	}
}

/* Banda de pérdidas */
.re-banda {
	padding: 30px 0;
	overflow: hidden;
	background: var(--re-vela);
	color: var(--re-lino);
}

.re-banda__pista {
	display: flex;
	width: max-content;
}

.re-banda__pista > p {
	display: flex;
	align-items: center;
	gap: 40px;
	padding-right: 40px;
	font-family: var(--re-serif);
	font-size: clamp(40px, 5vw, 76px);
	font-weight: 350;
	line-height: 1;
	white-space: nowrap;
}

.re-banda__pista > p::after {
	content: "";
	width: 28px;
	height: 28px;
	flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Ccircle cx='14' cy='14' r='2.5' fill='%23F6F0E8'/%3E%3Ccircle cx='14' cy='14' r='7' stroke='%23F6F0E8'/%3E%3Ccircle cx='14' cy='14' r='12.5' stroke='%23F6F0E8' opacity='.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.re-banda.is-animada .re-banda__pista {
	animation: re-marquesina 48s linear infinite;
}

.re-banda:hover .re-banda__pista {
	animation-play-state: paused;
}

/* Manifiesto (y «Para quién» del programa) */
.re-manifiesto {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
	padding-top: clamp(96px, 12vw, 180px);
	padding-bottom: clamp(96px, 12vw, 180px);
}

.re-manifiesto__etiqueta {
	flex: 0 0 220px;
}

.re-manifiesto__cuerpo {
	flex: 1 1 640px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.re-manifiesto__titulo {
	font-size: clamp(34px, 4.6vw, 78px);
	line-height: 1.04;
	letter-spacing: -.02em;
}

.re-manifiesto__fila {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px 64px;
}

.re-manifiesto__fila > p {
	max-width: 460px;
}

.re-manifiesto__img {
	width: 140px;
	height: 140px;
	flex: none;
}

.re-para-quien {
	padding-top: var(--re-seccion);
	padding-bottom: var(--re-seccion);
}

.re-para-quien .re-manifiesto__cuerpo {
	gap: 48px;
}

.re-para-quien .re-manifiesto__titulo {
	font-size: clamp(34px, 4.8vw, 80px);
	line-height: 1.02;
}

.re-dos-columnas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
	color: var(--wp--preset--color--tinta-suave);
}

/* 40+ */
.re-cuarenta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px 80px;
}

.re-cuarenta__intro {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: sticky;
	top: calc(var(--re-alto-cabecera, 0px) + 40px);
}

.re-cuarenta__numero {
	font-size: var(--wp--preset--font-size--gigante);
	line-height: .85;
	letter-spacing: -.05em;
}

.re-cuarenta__texto {
	max-width: 380px;
	font-size: 20px;
	line-height: 1.45;
}

.re-cuarenta__texto em {
	font-family: var(--re-serif);
	font-size: 24px;
}

.is-style-perdidas {
	flex: 1 1 560px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: perdida;
	border-bottom: 1px solid rgba(34, 48, 42, .2);
}

.is-style-perdidas > li {
	counter-increment: perdida;
	border-top: 1px solid rgba(34, 48, 42, .2);
	margin: 0;
}

.is-style-perdidas > li > a {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: baseline;
	padding: 26px 12px;
	font-family: var(--re-serif);
	font-size: clamp(28px, 3vw, 46px);
	font-weight: 350;
	line-height: 1.1;
	color: var(--re-tinta);
	text-decoration: none;
	transition: color .4s;
}

.is-style-perdidas > li > a::before {
	content: counter(perdida, decimal-leading-zero);
	flex: none;
	margin-right: 28px;
	font-family: var(--re-mono);
	font-size: 12px;
	letter-spacing: .08em;
	color: var(--re-sec-salvia);
	transition: margin-right .55s var(--re-curva), color .4s;
}

.is-style-perdidas > li > a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--re-vela-texto);
	transform: translateY(101%);
	transition: transform .55s var(--re-curva);
}

.is-style-perdidas > li > a:is(:hover, :focus-visible) {
	color: var(--re-lino);
}

.is-style-perdidas > li > a:is(:hover, :focus-visible)::before {
	margin-right: 46px;
	color: var(--re-lino);
}

.is-style-perdidas > li > a:is(:hover, :focus-visible)::after {
	transform: translateY(0);
}

/* Autoevaluación */
.re-senales {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 56px 80px;
	scroll-margin-top: 24px;
}

.re-senales__intro,
.re-preguntas__intro {
	flex: 1 1 380px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.re-senales__intro > p:last-child {
	max-width: 400px;
}

.re-autoevaluacion {
	flex: 1 1 600px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.re-autoevaluacion__preguntas {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: pregunta;
}

.re-autoevaluacion__preguntas > li {
	counter-increment: pregunta;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin: 0;
	padding: 30px 0;
	border-top: 1px solid var(--re-linea);
}

.re-pregunta__texto {
	flex: 1 1 360px;
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: 22px;
	font-family: var(--re-serif);
	font-size: clamp(24px, 2.5vw, 38px);
	font-weight: 350;
	line-height: 1.15;
}

.re-pregunta__texto::before {
	content: counter(pregunta, decimal-leading-zero);
	flex: none;
	font-family: var(--re-mono);
	font-size: 12px;
	letter-spacing: .08em;
	color: var(--re-sec);
}

/* Sin JavaScript (o en el editor) la pregunta es un elemento simple. */
.re-autoevaluacion__preguntas > li:not(:has(.re-pregunta__texto)) {
	font-family: var(--re-serif);
	font-size: clamp(24px, 2.5vw, 38px);
	line-height: 1.15;
}

.re-chk {
	min-width: 96px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid rgba(34, 48, 42, .4);
	background: transparent;
	color: var(--re-tinta);
	font-family: var(--re-mono);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .35s, color .35s, border-color .35s;
}

.re-chk:hover {
	border-color: var(--re-tinta);
}

.re-chk[aria-pressed="true"] {
	background: var(--re-vela-texto);
	border-color: var(--re-vela-texto);
	color: var(--re-lino);
}

.re-autoevaluacion__resultado {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 32px;
	border-radius: 4px;
	background: var(--re-arena);
	border: 1px solid rgba(34, 48, 42, .12);
}

.re-autoevaluacion__textos {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.re-autoevaluacion__conteo {
	color: var(--re-vela-texto);
}

.re-autoevaluacion__mensaje {
	font-family: var(--re-serif);
	font-size: 28px;
	font-weight: 350;
	line-height: 1.2;
}

.js .re-autoevaluacion__mensaje:not(.is-visible),
.js .re-autoevaluacion__cta:not(.is-visible) {
	display: none;
}

/* Programas */
.re-programas {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.re-cabecera-seccion {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px 32px;
}

.re-cabecera-seccion__titulos {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.re-cabecera-seccion__texto {
	max-width: 340px;
}

.re-titulo-xl {
	font-size: var(--wp--preset--font-size--titular-xl);
	line-height: .9;
	letter-spacing: -.035em;
}

.re-programas__lista {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--re-linea);
}

.re-programa {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1.25fr) minmax(0, 1fr) 240px 64px;
	gap: 32px;
	align-items: center;
	padding: 36px 0;
	border-top: 1px solid var(--re-linea);
}

.re-programa::after {
	content: "";
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 1px solid rgba(34, 48, 42, .4);
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322302A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / 20px no-repeat;
	transition: background-color .4s, border-color .4s;
}

.re-programa:hover::after,
.re-programa:focus-within::after {
	background: var(--re-vela) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F0E8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / 20px no-repeat;
	border-color: var(--re-vela);
}

.re-programa__titulo {
	font-size: clamp(36px, 4.4vw, 72px);
	line-height: 1;
	letter-spacing: -.02em;
	transition: color .5s, margin .6s var(--re-curva);
}

.re-programa__titulo a {
	color: inherit;
	text-decoration: none;
}

.re-programa:hover .re-programa__titulo,
.re-programa:focus-within .re-programa__titulo {
	color: var(--re-vela);
	/* Se desplaza con márgenes y no con transform: un transform haría del título
	   el bloque contenedor del enlace extendido y la fila dejaría de ser clicable. */
	margin-inline: 14px -14px;
}

.re-programa__desc {
	font-size: 16px;
	color: var(--re-sec);
}

.re-programa__img {
	height: 150px;
	margin: 0;
}

.re-programa__img img {
	transition: transform 1s var(--re-curva);
}

.re-programa:hover .re-programa__img img {
	transform: scale(1.12);
}

.re-programas__tambien {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.re-programas__tambien > .is-style-etiqueta {
	margin-right: 12px;
}

.re-programas__opciones {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	flex: 1 1 100%;
	gap: 32px;
}

.re-programas__opcion {
	min-width: 0;
	padding-top: 24px;
	border-top: 1px solid var(--re-linea);
}

.re-programas__opcion h3 {
	font-size: 28px;
}

.re-programas__opcion > * + * {
	margin-top: 16px;
}

/* Método */
.re-metodo {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 80px;
}

.re-metodo__fondo {
	position: absolute;
	inset: 0;
	z-index: -1;
	margin: 0;
	opacity: .9;
}

.re-metodo__fondo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.re-metodo__cabecera {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px;
}

.re-metodo__titulo {
	max-width: 980px;
	font-size: clamp(44px, 6.4vw, 108px);
}

.re-metodo__datos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	border-top: 1px solid rgba(34, 48, 42, .22);
}

.re-dato {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 32px 28px 0 0;
	container-type: inline-size;
}

.re-dato__cifra {
	font-family: var(--re-serif);
	/* 72 px como en el diseño, pero sin pasar del ancho de la celda («Evidencia» es la más larga). */
	font-size: min(72px, 24cqi);
	font-weight: 350;
	line-height: 1;
}

.re-dato__cifra--acento {
	color: var(--re-vela);
}

.re-dato .is-style-etiqueta {
	color: var(--re-tinta);
}

.re-dato__texto {
	font-size: 16px;
	color: #4B5550;
}

/* Marca del Grief Recovery Method®: referencia al sitio oficial, no identidad del sitio. */
.re-marca-grm {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	width: fit-content;
	max-width: 100%;
	padding: 14px 22px 14px 16px;
	border: 1px solid var(--re-linea-media);
	border-radius: 999px;
	background: rgba(255, 255, 255, .45);
	transition: border-color .3s, background-color .3s;
}

.re-marca-grm:hover,
.re-marca-grm:focus-within {
	border-color: #445552;
	background: rgba(255, 255, 255, .8);
}

.re-marca-grm__simbolo {
	flex: none;
	width: 44px;
	margin: 0;
}

.re-marca-grm__simbolo img {
	display: block;
	width: 100%;
	height: auto;
}

.re-marca-grm__texto {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.re-marca-grm__nombre {
	font-family: var(--re-serif);
	font-size: clamp(18px, 1.6vw, 21px);
	font-weight: 400;
	line-height: 1.2;
}

.re-marca-grm__nombre a {
	color: #445552;
	text-decoration: none;
}

/* Toda la píldora es el enlace. */
.re-marca-grm__nombre a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.re-marca-grm__nombre a:focus-visible {
	outline: none;
}

.re-marca-grm:focus-within {
	outline: 2px solid var(--re-tinta);
	outline-offset: 3px;
}

.re-marca-grm__pie.is-style-etiqueta {
	font-size: 11px;
	color: var(--re-sec);
}

/* ¿Qué es el Grief Recovery Method? */
.re-que-es {
	display: flex;
	flex-direction: column;
	gap: clamp(56px, 7vw, 96px);
}

.re-que-es__titulo {
	max-width: 12ch;
}

.re-que-es__aparte {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 380px;
}

.re-que-es__titulo sup {
	font-size: .28em;
	vertical-align: 2.2em;
	line-height: 0;
	margin-left: .12em;
}

.re-que-es__cuerpo {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	align-items: start;
	gap: 56px clamp(48px, 7vw, 120px);
}

.re-que-es__texto {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 600px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--wp--preset--color--tinta-suave);
}

.re-que-es__definicion {
	font-family: var(--re-serif);
	font-size: clamp(28px, 3vw, 44px);
	font-weight: 350;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--re-tinta);
}

.re-que-es__definicion em {
	color: var(--re-vela);
}

.re-que-es__nota {
	padding-left: 20px;
	border-left: 2px solid var(--re-vela);
	font-size: 16px;
	color: #4B5550;
}

.re-que-es__pasos {
	counter-reset: paso-grm;
	border-top: 1px solid var(--re-linea-media);
}

.re-que-es__paso {
	counter-increment: paso-grm;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	column-gap: 16px;
	padding: 24px 0;
	border-bottom: 1px solid var(--re-linea-media);
}

.re-que-es__paso::before {
	content: counter(paso-grm, decimal-leading-zero);
	grid-row: 1 / span 2;
	padding-top: .7em;
	font-family: var(--re-mono);
	font-size: 12px;
	letter-spacing: .08em;
	color: var(--re-vela-texto);
}

.re-que-es__paso h3 {
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 350;
	line-height: 1.15;
}

.re-que-es__paso p {
	grid-column: 2;
	margin-top: 8px !important;
	font-size: 16px;
	color: #4B5550;
}

.re-referencias {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.re-referencias__titulo {
	color: var(--re-sec);
}

.re-referencias__lista {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--re-linea-media);
}

.re-referencias__lista > li {
	margin: 0;
	padding: 18px 24px 18px 0;
	border-bottom: 1px solid var(--re-linea);
	font-size: 15px;
	line-height: 1.5;
	color: #4B5550;
}

.re-referencias__lista a {
	display: inline-block;
	padding: 9px 0;
	font-family: var(--re-serif);
	font-size: 21px;
	font-weight: 350;
	line-height: 1.3;
	color: var(--re-tinta);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: var(--re-linea-fuerte);
	transition: color .3s, text-decoration-color .3s;
}

.re-referencias__lista a:is(:hover, :focus-visible) {
	color: var(--re-vela-texto);
	text-decoration-color: currentColor;
}

/* Sobre María Clemencia */
.re-sobre {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px 96px;
}

.re-sobre__retrato {
	position: relative;
	flex: 1 1 380px;
	min-width: 0;
	max-width: 560px;
}

.re-sobre__img {
	margin: 0;
}

.re-sobre__img figcaption {
	position: absolute;
	left: 50%;
	bottom: 28px;
	margin: 0;
	transform: translateX(-50%);
	color: var(--re-tinta);
	white-space: nowrap;
}

.re-sello.re-sobre__sello {
	position: absolute;
	right: -36px;
	top: 40px;
}

.re-sobre__texto {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.re-sobre__nombre {
	font-size: clamp(52px, 7.4vw, 124px);
	line-height: .88;
	letter-spacing: -.035em;
}

.re-sobre__bio {
	max-width: 560px;
	font-size: 20px;
	line-height: 1.5;
	color: var(--wp--preset--color--tinta-suave);
}

.re-credenciales {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	border-top: 1px solid rgba(34, 48, 42, .2);
}

.re-credencial {
	padding: 22px 24px 22px 0;
	border-bottom: 1px solid rgba(34, 48, 42, .2);
}

.re-sobre__certificacion {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
}

.re-sobre__sello-oficial {
	flex: none;
	width: min(100%, 300px);
	margin: 0;
}

.re-sobre__sello-oficial img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.re-credencial__valor {
	margin-top: 6px !important;
	font-family: var(--re-serif);
	font-size: 24px;
	font-weight: 350;
	line-height: 1.2;
}

/* Sello giratorio */
.re-sello {
	position: relative;
	flex: none;
	width: var(--re-sello, 170px);
	height: var(--re-sello, 170px);
}

.re-sello__giro {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	animation: re-girar 26s linear infinite;
}

.re-sello__giro text {
	font-family: var(--re-mono);
	text-transform: uppercase;
	fill: var(--re-tinta);
}

.re-sello__flecha {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45%;
	height: 45%;
	border-radius: 50%;
	background: var(--re-vela);
	color: var(--re-lino);
	transform: translate(-50%, -50%);
}

.re-sello__registro {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--re-serif);
	font-size: 40px;
	font-style: italic;
}

/* Adelanto del blog */
.re-adelanto {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.re-adelanto__lista {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--re-linea);
}

.re-adelanto__lista > li {
	margin: 0;
}

.re-adelanto__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding: 32px 32px 32px 0;
	height: 100%;
}

.re-meta-entrada {
	margin: 0;
	color: var(--re-sec);
}

.re-adelanto__titulo {
	font-size: clamp(28px, 2.4vw, 34px);
	line-height: 1.12;
	letter-spacing: -.01em;
}

.re-adelanto__titulo a,
.re-fila__titulo a,
.re-destacado__titulo a,
.re-relacionado__titulo a {
	color: inherit;
	text-decoration: none;
}

.re-adelanto__titulo a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size .6s var(--re-curva);
}

.re-adelanto__item:hover .re-adelanto__titulo a,
.re-adelanto__titulo a:focus-visible {
	background-size: 100% 1px;
}

/* Cierre «Hablemos.» / «Empecemos.» */
.re-cierre {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding-top: clamp(80px, 9vw, 140px);
	padding-bottom: 56px;
	border-top: 1px solid var(--re-linea);
}

.re-gran-cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 48px;
}

.re-gran-cta__texto {
	font-family: var(--re-serif);
	font-size: clamp(56px, 13vw, 220px);
	font-weight: 350;
	line-height: .88;
	letter-spacing: -.045em;
}

.re-cierre--programa .re-gran-cta__texto {
	font-size: clamp(52px, 11vw, 190px);
	letter-spacing: -.05em;
}

.re-gran-cta__texto a {
	color: var(--re-tinta);
	text-decoration: none;
	transition: color .6s, letter-spacing .8s var(--re-curva);
}

.re-gran-cta:hover .re-gran-cta__texto a,
.re-gran-cta__texto a:focus-visible {
	color: var(--re-vela);
	letter-spacing: -.02em;
}

.re-contacto-datos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	padding-top: 28px;
	border-top: 1px solid var(--re-linea);
}

.re-contacto-dato {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.re-contacto-dato > p:not(.is-style-etiqueta) {
	font-size: 20px;
}

.re-contacto-dato a {
	color: var(--re-tinta);
	text-decoration: none;
}

.re-contacto-dato a:hover {
	text-decoration: underline;
}

.re-contacto-dato__correo {
	word-break: break-all;
}

/* ---------------------------------------------------------------
 * 5. Programas (uno a uno, en grupo, cuando los niños sufren)
 * ------------------------------------------------------------ */
.re-programa-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 56px 80px;
	padding: 56px var(--re-gutter) clamp(80px, 8vw, 128px);
}

.re-programa-hero__texto {
	flex: 1 1 620px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.re-ruta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	color: var(--re-sec);
}

.re-ruta a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--re-sec);
}

.re-ruta a:hover {
	color: var(--re-tinta);
}

.re-ruta .re-ruta__actual {
	color: var(--re-vela-texto);
}

.re-programa-hero__titulo {
	font-size: clamp(72px, 11.5vw, 196px);
	line-height: .88;
	letter-spacing: -.045em;
}

.re-programa-hero__titulo em {
	display: inline-block;
	padding-left: .6em;
}

/* Títulos de programa con más palabras («Cuando los niños sufren») */
.re-programa-hero__titulo--largo {
	font-size: clamp(48px, 7.6vw, 132px);
	line-height: .92;
}

.re-programa-hero__titulo--largo em {
	display: block;
	padding-left: 0;
}

.re-programa-hero .re-marca-grm {
	margin-top: 8px;
}

.re-programa-hero__intro {
	max-width: 520px;
	font-size: 21px;
	line-height: 1.5;
	color: #3B4641;
}

.re-programa-hero__ficha {
	flex: 1 1 380px;
	min-width: 0;
	max-width: 520px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.re-respira img {
	animation: re-respirar 22s ease-in-out infinite;
}

.re-ficha {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--re-linea);
}

.re-ficha__fila {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid var(--re-linea);
}

.re-ficha__fila > p:last-child {
	text-align: right;
}

.re-recorrido {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding: 0 var(--re-gutter) var(--re-seccion);
}

.re-recorrido__cabecera {
	padding-top: 56px;
	border-top: 1px solid rgba(34, 48, 42, .2);
}

.re-pasos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	counter-reset: paso;
}

.re-paso {
	counter-increment: paso;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 24px 32px 24px 0;
	border-top: 1px solid rgba(34, 48, 42, .2);
}

.re-paso::before {
	content: counter(paso);
	font-family: var(--re-serif);
	font-size: 150px;
	font-weight: 350;
	line-height: .9;
	color: transparent;
	-webkit-text-stroke: 1px rgba(34, 48, 42, .5);
	transition: color .6s, -webkit-text-stroke-color .6s;
}

.re-paso:hover::before {
	color: var(--re-vela);
	-webkit-text-stroke-color: var(--re-vela);
}

.re-paso h3 {
	font-size: 32px;
	line-height: 1.1;
}

.re-paso p {
	font-size: 16px;
	color: var(--wp--preset--color--tinta-suave);
}

/* Preguntas frecuentes */
.re-preguntas {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px 80px;
}

.re-preguntas__intro {
	flex-basis: 360px;
}

.re-preguntas__intro h2 {
	font-size: clamp(32px, 4vw, 52px);
}

.re-preguntas__lista {
	flex: 1 1 620px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--re-linea);
}

.is-style-pregunta {
	border-top: 1px solid var(--re-linea);
}

.is-style-pregunta > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 44px;
	padding: 28px 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--re-serif);
	font-size: clamp(24px, 2.4vw, 36px);
	font-weight: 350;
	line-height: 1.15;
}

.is-style-pregunta > summary::-webkit-details-marker {
	display: none;
}

.is-style-pregunta > summary::after {
	content: "+";
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--re-linea-fuerte);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 24px;
	font-weight: 300;
	transition: transform .5s var(--re-curva), background .4s, color .4s, border-color .4s;
}

.is-style-pregunta[open] > summary::after {
	transform: rotate(45deg);
	background: var(--re-vela);
	border-color: var(--re-vela);
	color: var(--re-lino);
}

.is-style-pregunta > :not(summary) {
	max-width: 620px;
	margin: 0 0 32px !important;
	color: #4B5550;
}

/* ---------------------------------------------------------------
 * 5b. Tipos de pérdida
 * ------------------------------------------------------------ */
.re-fondo-tinta {
	background: var(--re-tinta);
	color: var(--re-lino);
}

.re-fondo-tinta .is-style-etiqueta,
.re-fondo-tinta .re-cita cite {
	color: rgba(246, 240, 232, .72);
}

.re-fondo-tinta .re-perdida__texto,
.re-fondo-tinta blockquote.wp-block-quote.re-cita {
	color: var(--re-lino);
	border-color: rgba(246, 240, 232, .22);
}

.re-perdida-hero__titulo {
	font-size: clamp(52px, 7.6vw, 128px);
	line-height: .94;
	letter-spacing: -.04em;
}

.re-perdida-hero__imagen {
	flex: 0 1 380px;
	min-width: 0;
	margin-left: auto;
}

.re-perdida__titulo {
	font-size: clamp(34px, 4.2vw, 68px);
	line-height: 1.04;
	letter-spacing: -.02em;
}

.re-perdida__texto {
	max-width: 680px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--wp--preset--color--tinta-suave);
}

.re-perdida__citas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px 48px;
}

/* Cita con comillas terracota: «Tu duelo es válido», «El camino» y frases. */
blockquote.wp-block-quote.re-cita,
blockquote.wp-block-quote.re-testimonio {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 28px 0 0;
	border: 0;
	border-top: 1px solid var(--re-linea-media);
	color: var(--re-tinta);
}

.re-cita::before,
.re-testimonio::before {
	content: "“";
	height: 32px;
	font-family: var(--re-serif);
	font-size: 80px;
	line-height: .8;
	color: var(--re-vela);
}

.re-cita p,
.re-testimonio p {
	margin: 0;
	font-family: var(--re-serif);
	font-size: clamp(22px, 2.1vw, 30px);
	font-style: italic;
	font-weight: 300;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.re-cita cite,
.re-testimonio cite {
	font-family: var(--re-mono);
	font-size: 12px;
	font-style: normal;
	letter-spacing: .08em;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--re-sec);
}

.re-fondo-salvia .re-cita cite,
.re-fondo-salvia .re-testimonio cite {
	color: var(--re-sec-salvia);
}

.re-testimonio {
	max-width: 1000px;
}

.re-testimonio p {
	font-size: clamp(26px, 3vw, 44px);
	line-height: 1.15;
}

/* Señales */
.re-perdida-senales {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 56px 80px;
}

.re-perdida-senales__intro {
	flex: 1 1 400px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
	position: sticky;
	top: calc(var(--re-alto-cabecera, 0px) + 40px);
}

.re-perdida-senales__cierre {
	max-width: 420px;
	font-size: 18px;
	color: var(--re-sec);
}

.re-lista-senales {
	flex: 1 1 560px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--re-linea);
}

.re-lista-senales > li {
	position: relative;
	margin: 0;
	padding: 24px 0 24px 44px;
	border-top: 1px solid var(--re-linea);
	font-family: var(--re-serif);
	font-size: clamp(21px, 1.9vw, 27px);
	font-weight: 350;
	line-height: 1.3;
}

.re-lista-senales > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: calc(24px + .42em);
	width: 12px;
	height: 12px;
	border: 1px solid var(--re-vela);
	border-radius: 50%;
	transition: background-color .4s;
}

.re-lista-senales > li:hover::before {
	background: var(--re-vela);
}

/* Frases que duelen */
.re-perdida-frases {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.re-frases {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 0 48px;
	border-bottom: 1px solid var(--re-linea);
}

.re-frase {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 0 36px;
	border-top: 1px solid var(--re-linea);
}

.re-frase h3 {
	font-size: clamp(24px, 2.2vw, 31px);
	font-style: italic;
	font-weight: 350;
	line-height: 1.15;
	transition: color .4s;
}

.re-frase:hover h3 {
	color: var(--re-vela-texto);
}

.re-frase p {
	font-size: 16px;
	color: var(--wp--preset--color--tinta-suave);
}

.re-perdida-frases .re-cita {
	max-width: 860px;
}

.re-perdida__nota {
	max-width: 700px;
	padding-left: 24px;
	border-left: 2px solid var(--re-vela);
	font-size: 19px;
	line-height: 1.6;
	color: var(--wp--preset--color--tinta-suave);
}

/* El camino */
.re-perdida-camino {
	display: flex;
	flex-direction: column;
	gap: 72px;
}

.re-perdida-camino__intro {
	padding: 0;
}

.re-perdida-camino .re-pasos {
	margin-top: 8px;
}

/* El primer paso */
.re-perdida-cierre {
	display: flex;
	flex-direction: column;
	gap: 56px;
	border-top: 1px solid var(--re-linea);
}

.re-opciones {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 0 48px;
	border-bottom: 1px solid var(--re-linea);
}

.re-opcion {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 76px 36px 0;
	border-top: 1px solid var(--re-linea);
}

.re-opcion::after {
	content: "";
	position: absolute;
	top: 28px;
	right: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid rgba(34, 48, 42, .4);
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322302A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: background-color .4s, border-color .4s;
}

.re-opcion:hover::after,
.re-opcion:focus-within::after {
	background: var(--re-vela) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F0E8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / 18px no-repeat;
	border-color: var(--re-vela);
}

.re-opcion__titulo {
	font-size: clamp(26px, 2.4vw, 36px);
	line-height: 1.1;
	letter-spacing: -.015em;
	transition: color .4s;
}

.re-opcion__titulo a {
	color: inherit;
	text-decoration: none;
}

.re-opcion__titulo a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.re-opcion:hover .re-opcion__titulo,
.re-opcion:focus-within .re-opcion__titulo {
	color: var(--re-vela-texto);
}

.re-opcion p {
	font-size: 16px;
	color: var(--wp--preset--color--tinta-suave);
}

/* Invitación discreta a contactar a María Clemencia. */
.re-contacto-discreto {
	max-width: 640px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--re-sec);
}

/* Área táctil de 44 px sin mover el renglón. */
.re-contacto-discreto a {
	display: inline-block;
	margin: -10px 0;
	padding: 10px 0;
	color: var(--re-vela-texto);
	text-underline-offset: 3px;
}

.re-contacto-discreto a:hover {
	color: var(--re-tinta);
}

.re-otras-perdidas {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.re-otras-perdidas__lista {
	gap: 10px;
}

/* Índice */
.re-perdidas-indice__nota {
	max-width: 380px;
	font-size: 16px;
	color: var(--re-sec-salvia);
}

.re-perdidas-indice__nota a,
.re-perdidas-fuente a {
	color: var(--re-vela-texto);
}

.re-perdidas-fuente {
	max-width: 720px;
}

.re-cuarenta__enlace a {
	color: var(--re-vela-texto);
}

/* ---------------------------------------------------------------
 * 6. Blog
 * ------------------------------------------------------------ */
.re-blog-cabecera {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 32px;
	padding: 64px var(--re-gutter) 72px;
}

.re-blog-cabecera__titulos {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.re-blog-cabecera__titulo {
	font-size: clamp(52px, 12vw, 200px);
	line-height: .88;
	letter-spacing: -.05em;
}

.re-titulo-busqueda,
.re-blog .wp-block-query-title {
	font-size: clamp(44px, 7vw, 116px);
	line-height: .96;
	letter-spacing: -.035em;
}

.re-blog-cabecera__texto {
	max-width: 380px;
	color: #4B5550;
}

/* Artículo destacado */
.re-destacado {
	padding: 0 var(--re-gutter) clamp(80px, 8vw, 120px);
}

.re-destacado__plantilla {
	margin: 0;
	padding: 0;
	list-style: none;
}

.re-destacado__item {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px 64px;
}

.re-destacado__img {
	flex: 1 1 620px;
	min-width: 0;
	aspect-ratio: 16 / 10;
	margin: 0;
	overflow: hidden;
	border-radius: 999px 999px 6px 6px;
}

.re-destacado__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--re-curva);
}

.re-destacado__item:hover .re-destacado__img img {
	transform: scale(1.06);
}

.re-destacado__texto {
	flex: 1 1 380px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.re-meta-entrada--destacado,
.re-fila__tema,
.re-relacionado__meta {
	color: var(--re-vela-texto);
}

.re-destacado__titulo {
	font-size: clamp(38px, 4.4vw, 72px);
	line-height: 1;
	letter-spacing: -.025em;
	transition: color .5s;
}

.re-destacado__item:hover .re-destacado__titulo {
	color: var(--re-vela);
}

.re-destacado__extracto,
.re-fila__extracto {
	color: #4B5550;
}

.re-destacado__extracto {
	max-width: 480px;
	font-size: 18px;
}

.re-destacado__extracto p,
.re-fila__extracto p {
	margin: 0;
}

.re-destacado__leer {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--re-tinta);
}

.re-destacado__leer::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--re-ico-diagonal) center / contain no-repeat;
	mask: var(--re-ico-diagonal) center / contain no-repeat;
}

/* Archivo y filtros */
.re-archivo {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 0 var(--re-gutter) clamp(80px, 8vw, 128px);
	scroll-margin-top: 16px;
}

.re-filtros {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.re-filtros__cabecera {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 20px 32px;
	padding-bottom: 8px;
}

.re-filtros__titulo {
	margin: 0;
	font-size: clamp(34px, 3.6vw, 56px);
	line-height: 1;
	letter-spacing: -.02em;
}

.re-filtros__botones {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.re-filtro {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid var(--re-linea-media);
	color: var(--re-tinta);
	text-decoration: none;
	transition: background .35s, color .35s, border-color .35s;
}

.re-filtro:hover {
	color: var(--re-tinta);
	border-color: var(--re-tinta);
}

.re-filtro.is-activo {
	background: var(--re-tinta);
	border-color: var(--re-tinta);
	color: var(--re-lino);
}

.re-filtros__conteo {
	margin: 0;
	color: var(--re-sec);
}

.re-archivo.is-cargando .re-lista {
	opacity: .4;
	transition: opacity .2s;
}

.re-filas {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--re-linea);
}

.re-filas > li {
	margin: 0;
	border-top: 1px solid var(--re-linea);
}

.re-fila {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 40px;
	padding: 34px 0;
	animation: re-subir .6s var(--re-curva) both;
}

.re-fila__fecha {
	flex: 0 0 120px;
	font-family: var(--re-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--re-sec);
}

.re-fila__cuerpo {
	flex: 1 1 480px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.re-fila__titulo {
	font-size: clamp(26px, 2.8vw, 44px);
	line-height: 1.08;
	letter-spacing: -.015em;
	transition: margin .6s var(--re-curva), color .5s;
}

.re-fila:hover .re-fila__titulo,
.re-fila:focus-within .re-fila__titulo {
	color: var(--re-vela);
	/* Márgenes y no transform, para que el enlace siga cubriendo toda la fila. */
	margin-inline: 14px -14px;
}

.re-fila__extracto {
	max-width: 640px;
	font-size: 16px;
}

.re-fila__miniatura {
	flex: none;
	width: 150px;
	height: 100px;
	margin: 0;
	overflow: hidden;
	border-radius: 999px;
	opacity: 0;
	transform: scale(.85) rotate(-4deg);
	transition: opacity .45s, transform .6s var(--re-curva);
}

.re-fila__miniatura img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.re-fila:hover .re-fila__miniatura {
	opacity: 1;
	transform: none;
}

.re-fila__tema {
	flex: 0 0 130px;
}

.re-fila::after {
	content: "";
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid var(--re-linea-fuerte);
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322302A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: background-color .4s, border-color .4s;
}

.re-fila:hover::after,
.re-fila:focus-within::after {
	background: var(--re-vela) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F0E8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / 18px no-repeat;
	border-color: var(--re-vela);
}

.re-sin-resultados {
	padding: 34px 0;
	font-family: var(--re-serif);
	font-size: 28px;
}

.re-paginacion {
	justify-content: center;
	gap: 12px;
	padding-top: 24px;
}

.re-paginacion a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	border: 1px solid var(--re-linea-fuerte);
	color: var(--re-tinta);
	font-family: var(--re-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .4s, color .4s, border-color .4s;
}

.re-paginacion a::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--re-ico-abajo) center / contain no-repeat;
	mask: var(--re-ico-abajo) center / contain no-repeat;
}

.re-paginacion .wp-block-query-pagination-previous::after {
	-webkit-mask-image: var(--re-ico-arriba);
	mask-image: var(--re-ico-arriba);
}

.re-paginacion a:hover,
.re-paginacion a:focus-visible {
	background: var(--re-vela-texto);
	border-color: var(--re-vela-texto);
	color: var(--re-lino);
}

.re-conversemos {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px 64px;
	padding: clamp(80px, 8vw, 128px) var(--re-gutter);
}

.re-conversemos__titulo {
	flex: 1 1 620px;
	min-width: 0;
	font-size: clamp(44px, 6vw, 100px);
}

/* Buscador */
.re-buscador .wp-block-search__inside-wrapper {
	gap: 8px;
	max-width: 560px;
	padding: 0;
	border: 0;
}

.re-buscador .wp-block-search__input {
	min-height: 52px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid var(--re-linea-fuerte);
	background: var(--wp--preset--color--papel);
	color: var(--re-tinta);
	font: inherit;
}

.re-buscador .wp-block-search__button {
	min-height: 52px;
	margin: 0;
	padding: 0 26px;
	border-radius: 999px;
	border: 0;
	background: var(--re-tinta);
	color: var(--re-lino);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.re-buscador .wp-block-search__button:hover {
	background: var(--re-vela-texto);
}

.re-404__acciones {
	display: flex;
	flex-direction: column;
	gap: 24px;
	flex: 0 1 560px;
	min-width: 0;
	max-width: 560px;
}

.re-404__acciones .wp-block-search__inside-wrapper,
.re-404__acciones .wp-block-search__input {
	min-width: 0;
}

/* ---------------------------------------------------------------
 * 7. Artículo
 * ------------------------------------------------------------ */
.re-progreso {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: 3px;
	background: var(--re-vela);
	transform: scaleX(0);
	transform-origin: left;
	pointer-events: none;
}

@supports (animation-timeline: scroll()) {
	.re-progreso {
		animation: re-crecer linear both;
		animation-timeline: scroll(root);
	}
}

body.admin-bar .re-progreso {
	top: 32px;
}

.re-articulo__cabecera {
	display: flex;
	flex-direction: column;
	gap: 36px;
	max-width: 1240px;
	padding: 56px var(--re-gutter);
}

.re-articulo__titulo {
	font-size: clamp(44px, 7vw, 116px);
	line-height: .96;
	letter-spacing: -.035em;
}

.re-articulo__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 48px;
	padding-top: 8px;
}

.re-articulo__fecha,
.re-tiempo {
	margin: 0;
	font-family: var(--re-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--re-sec);
}

.re-autoria {
	display: flex;
	align-items: center;
	gap: 14px;
}

.re-autoria__avatar {
	width: 48px;
	height: 48px;
	flex: none;
	overflow: hidden;
	border-radius: 50%;
}

.re-autoria__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.re-autoria__texto {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.re-autoria__nombre {
	font-weight: 500;
}

.re-autoria__detalle {
	font-size: 14px;
	color: var(--re-sec);
}

/*
 * Portada del artículo: pintada sobre acuarela como las fotos del texto, pero
 * ancha y con su propia proporción, porque muchas traen el título escrito y
 * un recorte lo cortaría. tema.js anima el borde (ver «Imágenes del artículo»).
 */
.re-articulo__portada {
	position: relative;
	isolation: isolate;
	width: min(1100px, 100% - 2 * var(--re-gutter));
	margin: 0 auto;
}

.re-articulo__portada::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -12%;
	bottom: -28%;
	left: 50%;
	width: 100vw;
	translate: -50% 0;
	background:
		radial-gradient(ellipse 34% 42% at 50% 44%, rgba(246, 200, 150, .5), rgba(240, 214, 184, .22) 55%, rgba(246, 240, 232, 0)),
		url(../images/acuarela-portada.webp) center / cover;
	opacity: .62;
	-webkit-mask-image: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, .7) 42%, rgba(0, 0, 0, .3) 70%, rgba(0, 0, 0, .08) 88%, transparent);
	mask-image: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, .7) 42%, rgba(0, 0, 0, .3) 70%, rgba(0, 0, 0, .08) 88%, transparent);
	pointer-events: none;
}

.re-articulo__portada:not(.es-viva)::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -12% -7%;
	background: url(../images/acuarela-terracota.webp) center / cover;
	mix-blend-mode: multiply;
	opacity: .6;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 540' preserveAspectRatio='none'%3E%3Cdefs%3E%3CradialGradient id='p'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.5'/%3E%3Cstop offset='.7' stop-color='%23fff' stop-opacity='.8'/%3E%3Cstop offset='1' stop-color='%23fff'/%3E%3C/radialGradient%3E%3Cfilter id='f' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009' numOctaves='4' seed='12' result='r'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='r' scale='95' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cellipse cx='200' cy='270' rx='168' ry='236' fill='url(%23p)' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 540' preserveAspectRatio='none'%3E%3Cdefs%3E%3CradialGradient id='p'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.5'/%3E%3Cstop offset='.7' stop-color='%23fff' stop-opacity='.8'/%3E%3Cstop offset='1' stop-color='%23fff'/%3E%3C/radialGradient%3E%3Cfilter id='f' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009' numOctaves='4' seed='12' result='r'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='r' scale='95' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cellipse cx='200' cy='270' rx='168' ry='236' fill='url(%23p)' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	pointer-events: none;
}

/* El bloque pone su proporción en línea; aquí manda la de la imagen. */
.re-articulo__portada img {
	display: block;
	width: 100%;
	height: auto !important;
	max-height: min(80vh, 760px);
	aspect-ratio: auto !important;
	object-fit: cover;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='l'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.13' stop-color='%23fff'/%3E%3Cstop offset='.87' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011' numOctaves='4' seed='4' result='r'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='r' scale='50' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='4.5'/%3E%3C/filter%3E%3C/defs%3E%3Crect x='16' y='16' width='368' height='468' rx='50' fill='url(%23l)' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='l'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.13' stop-color='%23fff'/%3E%3Cstop offset='.87' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011' numOctaves='4' seed='4' result='r'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='r' scale='50' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='4.5'/%3E%3C/filter%3E%3C/defs%3E%3Crect x='16' y='16' width='368' height='468' rx='50' fill='url(%23l)' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.re-articulo__portada.es-viva img {
	opacity: 0;
}

/* Destacado del blog y «Sigue leyendo»: sin JavaScript conservan la bóveda;
   con WebGL el lienzo pinta la foto con el borde de agua y el marco. */
.re-destacado__img.es-viva,
.re-relacionado__marco.es-viva {
	position: relative;
	overflow: visible;
	border-radius: 0;
}

.re-destacado__img.es-viva img,
.re-relacionado__marco.es-viva img {
	opacity: 0;
	transform: none !important;
}

/* El lavado del marco pasa por debajo del texto de la tarjeta. */
.re-relacionado__meta,
.re-relacionado__titulo {
	position: relative;
	z-index: 1;
}

.re-articulo__cuerpo {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 48px 80px;
	padding: clamp(64px, 7vw, 112px) var(--re-gutter);
}

.re-articulo__lateral {
	position: sticky;
	top: calc(var(--re-alto-cabecera, 0px) + 32px);
	flex: 0 1 260px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

body.admin-bar .re-articulo__lateral {
	top: 64px;
}

.re-indice {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.re-indice[hidden] {
	display: none;
}

.re-indice__titulo,
.re-compartir__titulo {
	margin: 0;
	padding-bottom: 6px;
	color: var(--re-sec);
}

.re-indice__lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.re-indice__lista li {
	margin: 0;
	border-top: 1px solid rgba(34, 48, 42, .14);
}

.re-indice__lista li:last-child {
	border-bottom: 1px solid rgba(34, 48, 42, .14);
}

.re-indice__lista a {
	display: block;
	padding: 10px 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--wp--preset--color--tinta-suave);
	text-decoration: none;
	transition: color .3s, padding-left .4s var(--re-curva);
}

.re-indice__lista a:hover,
.re-indice__lista a[aria-current="true"] {
	color: var(--re-vela-texto);
	padding-left: 8px;
}

.re-indice__lista a[aria-current="true"] {
	font-weight: 500;
}

.re-compartir {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.re-compartir__botones {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.re-compartir__boton {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid rgba(34, 48, 42, .3);
	color: var(--re-tinta);
	text-decoration: none;
	transition: background .35s, color .35s, border-color .35s;
}

.re-compartir__boton:hover,
.re-compartir__boton:focus-visible {
	background: var(--re-tinta);
	border-color: var(--re-tinta);
	color: var(--re-lino);
}

.re-articulo__texto {
	flex: 1 1 560px;
	min-width: 0;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Texto del artículo */
.re-contenido-articulo {
	font-size: 19px;
	line-height: 1.75;
	color: var(--wp--preset--color--tinta-suave);
}

body .re-contenido-articulo.is-layout-flow > * + *,
body .re-contenido.is-layout-constrained > * + * {
	margin-block-start: 28px;
}

.re-contenido-articulo > p:first-of-type {
	font-size: 22px;
	line-height: 1.65;
	color: var(--re-tinta);
}

.re-contenido-articulo > p:first-of-type::first-letter,
.re-contenido-articulo .has-drop-cap:not(:focus)::first-letter {
	float: left;
	padding: .06em .1em 0 0;
	font-family: var(--re-serif);
	font-size: 5.4em;
	font-weight: 350;
	font-style: normal;
	line-height: .82;
	color: var(--re-vela);
	text-transform: none;
}

.re-contenido-articulo h2,
.re-contenido h2 {
	margin-block-start: 60px;
	font-size: clamp(28px, 2.8vw, 42px);
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--re-tinta);
	scroll-margin-top: 32px;
}

.re-contenido-articulo h3,
.re-contenido h3 {
	margin-block-start: 44px;
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 400;
	line-height: 1.15;
	color: var(--re-tinta);
}

.re-contenido-articulo a,
.re-contenido a {
	color: var(--re-tinta);
	text-decoration: underline;
	text-decoration-color: var(--re-vela);
}

.re-contenido-articulo a:hover,
.re-contenido a:hover {
	color: var(--re-vela-texto);
}

.re-contenido-articulo strong {
	font-weight: 600;
	color: var(--re-tinta);
}

.re-contenido-articulo img {
	border-radius: 6px;
}

/*
 * Imágenes del artículo: verticales y pintadas sobre acuarela. Detrás, la
 * acuarela del hero se pierde hacia los lados; alrededor, un lavado terracota
 * hace de marco y el borde de la foto se deshace en agua.
 * inc/blog.php marca con .re-imagen-acuarela las que tienen tamaño suficiente
 * y no muestra la que repite la imagen destacada. Este marco es fijo; tema.js
 * lo reemplaza por uno en movimiento (WebGL) y pone .es-viva en el contenedor.
 */
.re-contenido-articulo {
	isolation: isolate;
}

/* La acuarela de fondo pasa por debajo del índice lateral, no por encima. */
.re-articulo__lateral {
	z-index: 1;
}

/* p.es-viva: el lienzo que agrega tema.js deja a la imagen sin ser hija única. */
.re-contenido-articulo figure:has(img.re-imagen-acuarela):not(:has(figure)),
.re-contenido-articulo p:has(> img.re-imagen-acuarela:only-child, > a:only-child > img.re-imagen-acuarela),
.re-contenido-articulo p.es-viva {
	--re-foto-ancho: min(480px, 100cqi);
	container-type: inline-size;
	position: relative;
	display: grid;
	justify-items: center;
	gap: 22px;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	margin-block: clamp(64px, 8vw, 96px) !important;
}

.re-contenido-articulo figure:has(img.re-imagen-acuarela):not(:has(figure))::before,
.re-contenido-articulo p:has(> img.re-imagen-acuarela:only-child, > a:only-child > img.re-imagen-acuarela)::before,
.re-contenido-articulo p.es-viva::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -18%;
	bottom: -10%;
	left: 50%;
	width: 140%;
	translate: -50% 0;
	background:
		radial-gradient(ellipse 42% 40% at 50% 44%, rgba(246, 200, 150, .5), rgba(240, 214, 184, .22) 55%, rgba(246, 240, 232, 0)),
		url(../images/acuarela-portada.webp) center / cover;
	opacity: .62;
	-webkit-mask-image: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, .7) 42%, rgba(0, 0, 0, .3) 70%, rgba(0, 0, 0, .08) 88%, transparent);
	mask-image: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, .7) 42%, rgba(0, 0, 0, .3) 70%, rgba(0, 0, 0, .08) 88%, transparent);
	pointer-events: none;
}

/* Marco fijo: un lavado de pigmento un poco más grande que la foto. */
.re-contenido-articulo figure:has(img.re-imagen-acuarela):not(:has(figure), .es-viva)::after,
.re-contenido-articulo p:has(> img.re-imagen-acuarela:only-child, > a:only-child > img.re-imagen-acuarela):not(.es-viva)::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: calc(var(--re-foto-ancho) * .625);
	left: 50%;
	width: calc(var(--re-foto-ancho) * 1.24);
	aspect-ratio: 4 / 4.75;
	translate: -50% -50%;
	background: url(../images/acuarela-terracota.webp) center / cover;
	mix-blend-mode: multiply;
	opacity: .6;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 540' preserveAspectRatio='none'%3E%3Cdefs%3E%3CradialGradient id='p'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.5'/%3E%3Cstop offset='.7' stop-color='%23fff' stop-opacity='.8'/%3E%3Cstop offset='1' stop-color='%23fff'/%3E%3C/radialGradient%3E%3Cfilter id='f' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009' numOctaves='4' seed='12' result='r'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='r' scale='95' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cellipse cx='200' cy='270' rx='168' ry='236' fill='url(%23p)' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 540' preserveAspectRatio='none'%3E%3Cdefs%3E%3CradialGradient id='p'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.5'/%3E%3Cstop offset='.7' stop-color='%23fff' stop-opacity='.8'/%3E%3Cstop offset='1' stop-color='%23fff'/%3E%3C/radialGradient%3E%3Cfilter id='f' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009' numOctaves='4' seed='12' result='r'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='r' scale='95' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cellipse cx='200' cy='270' rx='168' ry='236' fill='url(%23p)' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	pointer-events: none;
}

.re-contenido-articulo :is(figure, p) > a:has(> img.re-imagen-acuarela) {
	display: block;
	width: var(--re-foto-ancho);
}

.re-contenido-articulo img.re-imagen-acuarela {
	display: block;
	width: var(--re-foto-ancho) !important;
	height: auto !important;
	/* El editor de bloques pone a veces su propia proporción en línea. */
	aspect-ratio: 4 / 5 !important;
	object-fit: cover !important;
	border-radius: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='l'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.13' stop-color='%23fff'/%3E%3Cstop offset='.87' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011' numOctaves='4' seed='4' result='r'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='r' scale='50' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='4.5'/%3E%3C/filter%3E%3C/defs%3E%3Crect x='16' y='16' width='368' height='468' rx='50' fill='url(%23l)' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='l'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.13' stop-color='%23fff'/%3E%3Cstop offset='.87' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011' numOctaves='4' seed='4' result='r'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='r' scale='50' xChannelSelector='R' yChannelSelector='G'/%3E%3CfeGaussianBlur stdDeviation='4.5'/%3E%3C/filter%3E%3C/defs%3E%3Crect x='16' y='16' width='368' height='468' rx='50' fill='url(%23l)' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.re-contenido-articulo figure:has(img.re-imagen-acuarela) figcaption {
	position: relative;
	z-index: 1;
	max-width: 46ch;
	text-align: center;
}

/* Con WebGL, el lienzo pinta la foto y el marco; la imagen queda debajo (texto alternativo, enlace).
   tema.js lo coloca y le da tamaño a partir de la imagen. */
.re-acuarela-lienzo {
	position: absolute;
	pointer-events: none;
}

.re-contenido-articulo .es-viva img.re-imagen-acuarela {
	opacity: 0;
}

.re-contenido-articulo :is(ul, ol):not(.re-sin-estilo) {
	padding-left: 0;
}

.re-contenido-articulo ul:not(.re-sin-estilo) {
	list-style: none;
}

.re-contenido-articulo ul:not(.re-sin-estilo) > li {
	position: relative;
	padding-left: 26px;
}

.re-contenido-articulo ul:not(.re-sin-estilo) > li + li {
	margin-top: 8px;
}

.re-contenido-articulo ul:not(.re-sin-estilo) > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .68em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--re-vela);
}

.re-contenido-articulo ol {
	padding-left: 1.4em;
}

.re-contenido-articulo ol > li::marker {
	color: var(--re-vela-texto);
	font-family: var(--re-mono);
	font-size: .8em;
}

.is-style-puntos > li {
	margin: 0 !important;
	padding-top: 16px;
	padding-bottom: 16px;
	border-top: 1px solid rgba(34, 48, 42, .14);
}

.is-style-puntos > li:last-child {
	border-bottom: 1px solid rgba(34, 48, 42, .14);
}

.is-style-puntos > li::before {
	top: calc(16px + .68em) !important;
}

/* Cita destacada */
.wp-block-pullquote,
.re-contenido-articulo blockquote.wp-block-quote {
	margin-block: 36px;
	padding: 40px 0;
	border: 0;
	border-top: 1px solid var(--re-linea);
	border-bottom: 1px solid var(--re-linea);
	text-align: left;
	color: var(--re-tinta);
}

.wp-block-pullquote blockquote {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

.wp-block-pullquote blockquote::before {
	content: "“";
	height: 40px;
	font-family: var(--re-serif);
	font-size: 96px;
	font-style: normal;
	line-height: .8;
	color: var(--re-vela);
}

.wp-block-pullquote p,
.re-contenido-articulo blockquote.wp-block-quote p {
	margin: 0;
	font-family: var(--re-serif);
	font-size: clamp(30px, 3.2vw, 48px);
	font-style: italic;
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: -.015em;
}

.re-contenido-articulo blockquote.wp-block-quote p {
	font-size: clamp(24px, 2.4vw, 32px);
}

.wp-block-pullquote cite,
.re-contenido-articulo blockquote.wp-block-quote cite {
	font-family: var(--re-mono);
	font-size: 12px;
	font-style: normal;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--re-sec);
}

/* Tarjetas numeradas */
.re-tarjetas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	counter-reset: tarjeta;
}

.re-tarjeta {
	counter-increment: tarjeta;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	border-radius: 6px;
	background: var(--re-salvia);
}

.re-tarjeta::before {
	content: counter(tarjeta, decimal-leading-zero);
	font-family: var(--re-mono);
	font-size: 12px;
	letter-spacing: .08em;
	color: var(--re-vela-texto);
}

body .re-tarjeta h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.15;
	color: var(--re-tinta);
}

.re-tarjeta p {
	font-size: 16px;
	line-height: 1.6;
}

.re-autoria-nota {
	margin: 24px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--re-linea);
	line-height: 1.8;
	color: var(--re-sec);
}

/* Llamado oscuro */
.re-cta-oscuro {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px 64px;
	margin: 0 var(--re-gutter) !important;
	padding: clamp(56px, 6vw, 96px) clamp(28px, 5vw, 80px);
	border-radius: 6px;
	background: var(--re-tinta);
	color: var(--re-lino);
}

.re-cta-oscuro::before {
	content: "";
	position: absolute;
	right: -80px;
	top: -80px;
	width: 400px;
	height: 400px;
	opacity: .25;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23BF5F38'%3E%3Ccircle cx='200' cy='200' r='60'/%3E%3Ccircle cx='200' cy='200' r='120'/%3E%3Ccircle cx='200' cy='200' r='180'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}

.re-cta-oscuro__texto {
	position: relative;
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.re-cta-oscuro__titulo {
	font-size: clamp(32px, 3.8vw, 60px);
	line-height: 1.02;
	letter-spacing: -.025em;
	color: var(--re-lino);
}

.re-cta-oscuro p {
	max-width: 520px;
	color: #C9D0CA;
}

.re-cta-oscuro .wp-block-buttons {
	position: relative;
}

/* Sigue leyendo */
.re-sigue-leyendo {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-top: clamp(80px, 8vw, 128px);
	padding-bottom: clamp(80px, 8vw, 128px);
}

.re-sigue-leyendo__titulo {
	font-size: clamp(40px, 4.4vw, 68px);
	line-height: 1;
	letter-spacing: -.025em;
}

.re-relacionados {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.re-relacionado {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}

.re-relacionado__marco {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 999px 999px 6px 6px;
}

.re-relacionado__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 1s var(--re-curva);
}

.re-relacionado:hover .re-relacionado__img {
	transform: scale(1.08);
}

.re-relacionado__meta {
	margin: 0;
}

.re-relacionado__titulo {
	margin: 0;
	font-size: clamp(24px, 2.2vw, 30px);
	line-height: 1.12;
	transition: color .4s;
}

.re-relacionado:hover .re-relacionado__titulo {
	color: var(--re-vela);
}

/* ---------------------------------------------------------------
 * 8. Página genérica
 * ------------------------------------------------------------ */
.re-pagina {
	padding-bottom: var(--re-seccion);
}

.re-pagina__cabecera {
	padding: 56px var(--re-gutter) 48px;
}

.re-pagina__titulo {
	font-size: clamp(48px, 8vw, 132px);
	line-height: .92;
	letter-spacing: -.04em;
}

.re-pagina__imagen {
	margin: 0 var(--re-gutter) 64px !important;
	overflow: hidden;
	border-radius: 999px 999px 6px 6px;
}

.re-contenido {
	padding: 0 var(--re-gutter);
	font-size: 18px;
	line-height: 1.7;
}

/* Imágenes con forma */
.is-style-arco,
.is-style-circulo,
.is-style-pildora {
	position: relative;
	overflow: hidden;
	margin: 0;
}

.is-style-arco {
	aspect-ratio: 4 / 5;
	border-radius: 999px 999px 4px 4px;
}

.is-style-circulo {
	aspect-ratio: 1;
	border-radius: 50%;
}

.is-style-pildora {
	border-radius: 999px;
}

.is-style-arco img,
.is-style-circulo img,
.is-style-pildora img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Grano de papel en la portada */
body.home::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 60;
	pointer-events: none;
	opacity: .07;
	mix-blend-mode: overlay;
	background: url("../images/grano.png") repeat;
}

/* ---------------------------------------------------------------
 * 9. Animaciones
 * ------------------------------------------------------------ */
@keyframes re-marquesina {
	to { transform: translateX(-50%); }
}

@keyframes re-onda {
	0% { transform: scale(.08); opacity: 0; }
	14% { opacity: .5; }
	60% { opacity: .22; }
	100% { transform: scale(1.55); opacity: 0; }
}

@keyframes re-acuarela-llega {
	from { transform: scale(1.16) translate3d(1.5%, 2%, 0); }
	to { transform: scale(1.04); }
}

@keyframes re-deriva {
	0%, 100% { transform: scale(1.04); }
	35% { transform: scale(1.09) translate3d(-1.2%, .8%, 0) rotate(.5deg); }
	70% { transform: scale(1.11) translate3d(.8%, -1%, 0) rotate(-.4deg); }
}

@keyframes re-amanecer {
	from { opacity: 0; transform: translateY(22%) scale(.6); }
	to { opacity: 1; transform: none; }
}

@keyframes re-luz {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .78; transform: scale(1.08); }
}

@keyframes re-vaiven {
	0%, 100% { transform: translate(-22%, 30%) scale(1); }
	50% { transform: translate(10%, 14%) scale(1.18); }
}

@keyframes re-aparecer {
	from { opacity: 0; }
}

@keyframes re-mota {
	0% { opacity: 0; transform: translate3d(0, 0, 0); }
	12% { opacity: var(--o, .85); }
	50% { transform: translate3d(var(--a, 24px), -34vh, 0); }
	80% { opacity: var(--o, .85); }
	100% { opacity: 0; transform: translate3d(0, -68vh, 0); }
}

/* La máscara solo existe mientras dura la animación: al terminar no queda nada recortado. */
@keyframes re-descubrir {
	from {
		-webkit-mask-image: linear-gradient(#000 40%, rgba(0, 0, 0, 0) 60%);
		mask-image: linear-gradient(#000 40%, rgba(0, 0, 0, 0) 60%);
		-webkit-mask-size: 100% 300%;
		mask-size: 100% 300%;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-position: 0 100%;
		mask-position: 0 100%;
		transform: translateY(.12em);
	}
	to {
		-webkit-mask-image: linear-gradient(#000 40%, rgba(0, 0, 0, 0) 60%);
		mask-image: linear-gradient(#000 40%, rgba(0, 0, 0, 0) 60%);
		-webkit-mask-size: 100% 300%;
		mask-size: 100% 300%;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-position: 0 0;
		mask-position: 0 0;
		transform: none;
	}
}

@keyframes re-acento {
	from { opacity: 0; transform: translateX(-.35em); filter: blur(6px); }
	to { opacity: 1; transform: none; filter: none; }
}

@keyframes re-subir-tarjeta {
	from { opacity: 0; transform: translateY(28px) scale(.98); }
	to { opacity: 1; transform: none; }
}

@keyframes re-respirar {
	0%, 100% { transform: scale(1.04); }
	50% { transform: scale(1.12); }
}

@keyframes re-girar {
	to { transform: rotate(360deg); }
}

@keyframes re-pulso {
	0%, 100% { opacity: 1; }
	50% { opacity: .35; }
}

@keyframes re-subir {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@keyframes re-crecer {
	to { transform: scaleX(1); }
}

/* ---------------------------------------------------------------
 * 10. Pantallas pequeñas
 * ------------------------------------------------------------ */
@media (max-width: 900px) {
	.re-programa {
		grid-template-columns: 48px minmax(0, 1fr) 56px;
		gap: 16px;
	}

	.re-programa::after {
		width: 52px;
		height: 52px;
	}

	.re-programa__desc,
	.re-programa__img {
		display: none;
	}

	.re-fila__miniatura {
		display: none;
	}

	.re-hero {
		min-height: 0;
		padding-top: 48px;
	}

	.re-hero__fondo,
	.re-hero__ondas {
		width: 70%;
	}

	.re-cuarenta__intro,
	.re-perdida-senales__intro,
	.re-articulo__lateral {
		position: static;
	}

	.re-perdida-hero__imagen {
		flex-basis: 260px;
		margin-left: 0;
	}

	.re-articulo__lateral {
		flex-basis: 100%;
	}
}

@media (max-width: 600px) {
	.re-cabecera {
		--re-cabecera-aire: 20px;
	}

	/* Un poco más pequeños en móvil para que las dos últimas palabras quepan juntas (sin viudas). */
	.re-titulo-xl {
		font-size: clamp(40px, 12vw, 52px);
	}

	.re-programa__titulo {
		font-size: clamp(30px, 9vw, 36px);
	}

	.re-blog-cabecera__titulo {
		font-size: clamp(40px, 12vw, 52px);
	}

	.re-conversemos__titulo {
		font-size: clamp(32px, 10vw, 44px);
	}

	.re-cabecera__menu {
		gap: 4px 20px;
	}

	.re-nav,
	.re-nav .wp-block-navigation__container {
		gap: 0 20px;
	}

	/* El botón flotante ya cumple esta función en móvil. */
	.re-cabecera .re-cabecera__boton {
		display: none;
	}

	.re-barra-contacto__lema,
	.re-barra-contacto__wa {
		display: none;
	}

	.re-barra-contacto__enlaces {
		gap: 0 18px;
	}

	.re-tarjeta-wa {
		padding: 20px;
		flex-basis: 100%;
	}

	.is-style-whatsapp-grande .wp-block-button__link {
		padding-left: 58px;
		padding-right: 70px;
	}

	.is-style-whatsapp-grande .wp-block-button__link::before {
		left: 18px;
	}

	.re-manifiesto__etiqueta {
		flex-basis: 100%;
	}

	.re-sello.re-sobre__sello {
		right: 0;
		top: 12px;
		--re-sello: 120px !important;
	}

	.re-fila {
		gap: 12px 20px;
	}

	.re-fila__fecha {
		flex-basis: 100%;
	}

	.re-fila__cuerpo {
		flex-basis: calc(100% - 72px);
	}

	.re-fila__tema {
		order: 5;
		flex-basis: 100%;
	}

	.re-programa-hero__titulo em {
		padding-left: .3em;
	}

	.re-flotante {
		right: 16px;
		bottom: 16px;
	}

	.re-flotante .wp-block-button__link {
		min-height: 56px;
		padding: 0 20px 0 16px;
	}

	.re-autoevaluacion__resultado {
		padding: 24px;
	}

	.re-autoevaluacion__mensaje {
		font-size: 24px;
	}

	.re-sello {
		--re-sello: 130px !important;
	}
}

/* ---------------------------------------------------------------
 * 11. Movimiento reducido: todo quieto
 * ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.re-banda .re-banda__pista,
	.re-hero__ondas::before,
	.re-hero__ondas::after,
	.re-sello__giro,
	.re-hero__fondo img,
	.re-hero__fondo::before,
	.re-respira img,
	.is-style-en-linea::before,
	.re-con-punto .wp-block-button__link::before,
	.re-fila {
		animation: none !important;
	}

	/* La luz y la órbita se quedan quietas; las ondas y las motas no aparecen. */
	.re-hero__ondas > * {
		display: none;
	}

	.re-progreso {
		animation: none !important;
	}

	.re-banda__pista {
		flex-wrap: wrap;
		width: auto;
		row-gap: 16px;
		padding: 0 var(--re-gutter);
	}

	.re-banda__pista > p {
		white-space: normal;
		font-size: clamp(30px, 4vw, 56px);
	}
}

/* ---------------------------------------------------------------
 * 12. Editor
 * ------------------------------------------------------------ */
.re-editor-marcador {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	border: 1px dashed var(--re-linea-fuerte);
	border-radius: 6px;
	font-size: 14px;
	color: var(--re-sec);
}

.re-editor-marcador strong {
	color: var(--re-tinta);
	font-weight: 500;
}

.editor-styles-wrapper .re-banda__pista {
	flex-wrap: wrap;
	width: auto;
	padding: 0 var(--re-gutter);
}

.editor-styles-wrapper .re-flotante {
	position: static;
}

/* En el editor la acuarela de la portada se ve como una franja que se puede seleccionar. */
.editor-styles-wrapper .re-hero__fondo {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	width: 100%;
	height: 220px;
	z-index: 0;
	border-radius: 6px;
}

.editor-styles-wrapper .re-hero__fondo::after,
.editor-styles-wrapper .re-hero__fondo::before,
.editor-styles-wrapper .re-hero__ondas {
	display: none;
}

.editor-styles-wrapper .re-indice[hidden] {
	display: flex;
}
