/* ==========================================================================
   Página dedicada de planes y precios (/precios)
   Reutiliza tokens.css + base.css + sections.css (.plan, .pricing__grid, .faq, .cta).
   Aquí solo lo específico de esta página: hero, "cómo se cuenta", escalabilidad
   de add-ons y la tabla comparativa completa.
   ========================================================================== */

.pp-wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* Hero oscuro -------------------------------------------------------------- */
.pp-hero {
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 32px 32px;
  padding: clamp(3.5rem, 3rem + 6vw, 6.5rem) 0 clamp(3rem, 2.5rem + 4vw, 5rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.pp-hero::before {
  content: ""; position: absolute; inset: -35% 30% auto 30%; height: 70vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(39, 96, 240, .34), transparent 70%);
  pointer-events: none;
}
.pp-hero__inner { position: relative; max-width: 720px; margin-inline: auto; }
.pp-hero .eyebrow {
  display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: #8fb4ff;
}
.pp-hero h1 { margin: .6rem 0 0; font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); letter-spacing: -.02em; }
.pp-hero .lede {
  margin: 1.2rem auto 0; max-width: 60ch; color: #c8cede;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.24rem); line-height: 1.6;
}
.pp-hero__pills { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.pp-hero__pills span {
  font-size: .84rem; color: #dfe6f5; border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: .45rem 1rem;
}

/* Bloques de sección ------------------------------------------------------- */
.pp-section { padding-block: clamp(3rem, 2.5rem + 3vw, 5rem); }
.pp-section__head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.pp-section__head h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); letter-spacing: -.02em; }
.pp-section__head p { margin-top: .8rem; color: var(--text-dim); font-size: 1rem; line-height: 1.6; }
.pp-section--soft { background: var(--paper); }

/* Grid de planes en detalle: hereda .plan pero permite listas largas cómodas. */
.pp-plans .pricing__grid { align-items: stretch; }
.pp-plans .plan__note {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed rgba(22, 21, 31, .12);
  font-size: .84rem; color: var(--text-dim);
}
.pp-plans .plan--enterprise .plan__note { border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .68); }

/* "Cómo se cuenta" --------------------------------------------------------- */
.pp-count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pp-count__card {
  background: var(--white); border: 1px solid rgba(22, 21, 31, .08);
  border-radius: var(--radius-card); padding: 1.75rem;
}
.pp-count__ico {
  width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(59, 130, 246, .14), rgba(129, 140, 248, .14));
  color: var(--accent-deep); margin-bottom: 1rem;
}
.pp-count__ico svg { width: 1.4rem; height: 1.4rem; }
.pp-count__card h3 { font-size: 1.08rem; }
.pp-count__card p { margin-top: .5rem; color: var(--text-dim); font-size: .92rem; line-height: 1.55; }

/* Escalabilidad de add-ons ------------------------------------------------- */
.pp-scale__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: center; }
.pp-scale__card {
  background: var(--ink); color: var(--white); border-radius: var(--radius-card);
  padding: 2rem; position: relative; overflow: hidden;
}
.pp-scale__card::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 60%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(59, 130, 246, .4), transparent 70%);
}
.pp-scale__card .k { position: relative; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #8fb4ff; font-weight: 700; }
.pp-scale__card .big { position: relative; font-size: 2.2rem; font-weight: 800; margin: .4rem 0; letter-spacing: -.02em; }
.pp-scale__card .big span { font-size: 1rem; font-weight: 500; color: #b9c4dc; }
.pp-scale__card p { position: relative; color: #c8cede; font-size: .95rem; line-height: 1.6; }
.pp-stack__table { width: 100%; border-collapse: collapse; }
.pp-stack__table caption { text-align: left; font-weight: 600; color: var(--ink); margin-bottom: .75rem; font-size: 1.02rem; }
.pp-stack__table th, .pp-stack__table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid rgba(22, 21, 31, .1); font-size: .92rem; }
.pp-stack__table th { color: var(--text-dim); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.pp-stack__table td:last-child, .pp-stack__table th:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.pp-stack__table tr:last-child td { border-bottom: none; }

/* Tabla comparativa -------------------------------------------------------- */
.pp-compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pp-compare {
  width: 100%; border-collapse: collapse; min-width: 720px;
  background: var(--white); border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid rgba(22, 21, 31, .08);
}
.pp-compare thead th {
  background: var(--ink); color: var(--white); padding: 1.1rem 1rem; text-align: center;
  font-weight: 600; font-size: .95rem; vertical-align: bottom;
}
.pp-compare thead th:first-child { text-align: left; }
.pp-compare thead th .price { display: block; font-size: 1.3rem; font-weight: 800; margin-top: .2rem; }
.pp-compare thead th .price span { font-size: .8rem; font-weight: 500; color: #b9c4dc; }
.pp-compare thead th.is-star { background: linear-gradient(180deg, #1c2b57, var(--ink)); }
.pp-compare thead th.is-star .tag {
  display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: var(--white); border-radius: 999px; padding: .18rem .6rem; margin-bottom: .4rem;
}
.pp-compare tbody th {
  text-align: left; font-weight: 600; color: var(--ink); padding: .85rem 1rem; font-size: .9rem;
  background: var(--paper); border-bottom: 1px solid rgba(22, 21, 31, .07);
}
.pp-compare tbody td {
  text-align: center; padding: .85rem 1rem; font-size: .9rem; color: var(--text);
  border-bottom: 1px solid rgba(22, 21, 31, .07); border-left: 1px solid rgba(22, 21, 31, .05);
}
.pp-compare tbody td.is-star { background: rgba(59, 130, 246, .05); font-weight: 600; }
.pp-compare tbody tr:hover td, .pp-compare tbody tr:hover th { background: rgba(59, 130, 246, .04); }
.pp-compare .rowgroup th {
  background: var(--ink-soft, #1c1b29); color: var(--white); font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.pp-check { color: var(--accent-deep); font-weight: 800; }
.pp-dash { color: rgba(22, 21, 31, .28); }
.pp-compare__note { text-align: center; color: var(--text-dim); font-size: .84rem; margin-top: 1rem; }

/* CTA de cierre reutiliza .cta; agregamos fila de botones. */
.pp-cta__row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.5rem; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 980px) {
  .pp-count { grid-template-columns: 1fr; }
  .pp-scale__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
