:root {
  --green: #00953e;
  --green-dark: #006241;
  --green-deep: #004b34;
  --green-soft: #eaf6ef;
  --navy: #001a70;
  --blue: #00609c;
  --cyan: #0093c9;
  --gold: #f4b223;
  --orange: #d6832b;
  --ink: #102a23;
  --muted: #65766f;
  --line: #dfe8e4;
  --surface: #ffffff;
  --bg: #f3f7f5;
  --danger: #b42318;
  --danger-soft: #fff0ef;
  --success-soft: #e9f7ee;
  --shadow-sm: 0 4px 14px rgba(0, 52, 38, .06);
  --shadow-md: 0 16px 40px rgba(0, 52, 38, .09);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, Aptos, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Cabecera */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 78px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand-identity {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
}

.brand-logo { max-width: 150px; max-height: 44px; object-fit: contain; }
.brand-fallback {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 850;
  letter-spacing: -.04em;
  background: var(--green-dark);
  box-shadow: 0 7px 16px rgba(0, 98, 65, .22);
}

.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 15px; letter-spacing: -.01em; }
.brand-copy small { color: var(--muted); font-size: 12px; }

.userbox { display: flex; align-items: center; gap: 11px; }
.user-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 800;
  font-size: 14px;
}
.user-copy { display: grid; min-width: 95px; }
.user-copy small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.user-copy strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.userbox form { display: flex; margin-left: 5px; }
.logout-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--green-dark);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: .2s ease;
}
.logout-button svg { width: 17px; height: 17px; }
.logout-button:hover { background: var(--green-soft); border-color: #bfdbc9; }

/* Estructura y navegación */
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - 78px); }
.sidebar {
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  padding: 30px 18px 22px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--green-dark), var(--green-deep));
  overflow: auto;
}
.sidebar-heading { padding: 0 13px 12px; color: rgba(255, 255, 255, .56); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.sidebar-nav { display: grid; gap: 8px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 11px 12px;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: .2s ease;
}
.nav-link:hover { color: white; background: rgba(255, 255, 255, .08); }
.nav-link.active { color: var(--green-dark); background: white; box-shadow: 0 11px 25px rgba(0, 38, 25, .18); }
.nav-link.active::before { content: ""; position: absolute; left: -18px; width: 4px; height: 30px; border-radius: 0 5px 5px 0; background: var(--gold); }
.nav-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.nav-link.active .nav-icon { color: white; background: var(--green); }
.nav-icon svg { width: 19px; height: 19px; }
.nav-link > span:last-child { display: grid; gap: 3px; }
.nav-link strong { font-size: 13px; }
.nav-link small { color: inherit; opacity: .72; font-size: 11px; }
.sidebar-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  color: white;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
}
.sidebar-note-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--gold); background: rgba(244, 178, 35, .13); flex: none; }
.sidebar-note-icon svg { width: 18px; height: 18px; }
.sidebar-note > span:last-child { display: grid; gap: 2px; }
.sidebar-note small { color: rgba(255,255,255,.62); font-size: 10px; }
.sidebar-note strong { font-size: 12px; }

.content { min-width: 0; padding: 38px clamp(22px, 3.4vw, 52px) 20px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.page-header h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.14; letter-spacing: -.035em; }
.page-description { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.run-indicator, .secure-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 13px;
  border: 1px solid #cce8d5;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--success-soft);
  font-size: 12px;
  font-weight: 800;
}
.indicator-dot, .status-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,149,62,.11); }
.run-indicator.busy { color: #845100; background: #fff7df; border-color: #f3df9b; }
.run-indicator.busy .indicator-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(244,178,35,.16); animation: pulse 1.3s infinite; }
.secure-label svg { width: 16px; height: 16px; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.8); } }

/* Componentes generales */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.card-heading h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.015em; }
.card-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button svg { width: 18px; height: 18px; }
.button.primary { color: white; background: var(--green); box-shadow: 0 8px 18px rgba(0,149,62,.19); }
.button.primary:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 11px 22px rgba(0,98,65,.22); }
.button.secondary { color: var(--green-dark); background: white; border-color: #bdd9c7; }
.button:disabled { cursor: not-allowed; color: #edf2ef; background: #98aaa2; box-shadow: none; }
.button.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 13px 14px; border-radius: 11px; font-size: 13px; line-height: 1.45; }
.alert-icon { width: 21px; height: 21px; display: grid; place-items: center; flex: none; border-radius: 50%; font-size: 12px; font-weight: 900; }
.alert.danger { color: var(--danger); background: var(--danger-soft); border: 1px solid #f2c7c3; }
.alert.danger .alert-icon { color: white; background: var(--danger); }
.alert.success { color: var(--green-dark); background: var(--success-soft); border: 1px solid #c5e5d0; }
.alert.success .alert-icon { color: white; background: var(--green); }

/* Indicadores */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card { position: relative; min-height: 112px; display: flex; align-items: center; gap: 14px; padding: 19px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.metric-card::after { content: ""; position: absolute; right: -25px; bottom: -35px; width: 90px; height: 90px; border-radius: 50%; background: currentColor; opacity: .045; }
.metric-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 13px; color: currentColor; background: color-mix(in srgb, currentColor 11%, white); }
.metric-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.metric-card > div { min-width: 0; display: grid; gap: 5px; }
.metric-card > div span { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-card strong { color: var(--ink); font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.metric-blue { color: var(--blue); }
.metric-green { color: var(--green); }
.metric-cyan { color: var(--cyan); }
.metric-gold { color: var(--orange); }

/* Tabla */
.table-card { overflow: hidden; }
.failure-summary { padding: 6px 9px; color: var(--danger); background: var(--danger-soft); border-radius: 8px; font-size: 11px; font-weight: 800; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 1040px; border-collapse: collapse; font-size: 12px; }
th { padding: 12px 14px; color: #587068; background: #f6f9f7; border-bottom: 1px solid var(--line); text-align: left; text-transform: uppercase; letter-spacing: .055em; font-size: 9px; font-weight: 850; white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid #e8eeeb; vertical-align: middle; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: #f8fbf9; }
tbody tr:last-child td { border-bottom: 0; }
.date-cell strong { white-space: nowrap; font-size: 11px; font-weight: 750; }
.origin-tag { display: inline-flex; padding: 5px 8px; color: var(--blue); background: #edf6fb; border-radius: 7px; font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.range-cell { white-space: nowrap; }
.range-cell span { display: inline-block; }
.range-cell svg { width: 13px; height: 13px; margin: 0 5px; color: #9aaba4; vertical-align: -2px; }
.number { text-align: center; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.has-failures { color: var(--danger); }
.result-cell { max-width: 250px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .035em; white-space: nowrap; }
.badge > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.exitosa { color: #087530; background: #e4f6eb; }
.badge.parcial { color: #8a5700; background: #fff4d7; }
.badge.fallida { color: #aa251b; background: #fde9e7; }
.badge.en_proceso { color: #075f91; background: #e7f4fa; }
.empty { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px 20px; text-align: center; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 16px; color: var(--green); background: var(--green-soft); border-radius: 18px; }
.empty-icon svg { width: 27px; height: 27px; }
.empty strong { font-size: 17px; }
.empty p { max-width: 390px; margin: 7px 0 18px; color: var(--muted); font-size: 13px; }

/* Ejecución manual */
.manual-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(270px, 340px); align-items: start; gap: 20px; }
.form-card { overflow: hidden; }
.manual-heading { justify-content: flex-start; }
.section-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: none; color: var(--green-dark); background: var(--green-soft); border-radius: 12px; }
.section-icon svg { width: 21px; height: 21px; }
.form-card > .alert { margin: 20px 24px 0; }
.manual-form { display: grid; gap: 21px; padding: 24px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
label small { color: var(--muted); font-size: 10px; font-weight: 500; }
input { width: 100%; min-height: 47px; padding: 11px 13px; color: var(--ink); background: white; border: 1px solid #cbd9d3; border-radius: 10px; transition: .18s ease; }
input:hover { border-color: #9fbbb0; }
input:focus { outline: 3px solid rgba(0, 149, 62, .12); border-color: var(--green); }
.info-box { display: flex; align-items: flex-start; gap: 12px; padding: 16px; color: var(--green-dark); background: var(--green-soft); border: 1px solid #d3e9dc; border-radius: 12px; }
.info-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 9px; color: white; background: var(--green-dark); }
.info-icon svg { width: 16px; height: 16px; }
.info-box strong { font-size: 12px; }
.info-box p { margin: 4px 0 0; color: #526b61; font-size: 12px; line-height: 1.5; }
.action-button { width: 100%; }
.form-note { margin: -11px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.process-card { padding: 27px; color: white; background: linear-gradient(145deg, var(--navy), #003c77); border-radius: 18px; box-shadow: 0 18px 42px rgba(0,26,112,.15); }
.process-card .eyebrow { color: #66cae9; }
.process-card h2 { margin: 0; font-size: 21px; line-height: 1.28; letter-spacing: -.025em; }
.process-list { display: grid; gap: 0; margin: 25px 0; padding: 0; list-style: none; }
.process-list li { position: relative; display: flex; gap: 12px; padding: 0 0 24px; }
.process-list li:last-child { padding-bottom: 0; }
.process-list li:not(:last-child)::after { content: ""; position: absolute; top: 30px; bottom: 5px; left: 13px; width: 1px; background: rgba(255,255,255,.22); }
.process-list li > span { width: 27px; height: 27px; display: grid; place-items: center; flex: none; color: var(--navy); background: white; border-radius: 50%; font-size: 11px; font-weight: 900; }
.process-list li div { display: grid; gap: 4px; }
.process-list strong { font-size: 12px; }
.process-list small { color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.4; }
.process-footer { display: flex; align-items: center; gap: 9px; padding-top: 17px; color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.14); font-size: 10px; }
.process-footer .status-pulse { background: #5bd487; box-shadow: 0 0 0 4px rgba(91,212,135,.12); }

/* Inicio de sesión */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: #edf4f1; }
.login-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 9% 6%, rgba(0,149,62,.12), transparent 26%), radial-gradient(circle at 94% 92%, rgba(0,147,201,.1), transparent 28%); }
.login-shell { position: relative; z-index: 1; width: min(960px, 100%); min-height: 570px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: white; border: 1px solid rgba(0,98,65,.12); border-radius: 24px; box-shadow: 0 28px 70px rgba(0,52,38,.14); }
.login-showcase { position: relative; display: flex; flex-direction: column; padding: 42px; color: white; overflow: hidden; background: linear-gradient(145deg, #006241 0%, #004b34 68%, #003e44 100%); }
.login-showcase::before { content: ""; position: absolute; width: 340px; height: 340px; right: -150px; top: -120px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 85px rgba(255,255,255,.018); }
.login-showcase::after { content: ""; position: absolute; width: 170px; height: 170px; left: -85px; bottom: 25px; border-radius: 50%; background: rgba(244,178,35,.13); }
.showcase-brand { position: relative; z-index: 1; min-height: 50px; display: flex; align-items: center; }
.login-logo { max-width: 205px; max-height: 66px; object-fit: contain; }
.login-logo-fallback { color: white; font-size: 21px; font-weight: 800; letter-spacing: .03em; }
.login-logo-fallback b { color: var(--gold); }
.showcase-content { position: relative; z-index: 1; margin: auto 0; }
.showcase-tag { display: inline-flex; padding: 7px 10px; color: #dff7e8; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.showcase-content h2 { max-width: 390px; margin: 20px 0 14px; font-size: clamp(30px, 3.3vw, 43px); line-height: 1.08; letter-spacing: -.045em; }
.showcase-content p { max-width: 370px; margin: 0; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.65; }
.showcase-status { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.showcase-status > span:last-child { display: grid; gap: 2px; }
.showcase-status strong { font-size: 11px; }
.showcase-status small { color: rgba(255,255,255,.57); font-size: 10px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(35px, 5vw, 62px); }
.login-panel-brand {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    text-align: center;
  }
  
  .login-panel-brand .login-logo {
    width: auto;
    height: 105px;
    max-width: 175px;
    max-height: 105px;
    object-fit: contain;
  }
  
  .showcase-kicker {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.04em;
  }
  
  .showcase-kicker span {
    width: 9px;
    height: 9px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(244, 178, 35, 0.13);
  }
.login-heading h1 { margin: 0; font-size: 33px; letter-spacing: -.04em; }
.login-heading > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.login-panel .alert { margin: 22px 0 -4px; }
.form-stack { display: grid; gap: 17px; margin-top: 28px; }
.input-wrap { position: relative; display: block; }
.input-wrap svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; color: #71867d; transform: translateY(-50%); pointer-events: none; }
.input-wrap input { padding-left: 42px; }
.login-button { margin-top: 4px; }
.login-button svg { margin-left: auto; }
.login-help { margin: 20px 0 0; color: #82928c; text-align: center; font-size: 10px; }

/* Error y pie */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at center, white 0, #edf4f1 70%); }
.error-card { width: min(470px, 100%); padding: 44px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-md); }
.error-visual { position: relative; width: 80px; height: 80px; display: grid; place-items: center; margin: 0 auto 23px; color: white; background: var(--green-dark); border-radius: 24px; font-size: 35px; font-weight: 850; transform: rotate(4deg); }
.error-visual span { transform: rotate(-4deg); }
.error-card h1 { margin: 0 0 9px; font-size: 28px; letter-spacing: -.03em; }
.error-card > p:not(.eyebrow) { margin: 0 auto 24px; color: var(--muted); line-height: 1.55; font-size: 13px; }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 2px 0; color: #82928c; font-size: 10px; }

/* Adaptación */
@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .manual-layout { grid-template-columns: minmax(0, 1fr); }
  .process-card { display: none; }
}

@media (max-width: 820px) {
  .topbar { height: 68px; padding: 0 16px; }
  .brand-copy small, .user-copy { display: none; }
  .logout-button span { display: none; }
  .logout-button { width: 38px; padding: 0; justify-content: center; }
  .layout { display: block; min-height: calc(100vh - 68px); }
  .sidebar { position: sticky; top: 68px; z-index: 15; width: 100%; height: auto; display: block; padding: 9px 12px; overflow-x: auto; background: var(--green-dark); }
  .sidebar-heading, .sidebar-note { display: none; }
  .sidebar-nav { display: flex; width: max-content; gap: 8px; }
  .nav-link { min-height: 45px; padding: 7px 12px; border-radius: 10px; }
  .nav-link.active::before, .nav-link small { display: none; }
  .nav-icon { width: 30px; height: 30px; }
  .nav-icon svg { width: 16px; height: 16px; }
  .nav-link strong { white-space: nowrap; }
  .content { padding: 26px 16px 17px; }
  .login-shell { grid-template-columns: 1fr; width: min(470px, 100%); min-height: 0; }
  .login-showcase { display: none; }
  .login-panel-brand {
    min-height: 75px;
    margin-bottom: 25px;
  }
  
  .login-panel-brand .login-logo {
    height: 88px;
    max-width: 150px;
    max-height: 88px;
  }
  
  .login-panel-brand .login-logo-fallback {
    color: var(--green-dark);
  }
  .login-panel { padding: 38px 32px; }
}

@media (max-width: 560px) {
  .topbar { padding: 0 12px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 13px; }
  .user-avatar { display: none; }
  .page-header { display: grid; gap: 15px; }
  .page-header h1 { font-size: 28px; }
  .run-indicator, .secure-label { width: max-content; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 96px; padding: 14px; }
  .metric-icon { width: 36px; height: 36px; border-radius: 10px; }
  .metric-icon svg { width: 18px; height: 18px; }
  .metric-card > div span { font-size: 9px; }
  .metric-card strong { font-size: 21px; }
  .card-heading { padding: 18px; }
  .failure-summary { display: none; }
  .manual-form { padding: 20px 18px; }
  .form-card > .alert { margin: 18px 18px 0; }
  .field-grid { grid-template-columns: 1fr; }
  .login-page { padding: 14px; }
  .login-panel { padding: 32px 23px; }
  .login-heading h1 { font-size: 29px; }
  .app-footer { display: grid; justify-content: center; text-align: center; }
  .error-card { padding: 35px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Corrección del logo institucional */

/* Evita que aparezca CS cuando el logo cargó correctamente */
[hidden] {
    display: none !important;
  }
  
  /* Logo del encabezado */
  .brand-identity {
    width: 68px;
    height: 64px;
  }
  
  .brand-logo {
    width: auto;
    height: 58px;
    max-width: 68px;
    max-height: 58px;
    object-fit: contain;
  }
  

  
  /* Logo del login cuando se abre desde celular */
 
  @media (max-width: 820px) {
    .brand-identity {
      width: 55px;
      height: 55px;
    }
  
    .brand-logo {
      height: 50px;
      max-width: 55px;
      max-height: 50px;
    }
  }