:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d9e1ee;
  --blue: #1f91ff;
  --blue-deep: #071f4f;
  --orange: #ff9900;
  --green: #168a5b;
  --paper: #ffffff;
  --soft: #f4f7fb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f8fbff;
}
a { color: inherit; }
.accessbar {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 8px clamp(16px, 5vw, 72px);
  background: #071936;
  color: white;
  font-size: 13px;
}
.accessbar a, .accessbar button {
  color: white;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.portal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(16px, 5vw, 72px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(31,145,255,.16), rgba(255,153,0,.12));
  border: 1px solid var(--line);
}
.brand-mark img { width: 54px; height: 54px; }
.portal-brand strong { display: block; font-size: 20px; }
.portal-brand small { color: var(--muted); }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; font-weight: 800; color: #344054; }
.nav-links a { text-decoration: none; }
.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .55fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(50px, 8vw, 94px) clamp(16px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(100deg, rgba(7,31,79,.97), rgba(16,64,145,.84)),
    linear-gradient(160deg, rgba(255,153,0,.22), transparent 48%);
  position: relative;
  overflow: hidden;
}
.portal-hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  top: 12%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: url("/assets/toca-sistemas-logo-gradiente.png?v=logo-gradiente-8") center / contain no-repeat;
  opacity: .12;
}
.hero-copy, .hero-card { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 900;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
}
h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255,255,255,.84);
}
.search-panel {
  max-width: 760px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.search-panel label { display: block; margin-bottom: 8px; font-weight: 850; }
.search-panel div { display: flex; gap: 10px; }
.search-panel input, .search-panel button {
  min-height: 50px;
  border-radius: 8px;
  border: 0;
  font: inherit;
}
.search-panel input { flex: 1; padding: 0 14px; }
.search-panel button {
  padding: 0 18px;
  background: var(--orange);
  color: #111827;
  font-weight: 900;
}
.hero-card {
  padding: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.hero-card span { color: var(--muted); }
.hero-card strong { display: block; margin: 8px 0; font-size: 48px; color: var(--blue); }
.hero-card p { color: #475467; line-height: 1.6; }
.score-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; margin-top: 12px; font-size: 13px; }
.score-row i { height: 9px; border-radius: 999px; background: #e7edf8; overflow: hidden; }
.score-row i span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.score-row em { font-style: normal; font-weight: 900; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.quick-grid a {
  min-height: 150px;
  padding: 22px;
  background: white;
  text-decoration: none;
}
.quick-grid span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}
.quick-grid strong { display: block; font-size: 18px; line-height: 1.25; }
.section {
  padding: clamp(46px, 7vw, 86px) clamp(16px, 5vw, 72px);
}
.split, .fiscal {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: center;
}
.split p, .fiscal p, .module-grid p, .service-grid p { color: #475467; line-height: 1.65; }
.data-panel, .module-grid article, .service-grid article, .fiscal-cards div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16,24,40,.07);
}
.data-panel { overflow: hidden; }
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #eef4ff;
  border-bottom: 1px solid var(--line);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 15px 18px; border-bottom: 1px solid #edf1f7; text-align: left; }
th { color: #475467; font-size: 12px; text-transform: uppercase; }
.ok, .warn { padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.ok { background: #e9f8f0; color: #087443; }
.warn { background: #fff4df; color: #9a5d00; }
.status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f8f0;
  color: #087443;
  font-size: 12px;
  font-weight: 900;
}
.status.revisar {
  background: #fff4df;
  color: #9a5d00;
}
.status.monitorado {
  background: #e8f2ff;
  color: var(--blue-deep);
}
.section-head { grid-column: 1 / -1; margin-bottom: 10px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: #eef4fb;
}
.module-grid article { min-height: 230px; padding: 24px; }
.module-grid article span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #e8f2ff;
  color: var(--blue);
  font-weight: 900;
}
.fiscal {
  color: white;
  background:
    linear-gradient(135deg, rgba(18,52,125,.98), rgba(16,24,40,.98));
}
.fiscal p { color: rgba(255,255,255,.78); }
.fiscal-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fiscal-cards div { padding: 22px; color: var(--ink); }
.fiscal-cards strong { display: block; font-size: 30px; color: var(--blue); }
.fiscal-cards span { display: block; min-height: 42px; color: #475467; margin: 10px 0 16px; }
.fiscal-cards b { color: var(--green); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.service-grid article { padding: 28px; }
.service-grid a { color: var(--blue); font-weight: 900; text-decoration: none; }
.timeline { background: white; }
.timeline > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.timeline span {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
}
.timeline b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--orange);
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px clamp(16px, 5vw, 72px);
  background: #071936;
  color: white;
}
footer img { width: 210px; background: white; border-radius: 8px; padding: 8px; }
footer p { color: rgba(255,255,255,.78); }
footer a { color: #ffcc75; font-weight: 900; }
.contrast {
  --ink: #fff;
  --muted: #fff;
  --line: #fff;
  --paper: #000;
  --soft: #000;
  color: #fff;
  background: #000;
}
.contrast .portal-nav,
.contrast .quick-grid a,
.contrast .data-panel,
.contrast .module-grid article,
.contrast .service-grid article,
.contrast .timeline,
.contrast .fiscal-cards div {
  background: #000;
  color: #fff;
}
@media (max-width: 1120px) {
  .portal-hero, .split, .fiscal { grid-template-columns: 1fr; }
  .quick-grid, .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .accessbar, .nav-links { display: none; }
  .portal-nav { position: relative; }
  .portal-brand strong { font-size: 17px; }
  h1 { font-size: 42px; }
  .search-panel div { flex-direction: column; }
  .quick-grid, .module-grid, .service-grid, .fiscal-cards, .timeline > div { grid-template-columns: 1fr; }
  .hero-card strong { font-size: 38px; }
  .score-row { grid-template-columns: 1fr; }
}
