:root {
  --navy: #09253f;
  --navy-2: #123b5d;
  --blue: #1968a9;
  --bg: #f4f7fa;
  --surface: #ffffff;
  --text: #172534;
  --muted: #687684;
  --border: #dfe7ee;
  --success: #18845a;
  --shadow: 0 12px 30px rgba(9,37,63,.08);
}
* { box-sizing: border-box; }
html,body { margin:0; min-height:100%; font-family:Inter,"Segoe UI",system-ui,sans-serif; background:var(--bg); color:var(--text); }
a { color:inherit; }
.page-shell { min-height:100vh; display:flex; flex-direction:column; }
.topbar { min-height:78px; background:linear-gradient(110deg,var(--navy),var(--navy-2)); color:#fff; display:flex; align-items:center; justify-content:space-between; padding:14px clamp(20px,5vw,72px); box-shadow:0 5px 18px rgba(9,37,63,.16); }
.brand { display:flex; align-items:center; gap:12px; }
.brand-mark { height:43px; width:43px; border-radius:12px; background:#fff; color:var(--navy); display:grid; place-items:center; font-weight:900; font-size:24px; }
.brand-name { font-weight:800; font-size:20px; }
.brand-subtitle { opacity:.75; font-size:12px; margin-top:1px; }
.user-area { display:flex; align-items:center; gap:14px; font-size:13px; }
.user-chip { display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.14); border-radius:999px; padding:8px 12px; }
.status-dot { width:8px; height:8px; border-radius:50%; background:#57d9a3; box-shadow:0 0 0 3px rgba(87,217,163,.13); }
.logout { text-decoration:none; opacity:.82; }
.logout:hover { opacity:1; }
.content { width:min(1120px,calc(100% - 36px)); margin:0 auto; padding:44px 0 32px; flex:1; }
.hero { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.eyebrow { color:var(--blue); font-weight:800; font-size:12px; letter-spacing:.12em; }
.hero h1 { margin:8px 0; font-size:clamp(30px,4vw,43px); letter-spacing:-.03em; }
.hero p { color:var(--muted); margin:0; max-width:650px; line-height:1.6; }
.security-badge { background:#eaf8f3; border:1px solid #cdebe0; border-radius:14px; padding:11px 15px; display:flex; align-items:center; gap:11px; color:#155d43; min-width:185px; }
.security-badge .shield { width:28px; height:28px; background:var(--success); color:#fff; border-radius:50%; display:grid; place-items:center; font-weight:900; }
.security-badge strong,.security-badge span { display:block; }
.security-badge strong { font-size:13px; }
.security-badge div span { font-size:11px; opacity:.72; margin-top:2px; }
.panel { background:var(--surface); border:1px solid var(--border); border-radius:20px; box-shadow:var(--shadow); overflow:hidden; }
.panel-head { padding:24px 26px 18px; border-bottom:1px solid var(--border); }
.panel-head h2 { margin:0; font-size:19px; }
.panel-head p { margin:5px 0 0; color:var(--muted); font-size:13px; }
.report-list { padding:8px 14px 14px; }
.report-card { display:grid; grid-template-columns:54px 1fr auto; align-items:center; gap:16px; padding:17px 12px; border-radius:13px; }
.report-card + .report-card { border-top:1px solid #edf1f4; }
.report-card:hover { background:#f8fbfd; }
.file-icon { width:48px; height:48px; border-radius:12px; background:#e7f5f0; color:#157052; font-size:11px; font-weight:900; display:grid; place-items:center; border:1px solid #d2ebe1; }
.file-main { min-width:0; }
.file-main strong { display:block; font-size:15px; margin-bottom:4px; }
.filename { display:block; color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.metadata { display:flex; flex-wrap:wrap; gap:12px; margin-top:7px; color:#8995a0; font-size:11px; }
.download-btn { display:inline-flex; align-items:center; justify-content:center; min-height:39px; padding:0 17px; border-radius:10px; background:var(--blue); color:#fff; text-decoration:none; font-weight:700; font-size:13px; border:0; box-shadow:0 5px 12px rgba(25,104,169,.18); }
.download-btn:hover { background:#145c96; }
.empty { text-align:center; padding:60px 20px; color:var(--muted); }
.empty-icon { width:48px; height:48px; border-radius:50%; background:#eef3f7; display:grid; place-items:center; margin:0 auto 14px; font-size:22px; }
.empty h3 { color:var(--text); margin:0 0 6px; }
.empty p { margin:0; }
.info-strip { margin-top:18px; border:1px solid var(--border); background:#f9fbfc; border-radius:14px; padding:15px 17px; font-size:12px; color:var(--muted); }
.info-strip strong { color:var(--text); margin-right:5px; }
.state-card { max-width:650px; margin:70px auto; text-align:center; background:#fff; border:1px solid var(--border); border-radius:20px; box-shadow:var(--shadow); padding:50px 34px; }
.state-code { display:inline-block; background:#eef3f7; color:var(--navy); font-size:12px; font-weight:900; letter-spacing:.12em; border-radius:999px; padding:8px 12px; margin-bottom:15px; }
.state-card h1 { margin:0 0 10px; }
.state-card p { color:var(--muted); line-height:1.6; margin:0 auto 24px; }
footer { text-align:center; color:#8c98a4; font-size:11px; padding:18px 16px 28px; }
@media (max-width:760px) {
  .topbar { align-items:flex-start; gap:18px; flex-direction:column; }
  .user-area { width:100%; justify-content:space-between; }
  .hero { align-items:flex-start; flex-direction:column; }
  .report-card { grid-template-columns:48px 1fr; }
  .download-btn { grid-column:1 / -1; width:100%; }
}

/* ===== Landing Portal Finanzas ===== */

.landing-hero {
  max-width: 900px;
  margin: 10px auto 28px;
  align-items: center;
}

.landing-hero h1 {
  max-width: 720px;
}

.landing-panel {
  max-width: 680px;
  margin: 0 auto;
  border-radius: 20px;
}

.landing-content {
  text-align: center;
  padding: 52px 42px 46px;
}

.landing-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 18px;
  background: #09253f;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 30px;
  box-shadow: 0 10px 24px rgba(9,37,63,.14);
}

.landing-content h2 {
  margin: 0 0 12px;
  color: #172534;
  font-size: 26px;
  letter-spacing: -.02em;
}

.landing-description {
  max-width: 520px;
  margin: 0 auto 28px;
  color: #687684;
  line-height: 1.7;
  font-size: 14px;
}

.landing-login {
  display: inline-flex;
  min-width: 245px;
  min-height: 46px;
  padding: 0 24px;
  font-size: 14px;
}

.landing-note {
  max-width: 480px;
  margin: 22px auto 0;
  color: #8995a0;
  font-size: 12px;
  line-height: 1.6;
}

.landing-panel + .info-strip,
.landing-hero ~ .info-strip {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 760px) {
  .landing-content {
    padding: 38px 24px;
  }

  .landing-login {
    width: 100%;
  }

  .landing-hero {
    margin-top: 0;
  }
}
