/*
 * Página informativa de FrikiCoins (InfoPageController + views/front/info-page.php).
 * Mismo lenguaje que el widget y Mi cuenta: morado de marca con filo dorado,
 * tarjetas blancas con sombra suave, Bebas Neue para titulares.
 */

/* El tema mete las páginas en una columna de lectura (max-w-prose) y pinta su
 * propio H1; aquí el H1 va dentro del hero y se usa todo el contenedor. */
.ltw-fc-info-page .entry-header { display: none; }
.ltw-fc-info-page article .max-w-prose { max-width: none; }
.ltw-fc-info-page .site-main { padding-top: 32px; }

.ltw-fc-info {
	--info-brand: #510395;
	--info-deep: #3a016f;
	--info-gold: #f7c62f;
	--info-soft: #f8f1fe;
	--info-line: #ece4f5;
	--info-text: #232323;
	--info-muted: #6d6578;
	--info-shadow: 0 1px 2px rgba(27, 6, 45, .04), 0 10px 30px rgba(81, 3, 149, .07);
	display: grid;
	gap: 64px;
	color: var(--info-text);
}

.ltw-fc-info h2,
.ltw-fc-info h3 { font-family: "Bebas Neue", sans-serif; font-weight: 400; letter-spacing: .02em; }

/* Botones (los del tema: Bebas, mayúsculas, radio 8) */
.ltw-fc-info__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 6px 26px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-family: "Bebas Neue", sans-serif;
	font-size: 19px;
	letter-spacing: 1px;
	line-height: 1;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color .25s ease-out, background-position .25s ease-out, color .25s ease-out, border-color .25s ease-out, box-shadow .25s ease-out;
}

/* Dorado. Al pasar el ratón se aclara (una capa blanca que aparece con
 * transición) en lugar de oscurecerse: oscuro quedaba apagado, y cambiar el
 * degradado a otro no se puede animar. */
.ltw-fc-info__btn--gold {
	position: relative;
	/* isolation: la capa ::after (z-index -1) queda sobre el fondo del botón
	 * pero bajo el texto, que así no se aclara. */
	isolation: isolate;
	overflow: hidden;
	border-color: #e2ad12;
	background: linear-gradient(180deg, #ffe27a 0%, #f7c62f 100%);
	box-shadow: 0 8px 20px rgba(247, 198, 47, .35);
	color: #3d2a00 !important;
}

.ltw-fc-info__btn--gold::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #fff;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease-out;
}

.ltw-fc-info__btn--gold:hover,
.ltw-fc-info__btn--gold:focus-visible {
	box-shadow: 0 10px 26px rgba(247, 198, 47, .55);
	color: #3d2a00 !important;
}

.ltw-fc-info__btn--gold:hover::after,
.ltw-fc-info__btn--gold:focus-visible::after { opacity: .3; }

.ltw-fc-info__btn--line {
	border-color: rgba(255, 255, 255, .65);
	color: #fff !important;
}

.ltw-fc-info__btn--line:hover { background: #fff; color: var(--info-brand) !important; }

/* Pastilla con moneda (lo que se gana o lo que cuesta). Morado suave: el
 * dorado se reserva a la moneda y a la llamada principal del hero. */
.ltw-fc-info__pill {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 3px 12px 3px 3px;
	border: 1px solid #e4d6f2;
	border-radius: 999px;
	background: var(--info-soft);
	color: var(--info-brand);
	font-family: "Bebas Neue", sans-serif;
	font-size: 20px;
	line-height: 1.2;
	white-space: nowrap;
}

.ltw-fc-info__pill .ltw-fc__coin {
	width: 1.55rem;
	height: 1.55rem;
	margin-right: .35rem;
	font-size: 1rem;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */

.ltw-fc-info__hero {
	position: relative;
	overflow: hidden;
	padding: 56px 56px 0;
	border-bottom: 4px solid var(--info-gold);
	border-radius: 24px;
	background:
		radial-gradient(45% 70% at 82% 35%, rgba(255, 255, 255, .16), transparent 70%),
		linear-gradient(135deg, #6a12c4 0%, var(--info-brand) 45%, var(--info-deep) 100%);
	box-shadow: 0 24px 60px rgba(81, 3, 149, .28);
	color: #fff;
}

.ltw-fc-info__hero-text {
	position: relative;
	z-index: 1;
	max-width: 600px;
}

.ltw-fc-info__kicker {
	margin: 0 0 8px !important;
	color: var(--info-gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ltw-fc-info .ltw-fc-info__title {
	margin: 0 0 16px;
	color: #fff;
	font-family: "Bebas Neue", sans-serif;
	font-size: clamp(56px, 9vw, 112px);
	font-weight: 400;
	letter-spacing: .01em;
	line-height: .9;
}

.ltw-fc-info__lead p {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, .88);
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.55;
}

.ltw-fc-info__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.ltw-fc-info__deco {
	position: absolute;
	margin: 0 !important;
	pointer-events: none;
	filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35));
}

.ltw-fc-info__deco--1 { top: 48px; right: 150px; width: 210px; height: 210px; transform: rotate(-16deg); }
.ltw-fc-info__deco--2 { top: 210px; right: 60px; width: 120px; height: 120px; transform: rotate(18deg); }
.ltw-fc-info__deco--3 { top: 36px; right: 48px; width: 70px; height: 70px; transform: rotate(32deg); opacity: .75; }
.ltw-fc-info__deco--4 { top: 250px; right: 330px; width: 54px; height: 54px; transform: rotate(-30deg); opacity: .55; }

.ltw-fc-info__facts {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 48px -56px 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, .14);
	background: rgba(20, 0, 45, .22);
}

.ltw-fc-info__facts li {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 22px 56px;
}

.ltw-fc-info__facts li + li { border-left: 1px solid rgba(255, 255, 255, .14); }

.ltw-fc-info__facts strong {
	color: var(--info-gold);
	font-family: "Bebas Neue", sans-serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
}

.ltw-fc-info__facts span {
	color: rgba(255, 255, 255, .8);
	font-size: 14px;
}

@media (max-width: 1024px) {
	.ltw-fc-info__deco--1 { right: 40px; width: 150px; height: 150px; opacity: .5; }
	.ltw-fc-info__deco--2,
	.ltw-fc-info__deco--4 { display: none; }
}

@media (max-width: 700px) {
	.ltw-fc-info { gap: 48px; }
	.ltw-fc-info__hero { padding: 36px 22px 0; border-radius: 18px; }
	.ltw-fc-info__deco--1 { top: 20px; right: -20px; width: 110px; height: 110px; }
	.ltw-fc-info__deco--3 { display: none; }
	.ltw-fc-info__cta .ltw-fc-info__btn { flex: 1 1 100%; }
	.ltw-fc-info__facts { grid-template-columns: 1fr; margin: 32px -22px 0; }
	.ltw-fc-info__facts li { padding: 14px 22px; }
	.ltw-fc-info__facts li + li { border-top: 1px solid rgba(255, 255, 255, .14); border-left: 0; }
}

/* ------------------------------------------------------------------ */
/* Secciones                                                            */
/* ------------------------------------------------------------------ */

.ltw-fc-info__head { margin-bottom: 24px; }

.ltw-fc-info__head h2 {
	margin: 0 !important;
	font-size: clamp(34px, 4vw, 48px) !important;
	line-height: 1 !important;
}

.ltw-fc-info__head p {
	margin: 6px 0 0 !important;
	color: var(--info-muted);
}

/* Pasos */
.ltw-fc-info__steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.ltw-fc-info__steps li {
	position: relative;
	margin: 0;
	padding: 28px 26px 26px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--info-shadow);
	counter-increment: step;
}

.ltw-fc-info__steps li::before {
	/* Número grande en Bebas macizo, lila de la paleta del tema (primary-100) */
	content: counter(step, decimal-leading-zero);
	position: absolute;
	top: 14px;
	right: 22px;
	color: #eedffd;
	font-family: "Bebas Neue", sans-serif;
	font-size: 72px;
	letter-spacing: .01em;
	line-height: 1;
}

.ltw-fc-info__step-icon,
.ltw-fc-info__earn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--info-brand);
	color: #fff;
}

.ltw-fc-info__steps h3 {
	margin: 18px 0 6px !important;
	font-size: 28px !important;
	line-height: 1 !important;
}

.ltw-fc-info__steps p {
	margin: 0 !important;
	color: var(--info-muted);
	font-size: 15px;
	line-height: 1.55;
}

/* Cómo ganar: compras destacada a todo el ancho; el resto, tarjetas con la
 * pastilla de lo que se gana arriba (igual que en Mi cuenta). */
.ltw-fc-info__earn {
	display: grid;
	/* Columnas fijas: con la primera a todo el ancho, auto-fit no colapsa las
	 * pistas vacías y quedaba un hueco a la derecha. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ltw-fc-info__earn li {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "icon pill" "text text";
	align-content: start;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 22px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--info-shadow);
}

.ltw-fc-info__earn-icon {
	grid-area: icon;
	width: 48px;
	height: 48px;
	background: var(--info-soft);
	color: var(--info-brand);
}

.ltw-fc-info__earn li > div { grid-area: text; min-width: 0; }
.ltw-fc-info__earn .ltw-fc-info__pill { grid-area: pill; justify-self: end; align-self: center; }

.ltw-fc-info__earn h3 {
	margin: 0 0 4px !important;
	font-size: 24px !important;
	line-height: 1.05 !important;
}

.ltw-fc-info__earn p {
	margin: 0 !important;
	color: var(--info-muted);
	font-size: 14.5px;
	line-height: 1.5;
}

/* Compras: tarjeta horizontal a todo el ancho, con la pastilla grande */
.ltw-fc-info__earn li:first-child {
	grid-column: 1 / -1;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "icon text pill";
	padding: 24px 28px;
	background:
		linear-gradient(135deg, #fff 0%, var(--info-soft) 100%);
}

.ltw-fc-info__earn li:first-child .ltw-fc-info__earn-icon {
	width: 56px;
	height: 56px;
	background: var(--info-brand);
	color: #fff;
}

.ltw-fc-info__earn li:first-child h3 { font-size: 30px !important; }
.ltw-fc-info__earn li:first-child .ltw-fc-info__pill { padding: 4px 16px 4px 4px; font-size: 26px; }
.ltw-fc-info__earn li:first-child .ltw-fc-info__pill .ltw-fc__coin { width: 2rem; height: 2rem; }

@media (max-width: 1100px) {
	.ltw-fc-info__earn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.ltw-fc-info__earn { grid-template-columns: 1fr; }

	.ltw-fc-info__earn li:first-child {
		grid-template-columns: auto 1fr;
		grid-template-areas: "icon pill" "text text";
		padding: 22px;
	}
}

/* Recompensas */
.ltw-fc-info__rewards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ltw-fc-info__rewards li {
	border: 1px solid #efe5f9;
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--info-shadow);
	position: relative;
	transition: transform .3s ease-out, box-shadow .3s ease-out;
}

/* Mismo hover que las tarjetas de producto del tema (_product-loop-card):
 * sombra suave y, desde tablet (md, 782 px), la tarjeta sube 16 px. */
@media (hover: hover) {
	.ltw-fc-info__rewards li:hover { box-shadow: 0 12px 12px rgba(13, 4, 22, .07); }
}

@media (hover: hover) and (min-width: 782px) {
	.ltw-fc-info__rewards li:hover { transform: translateY(-16px); z-index: 2; }
}

.ltw-fc-info__reward-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	/* Tono intermedio entre el fondo de la web (#f8f1fe) y el blanco: con el
	 * degradado anterior el borde de la tarjeta se fundía con la página. */
	background: #fcf8ff;
	border-bottom: 1px solid #efe5f9;
}

.ltw-fc-info__reward-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 14px;
	box-sizing: border-box;
	object-fit: contain;
}

.ltw-fc-info__reward-media .ltw-fc-art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 10px;
	box-sizing: border-box;
}

.ltw-fc-info__reward-media .ltw-fc__coin--lg {
	width: 6rem;
	height: 6rem;
	filter: drop-shadow(0 10px 18px rgba(81, 3, 149, .25));
}

.ltw-fc-info__reward-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 20px;
}

.ltw-fc-info__reward-body h3 {
	margin: 0 !important;
	font-family: Inter, sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	line-height: 1.3 !important;
}

.ltw-fc-info__reward-body p {
	margin: 0 !important;
	color: var(--info-muted);
	font-size: 14px;
}

/* Preguntas frecuentes */
.ltw-fc-info__faq {
	display: grid;
	gap: 10px;
}

/* Escritorio: título a la izquierda (fijo al hacer scroll), acordeón a la derecha */
@media (min-width: 1024px) {
	.ltw-fc-info__section--faq {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: 48px;
		align-items: start;
	}

	.ltw-fc-info__section--faq .ltw-fc-info__head {
		position: sticky;
		top: 24px;
		margin: 0;
	}
}

.ltw-fc-info__faq details {
	border: 1px solid transparent;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--info-shadow);
	transition: border-color .2s;
}

.ltw-fc-info__faq details[open] { border-color: #dbb6fb; }

.ltw-fc-info__faq summary {
	position: relative;
	padding: 18px 56px 18px 22px;
	color: var(--info-text);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

.ltw-fc-info__faq summary::-webkit-details-marker { display: none; }

.ltw-fc-info__faq summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border-radius: 8px;
	background:
		var(--info-soft)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23510395' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
		center / 16px no-repeat;
	transition: transform .2s;
}

.ltw-fc-info__faq details[open] summary::after { transform: rotate(45deg); }

.ltw-fc-info__faq summary:focus-visible {
	border-radius: 14px;
	outline: 2px solid var(--info-brand);
	outline-offset: 2px;
}

.ltw-fc-info__answer {
	padding: 0 22px 20px;
	color: var(--info-muted);
	font-size: 15.5px;
	line-height: 1.65;
}

.ltw-fc-info__answer p { margin: 0 0 10px; }
.ltw-fc-info__answer p:last-child { margin-bottom: 0; }
.ltw-fc-info__answer ul { margin: 0 0 10px; padding-left: 1.2em; }
.ltw-fc-info__answer li { margin: 0 0 4px; }
.ltw-fc-info__answer a { color: var(--info-brand); font-weight: 600; }

/* Llamada final */
.ltw-fc-info__final {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 28px;
	padding: 32px 36px;
	border-bottom: 4px solid var(--info-gold);
	border-radius: 20px;
	background:
		radial-gradient(50% 120% at 100% 0%, rgba(255, 255, 255, .14), transparent 70%),
		linear-gradient(135deg, #6a12c4 0%, var(--info-brand) 50%, var(--info-deep) 100%);
	box-shadow: 0 20px 50px rgba(81, 3, 149, .24);
	color: #fff;
}

.ltw-fc-info__final .ltw-fc__coin--lg {
	width: 80px;
	height: 80px;
	filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .3));
}

.ltw-fc-info__final > div { flex: 1 1 280px; }

.ltw-fc-info__final h2 {
	margin: 0 0 4px !important;
	color: #fff;
	font-size: clamp(30px, 3.4vw, 40px) !important;
	line-height: 1 !important;
}

.ltw-fc-info__final p {
	margin: 0 !important;
	color: rgba(255, 255, 255, .85);
}

@media (max-width: 700px) {
	.ltw-fc-info__final { padding: 26px 22px; }
	.ltw-fc-info__final .ltw-fc-info__btn { flex: 1 1 100%; }
	.ltw-fc-info__earn { grid-template-columns: 1fr; }
	.ltw-fc-info__earn li { flex-wrap: wrap; }
}

/* Móvil: recompensas en fila, imagen a la izquierda */
@media (max-width: 600px) {
	.ltw-fc-info__rewards { grid-template-columns: 1fr; gap: 12px; }
	.ltw-fc-info__rewards li { flex-direction: row; }

	.ltw-fc-info__reward-media {
		flex: 0 0 110px;
		aspect-ratio: auto;
		min-height: 110px;
	}

	.ltw-fc-info__reward-media .ltw-fc__coin--lg { width: 3.5rem; height: 3.5rem; }
	.ltw-fc-info__reward-media img { padding: 8px; }
	.ltw-fc-info__reward-body { justify-content: center; min-width: 0; padding: 14px 16px; }
}
