/* ============================================================
   PsicoAlianza — psa-planes.css
   Calculadora y secciones de las páginas de planes (.pl-*):
   planes-y-precios/seleccion/ y planes-y-precios/vocacional/.
   Lo propio de cada página (.plv-* en Vocacional) va en su <style>.
   Tokens --psa-* y campos/botones: assets/css/psa-componentes.css.
   JS: assets/js/psa-planes.js.
   ============================================================ */
/* clip y no hidden: hidden haría de la sección un contenedor de scroll y rompería el
   resumen sticky. (hidden queda de respaldo.) */
.pl-sec { position: relative; overflow: hidden; overflow: clip; }
.pl-wrap { position: relative; padding-inline: 1.25rem; }
.pl-sec [hidden] { display: none !important; }
/* Compensa el header sticky al saltar a #calculadora / #valor-candidato. */
.pl-ancla { scroll-margin-top: 5.5rem; }

/* Botones píldora de los CTA (hero y banner final) */
.pl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1.5rem;
  border: 0.125rem solid var(--psa-blue-40);
  border-radius: 5rem;
  background: transparent;
  color: var(--psa-blue-40);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pl-pill:hover { color: var(--psa-blue-40); background: rgba(0, 108, 179, .08); transform: translateY(-0.0625rem); }
.pl-pill:focus-visible { outline: 0.1875rem solid var(--psa-cta-blue); outline-offset: 0.1875rem; }
.pl-pill .bi { font-size: 1.5rem; line-height: 1; }
.pl-pill--solido { background: var(--psa-blue-40); color: #fff; }
.pl-pill--solido:hover { background: #005a96; border-color: #005a96; color: #fff; }
.pl-pill--blanco { background: #fff; border-color: #fff; }
.pl-pill--blanco:hover { background: var(--psa-blue-80); }
.pl-pill--borde-blanco { border-color: #fff; color: #fff; }
.pl-pill--borde-blanco:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- 1. HERO ---------- */
.pl-hero { background: linear-gradient(180deg, #fff 15.107%, #a8b6ff 207.33%); }
.pl-hero .pl-wrap { padding-block: 2.5rem 3rem; }
.pl-hero__col { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.pl-hero__titulo { margin: 0; color: #0071bc; font-size: 2.25rem; font-weight: 900; line-height: 1.1; }
.pl-hero__titulo span { display: block; margin-top: 0.5rem; font-size: 1.875rem; font-weight: 400; }
.pl-hero__texto { margin: 1.25rem 0 0; color: var(--psa-gray-30); font-size: 1rem; line-height: 1.45; }
.pl-hero__ventajas {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1.25rem;
  list-style: none;
  border-radius: 1.5rem;
  background: #fff;
}
.pl-hero__ventajas li { display: flex; align-items: center; gap: 1rem; color: var(--psa-gray-30); font-size: 1rem; line-height: 1.3; }
.pl-hero__ventajas li + li { padding-top: 1rem; border-top: 0.125rem solid var(--psa-gray-70); }
.pl-hero__icono {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem; height: 3.25rem;                  /* 36 de icono + 8 de aire por lado */
  border-radius: 0.5rem;
  background: var(--psa-blue-80);
  color: var(--psa-blue-40);
  font-size: 2.25rem;
  line-height: 1;
}
.pl-hero__ctas { align-self: stretch; display: flex; flex-direction: column; gap: 0.75rem; }
.pl-hero__circulo, .pl-hero__foto { display: none; }

/* ---------- 2. CALCULADORA ---------- */
.pl-calc { background: #f5f6fa; }
.pl-calc .pl-wrap { padding-block: 3rem; }
.pl-calc__inner { display: flex; flex-direction: column; gap: 1.75rem; max-width: 72.5rem; margin: 0 auto; }
.pl-h2 { margin: 0 0 0.75rem; color: var(--psa-gray-10); font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.pl-lead { margin: 0; color: var(--psa-gray-30); font-size: 1rem; line-height: 1.4; }
.pl-calc__cols { display: flex; flex-direction: column; gap: 1.5rem; }
.pl-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
  padding: 1.5rem 1rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: var(--psa-shadow-color-md);
}
.pl-sub { margin: 0 0 0.25rem; color: var(--psa-gray-10); font-size: 1.25rem; font-weight: 700; line-height: 1.75rem; }
.pl-sub-texto { margin: 0; color: var(--psa-gray-30); font-size: 1rem; line-height: 1.5rem; font-weight: var(--psa-fw-medium); letter-spacing: var(--psa-ls); }

/* Caja de volumen */
.pl-vol {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  overflow: hidden;
  padding: 1.25rem 1rem;
  border: 1px solid var(--psa-gray-60);
  border-radius: 0.75rem;
  background: linear-gradient(0deg, #fff 0%, #f3f5fd 62.443%, #dcedfe 133.57%);
}
.pl-vol > * { position: relative; }
.pl-vol__elipse {
  position: absolute;
  top: -15.1875rem;                                 /* −243px */
  right: 42%;
  width: 24.9375rem;                                /* 399px */
  height: 24.9375rem;
  max-width: none;
  pointer-events: none;
}
.pl-vol__pregunta { align-self: stretch; margin: 0; color: var(--psa-blue-20); font-size: 1.25rem; font-weight: 700; line-height: 1.75rem; }
.pl-stepper { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.pl-stepper__btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;                  /* 44px */
  padding: 0;
  border: 1px solid var(--psa-blue-40);
  border-radius: 50%;
  background: transparent;
  color: var(--psa-blue-40);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.pl-stepper__btn:hover:not(:disabled) { background: var(--psa-blue-80); }
.pl-stepper__btn:focus-visible { outline: 0.125rem solid var(--psa-cta-blue); outline-offset: 0.125rem; }
.pl-stepper__btn:disabled { opacity: .35; cursor: default; }
/* <input> editable; psa-planes.js fija su ancho en ch según las cifras, para que − / +
   queden a 20px de los dígitos. */
.pl-stepper__num {
  box-sizing: content-box;
  width: 2ch;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--psa-blue-20);
  font-family: inherit;
  font-size: 3.5rem;                                /* 56 / 68 */
  font-weight: var(--psa-fw-semibold);
  line-height: 4.25rem;
  text-align: center;
}
.pl-stepper__num:focus { outline: 0.125rem solid var(--psa-cta-blue); background: rgba(255, 255, 255, .7); }
.pl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.75rem; }
.pl-chip {
  height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--psa-cta-blue);
  border-radius: 3rem;
  background: transparent;
  color: var(--psa-cta-blue);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: var(--psa-fw-semibold);
  line-height: 1.25rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease;
  letter-spacing: var(--psa-ls);
}
.pl-chip:hover, .pl-chip.is-active { background: var(--psa-blue-80); }
.pl-chip:focus-visible { outline: 0.125rem solid var(--psa-cta-blue); outline-offset: 0.125rem; }
.pl-rangos { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pl-rango {
  flex: 1 1 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 4.25rem;                                  /* 68px */
  padding: 0.75rem 0.5rem;
  /* El borde activo (2px) se dibuja con box-shadow para que la casilla no cambie de tamaño. */
  border: 1px solid var(--psa-gray-60);
  border-radius: 0.75rem;
  background: #fff;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pl-rango:hover { border-color: var(--psa-gray-40); }
.pl-rango:focus-visible { outline: 0.125rem solid var(--psa-cta-blue); outline-offset: 0.125rem; }
.pl-rango.is-active { border-color: var(--psa-gray-10); box-shadow: inset 0 0 0 1px var(--psa-gray-10); }
.pl-rango__n { color: var(--psa-gray-10); font-size: 1.25rem; font-weight: 700; line-height: 1.75rem; }
.pl-rango__sub { color: var(--psa-green-50); font-size: 0.75rem; font-weight: var(--psa-fw-semibold); line-height: 1rem; letter-spacing: var(--psa-ls); }
.pl-rango__sub--base { color: var(--psa-gray-30); }
.pl-vol__info { display: flex; align-items: center; gap: 1.25rem; margin: 0; color: var(--psa-gray-30); font-size: 0.75rem; font-weight: var(--psa-fw-semibold); line-height: 1rem; letter-spacing: var(--psa-ls); }
.pl-vol__info .bi { flex: 0 0 auto; font-size: 1.25rem; line-height: 1; }

/* Tarjetas-radio de plan */
.pl-planes { display: flex; flex-direction: column; gap: 1.25rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.pl-plan {
  flex: 1 1 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 0.125rem solid #e5e5ea;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease;
}
.pl-plan:hover { border-color: var(--psa-gray-40); }
.pl-plan.is-selected { border-color: var(--psa-gray-10); }
.pl-plan:focus-within { outline: 0.125rem solid var(--psa-cta-blue); outline-offset: 0.125rem; }
.pl-plan__radio { position: absolute; opacity: 0; pointer-events: none; }
.pl-plan__cabeza { display: flex; align-items: center; gap: 1rem; }
.pl-plan__titulo { flex: 1 1 0; min-height: 4rem; color: var(--psa-gray-10); font-size: 1.5rem; font-weight: 700; line-height: 2rem; }
.pl-plan__marca {
  flex: 0 0 auto;
  position: relative;
  width: 1rem; height: 1rem;
  margin: 0.75rem 0.5rem 0.75rem 0;
  border: 0.125rem solid var(--psa-gray-30);
  border-radius: 50%;
}
.pl-plan.is-selected .pl-plan__marca { border-color: var(--psa-blue-40); }
.pl-plan.is-selected .pl-plan__marca::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--psa-blue-40);
  transform: translate(-50%, -50%);
}
.pl-plan__desc { margin: 0; color: var(--psa-gray-30); font-size: 1rem; line-height: 1.5rem; font-weight: var(--psa-fw-medium); letter-spacing: var(--psa-ls); }
.pl-plan__total { margin: 0; color: var(--psa-cta-blue); font-size: 1.5rem; font-weight: 700; line-height: 2rem; }
.pl-plan__detalle { display: flex; flex-direction: column; gap: 0.125rem; font-size: 0.75rem; font-weight: var(--psa-fw-semibold); line-height: 1rem; letter-spacing: var(--psa-ls); }
.pl-plan__unidad { color: var(--psa-gray-40); }
.pl-plan__ahorro { color: var(--psa-green-50); }
.pl-plan__lista {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0.625rem 0 0;
  border-top: 1px solid var(--psa-gray-5);
  list-style: none;
}
.pl-plan__lista li { display: flex; align-items: center; gap: 0.625rem; color: var(--psa-gray-10); font-size: 0.75rem; font-weight: var(--psa-fw-semibold); line-height: 1rem; letter-spacing: var(--psa-ls); }
.pl-plan__lista .bi { flex: 0 0 auto; color: var(--psa-green); font-size: 1rem; line-height: 1; }

/* Plan a la medida (más de 100) */
.pl-medida { display: flex; flex-direction: column; gap: 1.75rem; }
.pl-medida__banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #1d619e 30.5%, #343e84 72%);
  color: #fff;
}
.pl-medida__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 2.125rem;
  background: rgba(255, 255, 255, .3);
  font-size: 0.75rem;
  font-weight: var(--psa-fw-semibold);
  line-height: 1rem;
  letter-spacing: var(--psa-ls);
}
.pl-medida__pill .bi { font-size: 1rem; line-height: 1; }
.pl-medida__titulo { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.75rem; }
.pl-medida__texto { margin: 0; font-size: 0.75rem; font-weight: var(--psa-fw-semibold); line-height: 1rem; letter-spacing: var(--psa-ls); }
.pl-btn-icono { font-size: 1.25rem; line-height: 1; }

/* Resumen */
.pl-resumen { min-width: 0; border-radius: 1.5rem; box-shadow: var(--psa-shadow-color-md); }
.pl-resumen__cabeza {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  border-radius: 1.5rem 1.5rem 0 0;
  background: linear-gradient(90deg, #1d619e 30.5%, #343e84 72%);
  color: #fff;
}
.pl-resumen__icono {
  flex: 0 0 auto;
  display: flex;
  padding: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  font-size: 1.25rem;
  line-height: 1;
}
.pl-resumen__cabeza > div { min-width: 0; }
.pl-resumen__etiqueta { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: var(--psa-fw-semibold); line-height: 1rem; letter-spacing: var(--psa-ls); }
.pl-resumen__titulo { text-wrap: balance; margin: 0 0 0.25rem; font-size: 1.25rem; font-weight: 700; line-height: 1.75rem; }
.pl-resumen__desc { margin: 0; font-size: 0.75rem; font-weight: var(--psa-fw-semibold); line-height: 1rem; letter-spacing: var(--psa-ls); }
.pl-resumen__cuerpo {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 0 0 1.5rem 1.5rem;
  background: #fff;
}
.pl-resumen__filas { display: flex; flex-direction: column; gap: 1.25rem; margin: 0; }
.pl-resumen__fila { display: flex; align-items: flex-start; gap: 1.25rem; font-size: 1rem; line-height: 1.5rem; font-weight: var(--psa-fw-medium); letter-spacing: var(--psa-ls); }
.pl-resumen__fila dt { flex: 1 1 0; min-width: 0; margin: 0; color: var(--psa-gray-30); font-weight: inherit; }
.pl-resumen__fila dd { flex: 0 0 auto; margin: 0; color: var(--psa-gray-10); white-space: nowrap; }
.pl-resumen__fila dd.es-base { color: var(--psa-gray-40); }
.pl-resumen__ahorro {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  background: rgba(129, 191, 69, .25);
  color: var(--psa-green-10);
  font-size: 0.875rem;
  font-weight: var(--psa-fw-semibold);
  line-height: 1.25rem;
  letter-spacing: var(--psa-ls);
}
.pl-resumen__total { display: flex; align-items: center; gap: 1.25rem; margin: 0; }
.pl-resumen__total--linea { padding-top: 1.25rem; border-top: 1px solid #d9d9d9; }
.pl-resumen__total dt { flex: 1 1 0; margin: 0; color: var(--psa-gray-30); font-size: 1rem; font-weight: var(--psa-fw-medium); line-height: 1.5rem; letter-spacing: var(--psa-ls); }
.pl-resumen__total dd { margin: 0; color: var(--psa-gray-10); font-size: 1.5rem; font-weight: 700; line-height: 2rem; white-space: nowrap; }

/* ---------- 3. VALOR POR CANDIDATO ---------- */
.pl-valor { background: linear-gradient(180deg, #fff 15.107%, #a8b6ff 207.33%); }
.pl-valor .pl-wrap { display: flex; flex-direction: column; gap: 2rem; padding-block: 3rem; }
.pl-valor__col { position: relative; display: flex; flex-direction: column; gap: 1.25rem; }
.pl-valor__titulo { margin: 0; color: #0071bc; font-size: 2rem; font-weight: 400; line-height: 1.2; }
.pl-valor__titulo strong { font-weight: 900; }
.pl-valor__texto { margin: 0; color: var(--psa-gray-30); font-size: 1.125rem; line-height: 1.4; }
.pl-valor__figura, .pl-valor__circulo, .pl-valor__circulo-linea { display: none; }

.pl-tabla-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  padding: 1.25rem 1rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: var(--psa-shadow-color-lg);
}
.pl-tabla-card__cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
.pl-tabla-card__titulo { flex: 1 1 auto; margin: 0; color: var(--psa-gray-30); font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.pl-tabs {
  display: flex;
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--psa-shadow-color-sm);
}
.pl-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 0;
  background: transparent;
  color: var(--psa-gray-30);
  font-family: inherit;
  font-size: 1rem;
  font-weight: var(--psa-fw-medium);
  line-height: 1.5rem;
  cursor: pointer;
  letter-spacing: var(--psa-ls);
}
.pl-tab .bi { font-size: 1.5rem; line-height: 1; }
.pl-tab.is-active { background: var(--psa-blue-80); color: var(--psa-blue-40); font-weight: 700; letter-spacing: 0; }
.pl-tab.is-active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.625rem;
  height: 0.125rem;
  background: var(--psa-blue-40);
}
.pl-tab:focus-visible { outline: 0.125rem solid var(--psa-cta-blue); outline-offset: -0.125rem; }

/* Gráfica de barras en CSS. En pantallas estrechas se desliza en horizontal. */
.pl-leyenda { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; margin: 0; padding: 0.25rem 0; list-style: none; }
.pl-leyenda li { display: flex; align-items: center; gap: 0.375rem; color: var(--psa-gray-10); font-size: 1.125rem; font-weight: 700; line-height: 2rem; }
.pl-leyenda li::before { content: ""; width: 1rem; height: 1rem; border-radius: 50%; background: var(--c); }
.pl-grafica-scroll { overflow-x: auto; }
.pl-grafica {
  display: flex;
  align-items: flex-end;
  min-width: 31rem;
  height: 20.4375rem;                               /* 327px */
  margin: 0;
  padding: 0;
  list-style: none;
}
.pl-grafica__grupo { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; }
.pl-grafica__barras { display: flex; align-items: flex-end; gap: 0.25rem; }
.pl-grafica__col { display: flex; flex-direction: column; align-items: center; width: 3rem; }   /* barra de 48px */
.pl-grafica__valor { color: var(--psa-gray-10); font-size: 0.75rem; font-weight: var(--psa-fw-semibold); line-height: 1rem; white-space: nowrap; letter-spacing: var(--psa-ls); }
.pl-grafica__barra {
  width: 100%;
  height: var(--h);
  padding-top: 0.375rem;
  border-radius: 0.75rem 0.75rem 0.25rem 0.25rem;
  background: var(--c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: var(--psa-fw-semibold);
  line-height: 1rem;
  text-align: center;
  white-space: nowrap;
  letter-spacing: var(--psa-ls);
}
.pl-grafica__eje { display: flex; flex-direction: column; justify-content: center; height: 2.75rem; color: var(--psa-gray-10); font-size: 0.75rem; font-weight: var(--psa-fw-semibold); line-height: 1rem; text-align: center; letter-spacing: var(--psa-ls); }

.pl-tabla-scroll { overflow: hidden; border: 0.1026rem solid var(--psa-gray-60); border-radius: 1rem; }
.pl-tabla { width: 100%; margin: 0; border-collapse: collapse; }
.pl-tabla th, .pl-tabla td { padding: 0.75rem; border-bottom: 0.1026rem solid var(--psa-gray-60); text-align: left; vertical-align: middle; }
.pl-tabla tr:last-child th, .pl-tabla tr:last-child td { border-bottom: 0; }
.pl-tabla thead th { color: var(--psa-gray-30); font-size: 1rem; font-weight: 700; line-height: 1.5; }
.pl-tabla th:first-child { width: 28%; background: var(--psa-blue-40); color: #fff; }
.pl-tabla tbody th { font-size: 1rem; font-weight: var(--psa-fw-medium); line-height: 1.43; letter-spacing: var(--psa-ls); }
.pl-tabla td { color: var(--psa-gray-10); font-size: 1rem; line-height: 1.43; font-weight: var(--psa-fw-medium); letter-spacing: var(--psa-ls); }
.pl-tabla td small { display: block; color: var(--psa-green-50); font-size: 0.8125rem; font-weight: var(--psa-fw-semibold); line-height: 1.33; letter-spacing: var(--psa-ls); }
.pl-tabla td small.es-base { color: var(--psa-gray-30); }
.pl-tabla-card__pie { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
.pl-tabla-card__nota { flex: 1 1 12rem; margin: 0; color: var(--psa-gray-30); font-size: 0.875rem; line-height: 1.25rem; font-weight: var(--psa-fw-medium); letter-spacing: var(--psa-ls); }
.pl-enlace {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  color: var(--psa-blue-40);
  font-size: 0.875rem;
  font-weight: var(--psa-fw-semibold);
  line-height: 1.25rem;
  white-space: nowrap;
  letter-spacing: var(--psa-ls);
}
.pl-enlace:hover { background: var(--psa-blue-80); color: var(--psa-blue-40); }
.pl-enlace .bi { font-size: 1.25rem; line-height: 1; }

/* ---------- 4. ¿AÚN NO TE DECIDES? ---------- */
.pl-cta { background: #f5f6fa; overflow: visible; }
.pl-cta .pl-wrap { padding-block: 3rem; }
.pl-cta__banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  border-radius: 2rem;
  background: linear-gradient(90deg, #3d307a 30.5%, #612c68 72%);
  color: #fff;
}
.pl-cta__titulo { margin: 0; font-size: 2rem; font-weight: 900; line-height: 1.15; }
.pl-cta__texto { margin: 0; font-size: 1.125rem; line-height: 1.4; }
.pl-cta__botones { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.pl-cta__nota { margin: 0; font-size: 0.875rem; line-height: 1.55; }
.pl-cta__foto { display: none; }

/* Modal del vídeo de demo (Bootstrap) */
.pl-video .modal-content { overflow: hidden; border: 0; border-radius: 1rem; background: #000; }
.pl-video video { display: block; width: 100%; height: auto; }
.pl-video .btn-close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; padding: 0.75rem; border-radius: 50%; background-color: #fff; opacity: .9; }

/* ---------- Tablet (≥ 768px) ---------- */
@media (min-width: 768px) {
  .pl-hero__ctas { flex-direction: row; align-self: auto; }
  .pl-planes { flex-direction: row; align-items: stretch; }
  .pl-rangos { flex-wrap: nowrap; justify-content: space-between; }
  .pl-rango { flex: 0 1 auto; padding-inline: 1rem; }
  .pl-card { padding: 2rem 1.5rem; }
}

/* ---------- Escritorio (≥ 1024px): medidas del Figma ---------- */
@media (min-width: 1024px) {
  .pl-wrap { padding-inline: 10.5rem; }             /* 168px */
  .pl-ancla { scroll-margin-top: 7.25rem; }
  .pl-pill { min-height: 3rem; font-size: 1.25rem; }

  .pl-hero .pl-wrap { display: flex; align-items: center; min-height: 59.75rem; padding-block: 4.5rem; }   /* 956px */
  .pl-hero__col { width: 55.4375rem; gap: 2.5rem; }                                 /* 887px */
  .pl-hero__titulo { font-size: 4.1875rem; line-height: 2.7rem; }                   /* 67 / 43.2 */
  .pl-hero__titulo span { margin-top: 2.5rem; font-size: 3.75rem; line-height: 2.7rem; }
  .pl-hero__texto { margin-top: 2.5rem; font-size: 1.5rem; line-height: 2rem; }
  .pl-hero__ventajas { gap: 1.375rem; padding: 1.5rem; }
  .pl-hero__ventajas li { gap: 1.25rem; font-size: 1.25rem; line-height: 1.5rem; }
  .pl-hero__ventajas li + li { padding-top: 1.375rem; }
  .pl-hero__ctas { gap: 1.25rem; }
  .pl-hero__ctas .pl-pill { min-height: 5.25rem; padding-inline: 1.5rem; font-size: 1.5rem; line-height: 2rem; }   /* 84px */
  .pl-hero__circulo {
    display: block;
    position: absolute;
    right: 0; bottom: 0;
    width: 47.875rem; height: 47.875rem;            /* 766px */
    max-width: none;
    pointer-events: none;
  }
  .pl-hero__foto {
    display: block;
    position: absolute;
    right: 0; bottom: 0;
    width: 38.25rem; height: 56.625rem;             /* 612 × 906 */
    max-width: none;
    object-fit: cover;
    pointer-events: none;
  }

  .pl-calc .pl-wrap { padding-block: 8.25rem; }     /* 132px */
  .pl-calc__inner { gap: 2.5rem; }
  .pl-h2 { font-size: 2.5rem; line-height: 3rem; }
  .pl-lead { font-size: 1.25rem; line-height: 1.75rem; }
  .pl-calc__cols { flex-direction: row; align-items: flex-start; gap: 2rem; }
  .pl-card { flex: 1 1 0; gap: 2.5rem; padding: 2.5rem 2.75rem; }
  .pl-vol { gap: 2.5rem; padding: 1.75rem; }
  .pl-vol__elipse { right: 23.03rem; }              /* 368.5px */
  .pl-chips { flex-wrap: nowrap; }
  .pl-rango { padding-inline: 1.5rem; }
  .pl-medida { gap: 2.5rem; }
  /* El resumen acompaña al scroll, justo bajo el header sticky (7.25rem). */
  .pl-resumen { position: sticky; top: 8.75rem; flex: 0 0 21.5rem; }               /* 344px */

  .pl-valor .pl-wrap { flex-direction: row; align-items: flex-start; gap: 6.25rem; min-height: 65.1rem; padding-block: 4.5rem 0; }
  .pl-valor__col { flex: 1 1 0; min-width: 0; gap: 2.5rem; }
  .pl-valor__titulo { font-size: 3.75rem; line-height: 4.5rem; }
  .pl-valor__texto { font-size: 1.875rem; line-height: 2.625rem; }
  .pl-valor__circulo, .pl-valor__circulo-linea {
    display: block;
    position: absolute;
    width: 45.125rem; height: 45.1875rem;           /* 722 × 723 */
    max-width: none;
    pointer-events: none;
  }
  .pl-valor__circulo { left: -5.9375rem; bottom: -23.4rem; }
  .pl-valor__circulo-linea { left: 88.4375rem; bottom: -6.2rem; }                   /* 1415px desde el borde de la sección */
  .pl-valor__figura { display: block; position: relative; width: 37.1875rem; height: 34.22rem; }   /* 595 × 547.5 */
  .pl-valor__figura img { position: absolute; left: 0; top: 0; width: 22.75rem; height: 34.22rem; max-width: none; object-fit: cover; }
  .pl-valor__dato {
    position: absolute;
    left: 23.375rem; top: 19.125rem;
    width: 13.8125rem;                              /* 221px */
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(0.3125rem);
    backdrop-filter: blur(0.3125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(42, 42, 128, .1);
  }
  .pl-valor__dato strong { display: block; margin-bottom: 0.625rem; color: var(--psa-blue-40); font-size: 2.5rem; font-weight: 700; line-height: 3rem; }
  .pl-valor__dato span { display: block; color: var(--psa-gray-30); font-size: 0.875rem; line-height: 1.25rem; font-weight: var(--psa-fw-medium); letter-spacing: var(--psa-ls); }

  .pl-tabla-card { flex: 0 0 56.25rem; gap: 1.75rem; padding: 2.5rem; border-radius: 3.125rem; }   /* 900px */
  .pl-tabla-card__titulo { font-size: 1.642rem; line-height: 2.463rem; }
  .pl-leyenda li { font-size: 1.5rem; }
  .pl-grafica { min-width: 0; }
  .pl-tabla-scroll { border-radius: 1.642rem; }
  .pl-tabla th, .pl-tabla td { padding: 1.2316rem 1.642rem; }
  .pl-tabla thead th { padding-block: 1.4368rem; font-size: 1.642rem; line-height: 2.463rem; }
  .pl-tabla th:first-child { width: 11.9375rem; }                                    /* 191px */
  .pl-tabla tbody th, .pl-tabla td { height: 6.1577rem; font-size: 1.4368rem; line-height: 2.0526rem; }
  .pl-tabla td small { font-size: 1.2316rem; line-height: 1.642rem; }

  .pl-cta .pl-wrap { padding-block: 11.875rem; }    /* 190px */
  .pl-cta__banner { gap: 2.5rem; padding: 4.5rem; }
  .pl-cta__titulo { font-size: 3.75rem; line-height: 2.7rem; }
  .pl-cta__texto { width: 45.4375rem; font-size: 1.875rem; line-height: 2.625rem; }  /* 727px */
  .pl-cta__botones .pl-pill { min-height: 4rem; }
  .pl-cta__botones .pl-pill--blanco { min-height: 4.5rem; }
  .pl-cta__nota { font-size: 1rem; }
  .pl-cta__foto {
    display: block;
    position: absolute;
    right: 2.125rem; bottom: 0;
    width: 41.25rem; height: 44.0625rem;            /* 660 × 705: sobresale por arriba del banner */
    max-width: none;
    object-fit: cover;
    pointer-events: none;
  }
}
.pl-barra, .pl-hoja-fondo, .pl-grafica-pista { display: none; }

/* ==========================================================================
   MÓVIL — Figma «Pasarela de pagos desde el home · Mobile» (lienzo de 390px)
   ========================================================================== */
@media (max-width: 1023.98px) {
  .pl-wrap { padding-inline: 1rem; }

  /* Barra fija inferior + hoja con el resumen */
  body { padding-bottom: 5.5rem; }                              /* alto de la barra: 88px */
  .wa-sticky { bottom: 6.5rem; }                                /* el WhatsApp flotante sube para no taparla */
  body.is-modal-open .wa-sticky { visibility: hidden; }         /* y se oculta con la hoja abierta */
  [data-pl-pago-card] { display: none; }
  .pl-barra {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 5.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    box-shadow: 0 -0.25rem 0.75rem rgba(64, 64, 173, .18);
  }
  .pl-barra__resumen { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; }
  .pl-barra__titulo { color: var(--psa-gray-30); font-size: 0.875rem; line-height: 1.25rem; white-space: nowrap; }
  .pl-barra__total { color: var(--psa-gray-10); font-size: 1.25rem; font-weight: 700; line-height: 1.75rem; white-space: nowrap; }
  .pl-barra__detalle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--psa-blue-40);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25rem;
    cursor: pointer;
  }
  .pl-barra__detalle .bi { font-size: 1rem; line-height: 1; }
  .pl-barra .psa-btn { flex: 1 1 0; min-width: 0; }

  .pl-hoja-fondo { display: block; position: fixed; inset: 0; z-index: 940; background: rgba(10, 10, 33, .55); }
  .pl-resumen {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 950;
    max-height: calc(100vh - 3.5rem);
    overflow-y: auto;
    padding: 0.75rem 1rem 1.5rem;
    border-radius: 1rem 1rem 0 0;
    background: #fff;
    box-shadow: none;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform .25s ease, visibility .25s;
    touch-action: pan-y;
  }
  .pl-resumen.is-open { visibility: visible; transform: translateY(0); }
  .pl-resumen::before {                                          /* agarradera */
    content: "";
    display: block;
    width: 2.5rem; height: 0.25rem;
    margin: 0 auto 1rem;
    border-radius: 0.125rem;
    background: #c7c7cc;
  }
  /* La hoja muestra Plan, Candidatos, Rango, Valor y Total (sin precio base ni ahorro). */
  .pl-resumen__fila:nth-child(3) { order: 4; }
  .pl-resumen__fila:nth-child(4) { order: 3; }
  .pl-resumen__fila:nth-child(5), .pl-resumen__ahorro { display: none; }

  /* Hero */
  .pl-hero .pl-wrap { padding-block: 1.5rem 2rem; }
  .pl-hero__col { gap: 1.5rem; }
  .pl-pill { min-height: 3rem; font-size: 1rem; line-height: 1.5rem; }
  .pl-hero__titulo { font-size: 2rem; line-height: 2.5rem; }
  .pl-hero__titulo span { margin-top: 0.25rem; font-size: 2rem; line-height: 2.5rem; }
  .pl-hero__texto { margin-top: 0.25rem; font-size: 1rem; line-height: 1.5rem; }
  .pl-hero__ventajas { gap: 0.75rem; padding: 1rem; }
  .pl-hero__ventajas li { gap: 1.25rem; font-size: 1rem; line-height: 1.5rem; }
  .pl-hero__ventajas li + li { padding-top: 0.75rem; }
  .pl-hero__icono { width: 2.5rem; height: 2.5rem; font-size: 1.75rem; }      /* icono de 28 + 6 de aire */
  .pl-hero__ctas { gap: 0.5rem; }
  .pl-hero__ctas .pl-pill { font-size: 1.125rem; line-height: 1.5rem; }
  .pl-hero__ctas .pl-pill--solido { min-height: 4.75rem; }       /* 76px */
  .pl-hero__ctas .pl-pill:not(.pl-pill--solido) { min-height: 4.25rem; }      /* 68px */

  /* Calculadora */
  .pl-calc .pl-wrap { padding-block: 2rem; }
  .pl-calc__inner { gap: 1.5rem; }
  .pl-h2 { font-size: 1.5rem; line-height: 2rem; }
  .pl-lead { font-size: 1rem; line-height: 1.5rem; }
  .pl-card { gap: 1.5rem; padding: 1.25rem 1rem 1.5rem; }
  .pl-vol { gap: 2.5rem; padding: 1.25rem 1rem; }
  .pl-vol__pregunta { text-align: center; }
  /* 15px y no 16: con 16 los cinco números no caben en una fila (291,x de 292px). */
  .pl-chips { gap: 0.5rem; }
  .pl-chip { padding-inline: 0.9375rem; }
  .pl-rangos { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .pl-rango { flex: 0 0 calc((100% - 1rem) / 3); height: auto; padding: 0.75rem 0.375rem; }
  .pl-planes { gap: 1rem; }
  .pl-plan__titulo { min-height: 0; }

  /* Valor por candidato */
  .pl-valor .pl-wrap { gap: 1.5rem; padding-block: 2rem; }
  .pl-valor__col { gap: 1rem; }
  .pl-valor__titulo { font-size: 1.5rem; line-height: 2rem; }
  .pl-valor__titulo strong { display: block; }
  .pl-valor__texto { font-size: 1rem; line-height: 1.5rem; }
  .pl-valor__circulo { display: block; position: absolute; left: -2rem; bottom: -6rem; width: 26rem; height: 26rem; max-width: none; pointer-events: none; }
  .pl-valor__figura { display: block; position: relative; height: 22.25rem; margin-top: 1rem; }
  .pl-valor__figura img { position: absolute; left: 1.5rem; bottom: 0; width: 14.75rem; height: auto; max-width: none; }
  .pl-valor__dato {
    position: absolute;
    right: 0; bottom: 1.5rem;
    width: 13.8125rem;
    margin: 0;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(0.3125rem);
    backdrop-filter: blur(0.3125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(42, 42, 128, .1);
  }
  .pl-valor__dato strong { display: block; margin-bottom: 0.625rem; color: var(--psa-blue-40); font-size: 2.5rem; font-weight: 700; line-height: 3rem; }
  .pl-valor__dato span { display: block; color: var(--psa-gray-30); font-size: 0.875rem; line-height: 1.25rem; }
  .pl-tabla-card { gap: 1rem; padding: 1.5rem 1rem; border-radius: 2rem; }
  .pl-tabla-card__cabeza { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .pl-tabla-card__titulo { font-size: 1.25rem; line-height: 1.75rem; }
  .pl-tabla { table-layout: fixed; }
  .pl-tabla th, .pl-tabla td { padding: 0.75rem 0.625rem; }
  .pl-tabla td small { white-space: nowrap; }
  .pl-tabla thead th { font-size: 0.875rem; line-height: 1.25rem; }
  .pl-tabla thead th:first-child { background: var(--psa-blue-20); }
  .pl-tabla tbody th { font-size: 0.875rem; font-weight: 700; }
  .pl-tabla th:first-child { width: 6rem; }
  .pl-tabla td { font-size: 1rem; line-height: 1.5rem; }
  .pl-tabla td small { font-size: 0.8125rem; line-height: 1.25rem; font-weight: var(--psa-fw-medium); }
  .pl-leyenda li { font-size: 0.875rem; line-height: 1.25rem; }
  .pl-grafica { min-width: 0; width: max-content; }
  .pl-grafica__grupo { flex: 0 0 7.1875rem; }                    /* 115px: caben 3 rangos; el resto, deslizando */
  .pl-grafica__col { width: 2rem; }
  .pl-grafica__barra { font-size: 0.5625rem; }
  .pl-grafica__valor { font-size: 0.5625rem; }
  .pl-grafica__eje { font-size: 0.5625rem; line-height: 0.75rem; }
  .pl-grafica-pista:not([hidden]) { display: block; margin: 0; color: var(--psa-gray-30); font-size: 0.875rem; line-height: 1.25rem; }
  .pl-tabla-card__pie { flex-direction: column; align-items: stretch; }
  .pl-tabla-card__nota { flex: 0 0 auto; }
  .pl-enlace { justify-content: center; }

  /* ¿Aún no te decides? */
  .pl-cta .pl-wrap { padding-block: 2rem 2.5rem; }
  .pl-cta__banner { gap: 1rem; padding: 1.5rem 1.25rem; }
  .pl-cta__titulo { font-size: 1.625rem; line-height: 2rem; }    /* 26 / 32 */
  .pl-cta__texto { font-size: 1rem; line-height: 1.5rem; }
  .pl-cta__botones { flex-direction: column; align-items: stretch; gap: 0.5rem; align-self: stretch; }
  .pl-cta__botones .pl-pill { font-size: 1.25rem; line-height: 1.25rem; }
  .pl-cta__botones .pl-pill--blanco { min-height: 4.75rem; }
  .pl-cta__botones .pl-pill--borde-blanco { min-height: 4.25rem; }
  .pl-cta__nota { font-size: 0.875rem; line-height: 1.25rem; }
}
/* Entre 768 y 1023px sobra ancho: planes y CTA del hero vuelven a ir en fila. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .pl-planes { flex-direction: row; }
  .pl-hero__ctas { flex-direction: row; align-self: auto; }
  .pl-rango { flex: 1 1 0; }
}
