/* HolaPOS — SaaS: tarjetas de planes, uso vs límites, páginas legales */

/* ── Selector mensual / anual ── */
.cyc { display: inline-flex; padding: .25rem; border-radius: 9999px; background: #eef0fb; gap: .15rem; }
.cyc button { padding: .45rem 1rem; border-radius: 9999px; font-size: .82rem; font-weight: 700; color: #475569; transition: background .15s, color .15s, box-shadow .15s; }
.cyc button.on { background: #fff; color: #2B318A; box-shadow: 0 4px 12px -4px rgba(43,49,138,.35); }
.cyc .save { margin-left: .35rem; font-size: .66rem; font-weight: 800; color: #059669; background: #ecfdf5; border-radius: 9999px; padding: .05rem .4rem; }
.cyc-dark { background: rgba(255,255,255,.1); }
.cyc-dark button { color: rgba(255,255,255,.75); }
.cyc-dark button.on { background: #fff; color: #141846; }

/* ── Tarjeta de plan ── */
.pc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 1.5rem; padding: 1.6rem 1.4rem;
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.pc:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(43,49,138,.45); }
.pc.rec { border-color: #F18A00; box-shadow: 0 24px 60px -30px rgba(241,138,0,.65); }
.pc.cur { border-color: #2B318A; }
.pc .rib { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .7rem; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #F18A00, #ffa733); border-radius: 9999px; padding: .3rem .8rem; }
.pc.cur .rib { background: #2B318A; }
.pc .nm { font-weight: 800; font-size: 1.15rem; color: #0f172a; }
.pc .tg { font-size: .8rem; color: #64748b; margin-top: .2rem; min-height: 2.4em; }
.pc .pr { margin-top: 1rem; display: flex; align-items: baseline; gap: .3rem; color: #0f172a; }
.pc .pr b { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pc .pr span { font-size: .82rem; color: #64748b; }
.pc .pr-note { font-size: .72rem; color: #059669; font-weight: 600; min-height: 1.1rem; margin-top: .25rem; }
.pc .lims { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.pc .lims div { background: #f8fafc; border-radius: .7rem; padding: .45rem .3rem; text-align: center; font-size: .66rem; color: #64748b; line-height: 1.2; }
.pc .lims div b { display: block; font-size: 1rem; color: #0f172a; }
.pc ul { margin-top: 1.1rem; display: grid; align-content: start; gap: .5rem; font-size: .82rem; color: #334155; flex: 1; }
.pc li { display: flex; gap: .5rem; align-items: flex-start; }
.pc li::before { content: "✓"; flex: none; width: 1.15rem; height: 1.15rem; border-radius: 9999px; display: grid; place-items: center; font-size: .65rem; font-weight: 800;
  color: #059669; background: #ecfdf5; margin-top: .1rem; }
.pc li.inh { color: #64748b; font-weight: 600; }
.pc li.inh::before { content: "+"; color: #2B318A; background: #eef0fb; }
.pc .cta { margin-top: 1.4rem; display: flex; align-items: center; justify-content: center; height: 2.9rem; border-radius: .9rem; font-weight: 700; font-size: .9rem;
  border: 1.5px solid #cbd5e1; color: #0f172a; transition: background .15s, border-color .15s, color .15s; }
.pc .cta:hover { border-color: #2B318A; color: #2B318A; }
.pc.rec .cta, .pc .cta.solid { background: #2B318A; border-color: #2B318A; color: #fff; }
.pc.rec .cta:hover, .pc .cta.solid:hover { background: #232873; color: #fff; }
.pc .cta[disabled] { opacity: .55; cursor: default; }

/* ── Uso vs límites ── */
.use { display: grid; gap: .35rem; }
.use .row { display: flex; justify-content: space-between; font-size: .8rem; color: #475569; }
.use .row b { color: #0f172a; font-variant-numeric: tabular-nums; }
.use .bar { height: .5rem; border-radius: 9999px; background: #eef2f7; overflow: hidden; }
.use .bar > span { display: block; height: 100%; border-radius: 9999px; background: #2B318A; transition: width .5s; }
.use.warn .bar > span { background: #F18A00; }
.use.full .bar > span { background: #e11d48; }

/* ── Estado de suscripción ── */
.sub-hero { position: relative; overflow: hidden; border-radius: 1.25rem; padding: 1.4rem; color: #fff; background: linear-gradient(135deg, #141846 0%, #2B318A 70%, #3a41a8 100%); }
.sub-hero::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 9999px; background: #F18A00; filter: blur(90px); opacity: .35; right: -90px; top: -130px; }
.sub-hero > * { position: relative; z-index: 1; }
.sub-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; border-radius: 9999px; padding: .2rem .65rem; background: rgba(255,255,255,.14); }
.sub-pill i { width: .45rem; height: .45rem; border-radius: 9999px; background: #34d399; }
.sub-pill.past_due i, .sub-pill.suspended i, .sub-pill.cancelled i { background: #fb7185; }
.sub-pill.trialing i { background: #ffa733; }

/* ── Páginas legales ── */
.legal { color: #334155; font-size: .97rem; line-height: 1.75; }
.legal h2 { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin: 2.4rem 0 .6rem; letter-spacing: -.01em; scroll-margin-top: 5.5rem; }
.legal h3 { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 1.4rem 0 .4rem; }
.legal p { margin: .7rem 0; }
.legal ul, .legal ol { margin: .6rem 0 .6rem 1.25rem; }
.legal ul { list-style: disc; } .legal ol { list-style: decimal; }
.legal li { margin: .3rem 0; }
.legal a { color: #2B318A; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: #0f172a; }
.legal .note { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 1rem; padding: .9rem 1.1rem; font-size: .88rem; color: #9a3412; }
.legal table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .8rem 0; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid #eef2f7; padding: .55rem .5rem; vertical-align: top; }
.legal th { font-weight: 700; color: #0f172a; background: #f8fafc; }
.toc a { display: block; padding: .3rem .6rem; border-radius: .5rem; font-size: .83rem; color: #64748b; }
.toc a:hover { background: #f1f5f9; color: #2B318A; }
