    :root {
      --naranja: #f39519;
      --naranja-dark: #d97e0a;
      --naranja-light: #fef3e3;
      --azul: #283551;
      --azul-dark: #1a233a;
      --azul-mid: #3d4d6f;
      --azul-light: #f0f2f7;
      --azul-soft: #e7eaf2;
      --bg: #f5f6fa;
      --surface: #ffffff;
      --surface2: #fafbfd;
      --border: #e3e6ee;
      --border-strong: #cdd2dc;
      --text: #1a233a;
      --text-soft: #4a5374;
      --muted: #8089a0;
      --green: #2e8b57;
      --green-bg: #e8f3ec;
      --red: #c93f3f;
      --red-bg: #fbeaea;
      --amber: #d97e0a;
      --shadow-sm: 0 1px 3px rgba(40, 53, 81, 0.06);
      --shadow: 0 2px 8px rgba(40, 53, 81, 0.08);
      --shadow-lg: 0 8px 32px rgba(40, 53, 81, 0.12);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Outfit', system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      font-size: 14px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    .login-screen {
      position: fixed;
      inset: 0;
      background: linear-gradient(135deg, var(--azul) 0%, var(--azul-dark) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 500;
      padding: 20px;
    }

    .login-screen.hidden {
      display: none;
    }

    .login-card {
      background: var(--surface);
      border-radius: 16px;
      padding: 40px 36px;
      width: 100%;
      max-width: 440px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .login-card .logo-big {
      width: 80px;
      height: 80px;
      background: white;
      border: 2px solid var(--border);
      border-radius: 18px;
      margin: 0 auto 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 8px;
      box-shadow: 0 4px 12px rgba(40, 53, 81, 0.08);
    }

    .login-card .logo-big img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .login-card h1 {
      text-align: center;
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--azul);
      letter-spacing: -0.01em;
    }

    .login-card .login-sub {
      text-align: center;
      color: var(--muted);
      font-size: .88rem;
      margin: 6px 0 28px;
    }

    .login-card .field {
      margin-bottom: 16px;
    }

    .login-card .field label {
      display: block;
      font-size: .76rem;
      font-weight: 700;
      color: var(--text-soft);
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .login-card .field input {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--border-strong);
      border-radius: 8px;
      font-family: inherit;
      font-size: .9rem;
      color: var(--text);
      background: var(--surface);
      transition: all .15s;
    }

    .login-card .field input:focus {
      outline: none;
      border-color: var(--naranja);
      box-shadow: 0 0 0 3px rgba(243, 149, 25, 0.15);
    }

    .login-card .field input:disabled {
      background: var(--azul-light);
      color: var(--text-soft);
      cursor: not-allowed;
    }

    .login-card .login-btn {
      width: 100%;
      padding: 14px;
      background: var(--naranja);
      border: none;
      color: white;
      font-family: inherit;
      font-size: .95rem;
      font-weight: 700;
      border-radius: 8px;
      cursor: pointer;
      transition: all .15s;
      margin-top: 10px;
    }

    .login-btn:hover {
      background: var(--naranja-dark);
    }

    .login-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .login-error {
      background: var(--red-bg);
      border: 1px solid #f5c2c2;
      color: var(--red);
      padding: 10px 14px;
      border-radius: 8px;
      font-size: .85rem;
      margin-bottom: 14px;
      display: none;
    }

    .login-error.show {
      display: block;
    }

    .login-footer {
      text-align: center;
      font-size: .78rem;
      color: var(--muted);
      margin-top: 24px;
      padding-top: 18px;
      border-top: 1px solid var(--border);
      line-height: 1.6;
    }

    .portal {
      display: none;
    }

    .portal.active {
      display: block;
    }

    .container {
      max-width: 1300px;
      margin: 0 auto;
      padding: 24px 28px;
    }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 28px;
      padding: 18px 24px;
      background: var(--surface);
      border-radius: 12px;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .logo {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      background: white;
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 4px;
    }

    .logo img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .brand h1 {
      font-size: 1.2rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--azul);
    }

    .brand .subtitle {
      color: var(--muted);
      font-size: .78rem;
      font-weight: 400;
    }

    .controls {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .user-info {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 6px 12px;
      background: var(--azul-light);
      border-radius: 100px;
      font-size: .8rem;
      font-weight: 500;
      color: var(--text-soft);
    }

    .user-info .avatar {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--azul);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .72rem;
      font-weight: 700;
    }

    .role-tag {
      display: inline-flex;
      align-items: center;
      padding: 3px 10px;
      border-radius: 100px;
      font-size: .68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .role-tag.admin {
      background: var(--naranja-light);
      color: var(--naranja-dark);
    }

    .role-tag.rrhh {
      background: var(--azul-light);
      color: var(--azul);
    }

    .role-tag.mercadeo {
      background: var(--green-bg);
      color: var(--green);
    }

    .role-tag.agencia_mkt {
      background: #f0eafa;
      color: #6c3fc5;
    }

    .role-tag.qa {
      background: #f0eafa;
      color: #6c3fc5;
    }

    .role-tag.cobranza {
      background: #E6F4F1;
      color: #0B5F51;
    }

    .role-tag.desembolsos {
      background: #FEF3E3;
      color: #D97E0A;
    }

    button.logout {
      background: transparent;
      border: 1px solid var(--border-strong);
      color: var(--text-soft);
      padding: 8px 12px;
      font-size: .82rem;
      border-radius: 8px;
      cursor: pointer;
      font-family: inherit;
      font-weight: 500;
      transition: all .12s;
    }

    button.logout:hover {
      background: var(--red-bg);
      border-color: var(--red);
      color: var(--red);
    }

    .welcome {
      background: linear-gradient(135deg, var(--azul) 0%, var(--azul-mid) 100%);
      color: white;
      border-radius: 14px;
      padding: 32px 36px;
      margin-bottom: 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }

    .welcome::before {
      content: '';
      position: absolute;
      top: -50px;
      right: -50px;
      width: 200px;
      height: 200px;
      background: var(--naranja);
      opacity: 0.12;
      border-radius: 50%;
    }

    .welcome::after {
      content: '';
      position: absolute;
      bottom: -80px;
      right: 80px;
      width: 160px;
      height: 160px;
      background: var(--naranja);
      opacity: 0.06;
      border-radius: 50%;
    }

    .welcome .left {
      z-index: 1;
      position: relative;
    }

    .welcome .tag {
      display: inline-block;
      padding: 4px 12px;
      background: var(--naranja);
      color: white;
      border-radius: 6px;
      font-size: .68rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .welcome h2 {
      font-size: 1.7rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.2;
    }

    .welcome .meta {
      margin-top: 6px;
      font-size: .95rem;
      opacity: 0.8;
    }

    .welcome .right {
      z-index: 1;
      position: relative;
      display: flex;
      gap: 20px;
    }

    .welcome .stat .num {
      font-size: 2rem;
      font-weight: 700;
      line-height: 1;
      font-variant-numeric: tabular-nums;
      display: block;
    }

    .welcome .stat .lbl {
      font-size: .72rem;
      opacity: 0.75;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-top: 4px;
    }

    .section-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--azul);
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .section-title .line {
      flex: 1;
      height: 1px;
      background: var(--border);
      margin-left: 10px;
    }

    .dashboards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
      margin-bottom: 32px;
    }

    .dashboard-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 26px;
      cursor: pointer;
      transition: all .2s;
      position: relative;
      overflow: hidden;
      text-decoration: none;
      color: inherit;
      display: block;
    }

    .dashboard-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .3s ease;
    }

    .dashboard-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-lg);
      border-color: var(--accent);
    }

    .dashboard-card:hover::before {
      transform: scaleX(1);
    }

    .dashboard-card .title {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--azul);
      margin-bottom: 6px;
      letter-spacing: -0.01em;
    }

    .dashboard-card .module {
      font-size: .72rem;
      color: var(--muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 14px;
    }

    .dashboard-card .desc {
      font-size: .88rem;
      color: var(--text-soft);
      line-height: 1.5;
      margin-bottom: 18px;
    }

    .dashboard-card .footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 14px;
      border-top: 1px solid var(--border);
    }

    .dashboard-card .status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: .76rem;
      font-weight: 600;
    }

    .dashboard-card .status.activo {
      color: var(--green);
    }

    .dashboard-card .status.beta {
      color: var(--amber);
    }

    .dashboard-card .status.pronto {
      color: var(--muted);
    }

    .dashboard-card .status .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: currentColor;
    }

    .dashboard-card .arrow {
      font-size: 1.2rem;
      color: var(--accent);
      transition: transform .2s;
    }

    .dashboard-card:hover .arrow {
      transform: translateX(4px);
    }

    .dashboard-card.desembolsos {
      --accent: var(--naranja);
      --accent-light: var(--naranja-light);
    }

    .dashboard-card.asistencias {
      --accent: var(--azul);
      --accent-light: var(--azul-light);
    }

    .dashboard-card.perdidas {
      --accent: var(--red);
      --accent-light: var(--red-bg);
    }

    .dashboard-card.otros {
      --accent: var(--muted);
      --accent-light: #f0f0f0;
    }

    .dashboard-card.qa {
      --accent: #6c3fc5;
      --accent-light: #f0eafa;
    }

    .dashboard-card.botReactivacion {
      --accent: #2563eb;
      --accent-light: #dbeafe;
    }

    .dashboard-card.meta {
      --accent: #0866FF;
      --accent-light: #E4EDFF;
    }

    .dashboard-card.disabled {
      cursor: not-allowed;
      opacity: 0.65;
    }

    .dashboard-card.disabled:hover {
      transform: none;
      box-shadow: var(--shadow-sm);
      border-color: var(--border);
    }

    .dashboard-card.disabled:hover::before {
      transform: scaleX(0);
    }

    .dashboard-card.disabled:hover .icon {
      transform: none;
    }

    .dashboard-card.disabled:hover .arrow {
      transform: none;
    }

    .empty-state {
      background: var(--surface);
      border: 1px dashed var(--border-strong);
      border-radius: 14px;
      padding: 48px 32px;
      text-align: center;
      color: var(--muted);
    }

    footer.portal-footer {
      color: var(--muted);
      font-size: .78rem;
      text-align: center;
      padding: 24px 0 12px;
      margin-top: 16px;
      border-top: 1px solid var(--border);
    }

    @media (max-width: 600px) {
      .welcome {
        padding: 24px;
      }

      .welcome h2 {
        font-size: 1.4rem;
      }

      .dashboards-grid {
        grid-template-columns: 1fr;
      }
    }
