/* ─────────────────────────────────────────────────────────────────────────
   Page · /preguntas-frecuentes/
   Hub central de FAQs del sitio. Alineado con el rediseño 2026: usa el
   mismo sistema FX (fx-host, fx-blur-shape, glow-orb-center, spark-divider)
   que /planes/ y /home/ para no quedar plana, y el CTA final con grid
   pattern + radial-gradient como el de /rutas/.

   Depende de `uxdivi-core.css` (tokens, .wrap, .eyebrow, .sec-head, .btn).
   Jefferson 2026-05-18 · iteración final del rediseño.
   ───────────────────────────────────────────────────────────────────────── */

.uxdivi-faq {
	background: var(--bg);
	color: var(--ink);
	padding: 0 0 80px;
	position: relative;
	overflow-x: clip;
}

/* ── ATMÓSFERA · sistema FX reutilizable ─────────────────────────────── */
/* Copia local del sistema FX de page-planes para no obligar al loader a
   cargar esa hoja en /preguntas-frecuentes/. Mismas reglas, scope local
   al `.uxdivi-faq`. */

.uxdivi-faq .fx-host {
	position: relative;
	overflow: visible;
	isolation: isolate;
	clip-path: inset(-140px 0 -140px 0);
}

.uxdivi-faq .fx-grid {
	position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(98,229,255,0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(98,229,255,0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
	z-index: 0;
}

.uxdivi-faq .fx-blur-shape {
	position: absolute; pointer-events: none;
	border-radius: 50%;
	filter: blur(100px);
	mix-blend-mode: screen;
	z-index: 0;
	animation: uxdivi-faq-float 12s ease-in-out infinite;
}
.uxdivi-faq .fx-blur-shape--brand {
	top: 10%; left: 5%;
	width: 500px; height: 500px;
	background: radial-gradient(circle, var(--brand, #014DFD) 0%, transparent 70%);
	opacity: 0.6;
}
.uxdivi-faq .fx-blur-shape--cyan {
	bottom: 10%; right: 5%;
	width: 600px; height: 600px;
	background: radial-gradient(circle, var(--cyan, #62E5FF) 0%, transparent 70%);
	opacity: 0.35;
	animation: uxdivi-faq-float 14s ease-in-out infinite reverse;
}
.uxdivi-faq .fx-blur-shape--sm { filter: blur(80px); }
.uxdivi-faq .fx-blur-shape--sm.fx-blur-shape--brand {
	top: 22%; left: 5%; bottom: auto; right: auto;
	width: 380px; height: 380px;
	opacity: 0.32;
}
.uxdivi-faq .fx-blur-shape--sm.fx-blur-shape--cyan {
	top: auto; left: auto; bottom: 22%; right: 5%;
	width: 420px; height: 420px;
	opacity: 0.20;
}
.uxdivi-faq .fx-blur-shape--alt.fx-blur-shape--brand { left: auto; right: 5%; }
.uxdivi-faq .fx-blur-shape--alt.fx-blur-shape--cyan { right: auto; left: 5%; }

.uxdivi-faq .glow-orb-center {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 800px; height: 500px;
	background: radial-gradient(ellipse, rgba(1,77,253,0.30), rgba(98,229,255,0.12) 50%, transparent 75%);
	border-radius: 50%;
	filter: blur(60px);
	pointer-events: none;
	z-index: 0;
}
.uxdivi-faq .glow-orb-center--sm {
	width: 520px; height: 360px;
	background: radial-gradient(ellipse, rgba(1,77,253,0.22), rgba(98,229,255,0.08) 50%, transparent 75%);
}

.uxdivi-faq .spark-divider {
	position: relative;
	display: block;
	width: 80px; height: 1px;
	margin: 0 auto 16px;
	background: linear-gradient(90deg, transparent, rgba(98,229,255,0.5), transparent);
}
.uxdivi-faq .spark-divider::before {
	content: ""; position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 5px; height: 5px;
	background: var(--cyan);
	border-radius: 50%;
	box-shadow:
		0 0 10px var(--cyan),
		0 0 22px rgba(98,229,255,0.7),
		0 0 40px rgba(98,229,255,0.3);
}

@keyframes uxdivi-faq-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50%      { transform: translate(30px, -30px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
	.uxdivi-faq .fx-blur-shape { animation: none; }
}

/* Asegurar que el contenido del wrap esté sobre los decorativos */
.uxdivi-faq section .wrap { position: relative; z-index: 2; }

/* ── HERO ─────────────────────────────────────────────────────────────── */

.uxdivi-faq__hero {
	padding: 96px 0 64px;
	position: relative;
}

.uxdivi-faq__hero .sec-head {
	margin: 0 auto;
	max-width: 780px;
	text-align: center;
	position: relative;
	z-index: 2;
}

.uxdivi-faq__hero .eyebrow {
	display: inline-block;
	margin-bottom: 18px;
}

.uxdivi-faq__hero h1 {
	font-family: var(--display);
	font-size: clamp(40px, 6vw, 64px);
	line-height: 1.05;
	letter-spacing: -0.025em;
	font-weight: 600;
	margin: 0 0 20px;
	color: var(--ink);
}

.uxdivi-faq__hero h1 .glow {
	background: linear-gradient(120deg, #FFFFFF 0%, #62E5FF 60%, #8CEEFF 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.uxdivi-faq__hero p {
	color: var(--ink-2);
	font-size: 17px;
	line-height: 1.55;
	margin: 0 auto;
	max-width: 660px;
}

/* ── LISTA FAQ ────────────────────────────────────────────────────────── */

.uxdivi-faq__list-section {
	padding: 32px 0 72px;
}

.uxdivi-faq__list-section .wrap {
	max-width: 880px;
}

.faq {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Heading prominente para agrupar FAQs por tema. Reemplaza el "kicker"
   chiquito mono/uppercase por un h2 con peso 600 visualmente fuerte,
   alineado con la jerarquía del resto del rediseño. */
.uxdivi-faq__group {
	font-family: var(--display);
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--ink);
	margin: 56px 0 18px;
	padding: 0 0 0 18px;
	position: relative;
	text-transform: none;
}
.uxdivi-faq__group::before {
	content: "";
	position: absolute;
	left: 0; top: 50%; transform: translateY(-50%);
	width: 4px; height: 28px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--cyan, #62E5FF), var(--brand, #014DFD));
	box-shadow: 0 0 14px rgba(98,229,255,0.45);
}
.uxdivi-faq__group:first-of-type { margin-top: 0; }

.faq-item {
	background:
		linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005)),
		var(--surface, #0A0F1E);
	border: 1px solid var(--line-2, rgba(255,255,255,0.10));
	border-radius: 16px;
	overflow: hidden;
	transition: border-color 220ms ease, background 220ms ease,
	            transform 220ms ease, box-shadow 220ms ease;
}

.faq-item:hover {
	border-color: rgba(98, 229, 255, 0.28);
	transform: translateY(-1px);
}

.faq-item[open] {
	border-color: rgba(98, 229, 255, 0.4);
	background:
		linear-gradient(180deg, rgba(98,229,255,0.04), rgba(98,229,255,0.01)),
		var(--surface, #0A0F1E);
	box-shadow: 0 16px 40px -16px rgba(1,77,253,0.35);
}

.faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 26px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink);
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	user-select: none;
	font-family: var(--display);
	letter-spacing: -0.005em;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary .plus {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(98,229,255,0.25);
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 400;
	color: var(--cyan);
	background: rgba(98, 229, 255, 0.06);
	transition: transform 280ms cubic-bezier(0.33, 1, 0.68, 1),
	            background 220ms ease,
	            border-color 220ms ease;
	line-height: 1;
}

.faq-item[open] summary .plus {
	transform: rotate(45deg);
	background: rgba(98, 229, 255, 0.14);
	border-color: rgba(98, 229, 255, 0.5);
}

/* Body · animación 350ms controlada por JS · mismo patrón que /planes/. */
.faq-item .body {
	padding: 0 26px 24px;
	color: var(--ink-2);
	font-size: 15.5px;
	line-height: 1.65;
	overflow: hidden;
	transition: height 350ms cubic-bezier(0.33, 1, 0.68, 1),
	            padding 350ms cubic-bezier(0.33, 1, 0.68, 1),
	            opacity 220ms ease;
}

.faq-item:not([open]) .body {
	height: 0;
	padding-top: 0;
	padding-bottom: 0;
	opacity: 0;
}

.faq-item[open] .body { opacity: 1; }

.faq-item .body p {
	margin: 0 0 12px;
}

.faq-item .body p:last-child { margin-bottom: 0; }

.faq-item .body a {
	color: var(--cyan);
	text-decoration: none;
	border-bottom: 1px solid rgba(98, 229, 255, 0.35);
	transition: border-color 180ms ease, color 180ms ease;
}

.faq-item .body a:hover {
	color: #8ff0ff;
	border-bottom-color: rgba(143, 240, 255, 0.7);
}

.faq-item .body ol,
.faq-item .body ul {
	margin: 0 0 12px;
	padding-left: 20px;
}

.faq-item .body li {
	margin-bottom: 6px;
}

/* ── CTA FINAL ────────────────────────────────────────────────────────── */

.uxdivi-faq__cta {
	padding: 56px 0 32px;
	position: relative;
}

.uxdivi-faq__cta-inner {
	position: relative;
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
	padding: 56px 36px;
	border: 1px solid var(--line-strong, rgba(98,229,255,0.25));
	border-radius: var(--radius-xl, 28px);
	background:
		radial-gradient(900px 460px at 50% 0%, rgba(1,77,253,0.18), transparent 60%),
		var(--surface, #0A0F1E);
	overflow: hidden;
	isolation: isolate;
	box-shadow:
		0 30px 80px -30px rgba(1,77,253,0.45),
		inset 0 1px 0 rgba(255,255,255,0.04);
}
.uxdivi-faq__cta-inner::before {
	content: '';
	position: absolute; inset: 0; pointer-events: none;
	background:
		repeating-linear-gradient(0deg, rgba(98,229,255,0.04) 0 1px, transparent 1px 48px),
		repeating-linear-gradient(90deg, rgba(98,229,255,0.04) 0 1px, transparent 1px 48px);
	mask-image: radial-gradient(700px 400px at 50% 50%, #000 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(700px 400px at 50% 50%, #000 30%, transparent 80%);
	z-index: 0;
}
.uxdivi-faq__cta-inner > * { position: relative; z-index: 1; }

.uxdivi-faq__cta-inner h2 {
	font-family: var(--display);
	font-size: clamp(28px, 3.6vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 600;
	margin: 0 0 14px;
	color: var(--ink);
}

.uxdivi-faq__cta-inner p {
	color: var(--ink-2);
	margin: 0 auto 28px;
	font-size: 16px;
	max-width: 560px;
	line-height: 1.55;
}

.uxdivi-faq__cta-row {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* Botones alineados con el sistema de botones canónico del rediseño
   (.btn .btn-primary / .btn .btn-cyan de uxdivi-core.css). Pill 999px,
   gradient brand, glow box-shadow, hover translateY(-2px). */
.uxdivi-faq__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 999px;
	font-family: var(--display);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid transparent;
	transition: transform 200ms ease, box-shadow 200ms ease,
	            background 200ms ease, border-color 200ms ease;
	cursor: pointer;
}

.uxdivi-faq__btn--primary {
	background: linear-gradient(135deg, var(--brand, #014DFD) 0%, var(--brand-light, #4A7EFF) 100%);
	color: #fff;
	box-shadow: 0 12px 32px -8px rgba(1, 77, 253, 0.55);
}

.uxdivi-faq__btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px -8px rgba(1, 77, 253, 0.75);
}

.uxdivi-faq__btn--ghost {
	background: rgba(98, 229, 255, 0.08);
	color: var(--cyan, #62E5FF);
	border-color: rgba(98, 229, 255, 0.35);
}

.uxdivi-faq__btn--ghost:hover {
	background: rgba(98, 229, 255, 0.16);
	border-color: var(--cyan, #62E5FF);
	transform: translateY(-2px);
}

.uxdivi-faq__btn .arr {
	display: inline-block;
	transition: transform 200ms ease;
}

.uxdivi-faq__btn:hover .arr {
	transform: translateX(3px);
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */

@media (max-width: 980px) {
	.uxdivi-faq__hero { padding: 72px 0 48px; }
	.uxdivi-faq__list-section { padding: 24px 0 56px; }
	.uxdivi-faq__cta { padding: 40px 0 24px; }

	.uxdivi-faq__cta-inner {
		padding: 44px 28px;
		border-radius: var(--radius-lg, 20px);
	}

	/* Atmósferas reducidas en tablet/mobile para no saturar */
	.uxdivi-faq .fx-blur-shape--brand { width: 360px; height: 360px; opacity: 0.45; }
	.uxdivi-faq .fx-blur-shape--cyan { width: 420px; height: 420px; opacity: 0.25; }
	.uxdivi-faq .glow-orb-center { width: 560px; height: 360px; }
}

@media (max-width: 720px) {
	.uxdivi-faq__hero { padding: 56px 0 36px; }
	.uxdivi-faq__hero h1 { font-size: clamp(32px, 9vw, 44px); }

	.uxdivi-faq__group {
		font-size: clamp(20px, 5vw, 24px);
		margin: 40px 0 14px;
		padding-left: 14px;
	}
	.uxdivi-faq__group::before { width: 3px; height: 22px; }

	.faq-item summary {
		padding: 18px 18px;
		font-size: 15.5px;
		gap: 16px;
	}
	.faq-item summary .plus { width: 26px; height: 26px; font-size: 16px; }

	.faq-item .body {
		padding: 0 18px 18px;
		font-size: 15px;
	}

	.uxdivi-faq__cta-inner {
		padding: 36px 22px;
	}

	.uxdivi-faq__cta-row {
		width: 100%;
		flex-direction: column;
	}
	.uxdivi-faq__btn {
		width: 100%;
		justify-content: center;
		padding: 13px 22px;
		font-size: 14.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.faq-item,
	.faq-item .body,
	.faq-item summary .plus,
	.uxdivi-faq__btn {
		transition: none;
	}
}
