/* ═══════════════════════════════════════
   NorthStar Portal del Cliente — Estilos
   Cargado solo en: page-portal.php
═══════════════════════════════════════ */

:root {
  --cream: #f4f3ef;
  --navy: #263553;
  --navy-dark: #1e2845;
  --navy-deeper: #151e35;
  --gold: #b09453;
  --gold2: #c4a860;
  --white: #FFFFFF;
  --text-on-navy: rgba(255,255,255,.85);
  --text-muted: rgba(255,255,255,.5);
  --field-bg: rgba(255,255,255,.07);
  --field-border: rgba(255,255,255,.18);
  --red: #C0392B;
  --green: #27AE60;
}

/* ─── PAGE HERO ─────────────────────────── */
.nsm-portal-hero { font-family: 'Inter', sans-serif;
  background: var(--navy);
  padding: 220px 56px 72px;
  position: relative;
  overflow: hidden;
}
.nsm-portal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(176,148,83,.06) 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero-rule { width: 40px; height: 2px; background: var(--gold); }
.hero-tag { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.nsm-portal-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(36px,5.5vw,62px); font-weight: 900; color: var(--white); line-height: 1.05; margin-bottom: 16px; }
.nsm-portal-hero h1 em { font-style: italic; color: var(--gold); }
.nsm-portal-hero p { font-size: 17px; color: var(--text-muted); line-height: 1.75; max-width: 520px; margin-bottom: 28px; font-weight: 300; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hbadge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(176,148,83,.3); border-radius: 2px; padding: 6px 14px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: .05em; text-transform: uppercase; }
.hbadge::before { content: ''; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* ─── PORTAL BODY ─────────────────────── */
.nsm-portal-body { background: var(--navy); padding: 48px 56px 100px; font-family: 'Inter', sans-serif; }
.portal-grid { display: grid; grid-template-columns: 1fr 290px; gap: 28px; max-width: 1100px; margin: 0 auto; align-items: start; }

/* ─── FORM CARD ───────────────────────── */
.form-card { background: var(--navy-dark); border: 1px solid rgba(176,148,83,.12); border-radius: 4px; overflow: hidden; box-shadow: 0 4px 32px rgba(38,53,83,.15); }
.steps-bar { display: flex; background: var(--navy-deeper); border-bottom: 1px solid rgba(255,255,255,.07); }
.step-tab { flex: 1; padding: 20px 14px; text-align: center; transition: all .25s; border-bottom: 3px solid transparent; user-select: none; cursor: pointer; }
.step-tab.active { background: rgba(176,148,83,.06); border-bottom-color: var(--gold); }
.step-tab.done { border-bottom-color: rgba(176,148,83,.3); }
.step-dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--text-muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 6px; transition: all .25s; }
.step-tab.active .step-dot { background: var(--gold); color: var(--white); }
.step-tab.done .step-dot { background: rgba(176,148,83,.2); color: var(--gold); }
.step-label { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; }
.step-tab.active .step-label { color: rgba(255,255,255,.8); }
.step-tab.done .step-label { color: var(--gold); }

/* ─── FORM BODY ────────────────────────── */
.form-body { padding: 44px; }
.section { display: none; }
.section.active { display: block; }
.sec-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.sec-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.65; font-weight: 300; }
.alert-row { display: flex; align-items: flex-start; gap: 10px; background: rgba(176,148,83,.08); border: 1px solid rgba(176,148,83,.22); border-radius: 4px; padding: 13px 16px; margin-bottom: 24px; font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; }
.divider-lbl { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; margin: 24px 0 16px; display: flex; align-items: center; gap: 12px; }
.divider-lbl::after { content: ''; flex: 1; height: 1px; background: rgba(176,148,83,.15); }

/* ─── FIELDS ───────────────────────────── */
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.fg.full { grid-template-columns: 1fr; }
.fg.three { grid-template-columns: 1fr 1fr 1fr; }
.nsm-portal-body .field label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4); display: block; margin-bottom: 7px; letter-spacing: .08em; text-transform: uppercase; }
.nsm-portal-body .field label .opt { font-size: 10px; color: rgba(255,255,255,.2); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 4px; }
.nsm-portal-body .field label.gold-lbl { color: rgba(176,148,83,.8) !important; }
.nsm-portal-body input,
.nsm-portal-body select,
.nsm-portal-body textarea { width: 100%; background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 4px; padding: 13px 16px; font-size: 15px; color: var(--white); font-family: 'Inter', sans-serif; transition: all .2s; appearance: none; box-shadow: none; }
.nsm-portal-body input::placeholder { color: rgba(255,255,255,.2); }
.nsm-portal-body input:focus,
.nsm-portal-body select:focus,
.nsm-portal-body textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(176,148,83,.1); }
.nsm-portal-body select option { background: var(--navy-dark); color: var(--white); }
.nsm-portal-body textarea { resize: vertical; min-height: 90px; line-height: 1.6; font-size: 14px; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.4; }
.field-ssn input { background: rgba(192,57,43,.08); border-color: rgba(192,57,43,.3); }
.field-ssn input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.field-readonly { background: rgba(255,255,255,.03) !important; color: rgba(255,255,255,.25) !important; cursor: default; }

/* ─── SERVICE CARDS ──────────────────── */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 18px; }
.svc-card { background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 4px; padding: 14px 16px; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 10px; user-select: none; }
.svc-card:hover { border-color: rgba(176,148,83,.4); background: rgba(176,148,83,.05); }
.svc-card.on { border-color: var(--gold); background: rgba(176,148,83,.1); }
.svc-card input[type=checkbox] { accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.svc-lbl { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.7); line-height: 1.3; }
.svc-card.on .svc-lbl { color: var(--white); font-weight: 500; }
.svc-err-msg { font-size: 12px; color: #ff8a7a; margin-bottom: 12px; display: none; }
.svc-err-msg.show { display: block; }

/* ─── FILE UPLOAD ─────────────────────── */
.upload-zone { border: 2px dashed rgba(255,255,255,.15); border-radius: 4px; padding: 32px; text-align: center; cursor: pointer; transition: all .25s; position: relative; overflow: hidden; margin-bottom: 10px; }
.upload-zone:hover { border-color: rgba(176,148,83,.5); background: rgba(176,148,83,.04); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { width: 40px; height: 40px; border: 2px solid rgba(176,148,83,.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.upload-icon::before { content: '\2191'; font-size: 18px; color: var(--gold); font-weight: 700; line-height: 1; }
.upload-title { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 3px; }
.upload-hint { font-size: 13px; color: var(--text-muted); }
.file-list { display: flex; flex-direction: column; gap: 5px; margin-top: 9px; }
.file-item { display: flex; align-items: center; gap: 9px; background: var(--field-bg); border: 1px solid var(--field-border); padding: 9px 13px; border-radius: 4px; font-size: 13px; color: rgba(255,255,255,.7); }

/* ─── REFERRAL ────────────────────────── */
.ref-box { background: rgba(176,148,83,.06); border: 1px solid rgba(176,148,83,.25); border-radius: 4px; padding: 20px; margin-top: 14px; display: none; }
.ref-box.show { display: block; }
.ref-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--gold); color: var(--white); border-radius: 2px; padding: 5px 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }

/* ─── REVIEW ───────────────────────────── */
.review-box { background: var(--navy-deeper); border: 1px solid rgba(255,255,255,.07); border-radius: 4px; padding: 22px; margin-bottom: 20px; }
.review-lbl { font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.review-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.review-row:last-child { border-bottom: none; }
.review-row strong { min-width: 130px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.3); letter-spacing: .05em; text-transform: uppercase; padding-top: 2px; flex-shrink: 0; }
.review-row span { color: rgba(255,255,255,.75); line-height: 1.5; }
.privacy-txt { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.privacy-txt a { color: var(--gold); text-decoration: none; }

/* ─── BUTTONS ──────────────────────────── */
.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07); }
.btn-back { background: transparent; border: 1px solid rgba(255,255,255,.2); color: var(--text-muted); padding: 12px 24px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; font-family: 'Inter', sans-serif; transition: all .2s; }
.btn-back:hover { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-next { background: var(--gold); color: var(--white); padding: 12px 28px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; border: none; font-family: 'Inter', sans-serif; transition: all .2s; display: flex; align-items: center; gap: 7px; }
.btn-next:hover { background: var(--gold2); }
.btn-submit { background: var(--gold); color: var(--white); padding: 14px 36px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; border: none; font-family: 'Inter', sans-serif; transition: all .2s; display: flex; align-items: center; gap: 7px; }
.btn-submit:hover { background: var(--gold2); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ─── SUCCESS ──────────────────────────── */
.success-panel { text-align: center; padding: 56px 32px; display: none; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-icon::before { content: '\2713'; font-size: 28px; color: var(--white); font-weight: 700; line-height: 1; }
.success-title { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.success-desc { font-size: 15px; color: var(--text-muted); max-width: 400px; margin: 0 auto 24px; line-height: 1.75; font-weight: 300; }
.case-badge { font-family: 'DM Mono', monospace; font-size: 22px; font-weight: 500; color: var(--gold); background: rgba(176,148,83,.08); border: 1px solid rgba(176,148,83,.3); padding: 13px 30px; border-radius: 4px; display: inline-block; margin-bottom: 7px; letter-spacing: .08em; }
.case-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.tracker-wrap { max-width: 310px; margin: 0 auto 26px; background: var(--navy-deeper); border: 1px solid rgba(255,255,255,.07); border-radius: 4px; padding: 22px; }
.tracker-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.t-step { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-bottom: 16px; }
.t-step:last-child { padding-bottom: 0; }
.t-step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: rgba(255,255,255,.07); }
.t-step:last-child::before { display: none; }
.t-dot { width: 27px; height: 27px; border-radius: 50%; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; z-index: 1; color: var(--text-muted); }
.t-dot.done { background: var(--green); color: var(--white); }
.t-name { font-size: 13px; font-weight: 600; color: var(--white); margin-top: 4px; }
.t-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.success-contact { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 4px; padding: 18px; font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.success-contact strong { color: var(--white); display: block; margin-bottom: 7px; font-size: 14px; }
.success-contact a { color: var(--gold); text-decoration: none; font-weight: 500; }
.btn-gold { background: var(--gold); color: var(--white); padding: 12px 26px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: all .2s; border: none; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-gold:hover { background: var(--gold2); }

/* ─── SIDEBAR ──────────────────────────── */
.nsm-portal-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.scard { background: var(--navy-dark); border: 1px solid rgba(176,148,83,.12); border-radius: 4px; padding: 24px; box-shadow: 0 2px 16px rgba(38,53,83,.12); }
.scard-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.si { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; }
.si:last-child { margin-bottom: 0; }
.si-label { font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 3px; }
.si-val { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.4; }
.si-val a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
.si-val a:hover { color: var(--gold); }
.btn-wa { font-family: 'Inter', sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: var(--white); border-radius: 4px; padding: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; transition: all .2s; margin-top: 6px; }
.btn-wa:hover { background: #1ebe5b; color: var(--white); }
.docs-list { display: flex; flex-direction: column; gap: 8px; }
.docs-list div { font-size: 13px; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 10px; }
.docs-list div::before { content: '\2014'; color: var(--gold); flex-shrink: 0; font-weight: 700; }
.ref-scard{background:linear-gradient(160deg,rgba(176,148,83,.15) 0%,rgba(176,148,83,.04) 100%);border-color:rgba(176,148,83,.4);border-top:3px solid var(--gold);}
.ref-eyebrow{font-size:10px;font-weight:700;color:var(--gold);letter-spacing:.12em;text-transform:uppercase;margin-bottom:16px;}
.ref-amount-wrap{display:flex;align-items:baseline;gap:8px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid rgba(176,148,83,.2);}
.ref-amount{font-family: 'Playfair Display', serif;font-size:52px;font-weight:700;color:var(--gold);line-height:1;}
.ref-per{font-size:12px;color:rgba(255,255,255,.4);font-weight:300;}
.ref-text{font-size:13px;color:rgba(255,255,255,.6);line-height:1.7;margin-bottom:18px;font-weight:300;}
.ref-text strong{color:var(--gold);font-weight:600;}
.ref-cta-link{display:block;width:100%;background:transparent;border:1px solid rgba(176,148,83,.4);color:var(--gold);padding:10px 16px;border-radius:4px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;cursor:pointer;font-family: 'Inter', sans-serif;transition:all .2s;text-align:center;}
.ref-cta-link:hover{background:rgba(176,148,83,.1);border-color:var(--gold);}

/* ─── CASE TRACKING SECTION ─────────── */
.nsm-case-tracking { background: var(--navy-dark); border-top: 1px solid rgba(176,148,83,.15); padding: 64px 56px; }
.nsm-case-tracking h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,42px); font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.1; }
.nsm-case-tracking h2 em { font-style: italic; color: var(--gold); }

/* --- REFERRAL SECTION --- */
.nsm-referral-section { font-family: 'Inter', sans-serif; background: var(--gold); padding: 0 56px; }
.ref-sec-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 40px; padding: 28px 0; flex-wrap: wrap; }
.ref-sec-left { flex-shrink: 0; }
.ref-sec-eyebrow { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.75); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.ref-sec-amount { font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 700; color: var(--white); line-height: 1; }
.ref-sec-amount span { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 300; color: rgba(255,255,255,.65); margin-left: 6px; vertical-align: middle; }
.ref-sec-divider { width: 1px; height: 60px; background: rgba(255,255,255,.35); flex-shrink: 0; }
.ref-sec-body { flex: 1; min-width: 200px; }
.ref-sec-body p { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.7; margin: 0; font-weight: 300; }
.ref-sec-body strong { color: var(--white); font-weight: 700; }
.ref-sec-cta { background: var(--white); color: var(--navy-dark); padding: 12px 26px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; font-family: 'Inter', sans-serif; transition: all .2s; white-space: nowrap; flex-shrink: 0; border: none; }
.ref-sec-cta:hover { background: rgba(255,255,255,.88); }
@media(max-width:768px){ .nsm-referral-section { padding: 0 20px; } .ref-sec-divider { display: none; } .ref-sec-inner { gap: 20px; padding: 24px 0; } .ref-sec-amount { font-size: 40px; } }

/* --- REFERRAL BANNER --- */
.nsm-ref-banner{display:flex;align-items:center;gap:28px;background:var(--navy-dark);border:1px solid rgba(176,148,83,.2);border-left:4px solid var(--gold);padding:24px 28px;margin-bottom:24px;flex-wrap:wrap;}
.rb-amount{font-family: 'Playfair Display', serif;font-size:52px;font-weight:700;color:var(--gold);line-height:1;flex-shrink:0;min-width:90px;}
.rb-body{flex:1;min-width:200px;}
.rb-label{font-size:10px;font-weight:700;color:rgba(176,148,83,.7);letter-spacing:.12em;text-transform:uppercase;margin-bottom:5px;}
.rb-title{font-size:17px;font-weight:600;color:var(--white);margin-bottom:4px;line-height:1.3;}
.rb-desc{font-size:13px;color:var(--text-muted);line-height:1.6;margin:0;font-weight:300;}
.rb-desc strong{color:var(--gold);font-weight:600;}
.rb-cta{background:var(--gold);color:var(--white);padding:13px 24px;border-radius:4px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap;flex-shrink:0;border:none;cursor:pointer;font-family: 'Inter', sans-serif;transition:background .2s;}
.rb-cta:hover{background:var(--gold2);}

/* ─── RESPONSIVE ─────────────────────── */
@media (max-width: 960px) {
  .portal-grid { grid-template-columns: 1fr; }
  .nsm-portal-sidebar { position: static; }
}
@media (max-width: 600px) {
  .nsm-ref-banner{flex-direction:column;align-items:flex-start;gap:16px;}
  .rb-amount{font-size:40px;}
  .rb-cta{width:100%;}
}
@media (max-width: 768px) {
  .nsm-portal-hero { font-family: 'Inter', sans-serif; padding: 120px 20px 48px; }
  .nsm-portal-body { padding: 36px 20px 80px; }
  .form-body { padding: 26px 18px; }
  .fg { grid-template-columns: 1fr; }
  .fg.three { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .nsm-case-tracking { padding: 40px 20px; }
}