/* ==========================================================================
   Recursos Worship — Precios (página general de planes, 2026)
   Se carga después de css/styles.css y css/nav.css (mismo sistema que la home);
   aquí solo va lo propio de esta página. Todo plano: sin sombras ni glows.
   --------------------------------------------------------------------------
   1. Base de la página
   2. Hero (titular + selector de producto + facturación)
   3. Tarjetas de plan (Básico cambia con el producto; Profesional y Director fijos)
   4. Franja «incluyen los cinco productos»
   5. Compara los Básicos
   6. Tabla comparativa completa
   7. Responsive
   8. Movimiento reducido
   ========================================================================== */

/* 1. Base ------------------------------------------------------------------ */
.pr-page section[id] { scroll-margin-top: 96px; }
.pr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pr-logo { width: 22px; height: 22px; flex: none; }

/* Valores dentro de una celda de la tabla o de la comparación de Básicos */
.pr-v { display: inline-flex; align-items: center; gap: 8px; }
.pr-yes { color: var(--accent-fg); }
.pr-no { color: var(--muted-2); }
.pr-no i { display: block; width: 12px; height: 1.6px; border-radius: 2px; background: currentColor; }
.pr-soft { color: var(--muted); }
.pr-v sup { font-size: 0.7em; color: var(--accent-fg); margin-left: -6px; align-self: flex-start; }

/* Pila de variantes por producto: las tres ocupan la misma celda y la más alta fija el tamaño,
   así cambiar de producto no mueve nada. El producto activo vive en body[data-product]. */
.pr-sw { display: inline-grid; }
.pr-sw > [data-p] { grid-area: 1 / 1; visibility: hidden; }
body:not([data-product]) .pr-sw > [data-p="library"],
[data-product="library"] .pr-sw > [data-p="library"],
[data-product="presenter"] .pr-sw > [data-p="presenter"],
[data-product="titler"] .pr-sw > [data-p="titler"] { visibility: visible; }
/* Al cambiar de producto, solo los valores que cambian entran con desenfoque (como el explorador de la home) */
.pr-live[data-product="library"] .pr-sw > [data-p="library"],
.pr-live[data-product="presenter"] .pr-sw > [data-p="presenter"],
.pr-live[data-product="titler"] .pr-sw > [data-p="titler"] { animation: prSwap 0.45s var(--ease-quint) both; }
@keyframes prSwap { from { opacity: 0; filter: blur(5px); transform: translateY(4px); } to { opacity: 1; filter: none; transform: none; } }

/* 2. Hero ------------------------------------------------------------------ */
.pr-hero { min-height: 0; display: block; padding: 132px 0 clamp(40px, 4.5vw, 72px); }
.pr-hero-copy { gap: 22px; }
.pr-hero .hero-title { max-width: 21ch; }
.pr-hero .hero-sub { max-width: 54ch; }
.pr-badge { gap: 9px; padding-left: 6px; }
.pr-badge img { width: 24px; height: 24px; flex: none; }

/* Controles: selector de producto (radios) + facturación */
.pr-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; margin-top: 6px; }
.pr-ctl { display: inline-flex; align-items: center; gap: 12px; }
.pr-ctl-label { font-size: 14px; font-weight: 560; color: var(--muted); }
.pr-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--fill); }
.pr-seg button {
  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);
}
.pr-seg button:hover { color: var(--ink); }
.pr-seg button[aria-checked="true"] { background: var(--panel); color: var(--ink); }
.pr-seg button img { width: 20px; height: 20px; flex: none; }
.pr-bill button { padding: 0 16px; }
.pr-bill .chip { height: 22px; padding: 0 8px; font-size: 11.5px; }
.pr-hint { font-size: 14px; color: var(--muted); }
.pr-hint strong { color: var(--ink-2); font-weight: 560; }

/* 3. Tarjetas de plan ------------------------------------------------------ */
.pr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 18px); margin-top: clamp(40px, 4.5vw, 64px); align-items: stretch; text-align: left; }
.pr-plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 2.4vw, 36px); border-radius: var(--r-xl); background: var(--surface); }
.pr-plan-head { display: grid; gap: 12px; justify-items: start; }
.pr-plan-name { font-size: clamp(22px, 1.7vw, 27px); }
/* Etiqueta centrada sobre el borde superior (no empuja el contenido) */
.pr-plan-chip { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); background: var(--accent); color: #fff; }

/* Productos incluidos: logos + frase */
.pr-tag { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 12px 4px 5px; border-radius: 999px; background: var(--panel); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.pr-logos { display: inline-flex; align-items: center; gap: 3px; }
.pr-logos img { width: 24px; height: 24px; padding: 3px; border-radius: 8px; transition: background-color var(--t-ui); }
/* Profesional y Director: el producto elegido queda marcado dentro de la fila de logos */
[data-product="library"] .pr-logos.is-all [data-p="library"],
[data-product="presenter"] .pr-logos.is-all [data-p="presenter"],
[data-product="titler"] .pr-logos.is-all [data-p="titler"] { background: var(--accent-soft-2); }
.pr-inc { display: inline-grid; font-size: 14px; color: var(--muted); }
.pr-inc .pr-sw > span, .pr-inc > span:not(.pr-sw) { display: inline-flex; align-items: center; gap: 7px; }
.pr-inc .ico { width: 16px; height: 16px; color: var(--accent-fg); }
.pr-inc b { color: var(--ink); font-weight: 600; }

.pr-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pr-price s { font-size: 18px; font-weight: 500; color: var(--muted-2); }
.pr-price s:empty { display: none; }
.pr-price strong { font-size: clamp(46px, 4.2vw, 64px); font-weight: 650; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.pr-price span { font-size: 16px; color: var(--muted); }
.pr-price.is-swap s, .pr-price.is-swap strong { animation: prSwap 0.45s var(--ease-quint); }
.pr-billnote { margin-top: 10px; min-height: 2.9em; font-size: 13.5px; line-height: 1.45; color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-plan-copy { color: var(--muted); font-size: 16px; line-height: 1.45; max-width: 40ch; }
.pr-plan .list-label { margin-bottom: 12px; }
.pr-feats { display: grid; gap: 10px; }
.pr-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.pr-feats .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-fg); }
.pr-feats b { font-weight: 600; color: var(--ink); }
.pr-out { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 14px; line-height: 1.45; color: var(--muted); }
.pr-out b { color: var(--ink-2); font-weight: 600; }
.pr-trial { padding: 10px 12px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 560; line-height: 1.4; }
.pr-plan-cta { display: grid; gap: 12px; justify-items: center; margin-top: auto; padding-top: 4px; }
.pr-plan-cta .btn { width: 100%; }
.pr-details { font-size: 14px; color: var(--muted); }
.pr-details:hover { color: var(--ink); }

/* Básico: las tres versiones apiladas en la misma celda; solo una visible */
.pr-basic { overflow: hidden; }
.pr-basic-stack { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1 1 auto; }
/* Etiquetas largas (EN/PT) pueden ocupar dos líneas en vez de ensanchar la tarjeta */
.pr-plan-cta .btn { white-space: normal; text-align: center; line-height: 1.15; }
.pr-basic-v { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 20px; visibility: hidden; }
.pr-basic-v.is-active { visibility: visible; }
.pr-basic-v.is-leaving { visibility: visible; pointer-events: none; animation: prOut 0.2s var(--ease-ui) both; }
.pr-basic-v.is-entering > * { animation: prIn 0.55s var(--ease-quint) both; animation-delay: calc(var(--d, 0) * 35ms); }
@keyframes prOut { to { opacity: 0; filter: blur(6px); transform: translateX(-18px); } }
@keyframes prIn { from { opacity: 0; filter: blur(6px); transform: translateX(26px); } to { opacity: 1; filter: none; transform: none; } }
.pr-basic .pr-tag { background: var(--accent-soft); color: var(--accent-ink); }

/* Plan destacado: banda morada profunda (misma que el CTA final) */
.pr-plan.is-featured { background: var(--accent-deep); color: #fff; }
.pr-plan.is-featured .pr-tag { background: rgba(255, 255, 255, 0.1); color: #fff; }
.pr-plan.is-featured .pr-inc, .pr-plan.is-featured .pr-price span, .pr-plan.is-featured .pr-billnote, .pr-plan.is-featured .pr-plan-copy, .pr-plan.is-featured .pr-out { color: rgba(255, 255, 255, 0.72); }
.pr-plan.is-featured .pr-inc b, .pr-plan.is-featured .pr-out b, .pr-plan.is-featured .list-label, .pr-plan.is-featured .pr-feats li, .pr-plan.is-featured .pr-feats b { color: #fff; }
.pr-plan.is-featured .pr-price s { color: rgba(255, 255, 255, 0.5); }
.pr-plan.is-featured .pr-feats .ico, .pr-plan.is-featured .pr-inc .ico { color: #c4b5fd; }
.pr-plan.is-featured .pr-out { border-top-color: rgba(255, 255, 255, 0.16); }
.pr-plan.is-featured .pr-details { color: rgba(255, 255, 255, 0.72); }
.pr-plan.is-featured .pr-details:hover { color: #fff; }
.pr-plan.is-featured .pr-logos.is-all img { background: transparent; }
[data-product="library"] .pr-plan.is-featured .pr-logos.is-all [data-p="library"],
[data-product="presenter"] .pr-plan.is-featured .pr-logos.is-all [data-p="presenter"],
[data-product="titler"] .pr-plan.is-featured .pr-logos.is-all [data-p="titler"] { background: rgba(255, 255, 255, 0.92); }
:root[data-theme="dark"] .pr-plan.is-featured { background: #24104f; }

/* 4. Franja «incluyen los cinco productos» (como «Funciona con» de la home) */
.pr-band { padding-bottom: clamp(48px, 5vw, 80px); }
.pr-band .works-list img { width: 22px; height: 22px; }

/* 5. Compara los Básicos --------------------------------------------------- */
.pr-compare .head { margin-bottom: clamp(32px, 4vw, 56px); }
/* 12 filas compartidas (subgrid): los tres Básicos quedan alineados fila por fila */
.pr-bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(12, auto); gap: 0 clamp(12px, 1.2vw, 18px); }
.pr-bcard {
  position: relative;
  grid-row: span 12; display: grid; grid-template-rows: subgrid;
  padding: clamp(20px, 2vw, 30px); border-radius: var(--r-xl);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px transparent;
  transition: background-color 0.3s var(--ease-ui), box-shadow 0.3s var(--ease-ui);
}
[data-product="library"] .pr-bcard[data-p="library"],
[data-product="presenter"] .pr-bcard[data-p="presenter"],
[data-product="titler"] .pr-bcard[data-p="titler"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pr-bhead { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; }
.pr-bhead > img { width: 34px; height: 34px; flex: none; }
.pr-bhead h3 { display: grid; gap: 2px; min-width: 0; font-size: clamp(19px, 1.45vw, 22px); font-weight: 620; letter-spacing: -0.02em; line-height: 1.15; }
.pr-bhead h3 small { font-size: 12.5px; font-weight: 560; letter-spacing: 0; color: var(--muted); }
.pr-bnow { margin-left: auto; flex: none; height: 24px; padding: 0 9px; font-size: 12px; visibility: hidden; }
[data-product="library"] .pr-bcard[data-p="library"] .pr-bnow,
[data-product="presenter"] .pr-bcard[data-p="presenter"] .pr-bnow,
[data-product="titler"] .pr-bcard[data-p="titler"] .pr-bnow { visibility: visible; }
.pr-bprice { display: flex; align-items: baseline; gap: 6px; padding-bottom: 18px; }
.pr-bprice strong { font-size: 30px; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pr-bprice span { font-size: 14px; color: var(--muted); }
.pr-brow { display: grid; gap: 4px; align-content: start; padding: 12px 0; border-top: 1px solid var(--line-2); }
.pr-brow dt { font-size: 12.5px; font-weight: 560; color: var(--muted); }
.pr-brow dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.pr-brow dd .pr-logos img { width: 22px; height: 22px; padding: 0; }
.pr-brow dd .pr-v { align-items: flex-start; }
.pr-brow dd .pr-yes .ico { margin-top: 1px; }
.pr-brow dd .pr-no i { margin-top: 0.7em; }
.pr-bown { display: grid; gap: 7px; }
.pr-bown li { display: flex; gap: 8px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.pr-bown li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 0.55em; border-radius: 99px; background: var(--accent-fg); }
.pr-bcta { padding-top: 18px; align-self: end; }
.pr-bcta .btn { width: 100%; }

/* «¿Necesitas más de uno?» */
.pr-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(14px, 1.4vw, 22px); padding: clamp(22px, 2.4vw, 34px); border-radius: var(--r-xl); background: var(--accent-soft); }
.pr-more-copy { display: grid; gap: 6px; max-width: 64ch; }
.pr-more h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 620; letter-spacing: -0.02em; color: var(--ink); }
.pr-more p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pr-more .pr-logos img { width: 26px; height: 26px; padding: 0; }
.pr-more-side { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* 6. Tabla comparativa ----------------------------------------------------- */
.pr-table-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; margin-bottom: clamp(28px, 3vw, 44px); }
.pr-table-head .head-copy { display: grid; gap: 14px; max-width: 640px; }
.pr-table-ctl { display: grid; gap: 10px; justify-items: start; }
.pr-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 15px; }
.pr-table col.c-label { width: 37%; }
.pr-table thead th {
  position: sticky; top: 78px; z-index: 2;
  padding: 16px 14px 18px; text-align: left; vertical-align: bottom;
  background: var(--bg); border-bottom: 1px solid var(--line-2);
}
.pr-th { display: grid; gap: 6px; justify-items: start; }
.pr-th-name { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 620; letter-spacing: -0.015em; color: var(--ink); }
.pr-th-name img { width: 22px; height: 22px; }
.pr-th-name .chip { height: 22px; padding: 0 8px; font-size: 11px; }
.pr-th-price { font-size: 14px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.pr-th-price b { color: var(--ink); font-weight: 600; }
.pr-th-sub { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.pr-table tbody th, .pr-table tbody td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; line-height: 1.4; }
.pr-table tbody th { padding-left: 0; font-weight: 500; color: var(--ink-2); overflow-wrap: break-word; hyphens: auto; }
.pr-table tbody td { color: var(--ink); }
.pr-table tbody td .pr-yes .ico { width: 20px; height: 20px; }
.pr-table tbody td .pr-no i { margin-top: 0.7em; }
/* Columna Profesional apenas teñida (es el plan destacado) */
.pr-table .c-pro { background: var(--accent-soft); }
.pr-table thead th.c-pro { background: var(--accent-soft); }
:root[data-theme="dark"] .pr-table .c-pro, :root[data-theme="dark"] .pr-table thead th.c-pro { background: #1d1530; }
.pr-group th { padding: 36px 0 12px !important; border-bottom: 1px solid var(--line-2) !important; background: var(--bg); }
.pr-group td { background: var(--bg) !important; border-bottom: 1px solid var(--line-2) !important; }
.pr-group-name { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 620; letter-spacing: -0.02em; color: var(--ink); }
.pr-group-name img { width: 26px; height: 26px; }
.pr-group-name .ico { color: var(--accent-fg); }
.pr-table tbody tr:first-child.pr-group th, .pr-table tbody tr:first-child.pr-group td { padding-top: 20px !important; }
.pr-row-ico { display: inline-flex; align-items: center; gap: 10px; }
.pr-row-ico img { width: 20px; height: 20px; }
.pr-table tfoot td, .pr-table tfoot th { padding: 22px 14px 0; vertical-align: top; background: transparent; }
.pr-table tfoot .btn { width: 100%; padding: 0 12px; }
.pr-table tfoot .pr-sw { display: grid; width: 100%; }
.pr-notes { display: grid; gap: 6px; margin-top: 28px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 90ch; }
.pr-notes sup { color: var(--accent-fg); margin-right: 4px; }

/* 7. Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .pr-plans { grid-template-columns: 1fr 1fr; }
  .pr-plans .pr-basic { grid-column: 1 / -1; }
  .pr-basic-v { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-content: start; }
  .pr-basic-v > .pr-plan-head, .pr-basic-v > .pr-pricewrap, .pr-basic-v > .pr-plan-copy, .pr-basic-v > .pr-trial { grid-column: 1; }
  .pr-basic-v > .pr-featwrap { grid-column: 2; grid-row: 1 / span 5; }
  .pr-basic-v > .pr-out, .pr-basic-v > .pr-plan-cta { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .pr-hero { padding-top: 112px; }
  .pr-bgrid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .pr-bgrid::-webkit-scrollbar { display: none; }
  .pr-bcard { scroll-snap-align: start; }
  .pr-table-head { align-items: flex-start; }
  .pr-table col.c-label { width: 34%; }
  .pr-table thead th { top: 70px; padding: 12px 8px 14px; }
}
@media (max-width: 760px) {
  .pr-plans { grid-template-columns: 1fr; }
  .pr-basic-v { display: flex; }
  .pr-ctl { flex-direction: column; gap: 8px; }
  .pr-table { font-size: 13px; }
  .pr-table tbody th, .pr-table tbody td { padding: 11px 6px; }
  .pr-table tbody th { padding-left: 0; }
  .pr-th-name { font-size: 13.5px; gap: 5px; }
  .pr-th-name img { width: 18px; height: 18px; }
  .pr-th-name .chip, .pr-th-sub { display: none; }
  .pr-th-price { font-size: 12px; }
  .pr-group-name { font-size: 16px; }
  .pr-table tbody td .pr-yes .ico { width: 18px; height: 18px; }
  .pr-table tfoot td { padding: 18px 4px 0; }
  .pr-table tfoot .btn { height: 40px; font-size: 13px; padding: 0 6px; white-space: normal; text-align: center; line-height: 1.15; }
}
@media (max-width: 560px) {
  .pr-badge { font-size: 12.5px; }
  .pr-badge .chip { display: none; }
  .pr-seg .pr-rw { display: none; }
  .pr-seg button { height: 40px; padding: 0 12px 0 9px; gap: 6px; font-size: 14px; }
  .pr-bill button { padding: 0 12px; }
  .pr-plan { padding: 24px 20px; }
  .pr-more { padding: 22px 20px; }
  .pr-bnow { display: none; }
  .pr-more-side, .pr-more-side .btn { width: 100%; }
  .pr-table col.c-label { width: 31%; }
}

/* 8. Movimiento reducido --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pr-live .pr-sw > [data-p], .pr-basic-v, .pr-basic-v > *, .pr-price.is-swap s, .pr-price.is-swap strong { animation: none !important; }
}

/* Franja «Profesional y Director incluyen…»: sin curvas, gris extra claro, texto negro (pedido del usuario) */
.pr-page .hero.pr-hero, .pr-page .kits.pr-compare { border-radius: 0; }
.pr-page .hero-shell { background: #f5f5f7; }
.pr-page .hero-shell .works-label, .pr-page .hero-shell .works-list li { color: #000; }
:root[data-theme="dark"] .pr-page .hero-shell { background: #1f1f1f; }
:root[data-theme="dark"] .pr-page .hero-shell .works-label, :root[data-theme="dark"] .pr-page .hero-shell .works-list li { color: #fff; }
