/* =========================================================================
   Mi GNCOMPU v2 — sistema visual
   Marca: azul GNCOMPU #0a4d8c · azul brillante #1577d6 · violeta #7b3ff2 · lila #a855f7
   ========================================================================= */
:root {
  --ink: #0b1320;
  --text: #1f2a3a;
  --muted: #5b6b7f;
  --faint: #8a97a8;
  --line: #e3e9f2;
  --line-2: #eef2f7;
  --bg: #f5f8fc;
  --card: #ffffff;
  --blue-d: #0a4d8c;
  --blue: #1577d6;
  --violet: #7b3ff2;
  --lila: #a855f7;
  --grad: linear-gradient(120deg, #0a4d8c 0%, #1577d6 45%, #7b3ff2 100%);
  --grad-2: linear-gradient(120deg, #1577d6 0%, #a855f7 100%);
  --ok: #15803d; --ok-bg: #e7f7ee;
  --warn: #b45309; --warn-bg: #fff3df;
  --bad: #dc2626; --bad-bg: #fdecec;
  --info: #1577d6; --info-bg: #e8f1fc;
  --mute-bg: #eef2f7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 19, 32, .04), 0 6px 20px rgba(11, 19, 32, .05);
  --shadow-lg: 0 12px 40px rgba(11, 19, 32, .12);
  --sb-w: 264px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-h: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-h); color: var(--ink); letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 .6em; }
code, pre, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid rgba(21, 119, 214, .45); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Utilidades ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; color: var(--ink); }
.num { text-align: right; }
.text-warn { color: var(--warn); }
.text-bad { color: var(--bad); }
.me-auto { margin-right: auto; }
.inline { display: inline; }
.stack { display: grid; gap: 10px; }
.h-sm { font-size: 17px; margin-bottom: 12px; }

/* =========================================================================
   Armazón (sidebar + contenido)
   ========================================================================= */
.shell { display: flex; min-height: 100vh; }
.sb {
  position: fixed; inset: 0 auto 0 0; width: var(--sb-w); z-index: 40;
  display: flex; flex-direction: column; padding: 18px 14px;
  background: linear-gradient(185deg, #0b1320 0%, #0d1830 55%, #15163f 100%);
  color: #b9c4d6;
}
.sb::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, .22), transparent 70%); pointer-events: none; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; color: #fff; text-decoration: none !important; }
.sb-brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.sb-word { font: 600 18px/1 var(--font-h); letter-spacing: -.01em; white-space: nowrap; }
.sb-word b { font-weight: 700; background: var(--grad-2); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: 2px; }
.sb-tag { margin-left: auto; font: 600 10px/1 var(--font); text-transform: uppercase; letter-spacing: .08em; padding: 5px 7px; border-radius: 6px; background: rgba(168, 85, 247, .18); color: #d8b4fe; }
.sb-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; padding-right: 2px; position: relative; z-index: 1; }
.sb-group { font: 600 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #64748b; padding: 16px 12px 6px; }
.sb-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #c3cddd; font-weight: 500; text-decoration: none !important; transition: background .15s, color .15s; }
.sb-link i { width: 18px; text-align: center; font-size: 15px; color: #8fa0b8; transition: color .15s; }
.sb-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sb-link:hover i { color: #fff; }
.sb-link.is-active { background: var(--grad-2); color: #fff; box-shadow: 0 6px 18px rgba(123, 63, 242, .35); }
.sb-link.is-active i { color: #fff; }
.sb-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; margin-top: 10px; position: relative; z-index: 1; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; }
.sb-user-txt { display: flex; flex-direction: column; min-width: 0; }
.sb-user-txt b { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-txt small { color: #8fa0b8; font-size: 12px; }
.sb-logout { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #9fb0c6; font-size: 14px; text-decoration: none !important; }
.sb-logout:hover { background: rgba(220, 38, 38, .14); color: #fecaca; }
.sb-scrim { display: none; }

.main { flex: 1; min-width: 0; margin-left: var(--sb-w); display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 26px 34px 6px; }
.tb-burger { display: none; border: 0; background: var(--card); width: 42px; height: 42px; border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); font-size: 17px; cursor: pointer; }
.tb-title { flex: 1; min-width: 0; }
.tb-title h1 { font-size: 27px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.tb-title p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.tb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.content { padding: 18px 34px 30px; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.content > * { margin: 0; }
.foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 34px 22px; color: var(--faint); font-size: 12.5px; }
.imp-bar { margin: 12px 34px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-radius: 12px; background: #1b1340; color: #e9d5ff; font-size: 14px; }
.imp-bar a { margin-left: auto; color: #fff; font-weight: 600; background: rgba(255, 255, 255, .12); padding: 5px 12px; border-radius: 8px; }

/* =========================================================================
   Componentes
   ========================================================================= */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-pad { padding: 24px 26px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h2 { font-size: 16.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.card-head h2 > i { color: var(--blue); font-size: 15px; }
.head-actions { display: flex; gap: 8px; }
.card-body { padding: 16px 20px; }
.card-actions { padding: 0 20px 18px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); margin: 0; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }

/* Avisos */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; border: 1px solid transparent; }
.alert i { margin-top: 3px; }
.alert-ok { background: var(--ok-bg); color: #14532d; border-color: #c6ecd5; }
.alert-error { background: var(--bad-bg); color: #7f1d1d; border-color: #f8cccc; }
.alert-info { background: var(--info-bg); color: #0b3d75; border-color: #cfe2f8; }
.notice { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); border: 1px solid; font-size: 14.5px; }
.notice > i { font-size: 20px; }
.notice > div { flex: 1; min-width: 220px; }
.notice-warn { background: #fffaf0; border-color: #fde3b5; color: #6b3d06; }
.notice-warn > i { color: #d97706; }
.notice-info { background: #f3f0ff; border-color: #ddd3fd; color: #3b1d80; }
.notice-info > i { color: var(--violet); }
.notice-bad { background: var(--bad-bg); border-color: #f8cccc; color: #7f1d1d; }
.notice-bad > i { color: var(--bad); }

/* Tarjetas de métricas */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 18px 16px; color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .15s;
}
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tc, var(--blue)); opacity: .9; }
a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile-ico { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--tc, var(--blue)); background: color-mix(in srgb, var(--tc, #1577d6) 12%, #fff); font-size: 17px; }
.tile b { font: 700 30px/1.15 var(--font-h); color: var(--ink); margin-top: 6px; letter-spacing: -.02em; }
.tile b.tile-date { font-size: 22px; }
.tile span:last-child { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.tiles-flat { padding: 16px 20px 4px; }
.tiles-flat .tile { box-shadow: none; padding: 14px; }
.tiles-flat .tile b { font-size: 24px; margin-top: 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent; font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  text-decoration: none !important; transition: filter .15s, background .15s, box-shadow .15s, transform .05s; color: var(--ink); background: #fff;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(21, 119, 214, .28); }
.btn-primary:hover { filter: brightness(1.07); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2740; color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #c9d4e3; background: #f8fafd; }
.btn-soft { background: var(--info-bg); color: var(--blue); }
.btn-soft:hover { background: #d9e8fa; }
.btn-danger-ghost { background: #fff; border-color: #f3c9c9; color: var(--bad); }
.btn-danger-ghost:hover { background: var(--bad-bg); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { filter: brightness(1.05); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 48px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* Etiquetas */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-mute { background: var(--mute-bg); color: var(--muted); }
.chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-bad { background: var(--bad-bg); color: var(--bad); }
.chip-info { background: var(--info-bg); color: var(--blue); }
.chip-mute { background: var(--mute-bg); color: var(--muted); }
.price-pill { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 8px; border-radius: 6px; background: #f3f0ff; color: #4c1d95; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.dot-mute { background: #94a3b8; }
.count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--mute-bg); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }

.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--grad-2); color: #fff; font: 600 14px/1 var(--font-h); }
.avatar-sm { width: 30px; height: 30px; font-size: 12px; }

/* Tablas */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font: 600 11.5px/1 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  padding: 13px 16px; background: #f8fafd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th.num { text-align: right; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-hover tbody tr { transition: background .12s; }
.table-hover tbody tr:hover { background: #f8fbff; }
.table-hover tbody tr[data-href] { cursor: pointer; }
.sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.text-warn i { margin-right: 3px; }

/* Pestañas */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.tabs a.is-active .count { background: var(--info-bg); color: var(--blue); }
.tabs-pills { border: 0; gap: 8px; flex-wrap: wrap; }
.tabs-pills a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; margin: 0; font-size: 13.5px; }
.tabs-pills a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs-pills a.is-active .count { background: rgba(255, 255, 255, .18); color: #fff; }

/* Barra de filtros */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar select, .toolbar input { height: 40px; }
.tb-search { position: relative; flex: 1 1 280px; }
.tb-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.tb-search input { width: 100%; padding-left: 38px !important; }

/* Paginación */
.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.pager a { min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13.5px; text-decoration: none !important; }
.pager a:hover { border-color: #c9d4e3; }
.pager a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-info { margin-left: auto; color: var(--muted); font-size: 13px; }

/* Vacíos */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty > i { font-size: 34px; color: #b6c2d3; margin-bottom: 12px; display: block; }
.empty p { max-width: 460px; margin: 0 auto 14px; }
.empty-sm { padding: 26px 18px; }
.empty-sm > i { font-size: 24px; }

/* Listas */
.kv { margin: 0; padding: 6px 20px 12px; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); flex: none; }
.kv dd { margin: 0; text-align: right; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.kv-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding: 6px 22px 14px; }
.mini-list { list-style: none; margin: 0; padding: 6px 20px 10px; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li > div { display: flex; flex-direction: column; min-width: 0; }
.mini-list b { font-weight: 600; font-size: 14px; color: var(--ink); }
.mini-list small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-block { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.info-block b { font: 600 16px/1.3 var(--font-h); color: var(--ink); margin-bottom: 2px; }
.info-block i { color: var(--faint); width: 16px; }

/* Servicios (cliente) */
.svc-list { list-style: none; margin: 0; padding: 4px 0; }
.svc-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line-2); }
.svc-list li:last-child { border-bottom: 0; }
.svc-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--info-bg); color: var(--blue); font-size: 17px; }
.svc-main { min-width: 0; display: flex; flex-direction: column; }
.svc-main b { color: var(--ink); font-weight: 600; }
.svc-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-due { display: flex; flex-direction: column; text-align: right; font-size: 13.5px; }
.svc-due small { color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.due-list { list-style: none; margin: 0; padding: 4px 0; }
.due-list li { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.due-list li:last-child { border-bottom: 0; }
.due-list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.due-list small { color: var(--muted); }
.due-date { font-weight: 600; font-size: 14px; }

.svc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.svc-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.svc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #cfdcef; }
.svc-card.st-suspendido { border-color: #f6caca; }
.svc-card-top { display: flex; align-items: center; gap: 12px; }
.svc-card-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.svc-card-top b { color: var(--ink); font: 600 16px/1.3 var(--font-h); }
.svc-card-top small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-card-kv { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 10px; background: #f8fafd; }
.svc-card-kv dt { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.svc-card-kv dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; color: var(--ink); }
.svc-card-kv dd small { color: var(--muted); font-weight: 500; }
.svc-card-go { color: var(--blue); font-weight: 600; font-size: 14px; margin-top: auto; }
.svc-hero { overflow: hidden; }
.svc-hero-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; padding: 24px 22px; background: var(--grad); color: #fff; }
.svc-hero-in h2 { color: #fff; font-size: 26px; margin: 4px 0 10px; overflow-wrap: anywhere; }
.svc-hero-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.svc-hero-in .badge { background: rgba(255, 255, 255, .18); color: #fff; }
.svc-hero-price { text-align: right; display: flex; flex-direction: column; }
.svc-hero-price b { font: 700 30px/1 var(--font-h); }
.svc-hero-price small { opacity: .85; margin-top: 4px; }

/* Medidores */
.meter { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--grad-2); }
.meter-warn span { background: linear-gradient(90deg, #f59e0b, #f97316); }
.meter-bad span { background: linear-gradient(90deg, #ef4444, #dc2626); }
.meter-wrap { display: flex; flex-direction: column; gap: 6px; }
.meter-wrap small { color: var(--muted); font-size: 12.5px; }
.card .meter-wrap { padding: 0 20px 14px; }
.svc-card .meter-wrap { padding: 0; }
.usage { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.usage b { font: 700 28px/1 var(--font-h); color: var(--ink); }
.usage span { color: var(--muted); }

/* Accesos rápidos */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 20px; }
.quick-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 13.5px; text-align: center; text-decoration: none !important; transition: border-color .15s, background .15s, transform .15s; }
.quick a i { font-size: 20px; color: var(--violet); }
.quick a:hover { border-color: #cdbdfb; background: #faf7ff; transform: translateY(-1px); }
.ns-list { list-style: none; margin: 0; padding: 10px 20px; }
.ns-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.ns-list li:last-child { border-bottom: 0; }
.copy { border: 0; background: transparent; color: var(--faint); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.copy:hover { color: var(--blue); background: var(--info-bg); }
.copy.is-done { color: var(--ok); }

/* Contactos (cliente) */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.contact-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.contact-top { display: flex; align-items: center; gap: 12px; }
.contact-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.contact-top b { color: var(--ink); font-weight: 600; }
.contact-top small { color: var(--muted); }
.contact-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--text); }
.contact-meta i { width: 16px; color: var(--faint); }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* Feed / pendientes */
.feed { list-style: none; margin: 0; padding: 6px 20px 12px; }
.feed li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.feed-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 13px; background: var(--mute-bg); color: var(--muted); }
.feed-admin { background: #f3f0ff; color: var(--violet); }
.feed-client, .feed-contact { background: var(--info-bg); color: var(--blue); }
.card-todo { border-color: #fde3b5; }
.todo-list { list-style: none; margin: 0; padding: 6px 12px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 12px; }
.todo-list a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--text); text-decoration: none !important; font-size: 14px; }
.todo-list a:hover { background: #fffaf0; }
.todo-list a > i:last-child { margin-left: auto; color: var(--faint); font-size: 12px; }
.todo-list b { font: 700 16px/1 var(--font-h); color: var(--warn); }
.todo-ico { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--warn-bg); color: #d97706; }
.warn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--warn); }
.steps-list { margin: 0; padding: 14px 22px 16px 40px; display: grid; gap: 10px; font-size: 14.5px; }
.code { background: var(--ink); color: #c7d2fe; padding: 12px 14px; border-radius: 10px; overflow-x: auto; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }

/* =========================================================================
   Formularios
   ========================================================================= */
.form { display: flex; flex-direction: column; gap: 4px; }
.form-narrow { max-width: 760px; }
.fs { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.fs legend { font: 600 15px/1.3 var(--font-h); color: var(--ink); padding: 0 0 12px; width: 100%; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; }
.fs legend .opt { font: 400 13px var(--font); }
.f-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.f-row-check { justify-content: flex-end; padding-bottom: 6px; }
.f-span { grid-column: 1 / -1; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.f-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.f-label-row a { font-size: 13px; }
label { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.opt { color: var(--faint); font-weight: 400; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; height: 42px; padding: 0 13px; font: 400 14.5px var(--font); color: var(--ink);
  background: #fff; border: 1px solid #d5deea; border-radius: 10px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
textarea { height: auto; padding: 10px 13px; resize: vertical; line-height: 1.5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235b6b7f' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 119, 214, .14); }
input:disabled { background: #f3f6fa; color: var(--muted); }
input.mono { font-family: var(--mono); }
.is-invalid, .is-invalid:focus { border-color: var(--bad) !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1) !important; }
.f-err { color: var(--bad); font-size: 12.5px; font-weight: 500; }
.f-help { color: var(--muted); font-size: 12.5px; }
.f-icon { position: relative; }
.f-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 14px; pointer-events: none; }
.f-icon > input { padding-left: 40px !important; }
.f-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--faint); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; }
.f-eye:hover { color: var(--ink); background: var(--line-2); }
.f-prefix { display: flex; align-items: center; border: 1px solid #d5deea; border-radius: 10px; background: #fff; overflow: hidden; }
.f-prefix:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 119, 214, .14); }
.f-prefix span { padding: 0 4px 0 12px; color: var(--muted); font-weight: 600; }
.f-prefix input { border: 0 !important; box-shadow: none !important; padding-left: 4px !important; }
.check, .switch { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 14px; cursor: pointer; padding: 4px 0; }
.check input, .switch input { width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.check-strong { font-weight: 600; margin-top: 8px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 16px; }
.checks-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 8px; }
.reveal-box { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: #f8fafd; border: 1px solid var(--line-2); }
.seg { display: inline-flex; gap: 6px; padding: 4px; background: var(--line-2); border-radius: 12px; margin-bottom: 16px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(11, 19, 32, .1); }
.seg input:focus-visible + span { outline: 3px solid rgba(21, 119, 214, .45); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.form-actions-tight { border: 0; padding-top: 10px; margin: 0; }
.price-grid { display: grid; gap: 8px; max-width: 560px; }
.pg-head, .pg-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; align-items: center; }
.pg-head span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.pg-row > span { font-weight: 500; font-size: 14px; }
.strength { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }

/* =========================================================================
   Pantallas de acceso
   ========================================================================= */
body.auth { background: #fff; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; padding: 56px;
  background: radial-gradient(1200px 600px at 10% 10%, #1b3f7a 0%, transparent 60%), linear-gradient(150deg, #0b1320 0%, #0d1f45 50%, #2a1468 100%); }
.auth-side-in { position: relative; z-index: 1; max-width: 460px; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; margin-bottom: 56px; }
.auth-brand img { border-radius: 13px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.auth-brand span { font: 600 24px/1 var(--font-h); }
.auth-brand b, .auth-brand-m b { background: var(--grad-2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand span b { background: linear-gradient(120deg, #7cc0ff, #d8b4fe); -webkit-background-clip: text; background-clip: text; }
.auth-side h2 { color: #fff; font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; margin-bottom: 18px; }
.auth-side p { color: #c3cee0; font-size: 17px; max-width: 400px; }
.auth-points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #e2e8f0; }
.auth-points i { color: #c4b5fd; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.auth-orb.o1 { width: 420px; height: 420px; right: -140px; bottom: -120px; background: radial-gradient(circle, rgba(168, 85, 247, .45), transparent 65%); }
.auth-orb.o2 { width: 300px; height: 300px; right: 80px; top: -120px; background: radial-gradient(circle, rgba(21, 119, 214, .5), transparent 65%); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 430px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 34px 32px; display: flex; flex-direction: column; gap: 14px; }
.auth-brand-m { display: none; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; font: 600 20px var(--font-h); margin-bottom: 4px; }
.auth-title { font-size: 28px; font-weight: 700; }
.auth-lead { color: var(--muted); margin: -6px 0 6px; }
.auth-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); color: #0b3d75; font-size: 13.5px; }
.auth-note i { margin-top: 3px; }
.auth-back { text-align: center; margin: 4px 0 0; font-size: 14px; }
.auth-foot { margin-top: 20px; color: var(--faint); font-size: 12.5px; }
.auth-admin .auth-side { background: radial-gradient(900px 500px at 15% 15%, #2a1468 0%, transparent 60%), linear-gradient(150deg, #0b1320 0%, #111827 100%); }

.err-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; }
.err-code { font: 700 64px/1 var(--font-h); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-box h1 { font-size: 24px; }
.err-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 1280px) {
  .tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .layout-2 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sb { transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sb { transform: none; }
  body.nav-open .sb-scrim { display: block; position: fixed; inset: 0; background: rgba(11, 19, 32, .5); z-index: 35; }
  body.nav-open { overflow: hidden; }
  .main { margin-left: 0; }
  .tb-burger { display: inline-grid; place-items: center; }
  .topbar { padding: 18px 18px 4px; }
  .content { padding: 14px 18px 24px; }
  .foot { padding: 12px 18px 20px; }
  .imp-bar { margin: 10px 18px 0; }
}
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-brand-m { display: inline-flex; }
}
@media (max-width: 720px) {
  .tb-title h1 { font-size: 22px; }
  .tb-actions .btn span { display: none; }
  .tiles, .tiles-3, .tiles-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile b { font-size: 24px; }
  .tile b.tile-date { font-size: 18px; }
  .tile-ico { width: 32px; height: 32px; font-size: 14px; border-radius: 10px; }
  .f-grid, .f-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .kv-cols { grid-template-columns: minmax(0, 1fr); }
  .quick-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-list li { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .svc-list .svc-due, .svc-list .btn { display: none; }
  .card-pad { padding: 18px; }
  .auth-card { padding: 26px 20px; }
  .server-grid, .contact-grid, .svc-cards { grid-template-columns: minmax(0, 1fr); }
  .toolbar > select, .toolbar > .btn { flex: 1 1 140px; }
  .pg-head, .pg-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
}

/* Planes agrupados */
.plan-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 16px 6px; }
.plan-stats > div { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 10px; background: #f6f3ff; }
.plan-stats b { font: 700 19px/1.1 var(--font-h); color: var(--ink); }
.plan-stats b small { font-size: 12px; color: var(--muted); font-weight: 600; }
.plan-stats span { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.plan-dom { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line-2); }
.plan-dom:last-child { border-bottom: 0; }
td.is-child { padding-left: 34px; }
.svc-list li.is-child, .svc-card.is-child { opacity: .95; }
.plan-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 20px 22px; background: linear-gradient(120deg, #f3efff, #eaf3fd); border-bottom: 1px solid var(--line-2); }
.plan-hero h2 { font-size: 20px; }
.plan-hero .plan-stats { padding: 0; flex: 1; min-width: 280px; }
.plan-hero .plan-stats > div { background: #fff; }
.plan-inc { font-size: 20px !important; display: inline-flex; align-items: center; gap: 8px; }
.merge-form { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; border-top: 1px dashed var(--line-2); }
.merge-row { display: flex; gap: 8px; }
.merge-row select { flex: 1; min-width: 0; }

/* Rentabilidad */
.profit-main { display: flex; flex-direction: column; align-items: flex-start; padding: 16px 20px 10px; }
.profit-main span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.profit-main b { font: 700 30px/1.15 var(--font-h); }
.profit-main.is-pos b { color: var(--ok); }
.profit-main.is-neg b { color: var(--bad); }
.profit-main small { color: var(--muted); }

/* ===================== Facturación ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link-break { word-break: break-all; display: block; margin: 4px 0 8px; }
.notice-ok { background: var(--ok-bg); border-color: #c6ecd5; color: #14532d; }
.notice-ok > i { color: var(--ok); }
.billing-mode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 11px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.billing-mode a { margin-left: auto; font-weight: 600; }
.billing-mode.is-test { background: #fffaf0; border-color: #fde3b5; color: #6b3d06; }
.billing-mode.is-live { background: var(--ok-bg); border-color: #c6ecd5; color: #14532d; }
.cal-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; padding: 18px 20px 8px; }
.cal-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.cal-bar { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: var(--grad-2); min-height: 0; transition: filter .15s; }
.cal-col:hover .cal-bar { filter: brightness(1.1); }
.cal-amt { font: 600 11.5px var(--font); color: var(--ink); margin-bottom: 4px; white-space: nowrap; }
.cal-lbl { margin-top: 6px; font-size: 12px; color: var(--muted); text-transform: capitalize; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.cal-lbl small { font-size: 10.5px; color: var(--faint); }
.inv-doc { overflow: hidden; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 22px; background: linear-gradient(120deg, #f3efff, #eaf3fd); border-bottom: 1px solid var(--line-2); }
.inv-head h2 { font-size: 24px; margin: 2px 0 8px; }
.inv-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--violet); font-weight: 700; }
.inv-amount { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.inv-amount b { font: 700 30px/1.1 var(--font-h); color: var(--ink); }
.inv-amount small { color: var(--muted); }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.inv-parties > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.inv-parties small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; }
.inv-parties b { color: var(--ink); }
.inv-table td:first-child { min-width: 240px; }
.inv-totals { margin: 0 0 0 auto; padding: 12px 22px 16px; max-width: 340px; }
.inv-totals > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.inv-totals dt { color: var(--muted); } .inv-totals dd { margin: 0; font-weight: 600; }
.inv-totals .inv-total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.inv-totals .inv-total dt, .inv-totals .inv-total dd { color: var(--ink); font: 700 17px var(--font-h); }
.bank-box { padding: 12px 14px; border: 1px dashed var(--blue); border-radius: 10px; font-size: 14px; margin-bottom: 10px; background: #f8fbff; }
.pay-soon { margin: 10px 0 0; }
.cancel-form { display: grid; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.report-list { display: grid; }
.report { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.report:last-child { border-bottom: 0; }
.report-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.report-main > b { font: 700 18px var(--font-h); color: var(--ink); }
.report-act { display: flex; gap: 8px; align-items: center; }
.report-act .f-prefix { width: 120px; }
.report-act input[name=reason] { width: 180px; }
.line-grid { display: grid; gap: 8px; }
.lg-head, .lg-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 140px 44px; gap: 10px; align-items: center; }
.lg-head span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.switch-big { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafd; }
.switch-big input { margin-top: 3px; }
body.pub { background: var(--bg); }
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 34px; background: #fff; border-bottom: 1px solid var(--line); }
.pub-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 19px var(--font-h); text-decoration: none !important; }
.pub-brand b { background: var(--grad-2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-main { max-width: 1180px; width: 100%; margin: 0 auto; }
.pub-title h1 { font-size: 26px; } .pub-title p { margin: 4px 0 0; }
.pub-foot { justify-content: center; }
@media (max-width: 900px) {
  .report { grid-template-columns: minmax(0, 1fr); }
  .report-act input[name=reason] { flex: 1; width: auto; }
  .inv-parties { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cal-bars { gap: 4px; padding: 14px 10px 6px; height: 180px; }
  .cal-amt { font-size: 9.5px; writing-mode: vertical-rl; transform: rotate(180deg); }
  .lg-head { display: none; }
  .lg-row { grid-template-columns: 1fr 70px; }
  .lg-row > input:first-child { grid-column: 1 / -1; }
  .pub-top { padding: 12px 16px; }
}

/* ===== Compactación (widgets, filtros en una fila, cabecera fija tipo Excel) ===== */
.tiles { gap: 12px; }
.tile { padding: 12px 56px 12px 14px; gap: 0; }
.tile b { font-size: 24px; margin-top: 0; }
.tile b.tile-date { font-size: 18px; }
.tile span:last-child { font-size: 13px; }
.tile-ico { width: 34px; height: 34px; right: 12px; top: 50%; transform: translateY(-50%); font-size: 15px; border-radius: 10px; }
.tile::after { height: 2px; }
.toolbar { gap: 8px; }
.toolbar > select, .toolbar > input[type=date] { width: auto; flex: 0 1 230px; min-width: 150px; height: 40px; }
.toolbar > .btn, .toolbar > label { flex: none; }
.tb-search { flex: 1 1 320px; min-width: 220px; }
.table-sticky { max-height: calc(100vh - 130px); overflow: auto; }
.table-sticky .table thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--line); }
@media (max-width: 720px) {
  .tile { padding: 10px 46px 10px 12px; }
  .tile b { font-size: 20px; }
  .tile-ico { width: 28px; height: 28px; font-size: 13px; }
  .toolbar > select, .toolbar > input[type=date] { flex: 1 1 140px; }
  .table-sticky { max-height: none; }
}
.table td { padding: 10px 14px; }
.table th { padding: 11px 14px; }

/* ===== Menú lateral estilo Apple: secciones plegables, íconos en recuadro de color, sin barra de scroll ===== */
.sb-nav { gap: 2px; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
.sb-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sb-link { gap: 11px; padding: 7px 10px; border-radius: 10px; font-size: 14.5px; }
.sb-ico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 88%, #fff), var(--tint));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.35); }
.sb-ico i, .sb-link .sb-ico i { width: auto; font-size: 13px; color: #fff !important; }
.sb-link.is-active { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: #fff; }
.sb-link.is-active .sb-ico { box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 4px 12px color-mix(in srgb, var(--tint) 55%, transparent); }
.sb-sec { margin-top: 6px; }
.sb-sec-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px 5px;
  border: 0; background: none; cursor: pointer; border-radius: 8px; color: #8b97ab; font: 600 12.5px/1 var(--font); letter-spacing: .01em; text-align: left; }
.sb-sec-btn:hover { color: #e2e8f0; background: rgba(255,255,255,.04); }
.sb-chev { font-size: 10px; opacity: .55; transition: transform .22s ease, opacity .15s; }
.sb-sec-btn:hover .sb-chev { opacity: 1; }
.sb-sec.is-open .sb-chev { transform: rotate(90deg); }
.sb-sec-body { display: grid; grid-template-rows: 0fr; }
.sb-ready .sb-sec-body { transition: grid-template-rows .25s ease; }
.sb-sec.is-open .sb-sec-body { grid-template-rows: 1fr; }
.sb-sec-inner { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.sb-sec:not(.is-open) .sb-sec-inner { visibility: hidden; }
.sb-ready .sb-sec-inner { transition: visibility .25s; }

/* Encabezados de sección como botones estilo Apple (lista agrupada) */
.sb-sec { margin-top: 8px; border-radius: 13px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); transition: background .2s, border-color .2s; }
.sb-sec.is-open { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.09); }
.sb-sec-btn { padding: 10px 10px 10px 13px; gap: 8px; border-radius: 12px; color: #dfe6f1; font: 600 13.5px/1.1 var(--font); letter-spacing: -.005em; transition: background .15s, transform .1s; }
.sb-sec-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-sec-btn:active { transform: scale(.985); }
.sb-sec-btn:focus-visible { outline: 2px solid rgba(124,176,255,.7); outline-offset: 1px; }
.sb-sec-name { flex: 1; }
.sb-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  font: 600 11px/1 var(--font); color: #aab6c8; background: rgba(255,255,255,.08); transition: opacity .2s; }
.sb-sec.is-open .sb-count { opacity: 0; }
.sb-chev-wrap { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s; }
.sb-sec-btn:hover .sb-chev-wrap, .sb-sec.is-open .sb-chev-wrap { background: rgba(255,255,255,.14); }
.sb-chev { font-size: 9px; opacity: .9; color: #fff; }
.sb-sec-inner { padding: 0 5px; }
.sb-sec.is-open .sb-sec-inner { padding-bottom: 5px; }

/* =========================================================================
   Contactos (equipo) — estilo Apple: héroe con medidor, tarjetas y espacios libres
   ========================================================================= */
.grad-text { background: var(--grad-2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-static { pointer-events: none; color: var(--ok); border-color: #cdebd8; background: var(--ok-bg); }
.me-left { margin-left: auto; }

.team-hero { display: flex; align-items: center; gap: 28px; padding: 26px 28px; margin-bottom: 20px; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 100% 0%, rgba(168, 85, 247, .10) 0%, rgba(21, 119, 214, .06) 38%, #fff 70%); }
.team-hero-txt { flex: 1; min-width: 0; }
.team-hero h2 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -.02em; }
.team-hero p { margin: 0; color: var(--muted); font-size: 15px; max-width: 640px; }
.team-hero p b { color: var(--ink); font-weight: 600; }
.team-meter { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.team-meter small { color: var(--muted); font-size: 12.5px; }
.team-meter small b { color: var(--ink); font-size: 14px; }
.team-dots { display: flex; }
.tdot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--font-h); color: #fff;
  border: 3px solid #fff; margin-left: -10px; box-shadow: 0 4px 12px rgba(11, 19, 32, .12); }
.tdot:first-child { margin-left: 0; }
.tdot.is-free { background: #f1f5fa; color: #a3b1c4; border-style: dashed; border-color: #cbd6e4; box-shadow: none; font-size: 13px; }
.av-1 { background: linear-gradient(135deg, #1577d6, #7b3ff2); }
.av-2 { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.av-3 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.member { padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.member:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.member-head { display: flex; align-items: center; gap: 12px; }
.member-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.member-id b { color: var(--ink); font: 600 16px/1.25 var(--font-h); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-id small { color: var(--muted); font-size: 13px; }
.member-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.member-meta li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.member-meta li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-meta i { width: 16px; color: var(--faint); }
.member-block > small { display: block; font: 600 11px/1 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 7px; }
.mtags { display: flex; flex-wrap: wrap; gap: 6px; }
.mtag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--info-bg); color: var(--blue); font-size: 12.5px; font-weight: 500; }
.mtag i { font-size: 11px; }
.mtag-violet { background: #f3edff; color: #6d28d9; }
.mtag.is-off { background: var(--mute-bg); color: var(--muted); }
.member-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }

.member-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 230px; padding: 24px;
  border: 2px dashed #d3dce8; border-radius: var(--radius); color: var(--muted); background: rgba(255, 255, 255, .5);
  transition: border-color .2s, background .2s, transform .2s, color .2s; }
.member-slot:hover { text-decoration: none; border-color: var(--blue); background: #fff; color: var(--text); transform: translateY(-2px); }
.member-slot b { color: var(--ink); font: 600 16px/1.3 var(--font-h); }
.member-slot > span:not(.slot-ico):not(.btn) { font-size: 13.5px; max-width: 300px; }
.slot-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 19px; margin-bottom: 6px;
  background: var(--info-bg); color: var(--blue); transition: transform .25s ease; }
.member-slot:hover .slot-ico { transform: scale(1.08) rotate(-4deg); }
.member-slot.is-first { border-color: #b9d3f2; background: linear-gradient(180deg, #fff, #f6f9fe); }
.member-slot.is-first .slot-ico { background: var(--grad-2); color: #fff; box-shadow: 0 8px 20px rgba(123, 63, 242, .25); }
.member-slot .btn { margin-top: 10px; }

/* Formulario estilo Ajustes de iOS: grupos, filas con ícono e interruptores */
.ios-form { max-width: 760px; gap: 18px; }
.ios-group { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.ios-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.ios-head h2 { font-size: 17px; margin: 0 0 2px; }
.ios-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.ios-ico { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff; font-size: 15px; }
.ic-blue { background: linear-gradient(135deg, #1577d6, #0a4d8c); }
.ic-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.ic-violet { background: linear-gradient(135deg, #7b3ff2, #a855f7); }
.ios-body { padding: 20px 22px 6px; }
.ios-list { margin: 0; }
.ios-list + .ios-list { border-top: 1px solid var(--line-2); }
.ios-row { display: flex; align-items: center; gap: 14px; padding: 13px 22px; cursor: pointer; font-weight: 400; transition: background .15s; }
.ios-row + .ios-row { border-top: 1px solid var(--line-2); }
.ios-row:hover { background: #f8fafd; }
.row-ico { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--info-bg); color: var(--blue); font-size: 13px; }
.row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-txt b { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.row-txt small { color: var(--muted); font-size: 12.5px; }
.ios-row.is-main .row-ico { background: #f3edff; color: var(--violet); }
.ios-reveal { background: #fafbfe; border-top: 1px solid var(--line-2); animation: iosIn .25s ease; }
.ios-sub { margin: 0; padding: 14px 22px 4px; font: 600 11px/1 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
@keyframes iosIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.tgl { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 999px;
  background: #d9e0ea; cursor: pointer; transition: background .25s ease; }
.tgl::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(11, 19, 32, .22); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.tgl:checked { background: #22c55e; }
.tgl:checked::before { transform: translateX(18px); }
.tgl:focus-visible { outline: 3px solid rgba(21, 119, 214, .45); outline-offset: 2px; }

.role-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.role-pick { border: 1px solid var(--line); background: #fff; color: var(--text); font: 500 12.5px/1 var(--font); padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.role-pick:hover { border-color: var(--blue); color: var(--blue); }
.role-pick.is-on { background: var(--info-bg); border-color: var(--blue); color: var(--blue); }
.ios-actions { border: 0; padding-top: 4px; }

@media (max-width: 720px) {
  .team-hero { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 18px; }
  .team-hero h2 { font-size: 21px; }
  .team-meter { align-self: stretch; }
  .ios-head, .ios-row { padding-left: 16px; padding-right: 16px; }
  .ios-body { padding: 16px 16px 4px; }
}

/* Contactos · vista previa en vivo junto al formulario */
.ct-layout { display: grid; grid-template-columns: minmax(0, 760px) 320px; gap: 28px; align-items: start; }
.ct-preview { position: sticky; top: 24px; }
.ct-preview .ios-sub { padding: 0 0 10px 4px; }
.ct-preview .member:hover { transform: none; }
.ct-preview .member-id b:empty::before { content: "Nuevo contacto"; color: var(--faint); }
.ct-preview-note { margin: 12px 4px 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.ct-preview-note i { color: var(--ok); margin-top: 2px; }
.mtag.is-new { animation: tagIn .25s ease; }
@keyframes tagIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@media (max-width: 1180px) { .ct-layout { grid-template-columns: minmax(0, 1fr); } .ct-preview { display: none; } }

/* Mi perfil — estilo iOS: héroe con anillo de progreso + grupos */
.pf-layout { grid-template-columns: minmax(0, 1fr) 360px; }
.pf-form { max-width: none; }
.ic-teal { background: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.ic-dark { background: linear-gradient(135deg, #1f2a3a, #0b1320); }
.ic-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.pf-hero { display: flex; align-items: center; gap: 20px; padding: 22px 24px; flex-wrap: wrap;
  background: radial-gradient(120% 160% at 100% 0%, rgba(168, 85, 247, .10) 0%, rgba(21, 119, 214, .06) 40%, #fff 72%); }
.pf-avatar { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 8px 20px rgba(123, 63, 242, .25); }
.pf-id { flex: 1; min-width: 220px; }
.pf-id h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 2px; }
.pf-id p { margin: 0 0 8px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 7px; }
.pf-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-badges .chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; }
.pf-progress { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }
.pf-ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative;
  background: conic-gradient(#f59e0b calc(var(--p) * 1%), #e8edf4 0); transition: background .4s; }
.pf-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.pf-ring span { position: relative; font: 700 14px/1 var(--font-h); color: var(--ink); }
.pf-ring.is-done { background: conic-gradient(#22c55e calc(var(--p) * 1%), #e8edf4 0); }
.pf-progress-txt { display: flex; flex-direction: column; max-width: 230px; }
.pf-progress-txt b { color: var(--ink); font-size: 14.5px; }
.pf-progress-txt small { color: var(--muted); font-size: 12.5px; }
.ios-foot { margin: 0; padding: 12px 22px 16px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; border-top: 1px solid var(--line-2); }
.ios-foot i { margin-top: 2px; color: var(--faint); }
.ios-row.is-static-row { cursor: default; }
.ios-row.is-static-row:hover { background: transparent; }
.is-static-row .row-txt small { order: -1; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.is-static-row .row-txt b { font-weight: 500; overflow-wrap: anywhere; }
.pf-side .ios-body { padding-bottom: 20px; }
.strength-txt { color: var(--muted); font-size: 12px; transition: color .2s; }
@media (max-width: 1180px) { .pf-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .pf-hero { padding: 18px; } .pf-progress { width: 100%; } }

/* =========================================================================
   Prefactura (cliente) — estilo Apple: héroe con monto, detalle en grupos y selector de pago
   ========================================================================= */
.inv-layout .col-main { gap: 18px; }
.inv-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 26px 28px; position: relative; overflow: hidden;
  background: radial-gradient(120% 160% at 100% 0%, rgba(168, 85, 247, .12) 0%, rgba(21, 119, 214, .07) 42%, #fff 74%); }
.inv-hero-main { flex: 1; min-width: 240px; }
.inv-hero h2 { font-size: 26px; letter-spacing: -.02em; margin: 10px 0 4px; }
.inv-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.inv-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--info-bg); color: var(--blue); }
.inv-hero.is-soon .inv-pill { background: #fff3df; color: #b45309; }
.inv-hero.is-late .inv-pill { background: var(--bad-bg); color: var(--bad); }
.inv-hero.is-check .inv-pill { background: #f3edff; color: #6d28d9; }
.inv-hero.is-paid .inv-pill { background: var(--ok-bg); color: var(--ok); }
.inv-hero.is-void .inv-pill { background: var(--mute-bg); color: var(--muted); }
.inv-hero.is-paid { background: radial-gradient(120% 160% at 100% 0%, rgba(34, 197, 94, .14) 0%, rgba(20, 184, 166, .06) 42%, #fff 74%); }
.inv-hero-amount { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.inv-hero-amount small { color: var(--muted); font-size: 12.5px; }
.inv-hero-amount b { font: 700 38px/1.1 var(--font-h); color: var(--ink); letter-spacing: -.03em; margin: 2px 0; }
.inv-hero.is-late .inv-hero-amount b { color: var(--bad); }
.inv-hero-cta { display: none; }
.inv-hero.just-paid::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(34, 197, 94, .55); animation: paidGlow 1.6s ease-out 2; }
@keyframes paidGlow { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

.inv-lines .row-txt b { font-weight: 500; line-height: 1.45; }
.inv-line-amt { font: 600 15px var(--font-h); color: var(--ink); white-space: nowrap; }
.inv-sum { margin: 0; padding: 12px 22px 16px; border-top: 1px solid var(--line-2); background: #fafbfe; }
.inv-sum > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; color: var(--muted); }
.inv-sum dd { margin: 0; color: var(--text); font-weight: 500; }
.inv-sum .is-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; }
.inv-sum .is-total dt { color: var(--ink); font-weight: 700; }
.inv-sum .is-total dd { color: var(--ink); font: 700 20px var(--font-h); }
.inv-parties2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 16px 22px 18px; }
.inv-parties2 > div { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.inv-parties2 small { font: 600 11px/1 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 6px; }
.inv-parties2 b { color: var(--ink); font-size: 15px; }
.ios-foot.is-warn { background: #fffaf0; color: #6b3d06; }
.ios-foot.is-warn i { color: #d97706; }
.inv-legal { margin: 0; padding: 0 6px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.inv-legal i { margin-top: 3px; color: var(--faint); }

.pay-box .ios-head p { font-weight: 500; }
.pay-opts { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.pay-opts form { margin: 0; }
.pay-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pay-opt:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(21, 119, 214, .12); transform: translateY(-1px); }
.pay-opt:disabled { opacity: .7; transform: none; }
.pay-ico { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--grad); }
.pay-card .pay-ico { background: linear-gradient(135deg, #16a34a, #0d9488); }
.pay-paypal .pay-ico { background: linear-gradient(135deg, #003087, #0070e0); font-size: 20px; }
.pay-transfer .pay-ico { background: linear-gradient(135deg, #475569, #1f2a3a); }
.pay-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pay-txt b { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.pay-txt small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.pay-go { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px var(--font-h); color: var(--blue); }
.pay-go i { font-size: 11px; }
.pay-transfer { display: block; padding: 0; }
.pay-transfer:hover { transform: none; }
.pay-transfer > summary { display: flex; align-items: center; gap: 12px; padding: 14px; list-style: none; cursor: pointer; }
.pay-transfer > summary::-webkit-details-marker { display: none; }
.pay-transfer[open] > summary .pay-go i { transform: rotate(180deg); }
.pay-transfer-body { padding: 0 14px 14px; animation: iosIn .25s ease; }
.bank-card { padding: 14px; border-radius: 12px; background: linear-gradient(180deg, #f6f9fe, #eef4fc); border: 1px solid #dbe7f6; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.bank-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #c9d9ee; font-size: 12.5px; color: var(--muted); }
.bank-meta b { color: var(--ink); }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.copy-row .is-copied { background: var(--ok-bg); color: var(--ok); border-color: #cdebd8; }
.report-box { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.report-box > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--blue); list-style: none; display: flex; align-items: center; gap: 8px; }
.report-box > summary::-webkit-details-marker { display: none; }
.report-box[open] > summary { margin-bottom: 12px; }
.paid-card { padding: 26px 22px; text-align: center; }
.paid-card h2 { font-size: 19px; margin: 12px 0 6px; }
.paid-card p { margin: 0; color: var(--muted); font-size: 14px; }
.paid-check { width: 62px; height: 62px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #fff;
  background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 10px 24px rgba(34, 197, 94, .35); animation: popIn .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.inv-layout .btn-wa { margin-top: 2px; }

.howto { margin-top: 4px; font-size: 13.5px; color: var(--text); }
.howto summary { cursor: pointer; color: var(--blue); font-weight: 600; display: inline-flex; gap: 7px; align-items: center; }
.howto ol { margin: 10px 0 4px; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.howto code { font-size: 12px; background: var(--mute-bg); padding: 1px 6px; border-radius: 6px; color: var(--ink); }

@media (max-width: 1180px) {
  .inv-hero-cta { display: inline-flex; }
}
@media (max-width: 720px) {
  .inv-hero { padding: 20px; }
  .inv-hero-amount { align-items: flex-start; text-align: left; }
  .inv-hero-amount b { font-size: 32px; }
  .inv-hero-cta { width: 100%; justify-content: center; }
  .inv-parties2 { grid-template-columns: 1fr; }
}
.inv-row { color: inherit; text-decoration: none !important; }
.inv-row > i { color: var(--faint); font-size: 12px; }
.inv-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row-ico.is-ok { background: var(--ok-bg); color: var(--ok); }
.inv-hero-amount .btn { margin-top: 8px; }
.inv-lines .row-txt small { order: 0; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--muted); }
.susp-row form { margin: 0; flex: none; }
.susp-row .row-txt small + small { margin-top: 2px; }
.susp-row .row-txt small { order: 0; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--muted); }
.susp-row .row-txt small.text-warn { color: var(--warn); }

/* =========================================================================
   Landing /contratar — estilo Apple: héroe con buscador, resultado, checkout y secciones
   ========================================================================= */
body.lp { background: #fff; }
.lp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(227, 233, 242, .7); }
.lp-brand img { display: block; height: 34px; width: auto; }
.lp-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.lp-nav a:not(.btn) { color: var(--text); }
.lp-alerts { max-width: 1080px; margin: 16px auto 0; padding: 0 16px; }
.lp-alerts:empty { display: none; }
.lp-hero { padding: clamp(48px, 9vw, 110px) 16px clamp(36px, 6vw, 70px); text-align: center;
  background: radial-gradient(60% 70% at 50% 0%, rgba(168, 85, 247, .12) 0%, rgba(21, 119, 214, .08) 45%, #fff 80%); }
.lp-hero-in { max-width: 860px; margin: 0 auto; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--violet); box-shadow: var(--shadow); }
.lp-hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.05; letter-spacing: -.035em; margin: 22px 0 16px; }
.lp-lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 660px; margin: 0 auto 30px; }
.lp-lead b { color: var(--ink); }
.lp-search { max-width: 640px; margin: 0 auto; }
.lp-search-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; background: #fff; border: 1px solid #d5deea; border-radius: 999px;
  box-shadow: 0 10px 40px rgba(21, 119, 214, .14); transition: box-shadow .2s, border-color .2s; }
.lp-search-box:focus-within { border-color: var(--blue); box-shadow: 0 10px 40px rgba(21, 119, 214, .22), 0 0 0 4px rgba(21, 119, 214, .12); }
.lp-search-box > i { color: var(--faint); }
.lp-search-box input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; height: 48px !important; padding: 0 !important; font-size: 19px !important; background: transparent !important; }
.lp-tld { font-size: 19px; font-weight: 600; color: var(--muted); }
.lp-search-box .btn { height: 48px; border-radius: 999px; padding: 0 26px; font-size: 15px; }
.lp-search-foot { margin: 14px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.lp-search-foot i { color: var(--ok); }
.lp-wrap { max-width: 1080px; margin: 0 auto; padding: 22px 16px; }
.lp-result { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; border: 1px solid; animation: iosIn .3s ease; }
.lp-result > div { flex: 1; display: flex; flex-direction: column; }
.lp-result b { font: 700 20px/1.3 var(--font-h); color: var(--ink); }
.lp-result span:not(.lp-result-ico) { color: var(--muted); font-size: 14px; }
.lp-result.is-ok { background: #f0fdf4; border-color: #bbf7d0; }
.lp-result.is-bad { background: #fef2f2; border-color: #fecaca; }
.lp-result-ico { font-size: 30px; }
.lp-result.is-ok .lp-result-ico { color: #16a34a; }
.lp-result.is-bad .lp-result-ico, .lp-result.is-bad > i { color: var(--bad); font-size: 26px; }
.lp-note { display: flex; gap: 14px; margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: #fffaf0; border: 1px solid #fde3b5; color: #6b3d06; font-size: 14px; line-height: 1.55; }
.lp-note-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #fff3df; color: #d97706; }
.lp-sugs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.lp-sug { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none !important; transition: all .15s; }
.lp-sug:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(21, 119, 214, .12); }
.lp-sug i:first-child { color: #16a34a; }
.lp-sug b { flex: 1; color: var(--ink); }
.lp-sug span { color: var(--blue); font-size: 13px; font-weight: 600; }
.lp-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.lp-checkout .ios-form { max-width: none; }
.lp-summary { position: sticky; top: 84px; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-terms { align-items: flex-start; font-weight: 400; margin-top: 4px; }
.lp-terms input { margin-top: 3px; }
.lp-small { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.lp-h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em; text-align: center; margin: 30px 0 24px; }
.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.lp-feature { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.lp-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-feature-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 19px; background: var(--grad-2); margin-bottom: 14px; }
.lp-feature h3 { font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lp-step { padding: 22px; border-radius: 18px; background: #f8fafd; text-align: center; }
.lp-step span { width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 17px var(--font-h); }
.lp-step b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.lp-step p { margin: 0; color: var(--muted); font-size: 14px; }
.lp-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.lp-qa { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lp-qa summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary i { color: var(--faint); font-size: 12px; transition: transform .2s; }
.lp-qa[open] summary i { transform: rotate(180deg); }
.lp-qa p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }
.lp-cta { margin: 40px 16px 30px; padding: clamp(32px, 6vw, 60px) 20px; border-radius: 26px; text-align: center; color: #fff; background: var(--grad); }
.lp-cta h2 { color: #fff; font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 20px; }
.lp-cta .btn { background: #fff; color: var(--blue-d); }
.lp-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lp-legal { max-width: 780px; }
.lp-legal h1 { font-size: 32px; margin-bottom: 4px; }
.lp-legal h2 { font-size: 18px; margin: 26px 0 8px; }
.lp-legal p, .lp-legal li { color: var(--text); font-size: 15px; line-height: 1.65; }
.order-timer { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: #fffaf0; border: 1px solid #fde3b5; color: #6b3d06; }
.order-timer b.t { font: 700 22px var(--font-h); color: #b45309; white-space: nowrap; }
@media (max-width: 900px) {
  .lp-checkout { grid-template-columns: 1fr; }
  .lp-summary { position: static; order: -1; }
  .lp-nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .lp-search-box { flex-wrap: wrap; border-radius: 22px; padding: 10px 12px; }
  .lp-search-box .btn { width: 100%; }
  .lp-result { flex-wrap: wrap; }
  .lp-result .btn { width: 100%; }
}
.copy-row .is-done { background: var(--ok-bg); color: var(--ok); border-color: #cdebd8; }
.lp-summary .row-txt small { order: 0; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--muted); }
#resultado, #datos, #incluye, #preguntas { scroll-margin-top: 84px; }

/* ---------- Landing v2: beneficios primero + asistente de 3 pasos (85 % del ancho; 100 % en celular) ---------- */
.lp-w, .lp-wrap { width: 85%; max-width: none; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
.lp-hero { text-align: left; padding: clamp(32px, 5vw, 72px) 0 clamp(28px, 4vw, 56px); }
.lp-hero-in { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.lp-hero h1 { margin: 18px 0 14px; font-size: clamp(34px, 4.6vw, 64px); }
.lp-hero .lp-lead { margin: 0 0 22px; max-width: 560px; }
.lp-price { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.lp-price-big { font: 700 clamp(44px, 5vw, 64px)/1 var(--font-h); letter-spacing: -.04em; color: var(--ink); }
.lp-price-txt { color: var(--muted); font-size: 15px; line-height: 1.3; }
.lp-price-txt small { color: #16a34a; font-weight: 600; font-size: 13px; }
.lp-hero-cta { border-radius: 999px; padding: 0 28px; }
.lp-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-benefit { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(11, 19, 32, .05); backdrop-filter: blur(6px); transition: transform .2s, box-shadow .2s; }
.lp-benefit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(11, 19, 32, .09); }
.lp-benefit.is-gift { border-color: #e2d4fd; background: linear-gradient(135deg, #fff, #faf6ff); }
.lp-benefit-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; background: var(--grad-2); }
.lp-benefit.is-gift .lp-benefit-ico { background: linear-gradient(135deg, #a855f7, #ec4899); }
.lp-benefit-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lp-benefit-txt b { color: var(--ink); font-size: 15px; line-height: 1.3; }
.lp-benefit-txt small { color: var(--muted); font-size: 13px; }

.lp-flow { padding: 26px 0 10px; }
.lp-flow-head { text-align: center; margin-bottom: 6px; }
.lp-flow-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.025em; margin: 0 0 6px; }
.lp-flow-head p { margin: 0; color: var(--muted); }
.lp-stepbar { list-style: none; margin: 22px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-stepbar li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 6px; }
.lp-stepbar li:not(:first-child)::before { content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: var(--line); border-radius: 3px; }
.lp-stepbar li.is-done::before, .lp-stepbar li.is-active::before { background: linear-gradient(90deg, #22c55e, #1577d6); }
.lp-stepbar .dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line);
  color: var(--muted); font: 700 16px var(--font-h); transition: all .3s; }
.lp-stepbar .is-done .dot { background: #22c55e; border-color: #22c55e; color: #fff; }
.lp-stepbar .is-active .dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgba(21, 119, 214, .14); }
.lp-stepbar .lbl b { display: block; color: var(--ink); font-size: 14.5px; }
.lp-stepbar li:not(.is-done):not(.is-active) .lbl b { color: var(--muted); }
.lp-stepbar .lbl small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.lp-panel { position: relative; padding: 22px 24px; margin-bottom: 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
  scroll-margin-top: 84px; transition: border-color .3s, box-shadow .3s, opacity .3s; }
.lp-panel.is-active { border-color: #b9d3f2; box-shadow: 0 12px 40px rgba(21, 119, 214, .12); }
.lp-panel.is-done { background: #fbfdff; }
.lp-panel.is-locked { background: #fafbfd; opacity: .72; box-shadow: none; }
.lp-panel-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.lp-panel.is-locked .lp-panel-head { margin-bottom: 8px; }
.lp-num { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 15px var(--font-h); }
.lp-panel.is-done .lp-num { background: #22c55e; }
.lp-panel.is-locked .lp-num { background: var(--mute-bg); color: var(--muted); }
.lp-panel-head h3 { font-size: 19px; margin: 3px 0 2px; }
.lp-panel-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-panel .lp-search { max-width: 820px; margin: 0; }
.lp-panel .lp-search-foot { justify-content: flex-start; }
.lp-panel .lp-result, .lp-panel .lp-sugs { margin-top: 14px; }
.lp-chosen { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.lp-chosen > div { flex: 1; min-width: 0; }
.lp-chosen b { display: block; font: 700 18px/1.3 var(--font-h); color: var(--ink); overflow-wrap: anywhere; }
.lp-chosen small { color: var(--muted); font-size: 13.5px; }
.lp-chosen-ico { color: #16a34a; font-size: 26px; flex: none; }
.lp-locked { margin: 0 0 0 48px; color: var(--faint); font-size: 14px; }
.lp-panel .lp-note { margin: 0 0 16px; }
.lp-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding: 0; width: auto; }
.lp-checkout .ios-form { max-width: none; gap: 4px; }
.lp-summary { position: sticky; top: 84px; }
.lp-summary-card { padding: 18px; border-radius: 16px; background: #fafbfe; border: 1px solid var(--line); }
.lp-summary-title { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }
.lp-summary-title b { color: var(--ink); }
.lp-summary-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text); }
.lp-summary-list i { color: #16a34a; width: 16px; }
.lp-summary-card .inv-sum { background: transparent; padding: 12px 0 4px; margin-top: 8px; }
.lp-summary-card .lp-small { text-align: left; }
.lp-paymethods { display: flex; gap: 8px; flex-wrap: wrap; margin-left: 48px; }
.lp-paymethods span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--mute-bg); font-size: 13px; color: var(--text); }
.lp-cta.lp-w { margin: 40px auto 30px; }
.lp-cta .btn { background: #fff; color: var(--blue-d); }
.inv-layout .lp-stepbar { margin: 0 0 4px; }

@media (max-width: 1100px) {
  .lp-hero-in { grid-template-columns: 1fr; }
  .lp-hero-copy { text-align: center; }
  .lp-hero .lp-lead { margin-left: auto; margin-right: auto; }
  .lp-price { justify-content: center; }
  .lp-checkout { grid-template-columns: 1fr; }
  .lp-summary { position: static; }
}
@media (max-width: 900px) {
  .lp-w, .lp-wrap { width: 100%; padding-left: 16px; padding-right: 16px; }
  .lp-cta.lp-w { width: auto; margin: 32px 16px 24px; }
  .lp-panel { padding: 18px 16px; }
  .lp-locked, .lp-paymethods { margin-left: 0; }
}
@media (max-width: 560px) {
  .lp-benefits { grid-template-columns: 1fr; }
  .lp-stepbar .lbl small { display: none; }
  .lp-stepbar .lbl b { font-size: 12.5px; }
  .lp-chosen { flex-wrap: wrap; }
  .lp-chosen .btn { width: 100%; }
  .lp-hero-cta { width: 100%; justify-content: center; }
}
.lp-hero-copy h1 { margin-top: 0; }
/* Credenciales de API: texto enmascarado (no type=password) para que los gestores de contraseñas no las autocompleten */
.secret { -webkit-text-security: disc; text-security: disc; letter-spacing: .06em; }
.secret::placeholder { -webkit-text-security: none; letter-spacing: normal; }

/* Pago en ventana flotante: aviso mientras el cliente paga + página puente */
body.modal-open { overflow: hidden; }
.pay-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(11, 19, 32, .45); backdrop-filter: blur(6px); animation: iosIn .2s ease; }
.pay-modal[hidden] { display: none; }
.pay-modal-card { width: min(440px, 100%); padding: 28px 24px 22px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 30px 80px rgba(11, 19, 32, .3); }
.pay-modal-card h2 { font-size: 19px; margin: 14px 0 6px; }
.pay-modal-card p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.pay-modal-spin { display: inline-block; width: 44px; height: 44px; border-radius: 50%; border: 4px solid #e3e9f2; border-top-color: var(--blue); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pay-return { display: grid; place-items: center; min-height: 100vh; background: var(--bg); }
.pay-return-box { text-align: center; padding: 24px; }
.pay-return-ico { font-size: 44px; color: #22c55e; }
.pay-return-box h1 { font-size: 22px; margin: 12px 0 6px; }
.pay-return-box p { color: var(--muted); }
/* PayPal: dos juegos de credenciales (Sandbox / Producción) */
.pal-label { margin: 0 0 8px; font: 600 11px/1 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.pal-env { padding: 14px 16px 10px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pal-env.is-current { border-color: #b9d3f2; box-shadow: 0 6px 20px rgba(21, 119, 214, .08); }
.pal-env-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pal-env-head b { color: var(--ink); font-size: 15px; }
.lp-testbar { position: relative; z-index: 30; padding: 8px 16px; text-align: center; font-size: 13.5px; color: #6b3d06; background: #fff3df; border-bottom: 1px solid #fde3b5; }

/* =========================================================================
   Prefactura v2 — una columna amplia (80 % del ancho; 100 % en celular), pagos en tarjetas grandes en fila
   ========================================================================= */
.pub-main { max-width: none; width: 80%; }
.inv-page { display: flex; flex-direction: column; gap: 18px; }
.inv-page .inv-hero { display: block; padding: 26px 30px; }
.inv-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.inv-hero-top .inv-hero-main { flex: 1; min-width: 260px; }
.inv-page .inv-hero h2 { font-size: clamp(22px, 2.6vw, 30px); }
.inv-hero-steps { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.inv-hero-steps .lp-stepbar { margin: 0; }
.inv-page .order-timer { margin-top: 16px; background: rgba(255, 250, 240, .9); }
.order-timer > div { display: flex; flex-direction: column; }
.order-timer small { color: #8a5a17; }
.order-timer-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff3df; color: #d97706; font-size: 17px; }

.pay-section { padding: 24px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 84px; }
.pay-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pay-section-head h2 { font-size: clamp(21px, 2.3vw, 26px); margin: 0 0 4px; letter-spacing: -.02em; }
.pay-section-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.pay-section-amount { font: 700 clamp(26px, 3vw, 34px)/1 var(--font-h); color: var(--ink); letter-spacing: -.03em; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: stretch; }
.pay-grid > form { margin: 0; display: flex; }
.pay-tile { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 12px; padding: 20px;
  border-radius: 18px; border: 1.5px solid var(--line); background: linear-gradient(180deg, #fff, #fafcff); text-align: left; font: inherit; color: inherit;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pay-tile:hover { transform: translateY(-3px); border-color: #b9d3f2; box-shadow: 0 14px 34px rgba(21, 119, 214, .14); }
.pay-tile .pay-ico { width: 52px; height: 52px; border-radius: 15px; font-size: 22px; }
.pay-tile .pay-txt b { font-size: 17px; }
.pay-tile .pay-txt small { font-size: 13px; }
.pay-tile .pay-tag { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 600; }
.pay-tile .pay-tag.is-soft { background: var(--mute-bg); color: var(--muted); }
.pay-tile .pay-go { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px;
  background: var(--grad); color: #fff; font: 700 15px var(--font-h); transition: filter .2s; }
.pay-tile:hover .pay-go { filter: brightness(1.08); }
.pay-tile.pay-paypal .pay-go { background: linear-gradient(120deg, #003087, #0070e0); }
.pay-tile.pay-card .pay-go { background: linear-gradient(120deg, #15803d, #0d9488); }
.pay-grid .pay-transfer { display: block; padding: 0; cursor: default; }
.pay-grid .pay-transfer:hover { transform: none; }
.pay-grid .pay-transfer > summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 12px; padding: 20px; cursor: pointer; list-style: none; }
.pay-grid .pay-transfer > summary::-webkit-details-marker { display: none; }
.pay-grid .pay-transfer .pay-go { background: var(--mute-bg); color: var(--ink); }
.pay-grid .pay-transfer[open] { grid-column: 1 / -1; border-color: #b9d3f2; box-shadow: 0 14px 34px rgba(21, 119, 214, .1); }
.pay-grid .pay-transfer[open] .pay-go i { transform: rotate(180deg); }
.pay-grid .pay-transfer-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 26px; padding: 18px 20px 22px; border-top: 1px solid var(--line-2); animation: iosIn .25s ease; }
.pay-col-title { margin: 0 0 10px; font: 700 14px var(--font-h); color: var(--ink); }
.pay-secure { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.pay-secure i { color: var(--ok); }
.paid-banner { display: flex; align-items: center; gap: 18px; padding: 24px 26px; }
.paid-banner .paid-check { margin: 0; flex: none; }
.paid-banner h2 { font-size: 20px; margin: 0 0 4px; }
.paid-banner p { margin: 0; color: var(--muted); }
.inv-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.inv-side { display: flex; flex-direction: column; gap: 18px; }

@media (max-width: 1100px) {
  .inv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pub-main { width: 100%; }
  .inv-page .inv-hero, .pay-section { padding: 20px 16px; }
  .pay-grid .pay-transfer-body { grid-template-columns: 1fr; padding: 16px; }
  .inv-hero-top .inv-hero-amount { align-items: flex-start; text-align: left; }
}
@media (max-width: 560px) {
  .pay-section-head { align-items: flex-start; }
  .paid-banner { flex-direction: column; text-align: center; }
}
.pay-grid:has(> .pay-transfer[open]) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pay-grid:has(> form:nth-of-type(2)):has(> .pay-transfer[open]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pay-grid .pay-transfer[open] > summary { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.pay-grid .pay-transfer[open] > summary .pay-go, .pay-grid .pay-transfer[open] > summary .pay-tag { grid-column: auto; }
.pay-grid .pay-transfer[open] > summary .pay-go { padding: 9px 14px; }
@media (max-width: 700px) {
  .pay-grid:has(> form:nth-of-type(2)):has(> .pay-transfer[open]) { grid-template-columns: 1fr; }
  .pay-grid .pay-transfer[open] > summary { grid-template-columns: auto minmax(0, 1fr); }
  .pay-grid .pay-transfer[open] > summary .pay-go, .pay-grid .pay-transfer[open] > summary .pay-tag { grid-column: 1 / -1; }
}
