/* RE Theme · formularios propios y mensaje de crisis. */

/* Avisos (también los usa la tienda). */
.re-notice {
	margin: 0 0 var(--re-espacio-5);
	padding: var(--re-espacio-4) var(--re-espacio-5);
	background: var(--re-fondo-alt);
	border-left: 4px solid var(--re-marca);
	border-radius: var(--re-radio-sm);
	color: var(--re-texto);
	font-size: 15px;
}
.re-notice--error { background: #fff4f2; border-left-color: #b42318; }
.re-notice--ok { border-left-color: var(--re-lima-800); }

.re-fm { max-width: 640px; margin-left: 0; margin-right: auto; }
/* Suelto en una sección ancha: se alinea con el texto (mismo borde izquierdo) y no pasa de 640 px. */
.re-section--wide > .re-fm {
	max-width: 1120px !important;
	margin-inline: auto !important;
	padding-inline-end: max(0px, calc(min(100vw - 40px, 1120px) - 640px));
}
.re-fm__fields > * { margin: 0 0 var(--re-espacio-4); }
.re-fm__fields > :last-child { margin-bottom: 0; }
.re-fm__fields[hidden] { display: none !important; }
.re-fm__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.re-field label {
	display: block;
	margin-bottom: 6px;
	font: 500 14px/1.4 var(--re-fuente-texto);
	color: inherit;
}
.re-field__opt { font-weight: 400; opacity: .7; }
.re-field :is(input[type="text"], input[type="email"], select, textarea) {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--re-borde-fuerte);
	border-radius: var(--re-radio-sm);
	color: var(--re-texto);
	font: 400 16px/1.45 var(--re-fuente-texto);
}
.re-field textarea { min-height: 132px; resize: vertical; }
.re-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--re-foco); outline-offset: 1px; border-color: var(--re-foco); }
.re-field [aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }

.re-field--check { display: flex; gap: 10px; align-items: flex-start; }
.re-field--check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--re-accion);
}
.re-field--check input[aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 2px; }
.re-field--check label { margin: 0; font-weight: 400; font-size: 14px; line-height: 1.5; }
.re-field--check a { color: inherit; }

.re-fm__status:empty { display: none; }
.re-fm__status { margin-bottom: var(--re-espacio-4); }
.re-fm__status:focus { outline: none; }
.re-fm .re-notice { margin: 0; }
.re-fm button[disabled] { opacity: .6; cursor: progress; }

/* Dos columnas para nombre y correo en pantallas anchas */
@media (min-width: 640px) {
	.re-fm--contact .re-fm__fields,
	.re-fm--talk .re-fm__fields,
	.re-fm--lead .re-fm__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--re-espacio-4); }
	.re-fm--contact .re-fm__fields > *,
	.re-fm--talk .re-fm__fields > *,
	.re-fm--lead .re-fm__fields > * { grid-column: 1 / -1; }
	.re-fm--contact .re-fm__fields > :nth-child(1),
	.re-fm--contact .re-fm__fields > :nth-child(2),
	.re-fm--talk .re-fm__fields > :nth-child(1),
	.re-fm--talk .re-fm__fields > :nth-child(2),
	.re-fm--talk .re-fm__fields > :nth-child(3),
	.re-fm--talk .re-fm__fields > :nth-child(4),
	.re-fm--lead .re-fm__fields > :nth-child(1),
	.re-fm--lead .re-fm__fields > :nth-child(2) { grid-column: auto; }
}

/* Carta del mes en una línea: correo + botón */
.re-fm--newsletter .re-fm__fields,
.re-fm--workshops .re-fm__fields { display: grid; grid-template-columns: 1fr; gap: var(--re-espacio-3) var(--re-espacio-3); }
.re-fm--newsletter .re-fm__fields > *,
.re-fm--workshops .re-fm__fields > * { margin: 0; }
@media (min-width: 640px) {
	.re-fm--newsletter .re-fm__fields,
	.re-fm--workshops .re-fm__fields { grid-template-columns: 1fr auto; align-items: end; }
	.re-fm--newsletter .re-field--check,
	.re-fm--workshops .re-field--check { grid-column: 1 / -1; grid-row: 2; }
	.re-fm--newsletter .re-fm__submit,
	.re-fm--workshops .re-fm__submit { grid-column: 2; grid-row: 1; }
}

/* Dentro del bloque lima */
.re-accent .re-fm { margin-top: var(--re-espacio-5); }
.re-accent .re-field :is(input, select, textarea) { border-color: rgba(46, 42, 56, .35); }
.re-accent .re-btn--primary { background: var(--re-fondo-profundo); color: var(--re-fondo); }
.re-accent .re-btn--primary:hover { background: var(--re-tinta-900); }
.re-accent .re-notice { background: rgba(255, 255, 255, .7); border-left-color: var(--re-fondo-profundo); }

/* En el pie oscuro */
.re-fm--dark { margin-top: var(--re-espacio-5); }
.re-fm--dark .re-fm__fields { grid-template-columns: 1fr !important; }
.re-fm--dark .re-fm__fields > * { grid-column: auto !important; grid-row: auto !important; }
.re-fm--dark .re-field label { color: var(--re-tinta-300); font-size: 13px; }
.re-fm--dark .re-field input[type="email"] {
	background: rgba(253, 251, 249, .06);
	border-color: rgba(253, 251, 249, .25);
	color: var(--re-texto-invertido);
}
.re-fm--dark .re-field--check label { color: var(--re-tinta-300); font-size: 12px; }
.re-fm--dark .re-btn { width: 100%; }
.re-fm--dark .re-notice { background: rgba(253, 251, 249, .08); color: var(--re-texto-invertido); }

/* ---------- Mensaje de crisis ---------- */
.re-crisis {
	padding: var(--re-espacio-5);
	background: #fff;
	border: 1px solid var(--re-borde-fuerte);
	border-left: 4px solid var(--re-fondo-profundo);
	border-radius: var(--re-radio-md);
	color: var(--re-texto);
}
.re-crisis p { margin: 0 0 var(--re-espacio-4); font-size: 17px; line-height: 1.55; }
.re-crisis__links { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.re-crisis__links li { margin-bottom: 8px; }
.re-crisis__links a { color: var(--re-enlace); font-weight: 600; }

/* Taller de Porto: las fechas, una debajo de otra (la última opción es larga). */
.re-chips--stack { flex-direction: column; align-items: flex-start; }
.re-chips--stack .re-chip { text-align: left; }

/* Ficha rápida de un taller: dónde, cuándo, duración… */
.re-facts {
	list-style: none; padding: var(--re-espacio-2) var(--re-espacio-5) !important; margin-block: var(--re-espacio-5) !important;
	background: var(--re-violeta-50); border: 1px solid var(--re-violeta-200); border-radius: var(--re-radio-lg);
	font-size: 15px;
}
.re-facts > li { padding: 10px 0; border-bottom: 1px solid var(--re-violeta-200); margin: 0 !important; }
.re-facts > li:last-child { border-bottom: 0; }
.re-facts strong { color: var(--re-violeta-800); font-weight: 600; margin-right: 4px; }

/* Etapas de un taller, en carrusel: tarjetas numeradas. */
.re-stages { counter-reset: none; padding-top: var(--re-espacio-2); }
.re-stages > .re-stage { flex: 0 0 min(78%, 300px) !important; scroll-snap-align: start; }
/* Cuando lo mueve el scroll de la página: sin imán ni suavizado, para que siga al dedo sin tirones. */
.re-stages--drive { scroll-snap-type: none !important; scroll-behavior: auto !important; }
/* Bloque fijo mientras pasan las tarjetas (lo activa re.js) y el espacio que da el recorrido. */
.re-pin--on { position: sticky; z-index: 1; }
.re-pin .re-carousel-nav { padding: 0 !important; }
.re-pin .re-stages { margin-top: var(--re-espacio-5) !important; }
.re-pin-spacer { margin: 0 !important; }
.re-stage {
	position: relative; display: flex; flex-direction: column; gap: var(--re-espacio-3);
	padding: var(--re-espacio-6) var(--re-espacio-5) var(--re-espacio-5);
	background: var(--wp--preset--color--fondo, #FDFBF9); border: 1px solid var(--re-violeta-200);
	border-radius: var(--re-radio-lg); box-shadow: var(--re-sombra-suave);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.re-stage::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--re-radio-lg) var(--re-radio-lg) 0 0;
	background: linear-gradient(90deg, var(--re-violeta-500), var(--re-violeta-300));
}
.re-stage:hover { transform: translateY(-3px); box-shadow: var(--re-sombra-media); border-color: var(--re-violeta-400); }
.re-stage > * { margin: 0 !important; }
.re-stage__num { font: 500 13px/1 var(--re-fuente-texto); letter-spacing: .12em; color: var(--re-violeta-700); }
.re-stage .re-icon-wrap { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: var(--re-violeta-100); color: var(--re-violeta-700); }
.re-stage h3 { font-size: 22px; line-height: 1.25; }
.re-stage p:last-child { color: var(--re-texto-suave); font-size: 16px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .re-stage, .re-stage:hover { transition: none; transform: none; } }

/* Frase firma de un taller: grande, centrada, en violeta. */
.re-statement {
	/* La caja mide lo que el texto y se centra con márgenes automáticos (re.js ajusta el tamaño). */
	display: block; width: fit-content; max-width: 100% !important; margin-inline: auto !important; text-align: center; text-wrap: balance;
	font-family: var(--wp--preset--font-family--marca, Fraunces, serif); font-weight: 400;
	font-size: clamp(34px, 6.4vw, 72px); line-height: 1.1; letter-spacing: -.01em; color: var(--re-violeta-800);
}
.re-statement__sign {
	margin-inline: auto !important; text-align: center; font: 600 12px/1.4 var(--re-fuente-texto);
	letter-spacing: .24em; text-transform: uppercase; color: var(--re-texto-suave);
}
/* Las secciones anchas reservan un margen a la derecha para el texto corrido (re.css): aquí no, para que quede centrada. */
.re-section > p.re-statement, .re-section > p.re-statement__sign { padding-inline: 0 !important; }
.re-statement__sign::before { content: ""; display: block; width: 40px; height: 1px; margin: 0 auto var(--re-espacio-4); background: var(--re-violeta-400); }

/* Aire entre la lista y la cita que la sigue. */
.re-checks + .re-quote { margin-top: var(--re-espacio-6) !important; }

/* Lista con marcas: «para quién es». */
.re-checks { list-style: none; padding-left: 0 !important; display: grid; gap: var(--re-espacio-3); }
.re-checks > li { position: relative; padding-left: 36px; margin: 0 !important; }
.re-checks > li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--re-violeta-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23744CCD' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Niksen Club: maquetas del merch. */
.re-niksen-merch { align-self: center; }
.re-niksen-merch figure { margin: 0; }
.re-niksen-merch img { display: block; width: 100%; height: auto; border-radius: 16px; }
.re-niksen-merch figcaption { margin-top: 8px; font-size: 14px; text-align: center; color: var(--wp--preset--color--texto-suave); }
/* Unveiled · Porto: caja para cambiar a la edición del otro idioma. */
.re-switch {
	margin-top: var(--re-espacio-5, 24px);
	padding: var(--re-espacio-4, 16px);
	border: 1px dashed var(--re-violeta-300, #D2C7FB);
	border-radius: var(--re-radio-md, 16px);
	background: var(--re-violeta-50, #FAF9FE);
}
.re-switch p { margin: 0 0 var(--re-espacio-3, 12px); }

/* Unveiled · Porto: MB WAY y Revolut, en pequeño y plegado bajo el botón principal. */
.wp-block-details.re-paybox {
	margin-top: var(--re-espacio-4, 16px);
	padding: var(--re-espacio-3, 12px) var(--re-espacio-4, 16px);
	border: 1px solid var(--re-violeta-200, #E6E1FD);
	border-radius: var(--re-radio-md, 16px);
	background: transparent;
	font-size: .92em;
}
.re-paybox summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	cursor: pointer;
	color: var(--re-texto-suave, #5C5568);
}
.re-paylogos { display: inline-flex; gap: 6px; }
.re-paylogo {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 6px;
	font: 700 12px/1.4 Inter, Arial, sans-serif;
	letter-spacing: .02em;
}
.re-paylogo--mbway { background: #D60510; color: #fff; }
.re-paylogo--revolut { background: #191C1F; color: #fff; }
.re-paybox[open] summary { margin-bottom: var(--re-espacio-3, 12px); }

/* Aviso de plazas libres (solo cuando quedan pocas). */
.re-seats { margin: 0 0 var(--re-espacio-3, 12px); font-weight: 600; color: var(--re-violeta-800, #6241AF); }
.re-seats--full { color: var(--re-texto, #2E2A38); }

/* ---------- Unveiled · Porto: aviso superior, barra del móvil y cierre ---------- */
.re-topbar {
	margin: 0;
	background: var(--re-fondo-profundo);
	text-align: center;
	font-size: 14px;
	line-height: 1.4;
}
.re-topbar a {
	display: block;
	padding: 8px 20px;
	color: var(--re-fondo);
	text-decoration: none;
}
.re-topbar a:hover .re-topbar__go,
.re-topbar a:focus-visible .re-topbar__go { text-decoration: underline; }
.re-topbar strong { font-weight: 600; }
.re-topbar__go { color: var(--re-lima-500); white-space: nowrap; }
@media (max-width: 600px) {
	.re-topbar a > span:not(.re-topbar__go) { display: none; }
}

.re-buybar { display: none; }
@media (max-width: 781px) {
	.re-buybar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 56;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--re-fondo);
		border-top: 1px solid var(--re-borde);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
		transform: translateY(110%);
		visibility: hidden;
		transition: transform .25s ease, visibility .25s;
	}
	.re-buybar.is-shown { transform: none; visibility: visible; }
	.re-buybar__text { margin: 0; display: grid; font-size: 14px; line-height: 1.3; }
	.re-buybar__text span { color: var(--re-texto-suave); }
	.re-buybar__btn {
		flex: none;
		padding: 12px 18px;
		border-radius: 999px;
		background: var(--re-accion);
		color: #fff;
		font-weight: 600;
		text-decoration: none;
	}
	.re-buybar__btn:hover { background: var(--re-accion-hover); color: #fff; }
	/* El botón de WhatsApp sube para no tapar la barra. */
	.re-has-buybar .re-wa { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
	.re-buybar { transition: none; }
}

.re-closing { text-align: center; margin-top: var(--re-espacio-6); }
.re-closing .wp-block-buttons { justify-content: center; }

/* ---------- Unveiled · Porto: nube lima, testimonios, preguntas y cierre ---------- */
/* Sección que se arrima a la anterior (la nube de «Para quién es»). */
.re-section--snug { padding-block-start: var(--re-espacio-5) !important; }
/* Nube lima: el bloque de acento con las esquinas muy redondeadas. */
.re-accent.re-cloud { border-radius: 56px; }
@media (max-width: 781px) {
	.re-accent.re-cloud { border-radius: 36px; padding: var(--re-espacio-6) var(--re-espacio-5); }
}
.re-cloud h2 { margin-top: 0; }
.re-cloud .re-quote { background: var(--re-fondo); }
.re-cloud .re-meta { margin-top: var(--re-espacio-4); color: var(--re-texto); opacity: .8; }

/* Testimonios: aire antes y una tarjeta por vez. */
.re-quotes { margin-top: var(--re-espacio-6) !important; }
.re-quotes > * { flex-basis: 100% !important; }

/* Preguntas: columna centrada, sin el hueco a la derecha de las secciones anchas. */
.re-faq.re-section--wide > :is(h2, details, .wp-block-buttons) { padding-inline-end: 0; }
.re-faq .wp-block-buttons { margin-top: var(--re-espacio-6); }

/* Cierre en lima: frase firma centrada y el último botón. */
.re-closing-box { text-align: center; }
.re-closing-box .re-closing { margin-top: var(--re-espacio-5); }
.re-closing-box .re-statement__sign::before { background: var(--re-texto); }
.re-quotes { scrollbar-width: none; }
.re-quotes::-webkit-scrollbar { display: none; }
