/* Pappitas — Venta de planes (ver plans-sell.js) */
:root { --pls-ink: #0b0c0f; }

/* ── Hero: siempre oscuro (texto claro), igual en tema claro y oscuro ── */
.pls-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px;
  margin: 0 0 34px; padding: 34px 34px 30px; border-radius: 28px;
  background: #0d0e12; color: #f5f6f8;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .06);
}
.pls-hero::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-primary) 38%, transparent), transparent);
  filter: blur(10px); opacity: .9; pointer-events: none;
}
.pls-hero::after {
  content: ""; position: absolute; z-index: -1; inset: auto auto -50% -15%; width: 55%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(124 58 237 / .28), transparent); pointer-events: none;
}
.pls-hero-l { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.pls-hero-r { display: flex; flex-direction: column; gap: 12px; min-width: 0; justify-content: center; }

.pls-kick { display: flex; gap: 8px; flex-wrap: wrap; }
.pls-kick-a, .pls-kick-b { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pls-kick-a { background: var(--brand-primary); color: var(--pls-ink); }
.pls-kick-b { background: rgb(255 255 255 / .1); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }
.pls-h { margin: 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.04; font-weight: 900; letter-spacing: -.035em; color: #fff; }
.pls-h span { color: var(--brand-primary); }
.pls-h small { font-size: .42em; font-weight: 700; letter-spacing: 0; color: rgb(255 255 255 / .6); margin-left: 4px; }
.pls-sub { margin: -4px 0 0; font-size: 15px; font-weight: 600; color: rgb(255 255 255 / .72); }
.pls-sub s { color: rgb(255 255 255 / .45); margin-right: 4px; }


/* Cupos */
.pls-seats { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 8px; }
.pls-seats-h { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #fff; }
.pls-seats-h svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--brand-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pls-seats-bar { height: 10px; border-radius: 999px; background: rgb(255 255 255 / .1); overflow: hidden; }
.pls-seats-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 60%, #fff)); }
.pls-seats.is-low .pls-seats-bar i { background: linear-gradient(90deg, #f97316, #ef4444); }
.pls-seats.is-low .pls-seats-h svg { stroke: #fb923c; }

/* Botón principal */
.pls-cta {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 28px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--brand-primary); color: var(--pls-ink);
  font: inherit; font-size: 17px; font-weight: 900; letter-spacing: -.01em;
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--brand-primary) 70%, transparent), inset 0 -2px 0 rgb(0 0 0 / .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pls-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.pls-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -12px color-mix(in srgb, var(--brand-primary) 80%, transparent), inset 0 -2px 0 rgb(0 0 0 / .12); }
.pls-cta:hover svg { transform: translateX(3px); }
.pls-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .55), transparent);
  transform: skewX(-18deg); animation: pls-shine 3.6s ease-in-out infinite;
}
@keyframes pls-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .pls-cta::after { animation: none; display: none; } }
.pls-hero .pls-cta { width: 100%; max-width: 420px; }

.pls-trusts { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.pls-trust { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: rgb(255 255 255 / .78); }
.pls-trust svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--brand-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pls-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: rgb(255 255 255 / .7); }
.pls-proof b { color: #fff; }
.pls-proof i { font-style: normal; opacity: .4; }
.pls-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgb(34 197 94 / .6); animation: pls-pulse 2s infinite; margin-right: 2px; }
@keyframes pls-pulse { 70% { box-shadow: 0 0 0 9px rgb(34 197 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); } }

/* Columna derecha */
.pls-limit { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgb(251 146 60 / .14); box-shadow: inset 0 0 0 1px rgb(251 146 60 / .35); color: #fed7aa; font-size: 14px; font-weight: 800; }
.pls-limit svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #fb923c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pls-trial { padding: 14px 16px; border-radius: 18px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); display: flex; flex-direction: column; gap: 4px; }
.pls-trial small { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .55); }
.pls-trial div { font-size: 17px; color: #fff; display: flex; flex-wrap: wrap; gap: 6px; }
.pls-trial div i { font-style: normal; opacity: .35; }
.pls-trial span { font-size: 13px; color: var(--brand-primary); font-weight: 700; }
.pls-gain { padding: 18px; border-radius: 22px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09); }
.pls-gain small { display: block; margin-bottom: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .55); }
.pls-gain ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pls-gain li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #fff; font-weight: 600; }
.pls-gi { flex: none; width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand-primary) 22%, transparent); }
.pls-gi svg { width: 15px; height: 15px; fill: none; stroke: var(--brand-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pls-gt { flex: 1; min-width: 0; }
.pls-ft { font-style: normal; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; white-space: nowrap; }
.pls-ft s { color: rgb(255 255 255 / .45); }
.pls-ft svg { width: 13px; height: 13px; fill: none; stroke: rgb(255 255 255 / .5); stroke-width: 2.4; }
.pls-ft b { color: var(--brand-primary); font-weight: 900; }
.pls-new { font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--brand-primary); color: var(--pls-ink); }

.pls-until { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 800; color: #fff; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.pls-until svg { width: 16px; height: 16px; fill: #fbbf24; stroke: none; }

/* ── Tarjetas ── */
.pls-grid { align-items: stretch; }
.plans-grid .plan-card { border-radius: 24px; padding: 26px 24px; }
.pls-tag { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--bg-card); color: var(--text-primary); box-shadow: inset 0 0 0 1.5px var(--border); }
.pls-cur .plan-card { box-shadow: none; }
.plan-features li.pls-miss { text-decoration: none; color: var(--text-secondary); }
.plan-features li.pls-miss .cross { color: #f97316; }

.pls-feat { position: relative; z-index: 1; }
.pls-feat .plan-card {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(140deg, var(--brand-primary), #7c3aed 55%, var(--brand-primary)) border-box;
  box-shadow: 0 28px 60px -28px color-mix(in srgb, var(--brand-primary) 60%, rgb(0 0 0 / .4)), 0 6px 18px -8px rgb(0 0 0 / .18);
}
@media (min-width: 1100px) {
  .pls-feat .plan-card { transform: translateY(-10px); }
  .pls-feat .plan-card:hover { transform: translateY(-13px); }
}
.pls-feat .plan-price { font-size: 38px; }
.pls-feat .plan-card-actions .pls-cta { width: 100%; min-height: 54px; font-size: 16px; }
.pls-seats.in-card { margin: 4px 0 -6px; max-width: none; }
.pls-seats.in-card .pls-seats-h { color: var(--text-primary); font-size: 13px; }
.pls-seats.in-card .pls-seats-h svg { stroke: var(--text-primary); }
.pls-seats.in-card .pls-seats-bar { background: color-mix(in srgb, var(--text-primary) 10%, transparent); }
.pls-trusts.in-card { margin-top: 12px; justify-content: center; }
.pls-trusts.in-card .pls-trust { color: var(--text-secondary); font-size: 12.5px; }
.pls-mem { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 12px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, #22c55e 13%, var(--bg-card)); color: var(--text-primary); }
.pls-mem svg { width: 15px; height: 15px; fill: none; stroke: #16a34a; stroke-width: 2; }

/* MASTER: métricas por plan */
.pls-mstats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pls-mstats span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-primary); background: color-mix(in srgb, var(--text-primary) 6%, var(--bg-card)); }
.pls-mstats svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.pls-mhint { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }

/* MASTER: caja de gatillos en Editar plan */
.pls-pbox { padding: 14px 14px 6px; }
.pls-pbox-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; color: var(--text-primary); }
.pls-pbox-h svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.pls-prow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; cursor: pointer; }
.pls-prow > span:first-child { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.pls-prow small { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

/* Barra fija en móvil */
.pls-bar { display: none; }
@media (max-width: 860px) {
  .pls-hero { grid-template-columns: 1fr; padding: 28px 20px 22px; border-radius: 26px; gap: 24px; }
  .pls-hero .pls-cta { max-width: none; }
  .pls-bar {
    display: flex; align-items: center; gap: 12px; position: fixed; z-index: 60; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); padding: 10px 10px 10px 16px; border-radius: 20px;
    background: color-mix(in srgb, var(--bg-card) 86%, transparent); color: var(--text-primary); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px -12px rgb(0 0 0 / .35), inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 10%, transparent);
    transform: translateY(140%); transition: transform .28s ease;
  }
  .pls-bar.show { transform: none; }
  .pls-bar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .pls-bar-t b { font-size: 15px; color: var(--text-primary); }
  .pls-bar-t small { font-weight: 600; color: var(--text-secondary); }
  .pls-bar-t span { font-size: 12px; color: var(--text-secondary); }
  .pls-cta.sm { min-height: 46px; padding: 0 22px; font-size: 15px; border-radius: 14px; justify-content: center; }
}

/* ── Modal de pago ── */
.pls-pay-wrap { display: flex; align-items: center; justify-content: center; padding: 20px; }
.pls-pay {
  position: relative; width: 100%; max-width: 460px; border-radius: 28px; overflow: hidden;
  background: var(--bg-card); color: var(--text-primary);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / .5), 0 0 0 1px color-mix(in srgb, var(--text-primary) 8%, transparent);
  animation: pls-pop .22s ease;
}
@keyframes pls-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.pls-pay-x { position: absolute; top: 16px; right: 16px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--text-primary) 7%, transparent); color: var(--text-primary); }
.pls-pay-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pls-pay-h { padding: 28px 28px 22px;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand-primary) 24%, transparent), transparent 60%), radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, #8b5cf6 12%, transparent), transparent 60%); }
.pls-pay-h small { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.pls-pay-h h3 { margin: 4px 0 10px; font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: var(--text-primary); }
.pls-pay-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pls-pay-price b { font-size: 46px; font-weight: 900; letter-spacing: -.05em; line-height: 1; color: var(--text-primary); }
.pls-pay-price em { font-style: normal; font-size: 15px; font-weight: 800; color: var(--text-secondary); }
.pls-pay-price s { font-size: 16px; font-weight: 700; color: var(--text-muted); margin-left: 4px; }
.pls-pay-price span { font-size: 12px; font-weight: 900; padding: 4px 9px; border-radius: 999px; background: var(--brand-primary); color: var(--pls-ink); }
.pls-pay-l { padding: 6px 20px 8px; display: flex; flex-direction: column; gap: 10px; }
.pls-pay-l > p { margin: 8px 8px 2px; font-size: 13px; font-weight: 800; color: var(--text-secondary); }
.pls-pm-item { border-radius: 20px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text-primary) 10%, transparent); transition: box-shadow .15s ease, background .15s ease; }
.pls-pm-item:hover, .pls-pm-item.open { box-shadow: inset 0 0 0 2px var(--text-primary); }
.pls-pm { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 14px; border: 0; background: none; cursor: pointer; font: inherit; color: var(--text-primary); text-align: left; }
.pls-pm[disabled] { cursor: progress; opacity: .6; }
.pls-pm-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--text-primary) 6%, var(--bg-card)); }
.pls-pm-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--text-primary); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pls-pm-ic-paypal { background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.pls-pm-ic-yappy { background: color-mix(in srgb, #0ea5e9 14%, var(--bg-card)); }
.pls-pm-ic-yappy svg { stroke: #0284c7; }
.pls-pm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pls-pm-t b { font-size: 15.5px; font-weight: 800; color: var(--text-primary); }
.pls-pm-t small { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.pls-pm-logo { flex: none; height: 26px; max-width: 120px; object-fit: contain; border-radius: 6px; }
.pls-pm-go { flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--text-primary); }
.pls-pm-go svg { width: 16px; height: 16px; fill: none; stroke: var(--bg-card); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pls-pm.is-busy .pls-pm-go { animation: pls-spin 1s linear infinite; }
@keyframes pls-spin { to { transform: rotate(360deg); } }
.pls-pm-more { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.pls-pm-more[hidden] { display: none; }
.pls-pm-more .form-input { font-weight: 700; font-size: 16px; }
.pls-pay-empty { padding: 20px 28px; font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.pls-pay-f { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px 20px; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); text-align: center; }
.pls-pay-f svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #16a34a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .pls-pay-wrap { padding: 0; align-items: flex-end; }
  .pls-pay { max-width: none; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .pls-pm-logo { display: none; }
}

/* La fecha ya está en la tarjeta principal: sin reloj repetido en las tarjetas */
.pls-grid .plan-promo-end { display: none; }
