
    :root {
      --cream:       #F5F0E8;
      --ink:         #1A1612;
      --terracotta:  #C4522A;
      --terra-soft:  #E8876A;
      --terra-pale:  #FBE9E4;
      --sage:        #4A6741;
      --gold:        #C9923A;
      --stone:       #7A736A;
      --stone-light: #C8C0B4;
      --white:       #FDFBF8;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--ink);
      min-height: 100vh;
      display: flex;
      overflow: hidden;
    }

    /***  Estilos Pagina Login  ***/

    /* ── PANEL IZQUIERDO — decorativo ── */
    .panel-left {
      width: 52%;
      position: relative;
      background: var(--ink);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 48px;
      overflow: hidden;
    }

    /* Patrón geométrico de fondo */
    .panel-left::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        repeating-linear-gradient(
          0deg,
          transparent,
          transparent 59px,
          rgba(255,255,255,.03) 59px,
          rgba(255,255,255,.03) 60px
        ),
        repeating-linear-gradient(
          90deg,
          transparent,
          transparent 59px,
          rgba(255,255,255,.03) 59px,
          rgba(255,255,255,.03) 60px
        );
    }

    /* Gran círculo decorativo */
    .deco-circle {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
    }
    .deco-c1 {
      width: 520px; height: 520px;
      border: 1px solid rgba(196, 82, 42, .2);
      top: -100px; left: -80px;
    }
    .deco-c2 {
      width: 360px; height: 360px;
      border: 1px solid rgba(196, 82, 42, .12);
      top: -20px; left: 0px;
    }
    .deco-c3 {
      width: 200px; height: 200px;
      background: radial-gradient(circle, rgba(196,82,42,.18) 0%, transparent 70%);
      top: 60px; left: 80px;
    }
    .deco-blob {
      position: absolute;
      width: 340px; height: 340px;
      background: radial-gradient(circle, rgba(201,146,58,.1) 0%, transparent 65%);
      bottom: 40px; right: -60px;
      border-radius: 50%;
    }

    .panel-left-logo {
      position: relative; z-index: 2;
    }
    .logo-mark {
      width: 48px; height: 48px;
      background: var(--terracotta);
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-family: 'DM Serif Display', serif;
      color: white; font-size: 24px;
      margin-bottom: 14px;
      box-shadow: 0 8px 24px rgba(196,82,42,.4);
    }
    .logo-name {
      font-family: 'DM Serif Display', serif;
      color: var(--white);
      font-size: 28px;
      line-height: 1;
    }
    .logo-sub {
      font-size: 12px;
      color: var(--stone-light);
      letter-spacing: .1em;
      text-transform: uppercase;
      margin-top: 4px;
    }

    /* Headline central */
    .panel-headline {
      position: relative; z-index: 2;
    }
    .panel-headline h2 {
      font-family: 'DM Serif Display', serif;
      color: var(--white);
      font-size: 44px;
      line-height: 1.1;
      margin-bottom: 16px;
    }
    .panel-headline h2 em {
      color: var(--terra-soft);
      font-style: italic;
    }
    .panel-headline p {
      color: var(--stone-light);
      font-size: 15px;
      line-height: 1.6;
      max-width: 360px;
    }

    /* Stats strip */
    .stats-strip {
      position: relative; z-index: 2;
      display: flex; gap: 32px;
    }
    .stat-item .stat-val {
      font-family: 'DM Serif Display', serif;
      font-size: 28px; color: var(--white);
      line-height: 1;
    }
    .stat-item .stat-lbl {
      font-size: 12px; color: var(--stone);
      margin-top: 3px; letter-spacing: .04em;
    }
    .stat-divider {
      width: 1px; background: rgba(255,255,255,.1); align-self: stretch;
    }

    /* ── PANEL DERECHO — formulario ── */
    .panel-right {
      width: 48%;
      background: var(--cream);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 56px;
      position: relative;
    }

    .login-card {
      width: 100%;
      max-width: 400px;
    }

    .login-title {
      font-family: 'DM Serif Display', serif;
      font-size: 32px;
      color: var(--ink);
      margin-bottom: 6px;
    }
    .login-subtitle {
      font-size: 14px;
      color: var(--stone);
      margin-bottom: 36px;
    }

    /* Form fields */
    .field-group {
      margin-bottom: 20px;
    }
    .field-label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--stone);
      margin-bottom: 8px;
    }
    .field-input-wrap {
      position: relative;
    }
    .field-input {
      width: 100%;
      background: var(--white);
      border: 1.5px solid var(--stone-light);
      border-radius: 10px;
      padding: 13px 16px 13px 44px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      color: var(--ink);
      outline: none;
      transition: border-color .2s, box-shadow .2s;
    }
    .field-input:focus {
      border-color: var(--terracotta);
      box-shadow: 0 0 0 3px rgba(196,82,42,.12);
    }
    .field-input::placeholder { color: var(--stone-light); }
    .field-icon {
      position: absolute;
      left: 14px; top: 50%;
      transform: translateY(-50%);
      color: var(--stone-light);
      font-size: 17px;
      pointer-events: none;
      transition: color .2s;
    }
    .field-input:focus ~ .field-icon { color: var(--terracotta); }
    .field-input-wrap:has(.field-input:focus) .field-icon {
      color: var(--terracotta);
    }

    .password-toggle {
      position: absolute;
      right: 14px; top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      color: var(--stone-light);
      font-size: 16px;
      transition: color .2s;
    }
    .password-toggle:hover { color: var(--stone); }

    /* Opciones */
    .login-options {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 28px;
    }
    .remember-check {
      display: flex; align-items: center; gap: 8px;
      cursor: pointer;
    }
    .remember-check input[type="checkbox"] {
      width: 16px; height: 16px;
      accent-color: var(--terracotta);
      cursor: pointer;
    }
    .remember-check span { font-size: 13px; color: var(--stone); }
    .forgot-link {
      font-size: 13px;
      color: var(--terracotta);
      text-decoration: none;
      font-weight: 500;
    }
    .forgot-link:hover { text-decoration: underline; }

    /* Botón principal */
    .btn-login {
      width: 100%;
      background: var(--ink);
      color: var(--white);
      border: none;
      border-radius: 10px;
      padding: 14px;
      font-family: 'DM Sans', sans-serif;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      transition: background .2s, transform .15s;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .btn-login:hover { background: #2E2820; transform: translateY(-1px); }
    .btn-login:active { transform: translateY(0); }

    /* Divider */
    .divider {
      display: flex; align-items: center; gap: 12px;
      margin: 24px 0;
    }
    .divider::before, .divider::after {
      content: ''; flex: 1; height: 1px;
      background: var(--stone-light);
    }
    .divider span { font-size: 12px; color: var(--stone); white-space: nowrap; }

    /* Acceso rápido con rol */
    .role-btns { display: flex; gap: 10px; }
    .role-btn {
      flex: 1;
      background: var(--white);
      border: 1.5px solid var(--stone-light);
      border-radius: 10px;
      padding: 11px 10px;
      cursor: pointer;
      text-align: center;
      transition: all .2s;
    }
    .role-btn:hover {
      border-color: var(--terracotta);
      background: var(--terra-pale);
    }
    .role-btn .role-icon { font-size: 20px; margin-bottom: 4px; }
    .role-btn .role-name { font-size: 12px; color: var(--stone); display: block; }

    /* Footer del form */
    .form-footer {
      text-align: center;
      margin-top: 28px;
      font-size: 12px;
      color: var(--stone);
    }
    .form-footer a { color: var(--terracotta); text-decoration: none; font-weight: 500; }

    /* Animated fade-in */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .login-card > * {
      animation: fadeUp .5s ease both;
    }
    .login-card > *:nth-child(1) { animation-delay: .05s; }
    .login-card > *:nth-child(2) { animation-delay: .10s; }
    .login-card > *:nth-child(3) { animation-delay: .15s; }
    .login-card > *:nth-child(4) { animation-delay: .20s; }
    .login-card > *:nth-child(5) { animation-delay: .25s; }
    .login-card > *:nth-child(6) { animation-delay: .30s; }
    .login-card > *:nth-child(7) { animation-delay: .35s; }
    .login-card > *:nth-child(8) { animation-delay: .40s; }

    @keyframes slideIn {
      from { opacity: 0; transform: translateX(-24px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    .panel-left-logo { animation: slideIn .6s ease both .1s; }
    .panel-headline  { animation: slideIn .6s ease both .25s; }
    .stats-strip     { animation: slideIn .6s ease both .4s; }

    @media (max-width: 900px) {
      .panel-left  { display: none; }
      .panel-right { width: 100%; }
    }

    /*** Estilos Dashboard ***/


    /* ── SIDEBAR ── */
    .sidebar {
      position: fixed; top: 0; left: 0; bottom: 0;
      width: var(--sidebar-w);
      background: var(--ink);
      z-index: 1000;
      display: flex; flex-direction: column;
      transition: transform .3s ease;
    }

    .sidebar-brand {
      padding: 28px 24px 24px;
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .sidebar-brand .logo-mark {
      width: 40px; height: 40px;
      background: var(--terracotta);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-family: 'DM Serif Display', serif;
      color: white; font-size: 20px;
      margin-bottom: 10px;
    }
    .sidebar-brand .brand-name {
      font-family: 'DM Serif Display', serif;
      color: var(--white);
      font-size: 20px; letter-spacing: -.3px;
      line-height: 1;
    }
    .sidebar-brand .brand-sub {
      font-size: 11px; color: var(--stone-light);
      letter-spacing: .08em; text-transform: uppercase;
      margin-top: 2px;
    }

    .sidebar-nav { padding: 16px 0; flex: 1; overflow-y: auto; }
    .nav-section-label {
      padding: 12px 24px 6px;
      font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
      color: var(--stone);
    }
    .nav-item-link {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 24px;
      color: var(--stone-light);
      text-decoration: none;
      font-size: 14px; font-weight: 400;
      border-radius: 0;
      transition: all .2s;
      position: relative;
    }
    .nav-item-link i { font-size: 16px; opacity: .8; }
    .nav-item-link:hover { color: var(--white); background: rgba(255,255,255,.05); }
    .nav-item-link.active {
      color: var(--white);
      background: rgba(196, 82, 42, .18);
      border-right: 3px solid var(--terracotta);
    }
    .nav-item-link.active i { opacity: 1; color: var(--terra-soft); }
    .nav-badge {
      margin-left: auto;
      background: var(--terracotta);
      color: white; font-size: 10px;
      padding: 2px 7px; border-radius: 20px;
    }

    .sidebar-footer {
      padding: 16px 24px;
      border-top: 1px solid rgba(255,255,255,.08);
      display: flex; align-items: center; gap: 12px;
    }
    .user-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      background: var(--terracotta);
      display: flex; align-items: center; justify-content: center;
      color: white; font-size: 13px; font-weight: 600; flex-shrink: 0;
    }
    .user-info .user-name { font-size: 13px; color: var(--white); font-weight: 500; }
    .user-info .user-role { font-size: 11px; color: var(--stone); }

    /* ── MAIN ── */
    .main-content {
      margin-left: var(--sidebar-w);
      min-height: 100vh;
      display: flex; flex-direction: column;
    }

    /* ── TOPBAR ── */
    .topbar {
      background: var(--white);
      border-bottom: 1px solid var(--stone-light);
      padding: 14px 32px;
      display: flex; align-items: center; gap: 16px;
      position: sticky; top: 0; z-index: 100;
    }
    .topbar-title {
      font-family: 'DM Serif Display', serif;
      font-size: 22px; color: var(--ink);
      flex: 1;
    }
    .topbar-title span { color: var(--terracotta); }
    .topbar-search {
      display: flex; align-items: center; gap: 8px;
      background: var(--cream); border: 1px solid var(--stone-light);
      border-radius: 8px; padding: 7px 14px;
      font-size: 13px; color: var(--stone); width: 240px;
      cursor: pointer;
    }
    .topbar-search i { color: var(--stone); }
    .topbar-actions { display: flex; align-items: center; gap: 10px; }
    .topbar-btn {
      width: 36px; height: 36px; border-radius: 8px;
      background: var(--cream); border: 1px solid var(--stone-light);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: var(--stone); font-size: 16px;
      position: relative; transition: all .2s;
    }
    .topbar-btn:hover { background: var(--ink); color: white; border-color: var(--ink); }
    .notif-dot {
      position: absolute; top: 6px; right: 6px;
      width: 7px; height: 7px; background: var(--terracotta);
      border-radius: 50%; border: 1.5px solid var(--white);
    }

    /* ── PAGE BODY ── */
    .page-body { padding: 28px 32px; flex: 1; }

    /* ── KPI CARDS ── */
    .kpi-card {
      background: var(--white);
      border-radius: 14px;
      padding: 22px 24px;
      border: 1px solid rgba(0,0,0,.06);
      height: 100%;
      position: relative; overflow: hidden;
      transition: transform .2s, box-shadow .2s;
    }
    .kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.08); }
    .kpi-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    }
    .kpi-card.kpi-terra::before  { background: var(--terracotta); }
    .kpi-card.kpi-sage::before   { background: var(--sage); }
    .kpi-card.kpi-gold::before   { background: var(--gold); }
    .kpi-card.kpi-stone::before  { background: var(--stone); }

    .kpi-icon {
      width: 44px; height: 44px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 20px; margin-bottom: 14px;
    }
    .kpi-terra .kpi-icon  { background: #FBE9E4; color: var(--terracotta); }
    .kpi-sage .kpi-icon   { background: #E4EDE3; color: var(--sage); }
    .kpi-gold .kpi-icon   { background: #FBF0E0; color: var(--gold); }
    .kpi-stone .kpi-icon  { background: #EDEBE8; color: var(--stone); }

    .kpi-value {
      font-family: 'DM Serif Display', serif;
      font-size: 32px; line-height: 1; color: var(--ink);
      margin-bottom: 4px;
    }
    .kpi-label { font-size: 13px; color: var(--stone); font-weight: 400; }
    .kpi-delta { font-size: 12px; margin-top: 10px; }
    .kpi-delta .up   { color: var(--sage); }
    .kpi-delta .down { color: var(--terracotta); }

    /* ── SECTION HEADINGS ── */
    .section-heading {
      font-family: 'DM Serif Display', serif;
      font-size: 18px; color: var(--ink);
      margin-bottom: 0;
    }
    .section-sub { font-size: 12px; color: var(--stone); margin-top: 2px; }

    /* ── TABLE CARD ── */
    .card-clean {
      background: var(--white);
      border-radius: 14px;
      border: 1px solid rgba(0,0,0,.06);
      overflow: hidden;
    }
    .card-clean .card-header-custom {
      padding: 18px 24px;
      display: flex; align-items: center; justify-content: space-between;
      border-bottom: 1px solid var(--cream);
    }
    .table-custom { margin: 0; }
    .table-custom thead tr { background: var(--cream); }
    .table-custom thead th {
      font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
      color: var(--stone); font-weight: 600; padding: 10px 20px;
      border: none;
    }
    .table-custom tbody tr { border-bottom: 1px solid var(--cream); transition: background .15s; }
    .table-custom tbody tr:hover { background: #FAF7F2; }
    .table-custom tbody td {
      padding: 14px 20px; font-size: 13.5px; color: var(--ink);
      vertical-align: middle; border: none;
    }
    .table-custom tbody tr:last-child { border-bottom: none; }

    .tenant-avatar {
      width: 32px; height: 32px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 600; flex-shrink: 0;
    }

    /* ── BADGES ── */
    .badge-custom {
      padding: 4px 10px; border-radius: 20px;
      font-size: 11px; font-weight: 500;
    }
    .badge-active   { background: #E4EDE3; color: var(--sage); }
    .badge-late     { background: #FBE9E4; color: var(--terracotta); }
    .badge-pending  { background: #FBF0E0; color: var(--gold); }
    .badge-inactive { background: #EDEBE8; color: var(--stone); }

    /* ── ACTIVITY FEED ── */
    .activity-item {
      display: flex; gap: 12px; padding: 12px 0;
      border-bottom: 1px solid var(--cream);
    }
    .activity-item:last-child { border-bottom: none; }
    .activity-dot {
      width: 8px; height: 8px; border-radius: 50%;
      margin-top: 6px; flex-shrink: 0;
    }
    .activity-dot.terra  { background: var(--terracotta); }
    .activity-dot.sage   { background: var(--sage); }
    .activity-dot.gold   { background: var(--gold); }
    .activity-dot.stone  { background: var(--stone-light); }
    .activity-text { font-size: 13px; color: var(--ink); line-height: 1.4; }
    .activity-time { font-size: 11px; color: var(--stone); margin-top: 2px; }

    /* ── PROGRESS BAR ── */
    .progress-thin {
      height: 5px; border-radius: 10px;
      background: var(--cream);
    }
    .progress-thin .progress-bar { border-radius: 10px; }

    /* ── OCUPACION CARD ── */
    .ocupacion-ring {
      width: 110px; height: 110px;
      position: relative; flex-shrink: 0;
    }
    .ocupacion-ring svg { transform: rotate(-90deg); }
    .ring-center {
      position: absolute; inset: 0;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
    }
    .ring-pct {
      font-family: 'DM Serif Display', serif;
      font-size: 26px; line-height: 1; color: var(--ink);
    }
    .ring-lbl { font-size: 10px; color: var(--stone); text-transform: uppercase; letter-spacing: .06em; }

    /* ── ALERTS ── */
    .alert-item {
      background: var(--white);
      border-radius: 10px; border: 1px solid rgba(0,0,0,.06);
      padding: 14px 16px;
      display: flex; gap: 12px; align-items: flex-start;
      margin-bottom: 10px;
    }
    .alert-item-icon {
      width: 32px; height: 32px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 15px; flex-shrink: 0;
    }
    .alert-terra { background: #FBE9E4; color: var(--terracotta); }
    .alert-gold  { background: #FBF0E0; color: var(--gold); }
    .alert-sage  { background: #E4EDE3; color: var(--sage); }

    /* ── BUTTON ── */
    .btn-terra {
      background: var(--terracotta); color: white;
      border: none; border-radius: 8px; padding: 8px 16px;
      font-size: 13px; font-weight: 500;
      transition: background .2s;
    }
    .btn-terra:hover { background: #B04420; color: white; }
    .btn-outline-stone {
      background: transparent; color: var(--stone);
      border: 1px solid var(--stone-light); border-radius: 8px;
      padding: 7px 14px; font-size: 12px;
      transition: all .2s;
    }
    .btn-outline-stone:hover { background: var(--ink); color: white; border-color: var(--ink); }

    /* ── CHART PLACEHOLDER ── */
    .chart-placeholder {
      background: var(--cream);
      border-radius: 10px;
      height: 160px;
      display: flex; flex-direction: column;
      justify-content: flex-end; padding: 0 16px 12px;
      gap: 0; overflow: hidden; align-items: flex-end;
    }
    .chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; width: 100%; }
    .chart-bar {
      flex: 1; border-radius: 5px 5px 0 0;
      transition: opacity .2s;
    }
    .chart-bar:hover { opacity: .7; }
    .chart-labels {
      display: flex; gap: 8px; width: 100%; margin-top: 6px;
    }
    .chart-label { flex: 1; text-align: center; font-size: 10px; color: var(--stone); }

    /* ── SCROLLBAR ── */
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--stone-light); border-radius: 10px; }

    @media (max-width: 992px) {
      .sidebar { transform: translateX(-100%); }
      .main-content { margin-left: 0; }
    }