:root {
      --wtb-primary: #0834E2;
      --wtb-primary-dark: #062ab7;
      --wtb-text: #000000;
      --wtb-muted: #5f6672;
      --wtb-line: #e4e8f0;
      --wtb-bg: #f4f4f4;
      --wtb-card: #ffffff;
      --wtb-soft: #eef2ff;
      --wtb-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
      --wtb-radius: 18px;
    }

    * { box-sizing: border-box; }

    html {
      scroll-padding-top: 82px;
    }

    [id] {
      scroll-margin-top: 82px;
    }

    body {
      margin: 0;
      font-family: "Statoshi", Calibri, "Segoe UI", sans-serif;
      color: var(--wtb-text);
      background: var(--wtb-bg);
      padding-top: 0;
    }

    body.auth-locked {
      overflow: hidden;
    }

    body.auth-locked main,
    body.auth-locked nav,
    body.auth-locked footer {
      filter: blur(8px);
      pointer-events: none;
      user-select: none;
    }

    a {
      color: var(--wtb-primary);
      text-decoration: none;
    }

    a:hover {
      color: var(--wtb-primary);
      text-decoration: none;
    }

    .container-fluid {
      --bs-gutter-x: 0;
    }

    #wtb-navegation-bar {
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid #e6e6e6;
    }

    #wtb-navegation-bar .brand-logo img {
      width: min(190px, 46vw);
      height: auto;
      display: block;
    }

    .page-wrap {
      padding-top: 5.8rem;
      padding-bottom: 2.5rem;
    }

    .content-shell {
      max-width: 1140px;
      margin: 0 auto;
      padding-left: 2rem;
      padding-right: 2rem;
    }

    .section {
      width: 100%;
      position: relative;
      padding-top: 24px;
      padding-bottom: 0;
    }

    .panel-card,
    .doc-card,
    .step-card,
    .list-row {
      background: var(--wtb-card);
      border: 1px solid var(--wtb-line);
      border-radius: 28px;
      box-shadow: var(--wtb-shadow);
    }

    .summary-card {
      padding: 0;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .summary-title {
      margin: 0;
      font-size: 1.2rem;
      font-weight: 600;
    }

    .summary-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: .9rem;
    }

    .mini-stat {
      padding: 1rem 1.05rem;
      border-radius: 14px;
      background: #fbfbfb;
      border: 1px solid #ececec;
    }

    .mini-stat .label {
      display: block;
      color: var(--wtb-muted);
      font-size: .82rem;
      font-weight: 500;
      margin-bottom: .35rem;
      text-transform: uppercase;
      letter-spacing: .05em;
    }

    .mini-stat strong {
      font-size: 1.05rem;
      font-weight: 700;
      line-height: 1.2;
    }

    .section-space {
      margin-top: 0;
    }

    .panel-card {
      padding: 1.9rem 2rem;
    }

    .page-header-card {
      padding: 2.25rem 2.35rem;
    }

    .page-title {
      margin: 0;
      font-size: 3.15rem;
      line-height: 3.4rem;
      font-weight: 600;
      color: #000000;
    }

    .page-subtitle {
      margin: 0;
      color: var(--wtb-muted);
      max-width: 46rem;
      line-height: 1.6rem;
      font-size: .97rem;
      font-weight: 300;
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
    }

    .section-heading {
      text-align: left;
      font-family: "Statoshi", Calibri, sans-serif;
      font-weight: 400;
      font-size: 2.6rem;
      line-height: 2.9rem;
      color: #000000;
      margin-bottom: 18px;
      margin-top: 0;
    }

    .section-desc,
    .section-desc p {
      color: #3B3B3B;
      font-family: "Statoshi", Calibri, sans-serif;
      font-weight: 300;
      margin-bottom: 14px;
      font-size: .97rem;
      line-height: 1.6rem;
    }

    .panel-title {
      margin: 0 0 .5rem;
      font-size: 1.8rem;
      line-height: 2rem;
      font-weight: 400;
      letter-spacing: 0;
    }

    .panel-copy {
      margin: 0;
      color: var(--wtb-muted);
      line-height: 1.6rem;
      font-size: .97rem;
      font-weight: 300;
    }

    .btn-wtb {
      --bs-btn-bg: var(--wtb-primary);
      --bs-btn-border-color: var(--wtb-primary);
      --bs-btn-hover-bg: var(--wtb-primary-dark);
      --bs-btn-hover-border-color: var(--wtb-primary-dark);
      --bs-btn-color: #fff;
      --bs-btn-hover-color: #fff;
      border-radius: 20px;
      font-weight: 600;
      padding: 9px 22px;
      box-shadow: none;
      font-size: .87rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .45rem;
      white-space: nowrap;
    }

    .btn-soft {
      border-radius: 20px;
      font-weight: 500;
      padding: 9px 22px;
      background: #ffffff;
      border: 1px solid #e4e4e4;
      color: var(--wtb-text);
      box-shadow: none;
      font-size: .87rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .45rem;
      white-space: nowrap;
    }

    .btn-outline-wtb {
      border-radius: 20px;
      font-weight: 600;
      padding: 9px 22px;
      background: #ffffff;
      border: 1.5px solid #1f2937;
      color: var(--wtb-text);
      box-shadow: none;
      font-size: .87rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .45rem;
      white-space: nowrap;
    }

    .btn-outline-wtb:hover {
      background: #f8fafc;
      border-color: #111827;
      color: var(--wtb-text);
    }

    .btn-wtb i,
    .btn-soft i,
    .btn-light i,
    .btn-primary i,
    .btn-outline-light i {
      margin-right: 0 !important;
      flex: 0 0 auto;
    }

    .toolbar .btn,
    .toolbar a.btn {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
    }

    .search-row .form-control,
    .search-row .form-select {
      min-height: 3.2rem;
      border-radius: 40px;
      border-color: #e4e4e4;
      box-shadow: none;
      padding-left: 1rem;
      padding-right: 1rem;
      color: #272727;
      background: #fff;
      font-size: .85rem;
      font-family: "Statoshi", Calibri, sans-serif;
    }

    .search-row label {
      font-size: .88rem !important;
      font-weight: 500 !important;
      color: #000000 !important;
      margin-bottom: .6rem;
    }

    .search-row .form-control:focus,
    .search-row .form-select:focus {
      border-color: var(--wtb-primary);
      box-shadow: none;
    }

    .search-controls {
      margin-bottom: 1.15rem;
    }

    .search-actions {
      display: flex;
      align-items: flex-end;
    }

    .search-actions .btn {
      min-height: 3.2rem;
      width: 100%;
    }

    .summary-financial {
      margin-top: 1.5rem;
    }

    .documents-title-desktop {
      display: block;
    }

    .documents-title-mobile {
      display: none;
    }

    .nav-documents-mobile {
      display: none;
    }

    .doc-card {
      padding: 0;
      height: 100%;
      box-shadow: none;
      border: none;
      background: transparent;
    }

    .list-row {
      padding: 1.55rem 1.6rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      transition: background-color .18s ease, border-color .18s ease;
      border-radius: 26px;
    }

    .list-row:hover {
      background: #fbfcff;
      border-color: #d4def0;
    }

    .doc-no {
      width: 2.7rem;
      height: 2.7rem;
      flex: 0 0 auto;
      border-radius: 14px;
      display: grid;
      place-items: center;
      background: #f2f5ff;
      color: var(--wtb-primary-dark);
      font-weight: 700;
      font-size: .92rem;
    }

    .doc-title {
      margin: 0;
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.3;
    }

    .doc-tag {
      display: inline-flex;
      align-items: center;
      gap: .35rem;
      border-radius: 999px;
      background: #f8faff;
      color: #5f6672;
      border: 1px solid #ececec;
      padding: .38rem .7rem;
      font-size: .76rem;
      font-weight: 500;
      margin-top: .55rem;
    }

    .doc-sub {
      color: var(--wtb-muted);
      line-height: 1.65;
      font-size: .9rem;
      margin: .75rem 0 .45rem;
      min-height: 0;
      font-weight: 300;
      max-width: 44rem;
    }

    .doc-actions {
      display: flex;
      align-items: center;
      gap: .65rem;
    }

    .doc-meta-line {
      display: flex;
      flex-wrap: wrap;
      gap: .4rem;
      color: #64748b;
      font-size: .84rem;
      margin-bottom: .2rem;
    }

    .doc-links {
      display: flex;
      flex-wrap: wrap;
      gap: .35rem;
      font-size: .9rem;
    }

    .doc-links a {
      color: var(--wtb-primary);
      text-decoration: none;
      font-weight: 600;
    }

    .doc-links a:hover {
      text-decoration: underline;
    }

    .doc-links-separator {
      color: #6b7280;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      border-radius: 999px;
      background: #f8faff;
      border: 1px solid #e5ebf5;
      color: #6a7488;
      padding: .38rem .7rem;
      font-size: .75rem;
      font-weight: 500;
      white-space: nowrap;
    }

    .doc-right {
      display: flex;
      align-items: center;
      gap: .85rem;
      flex-wrap: nowrap;
      justify-content: flex-end;
      min-width: 360px;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #b7c0d3;
      display: inline-block;
    }

    .status-ok { background: #18b66f; }
    .status-warn { background: #f0a500; }

    .step-card {
      padding: 1.3rem;
      height: 100%;
    }

    .step-badge {
      width: 2.4rem;
      height: 2.4rem;
      border-radius: 12px;
      display: inline-grid;
      place-items: center;
      background: var(--wtb-soft);
      color: var(--wtb-primary-dark);
      font-weight: 700;
      margin-bottom: .9rem;
    }

    .contact-list {
      display: flex;
      flex-wrap: wrap;
      gap: .65rem;
      margin-top: 1rem;
    }

    .contact-chip {
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      padding: .55rem .85rem;
      border-radius: 999px;
      background: #f8faff;
      border: 1px solid #ececec;
      color: #4d5b75;
      font-size: .88rem;
    }

    .contact-chip a {
      color: inherit;
      text-decoration: none;
    }

    .contact-chip a:hover {
      text-decoration: underline;
    }

    .panel-stack {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    footer {
      border-top: 1px solid var(--wtb-line);
      background: rgba(255, 255, 255, 0.95);
    }

    .footer-text {
      font-family: "Statoshi", Calibri, sans-serif;
      color: #747E8C;
      font-size: .78rem;
      line-height: 1.3rem;
      margin: 0;
    }

    .footer-text strong {
      color: #000000;
      font-weight: 600;
    }

    .pdf-modal .modal-dialog {
      max-width: min(1120px, calc(100vw - 2rem));
    }

    .pdf-stage {
      background: #0b1020;
      border-radius: 18px;
      min-height: 70vh;
      display: grid;
      place-items: center;
      padding: 1rem;
      overflow: auto;
    }

    #pdfCanvas {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
    }

    .toolbar {
      background: #0f172a;
      color: #fff;
      border-radius: 16px;
      padding: .8rem;
    }

    .pdf-lightbox {
      position: fixed;
      inset: 0;
      background: rgba(4, 10, 28, 0.88);
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .pdf-lightbox.is-open {
      display: flex;
    }

    .pdf-lightbox-shell {
      width: min(1200px, 100%);
      height: min(90vh, 980px);
      background: #0b1020;
      border-radius: 22px;
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .pdf-lightbox-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1rem 1.1rem;
      background: rgba(15, 23, 42, 0.92);
      color: #fff;
      border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .pdf-lightbox-title {
      font-size: 1rem;
      font-weight: 600;
      margin: 0;
    }

    .pdf-lightbox-body {
      flex: 1;
      background: #09101e;
    }

    .pdf-lightbox-frame {
      width: 100%;
      height: 100%;
      border: 0;
      background: #09101e;
    }

    .access-lock {
      position: fixed;
      inset: 0;
      z-index: 3000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      background: rgba(4, 10, 28, 0.88);
      backdrop-filter: blur(12px);
    }

    .access-lock.is-open {
      display: flex;
    }

    .access-lock-card {
      width: min(460px, 100%);
      background: #ffffff;
      border-radius: 24px;
      box-shadow: 0 28px 80px rgba(0,0,0,.35);
      padding: 1.5rem;
    }

    .access-lock-title {
      font-size: 1.35rem;
      font-weight: 700;
      margin: 0 0 .35rem;
    }

    .access-lock-copy {
      color: var(--wtb-muted);
      margin: 0 0 1rem;
      line-height: 1.5;
    }

    @media (max-width: 991.98px) {
      .page-wrap { padding-top: 5.4rem; }
      .content-shell {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
      }

      .page-title {
        font-size: 2.45rem;
        line-height: 2.7rem;
      }

      .search-controls {
        display: none;
      }

      .documents-title-desktop {
        display: none;
      }

      .documents-title-mobile {
        display: block;
      }

      .nav-documents-desktop {
        display: none !important;
      }

      .nav-documents-mobile {
        display: inline-flex;
      }

      .doc-links,
      .doc-meta-line,
      .doc-right .status-pill {
        display: none;
      }
    }

    @media (max-width: 767.98px) {
      .summary-card,
      .panel-card,
      .doc-card,
      .step-card,
      .list-row {
        border-radius: 18px;
      }

      .summary-grid {
        grid-template-columns: 1fr;
      }

      .panel-card,
      .page-header-card {
        padding: 1.35rem;
      }

      .page-title {
        font-size: 2rem;
        line-height: 2.2rem;
      }

      .info-grid {
        grid-template-columns: 1fr;
      }

      .list-row {
        align-items: flex-start;
        flex-direction: column;
      }

      .doc-right {
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
        flex-wrap: wrap;
      }

      .doc-actions {
        flex-wrap: wrap;
      }

      .doc-sub {
        text-align: left;
        max-width: none;
      }

      .content-shell {
        padding-left: 1rem;
        padding-right: 1rem;
      }

      .search-controls {
        display: none;
      }

      .documents-title-desktop {
        display: none;
      }

      .documents-title-mobile {
        display: block;
      }

      .nav-documents-desktop {
        display: none !important;
      }

      .nav-documents-mobile {
        display: inline-flex;
      }

      .doc-links,
      .doc-meta-line,
      .doc-right .status-pill {
        display: none;
      }
    }

    @media print {
      .navbar,
      .doc-actions,
      .modal,
      .search-actions {
        display: none !important;
      }

      body { background: #fff; }
      .panel-card,
      .doc-card,
      .step-card,
      .list-row {
        box-shadow: none;
      }
    }
