/* ==========================================================================
   Recursos Worship — RW Library · versión B (2026)
   Se carga después de styles.css, nav.css y library.css (versión A): de ahí salen
   el logo de la barra, la paleta índigo, la tira, los avatares, los precios y el FAQ.
   Aquí solo van las piezas nuevas de la B. Todo plano: sin sombras ni glows.
   --------------------------------------------------------------------------
   1. Hero con la plataforma asomando
   2. ¿Te suena familiar? (panel)
   3. La solución
   4. Biblioteca VIP en cifras
   5. Recorrido por categoría (índice fijo)
   6. Plataforma y contenido nuevo
   7. Bonos
   8. El valor real
   9. Garantía, antes y después, WhatsApp, CTA
   10. Responsive
   ========================================================================== */

/* Lista con check reutilizada en varias secciones */
.lb-list { display: grid; gap: 12px; }
.lb-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.lb-list .ico { margin-top: 2px; color: var(--accent-fg); }
.lb-list.is-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }

/* 1. Hero ------------------------------------------------------------------ */
.lb-hero { min-height: 0; place-items: start center; padding: 150px 0 0; }
.lb-hero .hero-content { gap: 22px; }
.lb-hero .hero-title { max-width: 19ch; }
.lb-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; font-weight: 500; color: var(--muted); }
.lb-checks li { display: inline-flex; align-items: center; gap: 7px; }
.lb-checks .ico { color: var(--accent-fg); }
.lb-checks.is-light { justify-content: flex-start; color: rgba(255, 255, 255, 0.75); }
.lb-checks.is-light .ico { color: #c4b5fd; }
.lb-proof { margin-top: -4px; }
/* La interfaz real asoma por debajo del panel y queda recortada por sus esquinas */
.lb-hero-shot {
  width: min(100% - 2 * var(--gutter), 1180px);
  margin: clamp(48px, 5vw, 72px) auto 0;
  padding: 0 10px;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  overflow: hidden;
}
.lb-window-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 6px; }
.lb-window-bar i { width: 10px; height: 10px; border-radius: 99px; background: var(--line-2); }
.lb-window-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--panel); font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-hero-shot img { width: 100%; height: clamp(240px, 34vw, 540px); object-fit: cover; object-position: 0 0; border-radius: 14px 14px 0 0; }

/* 2. ¿Te suena familiar? --------------------------------------------------- */
.lb-panel-top { padding: clamp(64px, 7vw, 112px) 0 var(--space-md); background: var(--panel); border-radius: var(--r-hero) var(--r-hero) 0 0; }
.lb-pain-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.lb-pain-head .head-copy { display: grid; gap: 14px; }
.lb-pain-copy { display: grid; gap: 16px; }
.lb-pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 18px); }
.lb-pain { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 2.4vw, 34px); border-radius: var(--r-xl); background: var(--surface); }
.lb-pain-ico { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 14px; background: var(--panel); color: var(--ink); }
.lb-pain h3 { font-size: 19px; font-weight: 620; letter-spacing: -0.02em; line-height: 1.25; }
.lb-pain p { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* 3. La solución ----------------------------------------------------------- */
.lb-present { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 8px 16px; border-radius: 999px; background: var(--fill); font-size: 15px; font-weight: 600; color: var(--muted); }
.lb-present-logo { width: auto; height: 22px; }
.lb-solution-shot { padding: clamp(20px, 3.4vw, 56px); border-radius: var(--r-xl); background: var(--surface); }
.lb-solution-shot img { width: 100%; }
.lb-solution-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 28px; text-align: center; }
.lb-solution-foot p { max-width: 46ch; color: var(--muted); font-size: 16px; line-height: 1.5; text-align: left; }
.lb-solution-foot p strong { color: var(--ink); font-weight: 560; }

/* 4. Biblioteca VIP en cifras (tabla tipográfica, como las cifras de la home) */
.lb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.lb-stats li { display: grid; gap: 8px; align-content: start; padding: 32px 28px 38px; border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.lb-stats li:nth-child(4n+1) { padding-left: 0; border-left: 0; }
.lb-stats .ico { margin-bottom: 10px; color: var(--accent-fg); }
.lb-stat-num { font-size: clamp(44px, 4.4vw, 66px); font-weight: 650; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.lb-stats h3 { margin-top: 6px; font-size: 17px; font-weight: 620; letter-spacing: -0.015em; }
.lb-stats p:last-child { max-width: 30ch; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* 5. Recorrido por categoría ----------------------------------------------- */
.lb-tour-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.lb-tour-aside { position: sticky; top: 112px; display: grid; gap: 18px; }
.lb-tour-title { max-width: 16ch; }
.lb-tour-nav { display: grid; margin-top: 6px; border-top: 1px solid var(--line); }
.lb-tour-nav a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--muted-2); transition: color 0.3s var(--ease-ui); }
.lb-tour-nav a span { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
.lb-tour-nav a:hover { color: var(--ink-2); }
.lb-tour-nav a.is-active { color: var(--ink); }
.lb-tour-nav a.is-active span { color: var(--accent-fg); }
.lb-tour-progress { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.lb-tour-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.lb-tour-panels { display: grid; gap: clamp(64px, 7vw, 104px); }
.lb-tour-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; scroll-margin-top: 112px; }
.lb-tour-media { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; padding: clamp(16px, 2vw, 32px); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
/* Absoluta con el mismo padding de la caja: el collage entra completo sin desbordar la proporción 5:4 */
.lb-tour-media img { position: absolute; inset: 0; width: 100%; height: 100%; padding: inherit; object-fit: contain; }
.lb-tour-media.is-dark { background: #0b0b0e; }
.lb-tour-media.is-video { padding: 0; background: #120a2e; }
.lb-tour-media.is-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-tour-copy { display: grid; gap: 16px; align-content: center; }
.lb-tour-num { font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; color: var(--accent-fg); }
.lb-tour-copy .h2 { font-size: clamp(30px, 3vw, 44px); }
.lb-tour-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 6px; }
.lb-tour-thumbs a { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface); }
.lb-tour-thumbs.is-square a { aspect-ratio: 1; }
.lb-tour-thumbs.is-tall a { aspect-ratio: 3 / 4; }
.lb-tour-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-quint); }
.lb-tour-thumbs a:hover img { transform: scale(1.05); }

/* 6. Plataforma y contenido nuevo ----------------------------------------- */
.lb-platform { padding-top: var(--space-md); }
.lb-weekly-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.lb-weekly-copy { display: grid; gap: 26px; }
.lb-weekly-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2vw, 28px) clamp(10px, 1vw, 14px); }
.lb-new { display: grid; gap: 10px; }
.lb-new-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--surface); }
.lb-new-media img, .lb-new-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-quint), opacity 0.3s ease; }
.lb-new-media video { opacity: 0; }
.lb-new.is-playing .lb-new-media video { opacity: 1; }
.lb-new:hover .lb-new-media img { transform: scale(1.04); }
.lb-new-media .chip { position: absolute; left: 10px; top: 10px; z-index: 1; height: 24px; padding: 0 9px; font-size: 11.5px; }
.lb-new strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-new span.lb-new-cat { font-size: 13px; color: var(--muted); }

/* 7. Bonos ----------------------------------------------------------------- */
/* Pestañas: un bono visible a la vez (la página no se alarga con los cinco) */
.lb-bonus-tabs { display: flex; justify-content: center; margin-bottom: clamp(20px, 2.4vw, 32px); }
.lb-bonus-tablist { display: flex; gap: 2px; max-width: 100%; padding: 4px; border-radius: 999px; background: var(--fill); overflow-x: auto; scrollbar-width: none; }
.lb-bonus-tablist::-webkit-scrollbar { display: none; }
.lb-bonus-tablist button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background-color var(--t-ui), color var(--t-ui); }
.lb-bonus-tablist button img { width: 22px; height: 22px; }
.lb-bonus-tablist button .ico { width: 18px; height: 18px; margin: 0 2px; }
.lb-bonus-tablist button:hover { color: var(--ink); }
.lb-bonus-tablist button[aria-selected="true"] { background: var(--panel); color: var(--ink); }
.lb-bonus-list { display: grid; }
.lb-bonus[hidden] { display: none; }
.lb-bonus.is-swap { animation: surfaceReveal 0.7s var(--ease-quint) both; }
/* Cada bono en dos columnas: cada una con su captura arriba y su lista debajo */
.lb-bonus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 52px); align-items: start; padding: clamp(24px, 3vw, 48px); border-radius: var(--r-xl); background: var(--surface); }
.lb-bonus-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lb-bonus > .lb-list { grid-column: 1 / -1; }
.lb-bonus-num { display: inline-grid; place-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--panel); font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; color: var(--ink-2); }
.lb-bonus-head .h3 { font-size: clamp(24px, 2.2vw, 32px); }
.lb-bonus-value { margin-left: auto; }
.lb-bonus-tagline { flex-basis: 100%; color: var(--muted); font-size: 17px; }
.lb-bonus-ico { display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--on-ink); }
.lb-bonus-row { display: flex; flex-direction: column; gap: 22px; }
.lb-bonus-row > .lb-bonus-media { order: -1; }
/* RW Editor: dos capturas lado a lado y la lista a todo el ancho debajo */
.lb-bonus-row.is-pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.lb-bonus-media { border-radius: 18px; overflow: hidden; background: var(--panel); line-height: 0; }
.lb-bonus-media img { width: 100%; }
.lb-bonus-sub { margin-bottom: 14px; font-size: 19px; font-weight: 620; letter-spacing: -0.02em; }
.lb-steps { display: grid; gap: 12px; counter-reset: step; }
.lb-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--ink-2); counter-increment: step; }
.lb-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; }

/* 8. El valor real (tarjeta índigo, el mismo tono del CTA final) ----------- */
.lb-value { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; padding: clamp(28px, 4.5vw, 72px); border-radius: var(--r-xl); background: var(--accent-deep); color: #fff; }
.lb-value-copy { display: grid; gap: 22px; }
.lb-value-kicker { font-size: 15px; font-weight: 560; color: rgba(255, 255, 255, 0.7); }
.lb-value .h2 { color: #fff; }
.lb-value-total { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.lb-value-total span { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.lb-value-total strong { font-size: clamp(56px, 6vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.lb-value .btn { justify-self: start; }
.lb-receipt { display: grid; }
.lb-receipt li { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 16px; }
.lb-receipt li:first-child { padding-top: 0; }
.lb-receipt span { color: rgba(255, 255, 255, 0.9); }
.lb-receipt i { flex: 1; min-width: 16px; border-bottom: 1px dotted rgba(255, 255, 255, 0.3); transform: translateY(-4px); }
.lb-receipt b { font-family: "Geist Mono", ui-monospace, monospace; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lb-receipt li.is-in { animation: lbTick 0.6s var(--ease-quint) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes lbTick { from { opacity: 0; filter: blur(4px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
.js .lb-receipt li { opacity: 0; }
.js .lb-receipt li.is-in { opacity: 1; }

/* 9. Garantía, antes y después, WhatsApp, CTA ------------------------------ */
.lb-guarantee { display: flex; align-items: flex-start; gap: 20px; max-width: 760px; margin: clamp(32px, 4vw, 56px) auto 0; padding: 24px 28px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line-2); }
.lb-guarantee-ico { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-fg); }
.lb-guarantee-ico svg { width: 26px; height: 26px; }
.lb-guarantee h3 { margin-bottom: 6px; font-size: 19px; font-weight: 620; letter-spacing: -0.02em; }
.lb-guarantee p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.lb-guarantee p strong { color: var(--ink); font-weight: 560; }

.lb-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 18px); }
.lb-compare-col { padding: clamp(24px, 3vw, 44px); border-radius: var(--r-xl); }
.lb-compare-col h3 { margin-bottom: 22px; font-size: clamp(20px, 1.6vw, 24px); font-weight: 620; letter-spacing: -0.02em; }
.lb-compare-col ul { display: grid; gap: 14px; }
.lb-compare-col li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; }
.lb-compare-col.is-before { background: var(--surface); }
.lb-compare-col.is-before li { color: var(--muted); }
.lb-x { position: relative; flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--fill-hover); color: var(--muted); }
.lb-x::before, .lb-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.lb-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lb-compare-col.is-after { background: var(--accent-deep); color: #fff; }
.lb-compare-col.is-after li { color: #fff; }
.lb-compare-col.is-after .ico { width: 22px; height: 22px; color: #c4b5fd; }
:root[data-theme="dark"] .lb-compare-col.is-after, :root[data-theme="dark"] .lb-value { background: #1d0b7a; }

.lib-b .faq-aside .h2 { font-size: clamp(30px, 3vw, 44px); }
.lb-whatsapp { display: grid; gap: 10px; margin-top: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); }
.lb-whatsapp-kicker { font-size: 14px; font-weight: 560; color: var(--muted); }
.lb-whatsapp h3 { font-size: 21px; font-weight: 620; letter-spacing: -0.02em; }
.lb-whatsapp p:not(.lb-whatsapp-kicker) { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.lb-whatsapp .btn { justify-self: start; margin-top: 6px; }

.lb-cta h2 { font-size: clamp(40px, 5.2vw, 84px); line-height: 0.98; letter-spacing: -0.05em; text-wrap: balance; }
.lb-cta .cta-copy { gap: 20px; }
/* Botones con texto largo: pueden partirse en dos líneas en vez de ensanchar la columna */
.lb-cta .cta-grid > *, .lb-solution-foot > * { min-width: 0; }
.lb-cta .btn, .lib-b .hero .btn { height: auto; min-height: 52px; padding-block: 12px; white-space: normal; text-align: center; line-height: 1.2; }

/* 10. Responsive ----------------------------------------------------------- */
@media (max-width: 1200px) {
  .lb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-stats li:nth-child(4n+1) { padding-left: 28px; border-left: 1px solid var(--line-2); }
  .lb-stats li:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .lb-tour-grid { grid-template-columns: 1fr; }
  .lb-tour-aside { position: static; }
  .lb-tour-nav, .lb-tour-progress { display: none; }
  .lb-weekly-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lb-pain-head, .lb-tour-panel, .lb-weekly-grid, .lb-bonus, .lb-value, .lb-compare { grid-template-columns: 1fr; }
  .lb-pains { grid-template-columns: 1fr; }
  .lb-list.is-cols { grid-template-columns: 1fr; }
  .lb-bonus-value { margin-left: 0; }
}
@media (max-width: 560px) {
  .lb-hero { padding-top: 108px; }
  .lb-hero-shot { margin-top: 40px; padding: 0 6px; border-radius: 16px 16px 0 0; }
  .lb-hero-shot img { height: 220px; border-radius: 10px 10px 0 0; }
  .lb-window-bar { height: 34px; }
  .lb-window-bar span { display: none; }
  .lb-checks { gap: 6px 14px; font-size: 13px; }
  .lb-stats li { padding: 24px 14px 28px; }
  .lb-stats li:nth-child(2n+1) { padding-left: 0; }
  .lb-stat-num { font-size: 36px; }
  .lb-stats p:last-child { font-size: 13.5px; }
  .lb-tour-thumbs { gap: 6px; }
  .lb-solution-foot p { text-align: center; }
  .lb-bonus { padding: 20px; }
  .lb-receipt li { font-size: 14.5px; gap: 8px; }
  .lb-receipt b { font-size: 13.5px; }
  .lb-guarantee { flex-direction: column; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .lb-receipt li { opacity: 1; animation: none !important; }
  .lb-bonus.is-swap { animation: none !important; }
  .lb-tour-nav a { transition: none; }
}
