/* AMT — rejilla de planes compartida (página /planes/ y vista #/plans). Celdas oscuras unidas por hairlines, numeradas. */
.pg-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  border: 1px solid var(--line); background: var(--line); border-radius: 4px; overflow: hidden;
}
.pg-grid.has-intro { grid-template-columns: minmax(0, .92fr) repeat(4, minmax(0, 1fr)); }

.pg-cell, .pg-intro, .pg-pass-cell { position: relative; background: var(--bg-1); }
.pg-cell { display: flex; flex-direction: column; min-height: 560px; padding: 22px 22px 22px; transition: background .2s; }
.pg-cell:hover { background: var(--bg-2); }

.pg-top { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.pg-ic { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 2px; background: rgba(255, 255, 255, .03); color: var(--text-2); }
.pg-num { margin-left: auto; white-space: nowrap; font-family: var(--mono); font-size: 11px; color: var(--text-4); }
.pg-pop, .pg-soon {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 2px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.pg-pop { border: 1px solid var(--blue-line); background: var(--blue-soft); color: var(--blue); }
.pg-soon { border: 1px solid var(--line-strong); color: var(--text-3); }
.pg-soon svg { width: 11px; height: 11px; }

.pg-name { margin-top: 20px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.pg-desc { margin-top: 6px; min-height: 62px; font-size: 13px; line-height: 1.55; color: var(--text-3); }

.pg-price { display: flex; align-items: flex-start; gap: 2px; margin-top: 26px; }
.pg-price sup { margin-top: 8px; font-size: 20px; font-weight: 500; color: var(--text-3); line-height: 1; }
.pg-price b {
  font-size: 54px; font-weight: 600; line-height: .95; letter-spacing: -.05em;
  background: linear-gradient(180deg, #fff 0%, #c9ccd4 55%, #8a8f98 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg-price span { align-self: flex-end; margin: 0 0 6px 8px; font-size: 12px; color: var(--text-3); white-space: nowrap; }

.pg-opts, .pg-opts-gap { margin-top: 14px; min-height: 30px; }
.pg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px; border-radius: 2px; background: var(--line); }
.pg-opts button { height: 28px; padding: 0 6px; font-size: 11.5px; color: var(--text-3); background: var(--bg-1); transition: color .15s, background .15s; }
.pg-opts button.is-active { color: var(--text); background: rgba(255, 255, 255, .07); }

.pg-feat { display: flex; flex-direction: column; gap: 10px; margin: auto 0 0; padding: 26px 0 0; list-style: none; }
.pg-feat li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.pg-feat li > svg { flex: none; margin-top: 2px; color: var(--text-3); }
.pg-feat li .pg-soon { margin-left: auto; height: 18px; padding: 0 6px; font-size: 9.5px; }

.pg-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 24px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 2px; font-size: 13.5px; font-weight: 500; color: var(--text);
  background: transparent; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.pg-cta:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); }
.pg-cta.is-off { justify-content: flex-start; color: var(--text-3); border-color: var(--line); cursor: default; }
.pg-cta.is-off:hover { background: transparent; border-color: var(--line); }

/* plan recomendado: filo azul arriba y CTA sólida */
.pg-cell.is-feat { background: linear-gradient(180deg, rgba(31, 94, 255, .10), rgba(31, 94, 255, 0) 46%), var(--bg-1); }
.pg-cell.is-feat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--blue); }
.pg-cell.is-feat .pg-ic { border-color: var(--blue-line); color: var(--blue); background: var(--blue-soft); }
.pg-cell.is-feat .pg-cta:not(.is-off) { background: var(--text); color: var(--bg); border-color: var(--text); }
.pg-cell.is-feat .pg-cta:not(.is-off):hover { background: #fff; }
.pg-cell.is-current::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--pos); }

/* planes aún cerrados (Beta 2.0) */
.pg-cell.is-locked .pg-name, .pg-cell.is-locked .pg-desc, .pg-cell.is-locked .pg-price, .pg-cell.is-locked .pg-opts, .pg-cell.is-locked .pg-feat { opacity: .55; }

/* panel de presentación (solo en /planes/) */
.pg-intro {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; padding: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(31, 94, 255, .10) 0%, rgba(31, 94, 255, .38) 100%), var(--bg-1);
}
.pg-intro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 3px 3px;
}
.pg-art { position: absolute; top: -70px; left: -90px; width: 380px; height: 380px; fill: none; stroke: #8fb2ff; stroke-width: .7; opacity: .75; }
.pg-intro-label { position: relative; font-size: 17px; font-weight: 500; color: var(--text); }

/* comparativa */
.pg-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.pg-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13.5px; }
.pg-table th, .pg-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.pg-table th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: rgba(255, 255, 255, .02); }
.pg-table th:first-child, .pg-table td:first-child { text-align: left; }
.pg-table td:first-child { color: var(--text); }
.pg-table td:first-child .pg-soon { margin-left: 10px; vertical-align: middle; }
.pg-table td { color: var(--text-2); }
.pg-table tbody tr:last-child td { border-bottom: none; }
.pg-table tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.pg-yes { display: inline-flex; vertical-align: middle; }
.pg-yes svg { color: var(--blue); }
.pg-no { color: var(--text-4); }
.pg-table .pg-soon { height: 18px; padding: 0 6px; font-size: 9.5px; }

/* Pase AMT */
.pg-pass { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 4px; overflow: hidden; }
.pg-pass-head { padding: 28px; background: linear-gradient(160deg, rgba(31, 94, 255, .14), rgba(31, 94, 255, .02) 60%), var(--bg-1); }
.pg-kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.pg-pass-head h2 { margin-top: 14px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.pg-pass-head p:not(.pg-kicker) { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.pg-pass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.pg-pass-cell { padding: 22px; min-height: 230px; display: flex; flex-direction: column; }
.pg-pass-cell .pg-desc { min-height: 0; }

@media (max-width: 1100px) {
  .pg-grid, .pg-grid.has-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-intro { display: none; }
  .pg-pass { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pg-grid, .pg-grid.has-intro { grid-template-columns: minmax(0, 1fr); }
  .pg-cell { min-height: 0; }
  .pg-desc { min-height: 0; }
  .pg-pass-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-pass-cell { min-height: 0; }
  .pg-price b { font-size: 46px; }
}
