/* Página "Todo esto vive dentro de NuevoRenacer": pensada para leerse hasta el final */

/* Barra de lectura fija arriba */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: rgba(255, 255, 255, .06); z-index: 50; }
.fx-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--teal)); box-shadow: 0 0 12px rgba(99, 102, 241, .6); transition: width .15s linear; }

/* Portada */
.fx-hero { width: 100%; text-align: left; padding: 26px 20px 22px; margin-bottom: 18px; border-radius: 24px; border: 1px solid rgba(99, 102, 241, .35); background: var(--surface); background: radial-gradient(120% 90% at 0% 0%, rgba(99, 102, 241, .35), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(20, 184, 166, .25), transparent 60%), var(--surface); }
.fx-pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--ink); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.fx-hero-title { font-family: var(--font-title); font-weight: 600; font-size: 34px; line-height: 1.12; margin: 0 0 14px; color: var(--ink); }
.fx-grad { color: var(--accent-text); background: linear-gradient(90deg, var(--accent-text), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fx-hero-sub { font-size: 18px; line-height: 1.5; font-weight: 700; color: var(--ink); margin: 0; }
.fx-scroll { margin: 18px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); animation: fx-bob 1.8s ease-in-out infinite; }
@keyframes fx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Bloques: cada uno con su color (--c) */
.fx-list { display: grid; gap: 16px; width: 100%; }
.fx-card { position: relative; width: 100%; text-align: left; padding: 22px 20px 20px 22px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); background: var(--surface); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, var(--surface)), var(--surface) 60%); }
.fx-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.fx-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fx-icon { width: 56px; height: 56px; display: grid; place-items: center; font-size: 30px; line-height: 1; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 26px -8px var(--c); }
.fx-num { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.fx-title { font-family: var(--font-title); font-weight: 600; font-size: 23px; line-height: 1.2; margin: 0 0 10px; color: var(--ink); }
.fx-text { margin: 0 0 8px; font-size: 16px; line-height: 1.55; color: #E2E5EF; }
.fx-text b { color: var(--ink); }

/* Frases destacadas */
.fx-lines { display: grid; gap: 6px; margin: 12px 0 4px; padding-left: 14px; border-left: 3px solid var(--c); }
.fx-lines span { font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.fx-quote { margin: 14px 0 6px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .05); font-family: var(--font-title); font-size: 21px; line-height: 1.35; color: var(--ink); }
.fx-quote::before { content: "\201C"; color: var(--c); font-size: 36px; line-height: 0; vertical-align: -13px; margin-right: 4px; }
.fx-quote::after { content: "\201D"; color: var(--c); font-size: 36px; line-height: 0; vertical-align: -13px; margin-left: 2px; }
.fx-bullets { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 8px; }
.fx-bullets li { position: relative; padding-left: 22px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.fx-bullets li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.fx-chips span { font-size: 14px; font-weight: 700; color: var(--ink); padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }

/* La idea que se lleva cada bloque */
.fx-payoff { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); background: rgba(255, 255, 255, .05); background: color-mix(in srgb, var(--c) 16%, transparent); }
.fx-payoff span { color: var(--c); margin-right: 4px; }

/* Aparición al llegar */
.fx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.fx-reveal.is-in { opacity: 1; transform: none; }

/* Cierre */
.fx-close { width: 100%; text-align: left; margin: 22px 0 6px; padding: 26px 20px; border-radius: 24px; border: 1px solid rgba(20, 184, 166, .35); background: var(--surface); background: radial-gradient(120% 90% at 100% 0%, rgba(20, 184, 166, .3), transparent 60%), radial-gradient(100% 90% at 0% 100%, rgba(99, 102, 241, .35), transparent 60%), var(--surface); }
.fx-close-title { font-family: var(--font-title); font-weight: 600; font-size: 28px; line-height: 1.2; margin: 0 0 14px; color: var(--ink); }
.fx-close-lines p { margin: 0 0 8px; font-size: 17px; line-height: 1.45; color: #E2E5EF; opacity: 0; transform: translateX(-12px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--d) * .35s + .2s); }
.fx-close.is-in .fx-close-lines p { opacity: 1; transform: none; }
.fx-close-end { margin: 16px 0 0; font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--ink); }

/* Botón final con un latido suave */
.fx-cta { animation: fx-pulse 2.4s ease-in-out infinite; }
@keyframes fx-pulse { 0%, 100% { box-shadow: 0 6px 20px rgba(99, 102, 241, .28); } 50% { box-shadow: 0 6px 34px rgba(99, 102, 241, .6), 0 0 0 6px rgba(99, 102, 241, .12); } }

@media (prefers-reduced-motion: reduce) {
  .fx-reveal, .fx-close-lines p { opacity: 1; transform: none; transition: none; }
  .fx-scroll, .fx-cta { animation: none; }
}
