:root {
  color-scheme: light;
  --brand: #14a9a3;
  --brand-strong: #0d837f;
  --brand-soft: #e6f8f7;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f4;
  --text: #172126;
  --muted: #67747b;
  --line: #dfe7e9;
  --danger: #d14343;
  --warning: #d9831f;
  --success: #238c5a;
  --blue: #3178c6;
  --purple: #7b61c6;
  --shadow: 0 12px 32px rgba(20, 45, 55, .08);
  --radius: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1518;
  --surface: #171f23;
  --surface-2: #202a2f;
  --text: #f5f8f9;
  --muted: #9aabb2;
  --line: #2d383e;
  --brand-soft: #123d3c;
  --shadow: 0 12px 32px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 265px minmax(0,1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px; background: var(--surface);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 10;
}
.brand { border: 0; background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--text); padding: 8px; border-radius: 14px; }
.brand:hover { background: var(--surface-2); }
.brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; }
.brand span { display: grid; gap: 2px; min-width: 0; }
.brand strong { font-size: 1.05rem; }
.brand small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav { display: grid; gap: 6px; margin-top: 26px; }
.nav-button { display:flex; align-items:center; gap:12px; padding:11px 13px; border:0; border-radius:13px; background:transparent; color:var(--muted); text-align:left; }
.nav-button .nav-icon { width: 24px; text-align: center; font-size: 1.05rem; }
.nav-button:hover { background:var(--surface-2); color:var(--text); }
.nav-button.active { background:var(--brand-soft); color:var(--brand-strong); font-weight:700; }
.sidebar-status { margin-top:auto; padding:12px; background:var(--surface-2); border-radius:14px; font-size:.8rem; color:var(--muted); line-height:1.45; }
.status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; background:var(--warning); }
.status-dot.online { background:var(--success); }

.main-shell { min-width: 0; }
.topbar { position:sticky; top:0; z-index:8; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 86%, transparent); padding:20px clamp(18px,4vw,40px) 14px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.topbar h1 { margin: 1px 0 0; font-size: clamp(1.45rem,2vw,2rem); letter-spacing:-.02em; }
.eyebrow { margin:0; color:var(--brand-strong); font-size:.76rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.top-actions { display:flex; gap:10px; align-items:center; }
.page { padding: 22px clamp(18px,4vw,40px) 46px; max-width: 1500px; margin: 0 auto; }
.bottom-nav { display:none; }

.primary-button,.secondary-button,.danger-button,.ghost-button,.icon-button {
  border:0; border-radius:12px; padding:11px 15px; font-weight:700; transition:.15s ease; display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.primary-button { background:var(--brand); color:white; }
.primary-button:hover { background:var(--brand-strong); transform:translateY(-1px); }
.primary-button:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.secondary-button { background:var(--surface-2); color:var(--text); border:1px solid var(--line); }
.secondary-button:hover { background:var(--brand-soft); }
.danger-button { background:#fff0f0; color:var(--danger); border:1px solid #f2c4c4; }
.ghost-button { background:transparent; color:var(--brand-strong); padding-inline:8px; }
.icon-button { width:42px; height:42px; padding:0; background:var(--surface); color:var(--text); border:1px solid var(--line); font-size:1.05rem; }
.compact { padding:10px 13px; }
.button-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.button-row.end { justify-content:flex-end; }

.grid { display:grid; gap:16px; }
.grid.metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
.grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.card.pad { padding:18px; }
.card-header { padding:18px 18px 0; display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.card-body { padding:18px; }
.card h2,.card h3 { margin:0; }
.metric-card { padding:17px; min-height:118px; display:grid; gap:7px; align-content:start; }
.metric-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:11px; background:var(--brand-soft); }
.metric-label { color:var(--muted); font-size:.84rem; }
.metric-value { font-size:1.45rem; font-weight:850; letter-spacing:-.03em; }
.metric-note { font-size:.76rem; color:var(--muted); }
.hero-cash { background:linear-gradient(135deg,var(--brand),var(--brand-strong)); color:#fff; padding:24px; border-radius:22px; box-shadow:var(--shadow); display:flex; justify-content:space-between; gap:20px; align-items:center; }
.hero-cash .amount { font-size:clamp(2rem,5vw,3.4rem); font-weight:900; letter-spacing:-.04em; }
.hero-cash small { opacity:.84; }

.section-title { display:flex; justify-content:space-between; gap:12px; align-items:center; margin: 25px 0 12px; }
.section-title h2 { margin:0; font-size:1.08rem; }
.section-title p { margin:4px 0 0; color:var(--muted); font-size:.86rem; }

.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
table { width:100%; border-collapse:collapse; min-width:720px; }
th,td { text-align:left; padding:13px 14px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { font-size:.76rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); background:var(--surface-2); }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:color-mix(in srgb,var(--brand-soft) 45%,transparent); }
.cell-main { font-weight:750; }
.cell-sub { display:block; color:var(--muted); font-size:.78rem; margin-top:3px; }
.money { font-weight:800; white-space:nowrap; }
.money.positive { color:var(--success); }
.money.warning { color:var(--warning); }
.money.danger { color:var(--danger); }
.row-actions { display:flex; justify-content:flex-end; gap:6px; }
.mini-button { border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:9px; padding:7px 9px; font-weight:650; }
.mini-button:hover { background:var(--surface-2); }

.badge { display:inline-flex; align-items:center; gap:5px; border-radius:999px; padding:5px 9px; background:var(--surface-2); color:var(--muted); font-size:.74rem; font-weight:750; white-space:nowrap; }
.badge.brand { background:var(--brand-soft); color:var(--brand-strong); }
.badge.warn { background:#fff4e6; color:#a65d0b; }
.badge.good { background:#e8f7ef; color:#1f7b4f; }
.badge.danger { background:#ffeded; color:#b52e2e; }

.toolbar { display:flex; gap:10px; justify-content:space-between; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
.searchbox { display:flex; align-items:center; gap:8px; min-width:min(100%,340px); background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:0 12px; }
.searchbox input { border:0; outline:0; padding:11px 0; width:100%; background:transparent; color:var(--text); }
.select { border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:11px; padding:10px 12px; }

.empty-state { text-align:center; padding:54px 20px; border:1px dashed var(--line); border-radius:20px; background:var(--surface); }
.empty-state .empty-icon { font-size:2.5rem; }
.empty-state h3 { margin:13px 0 6px; }
.empty-state p { margin:0 auto 18px; max-width:470px; color:var(--muted); }

.list-stack { display:grid; gap:10px; }
.list-item { display:flex; gap:14px; justify-content:space-between; align-items:center; padding:14px 15px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.list-item:hover { border-color:color-mix(in srgb,var(--brand) 50%,var(--line)); }
.list-main { min-width:0; }
.list-main strong { display:block; }
.list-main small { color:var(--muted); }
.list-side { text-align:right; }

.quick-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.quick-card { border:1px solid var(--line); background:var(--surface); border-radius:16px; padding:17px; display:grid; gap:9px; text-align:left; color:var(--text); }
.quick-card:hover { border-color:var(--brand); transform:translateY(-1px); box-shadow:var(--shadow); }
.quick-card .qicon { font-size:1.35rem; }
.quick-card small { color:var(--muted); }

.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.field { display:grid; gap:6px; }
.field.full { grid-column:1/-1; }
.field label { font-size:.78rem; font-weight:750; color:var(--muted); }
.field input,.field select,.field textarea { width:100%; border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:11px; padding:11px 12px; outline:none; }
.field textarea { min-height:92px; resize:vertical; }
.field input:focus,.field select:focus,.field textarea:focus { border-color:var(--brand); box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent); }
.field .hint { color:var(--muted); font-size:.74rem; }
.checkbox-row { display:flex; align-items:center; gap:9px; }
.checkbox-row input { width:18px; height:18px; accent-color:var(--brand); }
.form-section { padding-top:10px; border-top:1px solid var(--line); margin-top:10px; }
.form-section h4 { margin:0 0 11px; }

.modal-layer { position:fixed; inset:0; z-index:100; background:rgba(6,17,20,.56); display:grid; place-items:center; padding:18px; backdrop-filter:blur(5px); }
.modal-layer[hidden] { display:none; }
.modal { width:min(760px,100%); max-height:min(92vh,900px); overflow:auto; background:var(--surface); color:var(--text); border-radius:22px; box-shadow:0 30px 90px rgba(0,0,0,.25); border:1px solid var(--line); }
.modal.wide { width:min(1040px,100%); }
.modal-header { position:sticky; top:0; z-index:2; background:var(--surface); display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:19px 20px 14px; border-bottom:1px solid var(--line); }
.modal-header h2 { margin:0; font-size:1.2rem; }
.modal-header p { margin:4px 0 0; color:var(--muted); font-size:.8rem; }
.modal-body { padding:20px; }
.modal-footer { position:sticky; bottom:0; background:var(--surface); padding:14px 20px 18px; border-top:1px solid var(--line); display:flex; justify-content:flex-end; gap:10px; }
.close-button { border:0; background:var(--surface-2); color:var(--text); width:34px; height:34px; border-radius:50%; font-size:1.1rem; }

.toast-layer { position:fixed; right:20px; bottom:20px; z-index:200; display:grid; gap:8px; }
.toast { background:var(--text); color:var(--surface); padding:12px 14px; border-radius:12px; box-shadow:var(--shadow); max-width:360px; animation:toastIn .2s ease; }
@keyframes toastIn { from { transform:translateY(10px); opacity:0; } }

.detail-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(270px,.7fr); gap:16px; }
.info-list { display:grid; gap:10px; }
.info-row { display:flex; justify-content:space-between; gap:16px; padding-bottom:9px; border-bottom:1px solid var(--line); }
.info-row:last-child { border-bottom:0; padding-bottom:0; }
.info-row span:first-child { color:var(--muted); }

.avatar { width:46px; height:46px; border-radius:14px; background:var(--brand-soft); display:grid; place-items:center; font-weight:900; color:var(--brand-strong); flex:0 0 auto; }
.product-thumb { width:46px; height:46px; border-radius:12px; object-fit:cover; background:var(--surface-2); }
.logo-preview { width:76px; height:76px; border-radius:16px; object-fit:cover; border:1px solid var(--line); }

.sale-builder { display:grid; gap:12px; }
.sale-item { display:grid; grid-template-columns:minmax(150px,1fr) 100px 130px 40px; gap:10px; align-items:end; padding:12px; border:1px solid var(--line); border-radius:13px; }
.sale-item .remove-line { height:42px; }
.total-box { margin-left:auto; width:min(100%,360px); display:grid; gap:8px; padding:14px; background:var(--surface-2); border-radius:14px; }
.total-row { display:flex; justify-content:space-between; gap:12px; }
.total-row.grand { font-size:1.15rem; font-weight:900; padding-top:8px; border-top:1px solid var(--line); }

.progress { height:8px; background:var(--surface-2); border-radius:999px; overflow:hidden; }
.progress > span { display:block; height:100%; background:var(--brand); border-radius:inherit; }

.chart { display:flex; align-items:flex-end; gap:12px; height:220px; padding:18px 10px 0; border-bottom:1px solid var(--line); }
.chart-group { flex:1; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; min-width:54px; gap:7px; }
.bars { flex:1; width:100%; display:flex; align-items:flex-end; justify-content:center; gap:5px; }
.bar { width:min(24px,38%); min-height:2px; border-radius:7px 7px 2px 2px; background:var(--brand); }
.bar.sold { background:var(--blue); opacity:.7; }
.chart-label { font-size:.7rem; color:var(--muted); text-transform:capitalize; }
.chart-legend { display:flex; gap:14px; flex-wrap:wrap; margin-top:12px; font-size:.76rem; color:var(--muted); }
.legend-swatch { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:5px; background:var(--brand); }
.legend-swatch.blue { background:var(--blue); }

.more-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.more-card { border:1px solid var(--line); background:var(--surface); border-radius:17px; padding:18px; text-align:left; color:var(--text); min-height:132px; display:grid; align-content:space-between; gap:12px; }
.more-card:hover { border-color:var(--brand); box-shadow:var(--shadow); }
.more-card .more-icon { font-size:1.45rem; }
.more-card small { color:var(--muted); }

.sync-card { border-left:4px solid var(--warning); }
.sync-card.connected { border-left-color:var(--success); }
.code-note { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.77rem; background:var(--surface-2); border:1px solid var(--line); padding:10px 12px; border-radius:10px; overflow:auto; }

.segmented { display:inline-flex; background:var(--surface-2); border-radius:12px; padding:3px; gap:3px; }
.segmented button { border:0; background:transparent; color:var(--muted); border-radius:9px; padding:8px 11px; font-weight:750; }
.segmented button.active { background:var(--surface); color:var(--text); box-shadow:0 2px 8px rgba(0,0,0,.06); }

@media (max-width: 1120px) {
  .grid.metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid.three,.more-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .quick-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .app-shell { display:block; padding-bottom:80px; }
  .sidebar { display:none; }
  .topbar { padding:15px 16px 11px; }
  .topbar .eyebrow { display:none; }
  .page { padding:16px 14px 30px; }
  .bottom-nav { position:fixed; display:grid; grid-template-columns:repeat(5,1fr); left:0; right:0; bottom:0; z-index:50; background:color-mix(in srgb,var(--surface) 92%,transparent); backdrop-filter:blur(15px); border-top:1px solid var(--line); padding:7px 6px max(7px,env(safe-area-inset-bottom)); }
  .bottom-nav button { border:0; background:transparent; color:var(--muted); display:grid; justify-items:center; gap:3px; font-size:.65rem; padding:4px 2px; }
  .bottom-nav button span:first-child { font-size:1.08rem; }
  .bottom-nav button.active { color:var(--brand-strong); font-weight:800; }
  .detail-grid { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .sale-item { grid-template-columns:1fr 92px; }
  .sale-item .price-field { grid-column:1/2; }
  .sale-item .remove-line { grid-column:2/3; grid-row:2; }
  .modal-layer { padding:0; align-items:end; }
  .modal,.modal.wide { width:100%; border-radius:22px 22px 0 0; max-height:94vh; }
  .toast-layer { left:14px; right:14px; bottom:90px; }
  .toast { max-width:none; }
}

@media (max-width: 560px) {
  .grid.metrics,.grid.two,.grid.three,.more-grid,.quick-actions { grid-template-columns:1fr; }
  .top-actions .primary-button { display:none; }
  .hero-cash { align-items:flex-start; flex-direction:column; }
  .hero-cash .amount { font-size:2.35rem; }
  .chart { overflow-x:auto; justify-content:flex-start; }
  .chart-group { min-width:58px; }
}

@media print {
  .sidebar,.topbar,.bottom-nav,.no-print { display:none !important; }
  .app-shell { display:block; }
  .page { max-width:none; padding:0; }
  body { background:#fff; color:#000; }
  .card,.table-wrap { box-shadow:none; border-color:#ccc; }
}


/* AbonaPro Web V2.1 — Inicio móvil alineado con la app iPhone */
.home-header-card {
  display:flex; align-items:center; gap:14px; padding:16px;
  border-radius:24px; color:#fff;
  background:linear-gradient(135deg,var(--brand),var(--brand-strong));
  box-shadow:var(--shadow); margin-bottom:12px;
}
.home-header-card .home-logo { width:58px;height:58px;border-radius:16px;object-fit:cover;flex:0 0 auto; }
.home-header-card h2 { margin:0; font-size:1.35rem; letter-spacing:-.02em; }
.home-header-card p { margin:4px 0 0; font-size:.82rem; opacity:.84; text-transform:capitalize; }

.available-cash-card {
  width:100%; border:0; color:#fff; background:var(--brand-strong);
  border-radius:20px; padding:16px; display:flex; align-items:center; gap:14px;
  text-align:left; margin-bottom:14px; box-shadow:var(--shadow);
}
.available-cash-card .cash-wallet {
  width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.16); font-size:1.35rem; flex:0 0 auto;
}
.available-cash-card .cash-copy { display:grid; gap:3px; min-width:0; flex:1; }
.available-cash-card .cash-copy small { opacity:.86; font-size:.82rem; }
.available-cash-card .cash-copy strong { font-size:1.45rem; letter-spacing:-.02em; }
.available-cash-card .cash-chevron { font-size:2rem; opacity:.72; }

.home-quick-card { margin-top:14px; }
.home-quick-card > h3 { margin:0 0 14px; }
.home-section-card { margin-top:14px; }
.home-section-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px; }
.home-section-heading h3 { margin:0; }
.home-section-heading p { margin:4px 0 0;color:var(--muted);font-size:.8rem; }
.home-empty-line { color:var(--muted); font-weight:650; padding:7px 0; }
.danger-mini { color:var(--danger); border-color:#f2c4c4; background:#fff7f7; }

@media (max-width:560px) {
  .page { padding:12px 12px 28px; }
  .grid.metrics.home-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .home-stats .metric-card { min-height:106px; padding:14px; gap:6px; }
  .home-stats .metric-icon { width:32px;height:32px;border-radius:10px; }
  .home-stats .metric-label { font-size:.76rem; line-height:1.15; }
  .home-stats .metric-value { font-size:1.05rem; }
  .home-stats .metric-note { display:none; }
  .quick-actions.home-quick-actions { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .home-quick-actions .quick-card {
    padding:12px 6px; min-height:84px; justify-items:center; align-content:center;
    text-align:center; border:0; background:var(--brand-soft);
  }
  .home-quick-actions .quick-card strong { font-size:.72rem; line-height:1.12; }
  .home-quick-actions .quick-card small { display:none; }
  .home-quick-actions .qicon { font-size:1.45rem; }
  .home-list-item { padding:12px 10px; }
  .home-header-card { margin-top:2px; }
}


/* AbonaPro Web V2.3 — acceso obligatorio, sesión persistente, prueba y suscripción */
[hidden] { display:none !important; }

.access-gate {
  min-height:100dvh; display:grid; place-items:center; padding:24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(20,169,163,.18), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(26,119,113,.16), transparent 30%),
    var(--bg);
}
.access-card {
  width:min(100%,470px); background:var(--surface); border:1px solid var(--line);
  border-radius:28px; padding:28px; box-shadow:0 24px 80px rgba(0,0,0,.14);
}
.access-brand { display:flex;align-items:center;gap:13px;margin-bottom:28px; }
.access-brand img { width:54px;height:54px;border-radius:15px; }
.access-brand div { display:grid;gap:3px; }
.access-brand strong { font-size:1.15rem; }
.access-brand small { color:var(--muted); }
.access-copy h1 { margin:4px 0 8px;font-size:2rem;letter-spacing:-.04em; }
.access-copy > p:not(.eyebrow) { color:var(--muted);margin:0 0 22px; }
.access-form { display:grid;gap:15px; }
.access-form label { display:grid;gap:7px;font-weight:700;font-size:.88rem; }
.access-form input {
  width:100%;box-sizing:border-box;border:1px solid var(--line);background:var(--surface-2);
  color:var(--text);border-radius:14px;padding:14px 15px;font:inherit;outline:none;
}
.access-form input:focus { border-color:var(--brand);box-shadow:0 0 0 3px rgba(20,169,163,.12); }
.access-submit { width:100%;justify-content:center;padding:14px 16px;margin-top:4px; }
.access-switch { text-align:center;color:var(--muted);margin-top:18px;font-size:.9rem; }
.access-switch button { border:0;background:none;color:var(--brand);font-weight:800;cursor:pointer; }
.trial-note,.access-message,.paywall-account {
  margin-top:16px;padding:13px 14px;border-radius:14px;background:var(--brand-soft);
  color:var(--text);font-size:.9rem;
}
.access-message { background:#fff4dd;color:#7b5b12; }
.access-loading { display:grid;justify-items:center;gap:10px;padding:24px; }
.access-loading img { width:72px;height:72px;border-radius:20px; }
.access-loading strong { font-size:1.35rem; }
.access-loading span { color:var(--muted); }

.subscription-hero {
  display:flex;justify-content:space-between;align-items:flex-start;gap:18px;
  background:linear-gradient(135deg,var(--brand),var(--brand-strong));
  color:#fff;padding:22px;border-radius:24px;margin-bottom:18px;
}
.subscription-hero h2 { margin:4px 0 6px; }
.subscription-hero p { margin:0;opacity:.88; }
.subscription-plans { display:grid;gap:14px;margin-top:14px; }
.subscription-plan {
  background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px;
  display:grid;gap:15px;
}
.subscription-plan h3 { margin:3px 0 4px; }
.subscription-plan p { color:var(--muted);margin:0; }
.subscription-price { font-size:1.35rem;font-weight:900; }
.subscription-actions { display:grid;grid-template-columns:1fr 1fr;gap:10px; }
.whatsapp-button,.paypal-button {
  border:0;border-radius:14px;padding:13px 14px;font:inherit;font-weight:800;cursor:pointer;
}
.whatsapp-button { background:#25D366;color:#071b0d; }
.paypal-button { background:#ffc439;color:#111; }
.check-activation { width:100%;justify-content:center;margin-top:14px; }
.trial-badge-button {
  border:1px solid var(--line);background:var(--surface);color:var(--text);
  border-radius:999px;padding:9px 12px;font-weight:800;cursor:pointer;
}
.eyebrow { font-size:.72rem;font-weight:900;letter-spacing:.12em;color:var(--brand);margin:0; }

@media(max-width:560px){
  .access-gate { padding:14px;align-items:center; }
  .access-card { padding:22px;border-radius:24px; }
  .subscription-hero { display:grid; }
}


/* AbonaPro Web V2.4 — salida comercial / NUCLEVA */
.payment-help {
  margin-top:14px;
  padding:14px 15px;
  border-radius:16px;
  background:var(--surface-2);
  border:1px solid var(--line);
}
.payment-help p,
.subscription-admin-note,
.support-card p {
  margin:.35rem 0 0;
  color:var(--muted);
  line-height:1.45;
}
.subscription-status-card { margin-bottom:18px; }
.support-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.support-card h3 { margin:0; }
.support-page .button-row { flex-wrap:wrap; }

@media(max-width:640px) {
  .subscription-actions { grid-template-columns:1fr; }
  .support-card { display:grid; }
}


/* V2.4.2 — SINPE Móvil Costa Rica */
.subscription-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sinpe-button {
  border:0;
  border-radius:14px;
  padding:13px 14px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  background:var(--brand);
  color:#fff;
}

@media(max-width:760px) {
  .subscription-actions {
    grid-template-columns:1fr;
  }
}


/* V2.4.4 — Restablecer contraseña */
.forgot-password-button {
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  padding: 3px 0 0;
  justify-self: center;
}
.forgot-password-button:disabled {
  opacity: .65;
  cursor: default;
}


/* V2.4.7 — Logo del negocio */
.business-logo-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.10);
  font-size:2rem;
}


/* V2.5.8 — Solicitud de pago pendiente */
.purchase-pending-note{
  margin:10px 0 2px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(35,140,90,.12);
  font-size:.88rem;
  font-weight:800;
}
.purchase-already-sent{
  opacity:.92;
}
