* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; color: #fff; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: linear-gradient(115deg, rgb(4 18 53 / 96%), rgb(5 25 73 / 90%)), url("FONDO.png") center / cover fixed; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #f6c87a; outline-offset: 4px; }
.dashboard-shell { width: min(2400px, calc(100% - clamp(28px, 4vw, 120px))); margin: 0 auto; }
.brand-header { padding-top: clamp(12px, 2vh, 20px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand-header img { display: block; width: min(100%, clamp(760px, 40vw, 1100px)); min-width: 0; height: auto; border-radius: 12px; }
.brand-header a { align-self: flex-end; color: #fff; text-decoration-thickness: 2px; text-underline-offset: 4px; }
main { padding: clamp(14px, 2vh, 28px) 0; }
.loading { font-size: 1.2rem; }
.eyebrow, .kicker { margin: 0; font-size: clamp(.8rem, 1vw, 1rem); font-weight: 800; letter-spacing: .16em; }
.eyebrow { color: #f6c87a; }
h1, h2, p { margin-top: 0; }
h1 { margin: 8px 0 5px; font: 700 clamp(2.2rem, min(4vw, 7vh), 6rem)/1.05 Georgia, serif; letter-spacing: -.035em; }
h1 span, h1 em { color: #f6c87a; }
h1 em { font-weight: 400; }
.subtitle, .intro > p:last-child { color: #d5e2f8; font-size: clamp(1rem, 1.5vw, 1.5rem); }
.heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: end; }
.heading > div { min-width: 0; }
#dashboard-title:focus { outline: 3px solid #f6c87a; outline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 12px; }
.actions button { min-height: 48px; padding: 10px 16px; border: 1px solid #b9c7e0; border-radius: 8px; background: rgb(255 255 255 / 8%); color: #fff; font-weight: 700; }
.actions button:hover { background: rgb(255 255 255 / 20%); }
.status-bar { display: flex; align-items: center; gap: 12px; margin: clamp(10px, 2vh, 20px) 0; padding: 10px 16px; border: 1px solid #6888a5; border-radius: 10px; background: rgb(0 0 0 / 22%); font-size: clamp(1rem, 1.2vw, 1.25rem); }
.status-bar p { margin: 0; }
.status-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #cbd5e1; }
.status-bar[data-state="ok"] .status-dot { background: #72e6a7; }
.status-bar[data-state="stale"] { border-color: #f6c87a; color: #ffe2a8; }
.status-bar[data-state="stale"] .status-dot { background: #f6c87a; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.metric { min-width: 0; padding: clamp(18px, 2.5vh, 36px); border-radius: 20px; background: #fffaf1; color: #081b4d; box-shadow: 0 18px 45px rgb(0 0 0 / 25%); }
.metric-pending { background: #f6e5ce; }
.metric p { margin: 0; font-size: clamp(1.25rem, 1.7vw, 3rem); font-weight: 800; }
.metric strong { display: block; margin: 10px 0 6px; font-size: clamp(3.5rem, min(8vw, 11vh), 12rem); line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric span { color: #344560; font-size: clamp(1rem, 1.2vw, 2rem); }
.summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 30px; margin-top: clamp(12px, 2vh, 20px); color: #d5e2f8; font-size: clamp(1rem, 1.3vw, 1.35rem); }
.summary p { margin: 0; }
.summary strong { margin-left: 10px; color: #fff; font-size: 1.7em; font-variant-numeric: tabular-nums; }
.action-status { color: #ffe2a8; }
.login-layout { display: grid; grid-template-columns: 1fr minmax(300px, 440px); align-items: center; gap: 50px; min-height: 430px; }
.login-card { padding: 34px; border-radius: 16px; background: #fffaf1; color: #16264a; box-shadow: 0 18px 45px rgb(0 0 0 / 25%); }
.kicker { color: #a13b1d; }
.login-card h2 { margin: 12px 0; font: 700 2rem Georgia, serif; color: #081b4d; }
.login-card label { display: block; margin: 16px 0 8px; font-weight: 700; }
.login-card input { width: 100%; min-height: 50px; padding: 12px; border: 1px solid #9eacc0; border-radius: 8px; color: #16264a; background: #fff; }
.primary { width: 100%; min-height: 50px; margin-top: 20px; border: 0; border-radius: 8px; background: #103b9d; color: #fff; font-weight: 800; }
.primary:hover:not(:disabled) { background: #092c7d; }
.error { margin: 12px 0 0; color: #a32525; }
footer { padding: 0 0 14px; color: #c5d2ed; font-size: .8rem; letter-spacing: .13em; text-align: center; }
.noscript { margin: 20px; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .dashboard-shell { width: calc(100% - 28px); }
  .heading { align-items: start; flex-direction: column; }
  .actions { padding-bottom: 0; }
  .metrics, .login-layout { grid-template-columns: minmax(0, 1fr); }
  .login-layout { gap: 24px; }
  .metric strong { font-size: clamp(4rem, 18vw, 7rem); }
  .login-card { padding: 24px; }
}
[hidden] { display: none; }
