  * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: #f4f6fa;
      height: 100vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* ── Navbar ── */
    .navbar {
      background: #fff;
      border-bottom: 3px solid #2B5EA7;
      padding: .75rem 2rem;
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .navbar-logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .ecci-cuadros {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3px;
      width: 32px;
      height: 32px;
    }
    .ecci-cuadros span {
      border-radius: 3px;
      display: block;
    }
    .c-rojo   { background: #C0392B; }
    .c-azul   { background: #2B5EA7; }
    .c-amarillo { background: #E8B84B; }
    .c-verde  { background: #27AE60; }
    .navbar-titulo {
      font-family: 'DM Mono', monospace;
      font-size: 1.1rem;
      font-weight: 500;
      color: #2B5EA7;
      letter-spacing: .04em;
    }
    .navbar-titulo span { color: #C0392B; }

    /* ── Hero ── */
    .hero {
      display: grid;
      grid-template-columns: 1fr 1fr;
      height: calc(100vh - 53px);
    }

    /* Izquierda — imagen con overlay */
    .izquierda {
      position: relative;
      overflow: hidden;
    }
    .izquierda img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(0.45);
    }
    .overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 3rem;
      background: linear-gradient(to top, rgba(43,94,167,0.92) 0%, rgba(43,94,167,0.1) 55%);
    }
    .tag {
      display: inline-block;
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      letter-spacing: .12em;
      color: #E8B84B;
      background: rgba(232,184,75,.15);
      border: 1px solid rgba(232,184,75,.4);
      padding: .25rem .75rem;
      border-radius: 20px;
      margin-bottom: 1.2rem;
      width: fit-content;
    }
    .overlay h1 {
      font-size: 3.2rem;
      font-weight: 600;
      line-height: 1.1;
      color: #fff;
      margin-bottom: .75rem;
    }
    .overlay h1 span { color: #E8B84B; }
    .overlay p {
      font-size: 1rem;
      color: rgba(255,255,255,0.75);
      max-width: 380px;
      line-height: 1.65;
      margin-bottom: 2rem;
    }
    .semaforo {
      display: flex;
      gap: 1rem;
    }
    .dot-item {
      display: flex;
      align-items: center;
      gap: .4rem;
      font-size: .75rem;
      color: rgba(255,255,255,0.6);
    }
    .dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
    }
    .dot-v { background: #27AE60; box-shadow: 0 0 5px #27AE60; }
    .dot-a { background: #E8B84B; box-shadow: 0 0 5px #E8B84B; }
    .dot-n { background: #E67E22; box-shadow: 0 0 5px #E67E22; }

    /* Derecha — panel de acceso */
    .derecha {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 3rem 2.5rem;
      background: #fff;
      border-left: 1px solid #dde3ef;
    }
    .login-card {
      width: 100%;
      max-width: 380px;
    }
    .login-card .brand {
      font-family: 'DM Mono', monospace;
      font-size: .78rem;
      color: #2B5EA7;
      letter-spacing: .1em;
      margin-bottom: 2rem;
      text-transform: uppercase;
    }
    .login-card h2 {
      font-size: 1.7rem;
      font-weight: 600;
      color: #1a2a4a;
      margin-bottom: .35rem;
    }
    .login-card .sub {
      font-size: .88rem;
      color: #8492a6;
      margin-bottom: 2.5rem;
      line-height: 1.5;
    }

    /* Tarjetas de acceso rápido */
    .roles-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: .6rem;
      margin-bottom: 2rem;
    }
    .rol-card {
      background: #f4f6fa;
      border: 1px solid #dde3ef;
      border-radius: 10px;
      padding: .75rem;
      display: flex;
      align-items: center;
      gap: .5rem;
      font-size: .78rem;
      color: #3d5a80;
    }
    .rol-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* Botón principal */
    .btn-ingresar {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: .6rem;
      width: 100%;
      padding: .9rem;
      background: #2B5EA7;
      color: #fff;
      border: none;
      border-radius: 10px;
      font-family: 'DM Sans', sans-serif;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      transition: background .15s, transform .1s;
    }
    .btn-ingresar:hover { background: #1e4a8a; transform: translateY(-1px); }
    .btn-ingresar:active { transform: translateY(0); }
    .btn-arrow {
      width: 16px; height: 16px;
      border-top: 2px solid #fff;
      border-right: 2px solid #fff;
      transform: rotate(45deg);
      display: inline-block;
      flex-shrink: 0;
    }

    /* Barra de colores ECCI debajo del botón */
    .ecci-bar {
      display: flex;
      height: 4px;
      border-radius: 2px;
      overflow: hidden;
      margin-top: .75rem;
      gap: 3px;
    }
    .ecci-bar span { flex: 1; border-radius: 2px; }

    .footer-txt {
      font-size: .72rem;
      color: #b0bac8;
      text-align: center;
      margin-top: 1.5rem;
    }

    /* ── Responsive ── */
    @media (max-width: 580px) {
      .hero { grid-template-columns: 1fr; }
      .izquierda { min-height: 280px; }
      .overlay h1 { font-size: 2.2rem; }
      .derecha { padding: 2rem 1.5rem; }
      .roles-grid { grid-template-columns: 1fr; }
    }