:root {
  --ink: #1a2744;
  --forest: #1e3a5f;
  --forest-2: #2a4d7c;
  --gold: #c4a574;
  --gold-2: #efe6d6;
  --cream: #f3f5f8;
  --paper: #ffffff;
  --muted: #5c6b7a;
  --line: rgba(30, 58, 95, 0.12);
  --danger: #c44536;
  --ok: #2d6a9a;
  --warn: #e08a3c;
  --shadow: 0 16px 40px rgba(26, 39, 68, 0.08);
  --radius: 16px;
  --mora-media: #e07a2f;
  --mora-alta: #c23b2e;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }

a { color: inherit; }
button, input, select, textarea { font: inherit; }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(196, 165, 116, .26), transparent 52%),
    linear-gradient(165deg, #12233d 0%, #1e3a5f 46%, #0e1a2e 100%);
  color: var(--cream);
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.brand-mark {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--forest);
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  margin-bottom: 12px;
}

.login-card h1 { margin: 0; font-size: 34px; }
.login-card p.lead { color: var(--muted); margin: 6px 0 22px; }

label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; letter-spacing: .02em; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d5dce6;
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(42, 77, 124, .16); }
textarea { min-height: 84px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 11px 16px; cursor: pointer;
  font-weight: 600; text-decoration: none;
}
.btn-gold { background: var(--gold); color: #1a1408; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-forest { background: var(--forest); color: #f4f6f8; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: inherit; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-wa .ico { color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.ico {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  display: block;
}
.btn .ico { width: 18px; height: 18px; }
.btn-icon {
  width: 40px; height: 40px; padding: 0;
}
.btn-icon-sm {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 8px;
  gap: 0;
  font-size: 0;
  line-height: 0;
}
.btn-icon-sm .ico { width: 14px; height: 14px; }
.ticket-actions-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.caps { text-transform: uppercase; }

button.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--forest);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
button.link-btn .ico { width: 14px; height: 14px; }
tr.row-mora-media .link-btn,
tr.row-mora-alta .link-btn { color: #fff; }
tr.row-cuota-pagada td { color: var(--muted); }

.hint {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  background: #e8eef5; font-size: 13px; color: #3c4a5a;
}
.alert {
  display: none; margin: 10px 0; padding: 10px 12px; border-radius: 10px;
  background: #f8e4df; color: var(--danger); font-size: 14px;
}
.alert.show { display: block; }

.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #162844, #1e3a5f);
  color: var(--cream);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.sidebar .brand { display: flex; gap: 10px; align-items: center; padding: 6px 8px 18px; }
.sidebar .brand b { font-family: "Cormorant Garamond", serif; font-size: 22px; color: var(--gold-2); }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar a, .sidebar button.navbtn {
  color: #d5dce8; text-decoration: none; background: transparent; border: 0;
  text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.sidebar a .ico, .sidebar button.navbtn .ico { width: 18px; height: 18px; opacity: .92; }
.sidebar a.active, .sidebar button.navbtn.active, .sidebar a:hover, .sidebar button.navbtn:hover {
  background: rgba(255, 255, 255, .1); color: #fff;
}
.sidebar .userbox {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: #c9d2de;
}
.sidebar .userbox .btn { width: 100%; margin-top: 8px; font-size: 13px; padding: 8px 12px; }
.sidebar .userbox .btn-ghost { color: #d5dce8; border-color: rgba(255,255,255,.16); }

.main { padding: 22px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.topbar h1 { margin: 0; font-size: 34px; }
.muted { color: var(--muted); }

.view-progress {
  height: 2px;
  margin: 0 0 16px;
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  position: relative;
}
.view-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e3a5f 0%, #c4a574 42%, #f7f1e6 50%, #c4a574 58%, #2a4d7c 100%);
  background-size: 220% 100%;
  opacity: 0;
  transform: none;
}
.section.is-loading > .view-progress,
.modal.is-loading > .view-progress,
.login-card.is-loading > .view-progress {
  background: rgba(30, 58, 95, .1);
}
.section.is-loading > .view-progress > span,
.modal.is-loading > .view-progress > span,
.login-card.is-loading > .view-progress > span {
  opacity: 1;
  animation: view-progress-run 1.15s linear infinite;
  box-shadow: 0 0 8px rgba(196, 165, 116, .35);
}
@keyframes view-progress-run {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.login-card > .view-progress {
  margin: 4px 0 16px;
}
.modal > .view-progress {
  margin: 0 0 14px;
}
.modal-cuotas > .view-progress {
  margin: 0;
  border-radius: 0;
  height: 2px;
  flex-shrink: 0;
  background: rgba(196, 165, 116, .18);
}
@media (prefers-reduced-motion: reduce) {
  .section.is-loading > .view-progress > span,
  .modal.is-loading > .view-progress > span,
  .login-card.is-loading > .view-progress > span {
    animation: none;
    opacity: 1;
    width: 100%;
    background: linear-gradient(90deg, #1e3a5f, #c4a574);
    background-size: 100% 100%;
    transform: none;
  }
}

@media print {
  .view-progress { display: none !important; }
}

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(26, 39, 68, .04);
}
.stat .label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-family: "Cormorant Garamond", serif; font-size: 32px; margin-top: 6px; }
.stat.gold { background: linear-gradient(180deg, #2a4d7c, #1e3a5f); color: #f4efe4; border: 0; }
.stat.gold .label { color: #d4c4a0; }
.stat.gold .value { color: #f7f1e6; }

.table-wrap { overflow: auto; }

.table-scroll {
  max-height: min(48vh, 440px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #1e3a5f #e4eaf2;
}
.table-scroll-lg { max-height: min(58vh, 560px); }
.table-scroll-sm { max-height: min(32vh, 280px); }

.table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: #e4eaf2;
}
.table-scroll::-webkit-scrollbar-track {
  background: #e4eaf2;
  border-radius: 999px;
  margin: 6px 2px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a4d7c, #1e3a5f);
  border-radius: 999px;
  border: 2px solid #e4eaf2;
  min-height: 36px;
}
.table-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c4a574, #1e3a5f);
}
.table-scroll::-webkit-scrollbar-corner { background: transparent; }

.table-scroll table {
  border-collapse: separate;
  border-spacing: 0;
}
.table-scroll thead {
  position: sticky;
  top: 0;
  z-index: 4;
}
.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f7f8fb;
  box-shadow: inset 0 -1px 0 var(--line);
}
.table-scroll tbody tr,
.table-scroll tbody td {
  position: relative;
  z-index: 0;
}

.catalog-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.catalog-panel > h3 {
  margin: 0 0 10px;
  flex-shrink: 0;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid #e6eaef; text-align: left; white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

tr.row-mora-media,
tr.row-mora-media td {
  background: var(--mora-media);
  color: #fff;
  border-bottom-color: rgba(255,255,255,.18);
}
tr.row-mora-alta,
tr.row-mora-alta td {
  background: var(--mora-alta);
  color: #fff;
  border-bottom-color: rgba(255,255,255,.18);
}
tr.row-mora-media .badge,
tr.row-mora-alta .badge {
  background: rgba(255,255,255,.22);
  color: #fff;
}
tr.row-mora-media .btn-gold,
tr.row-mora-alta .btn-gold {
  background: #fff;
  color: var(--ink);
}

#cobroContrato.row-mora-media,
#cobroContrato.row-mora-alta {
  padding: 12px;
  border-radius: 12px;
  margin-top: 8px;
  color: #fff;
}
#cobroContrato.row-mora-media { background: var(--mora-media); }
#cobroContrato.row-mora-alta { background: var(--mora-alta); }

.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.b-activo { background: #e3eaf6; color: var(--ok); }
.b-moroso { background: #fde7d6; color: var(--warn); }
.b-pagado { background: #e7eefc; color: #2b4c8a; }
.b-cancelado { background: #f1f1f1; color: #666; }
.b-anulado { background: #f8e4df; color: var(--danger); }
.cell-wrap { white-space: normal; max-width: 340px; }
.b-admin { background: #efe3c4; color: #7a5a16; }
.b-vendedor { background: #dce4f0; color: #2f4c7a; }

.section { display: none; }
.section.active { display: block; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input, .toolbar select { max-width: 280px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(14, 26, 46, .5);
  display: none; align-items: center; justify-content: center; padding: 16px; z-index: 40;
}
.modal-backdrop.show { display: flex; }
.modal {
  width: min(760px, 100%);
  max-height: 92vh; overflow: auto;
  background: var(--paper); border-radius: 20px; padding: 20px;
}
.modal h2 { margin: 0 0 12px; }

.modal.modal-cuotas {
  width: min(880px, 100%);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}
.modal-cuotas .modal-head {
  position: relative;
  padding: 22px 56px 18px 24px;
  background:
    radial-gradient(520px 160px at 100% -30%, rgba(196, 165, 116, .3), transparent 58%),
    linear-gradient(165deg, #162844 0%, #1e3a5f 58%, #12233a 100%);
  color: #f4efe4;
}
.modal-cuotas .modal-kicker {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d4c4a0;
  font-weight: 700;
}
.modal-cuotas .modal-head h2 {
  margin: 0;
  font-size: 30px;
  color: #f7f1e6;
  letter-spacing: .01em;
}
.modal-cuotas .modal-sub {
  margin: 4px 0 0;
  font-size: 16px;
  color: #e8edf4;
}
.modal-cuotas .modal-place {
  margin: 2px 0 14px;
  font-size: 13px;
  color: #b7c2d0;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #f7f1e6;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.modal-close:hover { background: rgba(255,255,255,.2); }
.modal-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.modal-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 12px;
}
.modal-stat .label {
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d4c4a0;
}
.modal-stat .value {
  display: block;
  margin-top: 3px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  color: #fff;
  font-weight: 600;
}
.modal-cuotas .modal-head .badge {
  background: rgba(255,255,255,.16);
  color: #f7f1e6;
  letter-spacing: .04em;
}
.modal-cuotas #cuotasBody,
.modal-cuotas #previaBody,
.modal-adenda-body {
  padding: 4px 20px 0;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.modal-cuotas .modal-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  margin: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: var(--paper);
  align-items: center;
  flex-wrap: wrap;
}
.cuota-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-bottom: 1px solid #e6eaef;
  font-size: 14px;
  cursor: pointer;
}
.cuota-check input { width: 18px; height: 18px; flex: 0 0 auto; }
.cuota-check.pagada { color: var(--ok); background: rgba(46, 90, 140, .06); }
.cuota-check .monto { margin-left: auto; font-weight: 700; white-space: nowrap; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.empty { padding: 28px; text-align: center; color: var(--muted); }
.empty .ico { width: 36px; height: 36px; margin: 0 auto 10px; opacity: .55; }
.empty-icon { display: grid; justify-items: center; gap: 8px; }

.cliente-hover {
  display: inline;
  font-weight: 700;
  color: inherit;
  cursor: default;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 1px;
}
.cliente-flyout {
  position: fixed;
  z-index: 80;
  min-width: 196px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(26, 39, 68, .16);
}
.cliente-flyout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--forest);
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}
.cliente-flyout-btn:hover { background: #eef2f8; }
.cliente-flyout-btn .ico { width: 18px; height: 18px; }

.modal-benef { width: min(560px, 100%); }
.modal-benef #benefModalBody { padding: 16px 20px 8px; overflow: auto; flex: 1; }
.benef-list { display: grid; gap: 10px; padding-bottom: 8px; }
.benef-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcfe, #f3f5f8);
}
.benef-avatar {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--forest);
  color: var(--gold-2);
  font-weight: 700;
  letter-spacing: .04em;
}
.benef-info { min-width: 0; }
.benef-info strong { display: block; font-size: 15px; }
.benef-info span { color: var(--muted); font-size: 13px; }
.benef-age {
  text-align: right;
  color: var(--forest);
}
.benef-age b {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  line-height: 1;
}
.benef-age small { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

.benef-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 4px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #f7f8fb;
}
.benef-hint strong { display: block; font-size: 13px; }
.benef-rows { display: grid; gap: 8px; margin: 4px 0 12px; }
.benef-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 88px 40px;
  gap: 8px;
  align-items: center;
}
.benef-row input { margin: 0; }
.modal-benef-edit { width: min(720px, 100%); }

.stat .ico-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(30, 58, 95, .08);
  color: var(--forest);
  margin-bottom: 8px;
}
.stat.gold .ico-wrap { background: rgba(255,255,255,.12); color: var(--gold-2); }
.stat .ico-wrap .ico { width: 20px; height: 20px; }

.modal-adenda { width: min(920px, 100%); }
.modal-adenda-body { padding: 16px 22px 10px; }
.modal-adenda-body h4 {
  margin: 18px 0 8px;
  font-size: 18px;
}
.modal-adenda-body h4:first-child { margin-top: 4px; }
.adenda-incremento {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef2f8;
  color: var(--forest);
  font-weight: 700;
}
#lineasAdenda table td:last-child {
  width: 48px;
  text-align: right;
}
.modal-adenda .toolbar input,
.modal-adenda .toolbar select { max-width: none; }

.adenda-preview { margin-top: 12px; }
.adenda-preview-card {
  padding: 14px 14px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, #f7f9fc, #eef2f8);
}
.adenda-preview-kicker {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--forest);
}
.adenda-preview-kicker .ico { width: 16px; height: 16px; }
.adenda-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.adenda-preview-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.adenda-preview-stat span {
  display: block;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.adenda-preview-stat strong {
  display: block;
  margin-top: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  color: var(--ink);
  font-weight: 600;
}
.adenda-preview-stat small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.adenda-preview-card .muted { margin: 10px 0 2px; }

input.is-invalid,
select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(196, 69, 54, .16);
}
.adenda-save-msg {
  width: 100%;
  margin: 0 0 4px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.adenda-save-msg[hidden] { display: none !important; }
.adenda-save-msg.error { background: #f8e4df; color: var(--danger); }
.adenda-save-msg.ok { background: #e3eaf6; color: var(--forest); }

.wa-panel h3 { margin: 0 0 6px; }
.wa-switch {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.wa-switch:last-of-type { border-bottom: 0; }
.wa-switch p { margin: 4px 0 0; font-size: 13px; }
.switch {
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #d5dce6;
  position: relative;
  cursor: pointer;
  padding: 0;
}
.switch.on { background: var(--forest); }
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
  box-shadow: 0 1px 3px rgba(26, 39, 68, .2);
}
.switch.on i { transform: translateX(20px); }
.wa-device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.wa-device:last-child { border-bottom: 0; }
.wa-qr-box {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
}
.wa-qr-box img {
  width: min(260px, 100%);
  height: auto;
  border-radius: 8px;
}
.b-wa-on { background: #e3eaf6; color: var(--ok); }
.b-wa-wait { background: #efe3c4; color: #7a5a16; }
.b-wa-off { background: #f1f1f1; color: #666; }

.cliente-pick {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 10px;
}
.cliente-pick-card {
  flex: 1;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 12px;
  background: #f7f8fb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.cliente-pick-card strong { color: #1a2744; }
.cliente-pick-card .muted { font-size: 13px; }
.cliente-pick .btn { white-space: nowrap; align-self: center; }
.modal-pick-cliente {
  width: min(680px, 100%);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}
.modal-pick-cliente .modal-head {
  position: relative;
  padding: 20px 56px 16px 22px;
  background: linear-gradient(165deg, #162844 0%, #1e3a5f 58%, #12233a 100%);
  color: #f4efe4;
}
.modal-pick-cliente .modal-head h2 { margin: 0; color: #f7f1e6; }
.modal-pick-cliente .modal-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d4c4a0;
  font-weight: 700;
}
.modal-pick-cliente .modal-sub { margin: 8px 0 0; color: #c9c3b5; font-size: 14px; }
.pick-body { padding: 16px 20px 18px; overflow: auto; }
.pick-body .toolbar input { max-width: none; flex: 1; }
.pick-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e6eaef;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.pick-row:hover { background: #eef2f8; }
.pick-row .pick-name { font-weight: 700; color: #1a2744; }
.pick-row .pick-meta { font-size: 13px; color: #5c6b7a; }
.pick-row .pick-ced { font-variant-numeric: tabular-nums; color: #1e3a5f; font-weight: 600; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar .userbox { width: 100%; margin-top: 8px; }
  .grid-4, .grid-3, .grid-2, .row, .row-3 { grid-template-columns: 1fr; }
  .modal-meta { grid-template-columns: 1fr 1fr; }
  .benef-row { grid-template-columns: 1fr; }
  .cliente-pick { flex-direction: column; }
  .pick-row { grid-template-columns: 1fr; }
  .adenda-preview-grid { grid-template-columns: 1fr 1fr; }
  .table-scroll { max-height: min(50vh, 420px); }
  .table-scroll-lg { max-height: min(56vh, 480px); }
  .table-scroll-sm { max-height: min(36vh, 300px); }
}

.fn-toast {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity .18s ease;
}
.fn-toast.show {
  pointer-events: auto;
  background: rgba(18, 32, 56, .28);
  opacity: 1;
}
.fn-toast-card {
  min-width: min(320px, calc(100vw - 32px));
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 40px rgba(18, 32, 56, .18);
  text-align: center;
}
.fn-toast-ico {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f8ee;
  color: #128c3e;
}
.fn-toast.is-error .fn-toast-ico {
  background: #fdecea;
  color: #b42318;
}
.fn-toast-ico .ico { width: 22px; height: 22px; }
.fn-toast-msg {
  margin: 0;
  font-weight: 700;
  color: #1a2744;
  font-size: 15px;
  line-height: 1.35;
}

/* =========================================================
   FUNERARIANET — NUEVA LANDING PAGE
   ========================================================= */

.home-body {
  --home-bg: #08111f;
  --home-bg-2: #0d1b2d;
  --home-card: rgba(255,255,255,.055);
  --home-line: rgba(255,255,255,.10);
  --home-text: #f5f7fb;
  --home-muted: #a9b4c4;
  --home-gold: #d6b36a;
  --home-gold-light: #f1d99e;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--home-text);
  background:
    radial-gradient(circle at 75% 15%, rgba(55,91,140,.24), transparent 28%),
    radial-gradient(circle at 12% 52%, rgba(214,179,106,.08), transparent 24%),
    linear-gradient(145deg, var(--home-bg) 0%, var(--home-bg-2) 48%, #07101c 100%);
  font-family: "DM Sans", "Source Sans 3", sans-serif;
}

.home-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.home-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.home-glow-one {
  width: 480px;
  height: 480px;
  top: 180px;
  right: -230px;
  background: radial-gradient(circle, rgba(214,179,106,.11), transparent 68%);
}
.home-glow-two {
  width: 420px;
  height: 420px;
  top: 850px;
  left: -260px;
  background: radial-gradient(circle, rgba(65,111,166,.14), transparent 68%);
}

.home-nav,
.home-hero,
.home-partners,
.home-section,
.home-operation,
.home-cta,
.home-foot {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.home-nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.home-brand .brand-mark {
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d9b96f, #ad8440);
  color: #101a29;
  box-shadow: 0 10px 28px rgba(214,179,106,.18);
  position: relative;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
}
.home-brand .brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(16,26,41,.28);
  border-radius: 11px;
}
.home-brand .brand-mark span { position: relative; z-index: 1; }

.home-brand-copy strong {
  display: block;
  font-size: 19px;
  letter-spacing: -.03em;
  line-height: 1;
}
.home-brand-copy strong span { color: var(--home-gold); }
.home-brand-copy small {
  display: block;
  margin-top: 5px;
  color: #8190a4;
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.home-nav-links a:not(.btn) {
  color: #aeb9c9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease;
}
.home-nav-links a:not(.btn):hover { color: #fff; }

.home-nav .btn,
.home-cta .btn,
.home-operation .btn,
.home-actions .btn {
  box-shadow: 0 12px 30px rgba(214,179,106,.13);
}
.home-nav .btn {
  padding: 10px 17px;
  font-size: 12px;
  border-radius: 10px;
}
.btn-gold {
  background: linear-gradient(135deg, #e2c27c, #c49a51);
  color: #101826;
  font-weight: 700;
}
.btn-gold:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.home-hero {
  display: grid;
  grid-template-columns: .91fr 1.09fr;
  gap: 58px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 88px;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--home-gold);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-gold);
  box-shadow: 0 0 0 5px rgba(214,179,106,.08);
}

.home-hero h1 {
  margin: 20px 0 21px;
  max-width: 650px;
  color: #f7f9fc;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(43px, 5.3vw, 68px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.06;
}
.home-hero h1 em,
.home-operation h2 em,
.home-section h2 em,
.home-cta h2 em {
  color: var(--home-gold-light);
  font-style: normal;
}
.home-lead {
  max-width: 555px;
  margin: 0;
  color: #aeb9c9;
  font-size: 16px;
  line-height: 1.75;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 31px;
}
.btn-home-lg {
  padding: 14px 21px;
  border-radius: 11px;
  font-size: 13px;
}
.btn span { font-size: 16px; }
.home-text-link {
  color: #d4dbe5;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.home-text-link span {
  margin-left: 7px;
  color: var(--home-gold);
  font-size: 15px;
}

.home-trust {
  display: flex;
  gap: 26px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.home-trust > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-trust strong {
  color: var(--home-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
}
.home-trust span {
  color: #8491a3;
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Dashboard visual */
.home-dashboard { position: relative; min-width: 0; }
.dashboard-window {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow:
    0 40px 90px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
  transform: perspective(1300px) rotateY(-3deg) rotateX(1deg);
}
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mini-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(214,179,106,.16);
  color: var(--home-gold-light);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}
.dashboard-brand b,
.dashboard-brand small { display: block; }
.dashboard-brand b { font-size: 11px; color: #edf1f7; }
.dashboard-brand small { margin-top: 2px; font-size: 8px; color: #718096; }
.dashboard-status {
  color: #8ca79b;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dashboard-status i {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #69a98c;
  box-shadow: 0 0 9px rgba(105,169,140,.7);
}

.dashboard-welcome {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 24px 2px 17px;
}
.dashboard-welcome span {
  color: #68778b;
  font-size: 7px;
  letter-spacing: .13em;
  font-weight: 700;
}
.dashboard-welcome h2 {
  margin: 6px 0 0;
  color: #edf1f6;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}
.dashboard-date { color: #728095; font-size: 8px; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.dash-card {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(5,12,23,.30);
}
.dash-icon {
  width: 25px; height: 25px;
  display: grid; place-items: center;
  margin-bottom: 10px;
  border-radius: 7px;
  background: rgba(109,143,180,.13);
  color: #92b2d7;
  font-size: 12px;
}
.dash-icon.gold { color: var(--home-gold-light); background: rgba(214,179,106,.11); }
.dash-icon.green { color: #84bea4; background: rgba(105,169,140,.10); }
.dash-card small { display: block; color: #738196; font-size: 8px; }
.dash-card strong {
  display: block;
  margin-top: 3px;
  color: #f0f3f7;
  font-size: 19px;
  letter-spacing: -.03em;
}
.dash-card em {
  display: block;
  margin-top: 4px;
  color: #72927f;
  font-size: 7px;
  font-style: normal;
}

.dashboard-bottom {
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  gap: 9px;
  margin-top: 9px;
}
.dash-panel {
  padding: 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(5,12,23,.28);
}
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dash-panel-head b { color: #dbe1e9; font-size: 9px; }
.dash-panel-head span { color: var(--home-gold); font-size: 7px; }
.activity-row {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.055);
}
.activity-icon {
  width: 25px; height: 25px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(214,179,106,.10);
  color: var(--home-gold);
  font-size: 9px;
  font-style: normal;
}
.activity-icon.contract { background: rgba(105,169,140,.10); color: #7bb394; }
.activity-icon.route { background: rgba(109,143,180,.10); color: #83a6cc; }
.activity-row b,
.activity-row small { display: block; }
.activity-row b { color: #d6dce5; font-size: 8px; }
.activity-row small { color: #68778b; font-size: 7px; margin-top: 2px; }
.activity-row > strong { color: #c9d2de; font-size: 8px; }
.dash-side { text-align: center; }
.progress-ring {
  width: 84px; height: 84px;
  margin: 10px auto 7px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--home-gold) 0 92%, rgba(255,255,255,.08) 92% 100%);
  position: relative;
}
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #101c2c;
}
.progress-ring span { position: relative; color: #f3f5f8; font-size: 18px; font-weight: 700; }
.progress-ring small { font-size: 9px; color: var(--home-gold); }
.dash-side p { margin: 0; color: #cfd7e1; font-size: 8px; }
.dash-side > small { display: block; margin-top: 5px; color: #657388; font-size: 7px; line-height: 1.4; }

.dashboard-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(15,28,45,.91);
  box-shadow: 0 18px 38px rgba(0,0,0,.26);
  backdrop-filter: blur(12px);
}
.dashboard-float span {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(214,179,106,.12);
  color: var(--home-gold);
  font-size: 11px;
}
.dashboard-float b,
.dashboard-float small { display: block; }
.dashboard-float b { color: #e7ebf1; font-size: 8px; }
.dashboard-float small { margin-top: 2px; color: #718095; font-size: 7px; }
.float-one { left: -29px; bottom: 76px; }
.float-two { right: -26px; top: 114px; }
.float-two span { color: #82a9d3; background: rgba(109,143,180,.12); }

/* Divider strip */
.home-partners {
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.home-partners > span {
  color: #68778a;
  font-size: 8px;
  letter-spacing: .15em;
  font-weight: 700;
}
.home-partners > div {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #8f9aaa;
  font-size: 10px;
}
.home-partners i { color: var(--home-gold); font-style: normal; opacity: .65; }

/* Features */
.home-section { padding: 112px 0 118px; }
.section-heading {
  display: grid;
  grid-template-columns: 1fr .65fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 46px;
}
.home-section h2,
.home-operation h2,
.home-cta h2 {
  margin: 18px 0 0;
  color: #f5f7fb;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(35px, 4vw, 50px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.section-heading > p {
  margin: 0 0 3px;
  color: #8f9bac;
  font-size: 14px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.feature-card {
  position: relative;
  min-height: 270px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214,179,106,.27);
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.03));
}
.feature-main {
  grid-column: span 1;
  background:
    radial-gradient(circle at 85% 10%, rgba(214,179,106,.11), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
}
.feature-number {
  position: absolute;
  top: 21px;
  right: 22px;
  color: #4c5a6d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
}
.feature-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 35px;
  border: 1px solid rgba(214,179,106,.18);
  border-radius: 12px;
  background: rgba(214,179,106,.08);
  color: var(--home-gold-light);
  font-size: 17px;
}
.feature-card h3 {
  margin: 0 0 9px;
  color: #eef2f6;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}
.feature-card p {
  max-width: 330px;
  margin: 0;
  color: #8996a8;
  font-size: 12px;
  line-height: 1.7;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}
.feature-tags span {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 99px;
  color: #7f8da0;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.feature-line {
  width: 30px;
  height: 1px;
  margin-top: 20px;
  background: var(--home-gold);
  opacity: .65;
}
.feature-link {
  display: block;
  margin-top: 10px;
  color: #9ba7b7;
  font-size: 8px;
}

/* Operation */
.home-operation {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 92px;
  align-items: center;
  padding: 92px 0 122px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.operation-visual {
  min-height: 470px;
  display: grid;
  place-items: center;
  position: relative;
}
.phone-card {
  position: relative;
  z-index: 2;
  width: min(325px, 82%);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 25px;
  background: linear-gradient(150deg, #15273e, #0c1829);
  box-shadow: 0 35px 70px rgba(0,0,0,.35);
  transform: rotate(-4deg);
}
.phone-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #e8edf3;
  font-size: 10px;
  font-weight: 700;
}
.phone-head i { color: #67a987; font-size: 8px; font-style: normal; }
.route-label {
  margin-top: 25px;
  color: var(--home-gold);
  font-size: 7px;
  letter-spacing: .16em;
  font-weight: 700;
}
.phone-card h3 {
  margin: 7px 0 14px;
  color: #f3f5f8;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
}
.route-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
}
.route-progress span {
  display: block;
  width: 66%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #bd9149, #e4c67f);
}
.route-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 8px 0 20px;
}
.route-count b { color: #f0f3f7; font-size: 16px; }
.route-count span { color: #718096; font-size: 8px; }
.route-client {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.route-client > span {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(214,179,106,.10);
  color: var(--home-gold-light);
  font-size: 9px;
  font-weight: 700;
}
.route-client b,
.route-client small { display: block; }
.route-client b { color: #dce2ea; font-size: 9px; }
.route-client small { margin-top: 3px; color: #68778b; font-size: 7px; }
.route-client em { color: #74ac91; font-size: 12px; font-style: normal; }
.route-client.pending > span { color: #90afd1; background: rgba(109,143,180,.11); }
.route-client.pending em { color: #91a9c8; }

.operation-orbit {
  position: absolute;
  border: 1px solid rgba(214,179,106,.09);
  border-radius: 50%;
}
.orbit-a { width: 390px; height: 390px; }
.orbit-b { width: 285px; height: 285px; border-color: rgba(107,146,188,.08); }

.operation-copy > p {
  max-width: 530px;
  margin: 24px 0 29px;
  color: #8f9bac;
  font-size: 14px;
  line-height: 1.8;
}
.operation-copy ul {
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 0 0 31px;
  list-style: none;
}
.operation-copy li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.operation-copy li > span {
  width: 25px; height: 25px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(214,179,106,.10);
  color: var(--home-gold);
  font-size: 10px;
}
.operation-copy li b,
.operation-copy li small { display: block; }
.operation-copy li b { color: #dce2e9; font-size: 11px; }
.operation-copy li small { margin-top: 3px; color: #728095; font-size: 9px; }

/* CTA */
.home-cta {
  margin-bottom: 72px;
  padding: 78px 30px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(214,179,106,.17);
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% 0%, rgba(214,179,106,.12), transparent 43%),
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
}
.cta-glow {
  position: absolute;
  width: 360px; height: 180px;
  top: -130px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(214,179,106,.13);
  filter: blur(50px);
}
.home-cta h2 { position: relative; font-size: clamp(37px, 4vw, 51px); }
.home-cta > p {
  max-width: 560px;
  margin: 18px auto 28px;
  color: #8f9bac;
  font-size: 13px;
  line-height: 1.7;
}
.home-cta .btn { position: relative; }

.home-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 26px 0 38px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-brand .mini-mark { width: 32px; height: 32px; }
.footer-brand strong,
.footer-brand small { display: block; }
.footer-brand strong { color: #e9edf3; font-size: 11px; }
.footer-brand small { margin-top: 3px; color: #69778a; font-size: 7px; }
.home-foot p {
  margin: 0;
  color: #657286;
  font-size: 8px;
  text-align: center;
}
.home-foot > a {
  justify-self: end;
  color: #9da9b9;
  text-decoration: none;
  font-size: 9px;
  font-weight: 600;
}
.home-foot > a:hover { color: var(--home-gold); }

@media (max-width: 1020px) {
  .home-nav-links { gap: 16px; }
  .home-nav-links a:not(.btn) { display: none; }
  .home-hero { grid-template-columns: 1fr; gap: 55px; }
  .home-hero-copy { max-width: 720px; }
  .home-dashboard { max-width: 720px; width: 100%; margin: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .home-operation { gap: 45px; }
}

@media (max-width: 760px) {
  .home-nav,
  .home-hero,
  .home-partners,
  .home-section,
  .home-operation,
  .home-cta,
  .home-foot { width: min(100% - 30px, 1180px); }

  .home-nav { min-height: 72px; }
  .home-nav .btn { padding: 9px 13px; }
  .home-brand-copy small { display: none; }
  .home-hero { padding-top: 55px; padding-bottom: 62px; }
  .home-hero h1 { font-size: clamp(39px, 11vw, 55px); }
  .home-lead { font-size: 14px; }
  .home-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .home-trust { gap: 15px; flex-wrap: wrap; }
  .home-partners { display: block; }
  .home-partners > div { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .dashboard-window { padding: 13px; border-radius: 17px; transform: none; }
  .dashboard-welcome h2 { font-size: 17px; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .dash-card { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 10px; }
  .dash-icon { margin: 0; }
  .dash-card small { grid-column: 2; }
  .dash-card strong { grid-column: 3; grid-row: 1 / span 2; }
  .dash-card em { grid-column: 2; }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dashboard-float { display: none; }
  .home-section { padding: 80px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .home-operation { grid-template-columns: 1fr; padding: 72px 0 85px; }
  .operation-visual { min-height: 400px; order: 2; }
  .operation-copy { order: 1; }
  .phone-card { width: min(330px, 88%); }
  .orbit-a { width: 340px; height: 340px; }
  .orbit-b { width: 250px; height: 250px; }
  .home-cta { padding: 58px 20px; margin-bottom: 55px; }
  .home-foot { grid-template-columns: 1fr; gap: 16px; }
  .home-foot p { text-align: left; }
  .home-foot > a { justify-self: start; }
}

@media (max-width: 430px) {
  .home-brand-copy strong { font-size: 17px; }
  .home-nav .btn { font-size: 10px; }
  .home-trust { display: grid; grid-template-columns: 1fr 1fr; }
  .home-trust > div:last-child { grid-column: span 2; }
  .dashboard-welcome { display: block; }
  .dashboard-date { margin-top: 7px; }
  .home-cta h2 { font-size: 34px; }
}
