/* =========================================================
   Planes: botones bajo las tarjetas y tabla de características (capa).
   ========================================================= */
.plans-cta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.plans-cta a { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 72px; padding: 16px 20px; border-radius: 20px; border: 1px solid var(--border-strong); background: var(--glass); color: var(--text); text-decoration: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .2s, transform .2s, box-shadow .2s; }
.plans-cta a:hover { border-color: var(--accent-ink); transform: translateY(-2px); }
.plans-cta .pc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.plans-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plans-cta b { display: block; font-size: 16px; }
.plans-cta small { display: block; font-size: 13px; color: var(--text-3); }
.plans-cta .pc-go { color: var(--text-3); }
/* Sucursales: borde neón */
.plans-cta a.pc-biz { border: 1.5px solid transparent; background: var(--surface); }
.plans-cta a.pc-biz .pc-ic { background: linear-gradient(135deg, #FFD23F, #FFC21A 45%, #F5A800 70%, #BF00FF 115%); color: #0A0A0A; }   /* Business: dorado con morado */
.plans-cta a.pc-biz .pc-go { color: var(--accent-ink); }
@media (max-width: 900px) { .plans-cta { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; } }

/* Capa de la tabla */
.pt-layer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: ptFade .2s ease; }
.pt-layer[hidden] { display: none; }
@keyframes ptFade { from { opacity: 0; } }
@keyframes ptUp { from { transform: translateY(24px); opacity: 0; } }
.pt-dialog { width: min(1080px, 100%); max-height: min(90vh, 900px); display: flex; flex-direction: column; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow); overflow: hidden; animation: ptUp .28s ease; }
.pt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 16px; }
.pt-head .eyebrow { margin-bottom: 4px; }
.pt-head h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.pt-x { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.pt-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pt-tabs { display: none; }
.pt-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 24px 24px; overscroll-behavior: contain; }
.pt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.pt-table thead th { position: sticky; top: 0; z-index: 2; background: var(--bg-2); padding: 12px 12px 16px; text-align: left; vertical-align: bottom; border-bottom: 1px solid var(--border-strong); }
.pt-table thead th b { display: block; font-size: 17px; }
.pt-table thead th small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.pt-table thead th.pt-hot b { color: var(--accent-ink); }
.pt-table tbody th, .pt-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.pt-table tbody th { font-weight: 500; color: var(--text); width: 34%; }
.pt-table td { width: 22%; color: var(--text-2); }
.pt-table td.pt-hot { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.pt-group th { padding: 24px 12px 8px !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink) !important; border-bottom: 0 !important; background: none !important; }
.pt-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.pt-yes svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pt-no { color: var(--text-3); }
.pt-txt { color: var(--text); }
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pt-note { margin: 16px 0 0; font-size: 12.5px; color: var(--text-3); }
.pt-more { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 16px 20px; border-radius: 20px; background: radial-gradient(70% 160% at 100% 0%, var(--banner-glow), transparent 60%) padding-box, linear-gradient(var(--surface), var(--surface)) padding-box, var(--banner-edge) border-box; border: 1.5px solid transparent; }
.pt-more div { display: grid; gap: 4px; }
.pt-more span { font-size: 14px; color: var(--text-2); }
.pt-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg-2); }
.pt-foot .btn { min-height: 44px; }

/* Celular: hoja inferior con pestañas por plan */
@media (max-width: 760px) {
  .pt-layer { place-items: end stretch; padding: 0; }
  .pt-dialog { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .pt-head { padding: 20px 16px 12px; }
  .pt-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0 16px 12px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
  .pt-tabs button { min-height: 40px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.1; cursor: pointer; }
  .pt-tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
  .pt-body { padding: 0 16px 16px; }
  .pt-table thead { display: none; }
  .pt-table, .pt-table tbody { display: block; }
  .pt-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .pt-table tbody th, .pt-table td { padding: 0; border: 0; width: auto; background: none !important; }
  .pt-table td { display: none; text-align: right; }
  .pt-layer[data-sel="0"] td[data-col="0"], .pt-layer[data-sel="1"] td[data-col="1"], .pt-layer[data-sel="2"] td[data-col="2"] { display: block; }
  .pt-table tr.pt-group { display: block; border: 0; padding: 16px 0 0; }
  .pt-group th { padding: 0 !important; }
  .pt-more { flex-direction: column; align-items: stretch; padding: 16px; }
  .pt-foot { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .pt-foot .btn { flex: 1; }
}
.pt-dialog > * { min-width: 0; width: 100%; box-sizing: border-box; }
@media (max-width: 760px) { .pt-tabs { width: auto; } .pt-tabs button { min-width: 0; } }
@media (max-width: 760px) { .pt-foot .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.15; } }
