/* Afirmación del día — letra grande, alto contraste y botones amplios. */

.rfa {
	--rfa-tinta: #17181a;
	--rfa-suave: #45464a;
	--rfa-borde: #bdb9b0;
	--rfa-whatsapp: #0b6b3a;
	--rfa-c1: #63e6e2;
	--rfa-c2: #3f8cff;
	--rfa-velo: 0.8;

	max-width: 880px;
	margin: 2rem auto;
	color: var(--rfa-tinta);
	font-size: 20px;
	line-height: 1.55;
	display: flex;
	flex-direction: column;
	gap: 24px;
	box-sizing: border-box;
}

.rfa *,
.rfa *::before,
.rfa *::after {
	box-sizing: border-box;
}

.rfa [hidden] {
	display: none !important;
}

.rfa h2,
.rfa h3,
.rfa p,
.rfa blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.rfa button,
.rfa a.rfa-btn {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	text-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.rfa button:focus-visible,
.rfa a:focus-visible,
.rfa input:focus-visible {
	outline: 3px solid #1a5fb4;
	outline-offset: 3px;
}

/* ---------- Navegación por días ---------- */

.rfa-nav {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rfa-nav-fila {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rfa .rfa-flecha {
	flex: none;
	width: 56px;
	height: 56px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--rfa-tinta);
	border-radius: 12px;
	background: #fff;
	color: var(--rfa-tinta);
	cursor: pointer;
}

.rfa .rfa-flecha:disabled {
	opacity: 0.35;
	cursor: default;
}

.rfa-nav-centro {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}

.rfa .rfa-fecha {
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--rfa-tinta);
	text-wrap: balance;
}

.rfa .rfa-fecha::first-letter {
	text-transform: uppercase;
}

.rfa .rfa-hoy {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rfa-suave);
}

.rfa .rfa-volver,
.rfa .rfa-mas {
	min-height: 44px;
	padding: 0 8px;
	border: 0;
	background: none;
	color: var(--rfa-tinta);
	font-size: 20px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.rfa .rfa-mas {
	align-self: flex-start;
	padding: 0;
}

.rfa-tira {
	display: flex;
	gap: 6px;
}

.rfa .rfa-dia {
	flex: 1 1 0;
	min-width: 0;
	min-height: 68px;
	padding: 6px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	border: 2px solid var(--rfa-borde);
	border-radius: 12px;
	background: #fff;
	color: var(--rfa-tinta);
	cursor: pointer;
}

.rfa .rfa-dia[aria-pressed="true"] {
	border-color: var(--rfa-tinta);
	background: var(--rfa-tinta);
	color: #fff;
}

.rfa-dia-corto {
	font-size: 15px;
	line-height: 1.1;
	text-transform: capitalize;
}

.rfa-dia-num {
	font-size: 22px;
	line-height: 1.1;
	font-weight: 700;
}

/* ---------- Marco de la afirmación ---------- */

.rfa-marco {
	padding: 4px;
	border-radius: 12px;
	background-image: linear-gradient(135deg, var(--rfa-c1), var(--rfa-c2));
	box-shadow: 0 18px 40px rgba(14, 15, 16, 0.28);
}

.rfa-lienzo {
	position: relative;
	overflow: hidden;
	border-radius: 9px;
	background-color: #1a1e24;
}

.rfa-fondo,
.rfa-velo {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.rfa-fondo svg {
	position: absolute;
	fill: rgba(226, 229, 233, 0.2);
	stroke: #e2e5e9;
	stroke-width: 2.5;
}

.rfa-fondo .rfa-columna {
	top: 0;
	width: clamp(84px, 24vw, 210px);
	height: 100%;
}

.rfa-fondo .rfa-columna-izq {
	left: 0;
}

.rfa-fondo .rfa-columna-der {
	right: 0;
}

.rfa-fondo .rfa-columna path.rfa-estrias,
.rfa-fondo .rfa-greca {
	fill: none;
}

.rfa-fondo .rfa-greca {
	left: 0;
	width: 100%;
	height: 30px;
}

.rfa-fondo .rfa-greca-sup {
	top: 14px;
}

.rfa-fondo .rfa-greca-inf {
	bottom: 14px;
}

.rfa-velo {
	background-image: radial-gradient(
		ellipse at 50% 50%,
		rgba(13, 15, 18, var(--rfa-velo)) 0%,
		rgba(13, 15, 18, var(--rfa-velo)) 42%,
		rgba(13, 15, 18, calc(var(--rfa-velo) - 0.3)) 100%
	);
}

.rfa-contenido {
	position: relative;
	padding: clamp(60px, 9vw, 96px) clamp(22px, 7vw, 80px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(18px, 3vw, 28px);
	text-align: center;
}

.rfa .rfa-etiqueta {
	font-family: "Montserrat", Verdana, sans-serif;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--rfa-c1);
}

.rfa-placa {
	max-width: 100%;
	padding: clamp(14px, 2.6vw, 26px) clamp(16px, 3.4vw, 36px);
	border-radius: 8px;
	background: rgba(8, 9, 11, 0.6);
}

.rfa .rfa-frase {
	font-family: "Montserrat", Verdana, sans-serif;
	font-style: normal;
	font-weight: 800;
	font-size: clamp(30px, 6vw, 56px);
	line-height: 1.16;
	letter-spacing: 0.035em;
	text-transform: uppercase;
	text-wrap: balance;
	overflow-wrap: break-word;
	color: var(--rfa-c1);
	quotes: none;
}

.rfa .rfa-frase::before,
.rfa .rfa-frase::after {
	content: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.rfa .rfa-frase {
		background-image: linear-gradient(180deg, var(--rfa-c1) 12%, var(--rfa-c2) 88%);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		color: transparent;
	}
}

.rfa .rfa-marca {
	font-family: "Cinzel", Georgia, serif;
	font-weight: 600;
	font-size: 17px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #e3e5e8;
}

@supports (font-size: 1cqw) {
	.rfa {
		container-type: inline-size;
	}

	.rfa-fondo .rfa-columna {
		width: clamp(84px, 24cqw, 210px);
	}

	.rfa-contenido {
		padding: clamp(60px, 9cqw, 96px) clamp(22px, 7cqw, 80px);
		gap: clamp(18px, 3cqw, 28px);
	}

	.rfa-placa {
		padding: clamp(14px, 2.6cqw, 26px) clamp(16px, 3.4cqw, 36px);
	}

	.rfa .rfa-frase {
		font-size: clamp(30px, 6cqw, 62px);
	}
}

/* ---------- Reflexión, declaración y contador ---------- */

.rfa-reflexion {
	max-width: 680px;
	margin: 0 auto;
	font-size: clamp(20px, 2.6vw, 23px);
	line-height: 1.6;
	text-align: center;
	color: #2b2c2f;
	text-wrap: pretty;
}

.rfa-reflexion:empty {
	display: none;
}

.rfa-reflexion p {
	margin: 0 0 0.8em;
}

.rfa-reflexion p:last-child {
	margin-bottom: 0;
}

.rfa-audio {
	display: block;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
}

.rfa-declarar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.rfa .rfa-btn {
	min-height: 60px;
	padding: 10px 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 2px solid var(--rfa-tinta);
	border-radius: 12px;
	background: #fff;
	color: var(--rfa-tinta);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.rfa .rfa-btn:hover:not(:disabled) {
	background: #ebe8e1;
}

.rfa .rfa-btn-principal {
	width: 100%;
	max-width: 520px;
	min-height: 72px;
	padding: 12px 24px;
	border-radius: 14px;
	background: var(--rfa-tinta);
	color: #fff;
	font-size: 26px;
}

.rfa .rfa-btn-principal:hover:not(:disabled) {
	background: #000;
}

.rfa .rfa-btn-principal.rfa-hecho,
.rfa .rfa-btn-principal.rfa-hecho:hover {
	background: #fff;
	color: var(--rfa-tinta);
	cursor: default;
}

.rfa .rfa-btn-whatsapp,
.rfa .rfa-btn-whatsapp:visited {
	border-color: var(--rfa-whatsapp);
	background: var(--rfa-whatsapp);
	color: #fff;
}

.rfa .rfa-btn-whatsapp:hover {
	border-color: #08532d;
	background: #08532d;
	color: #fff;
}

.rfa .rfa-contador {
	min-height: 1.5em;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
}

/* ---------- Compartir ---------- */

.rfa-compartir {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rfa .rfa-compartir h3 {
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	color: var(--rfa-tinta);
}

.rfa-acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.rfa-acciones .rfa-btn {
	flex: 1 1 230px;
}

/* ---------- Otros días ---------- */

.rfa-otros {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid #d9d6cf;
}

.rfa .rfa-otros h3,
.rfa .rfa-recibir h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--rfa-tinta);
}

.rfa-lista {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 12px;
}

.rfa .rfa-tarjeta {
	min-height: 112px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	border: 1px solid var(--rfa-borde);
	border-top: 6px solid var(--rfa-borde);
	border-radius: 12px;
	background: #fff;
	color: var(--rfa-tinta);
	text-align: left;
	cursor: pointer;
}

.rfa .rfa-tarjeta:hover {
	background: #f4f2ed;
}

.rfa-tarjeta-fecha {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--rfa-suave);
}

.rfa-tarjeta-fecha::first-letter {
	text-transform: uppercase;
}

.rfa-tarjeta-frase {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
}

/* ---------- Recibirla cada mañana ---------- */

.rfa-recibir {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border: 1px solid var(--rfa-borde);
	border-radius: 14px;
	background: #fff;
}

.rfa-recibir-fila {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rfa-recibir-fila > .rfa-btn {
	align-self: flex-start;
	width: 100%;
	max-width: 420px;
}

.rfa-form {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rfa .rfa-form-titulo {
	font-size: 18px;
	font-weight: 700;
	color: var(--rfa-tinta);
}

.rfa-form-fila {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rfa .rfa-form input[type="email"] {
	flex: 1 1 200px;
	min-width: 0;
	min-height: 60px;
	margin: 0;
	padding: 8px 14px;
	border: 2px solid #6a6a6e;
	border-radius: 12px;
	background: #fff;
	color: var(--rfa-tinta);
	font: inherit;
	font-size: 20px;
}

.rfa-trampa {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.rfa .rfa-acepto {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 17px;
	line-height: 1.4;
	color: var(--rfa-suave);
	cursor: pointer;
}

.rfa .rfa-acepto input {
	flex: none;
	width: 24px;
	height: 24px;
	margin: 0;
}

.rfa .rfa-acepto a {
	color: var(--rfa-tinta);
	text-decoration: underline;
}

.rfa .rfa-form-mensaje {
	min-height: 1.4em;
	font-size: 18px;
	font-weight: 700;
}

.rfa .rfa-form-mensaje.rfa-ok {
	color: #0b5a31;
}

.rfa .rfa-form-mensaje.rfa-error {
	color: #a01818;
}

@media (prefers-reduced-motion: no-preference) {
	.rfa .rfa-btn,
	.rfa .rfa-tarjeta,
	.rfa .rfa-dia {
		transition: background-color 0.15s ease;
	}
}
