:root {
  --green-900: #1b4332;
  --green-600: #1f9e7a;
  --green-400: #8dc63f;
  --text: #10231f;
  --muted: #60706b;
  --line: #dce7e2;
  --surface: #ffffff;
  --soft: #f6f8f7;
  --danger: #c93030;
  --danger-soft: #fff1f1;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 30%, rgba(141, 198, 63, 0.2), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f7fbf9 50%, #eef8f3 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.app-shell {
  width: min(1760px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  display: block;
  width: 310px;
  max-width: 36vw;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 34px;
  color: #2e403b;
  font-size: 17px;
}

.main-nav a {
  padding: 10px 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-button,
.avatar-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-900);
  display: grid;
  place-items: center;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-weight: 800;
}

.avatar-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(720px, 1.22fr);
  gap: 58px;
  align-items: center;
  padding-top: 74px;
}

.eyebrow,
.section-kicker {
  color: var(--green-600);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero-copy h1 {
  color: #06231d;
  font-size: clamp(58px, 5.2vw, 96px);
  line-height: 0.95;
  margin: 0;
  max-width: 760px;
}

.subtitle {
  color: #42534e;
  font-size: clamp(24px, 2vw, 33px);
  line-height: 1.35;
  margin: 34px 0 0;
  max-width: 760px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 46px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  min-height: 70px;
  padding: 0 34px;
}

.button-primary {
  background: linear-gradient(135deg, var(--green-600), #11b582);
  color: white;
  box-shadow: 0 18px 34px rgba(31, 158, 122, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  border: 2px solid var(--green-600);
  color: var(--green-900);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
  max-width: 820px;
}

.benefit {
  align-items: center;
  color: #3c4e48;
  display: flex;
  gap: 14px;
  font-size: 16px;
  line-height: 1.3;
}

.benefit-icon,
.doc-icon {
  background: #e4f3ec;
  border-radius: 50%;
  color: var(--green-900);
  display: grid;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  height: 48px;
  place-items: center;
  width: 48px;
}

.dashboard-preview {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(27, 67, 50, 0.14);
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  padding: 14px;
}

.preview-sidebar {
  border-right: 1px solid #e8efec;
  padding: 14px 12px;
}

.preview-logo img {
  width: 132px;
  margin-bottom: 22px;
}

.preview-sidebar a {
  border-radius: 8px;
  color: #50605b;
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 5px 0;
  padding: 12px 13px;
}

.preview-sidebar a.active {
  background: #e9f6f0;
  color: var(--green-900);
}

.preview-main {
  padding: 24px;
}

.preview-heading,
.documents-card {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.section-kicker {
  font-size: 11px;
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.preview-heading h2 {
  font-size: 32px;
  margin: 0;
}

.ghost-button,
.small-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-900);
  font-weight: 800;
  padding: 10px 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.metric {
  border-radius: 8px;
  padding: 22px;
}

.metric-green {
  background: #ecf8f2;
  border: 1px solid #caebdd;
}

.metric-red {
  background: var(--danger-soft);
  border: 1px solid #ffd8d8;
}

.metric strong {
  font-size: 34px;
  margin-right: 10px;
}

.metric span {
  font-weight: 900;
}

.metric-green strong,
.metric-green span {
  color: #08774f;
}

.metric-red strong,
.metric-red span {
  color: var(--danger);
}

.metric p {
  color: var(--muted);
  margin: 8px 0 0;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.filters label {
  color: #253932;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.filters select {
  appearance: none;
  background: white;
  border: 1px solid #d7e2dd;
  border-radius: 8px;
  color: #1e332d;
  padding: 13px 14px;
}

.tender-list {
  border: 1px solid #e4ebe8;
  border-radius: 8px;
  overflow: hidden;
}

.tender-row {
  align-items: center;
  display: grid;
  grid-template-columns: 1.7fr 1.2fr 0.75fr 0.85fr 0.65fr 0.72fr 0.62fr;
  gap: 14px;
  padding: 16px;
}

.tender-row + .tender-row {
  border-top: 1px solid #e9efec;
}

.tender-head {
  background: #f3f6f5;
  color: #596964;
  font-size: 12px;
  font-weight: 900;
}

.tender-row:not(.tender-head) {
  color: #344640;
  font-size: 13px;
}

.tender-row strong {
  color: #18342c;
}

.match-reasons {
  color: var(--green-600);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 5px;
}

.row-action {
  background: var(--green-900);
  border: 0;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 10px;
}

.badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.badge-new {
  background: #dff5e9;
  color: #08774f;
}

.badge-review {
  background: #e7eef8;
  color: #31547e;
}

.badge-good {
  background: #e3f8d6;
  color: #327111;
}

.documents-card,
.connection-card {
  border: 1px solid #e2ebe7;
  border-radius: 8px;
  margin-top: 18px;
  padding: 18px;
}

.doc-copy {
  flex: 1;
}

.doc-copy h3,
.doc-copy p {
  margin: 0;
}

.doc-copy p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.progress {
  background: #e7eeeb;
  border-radius: 999px;
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
}

.progress span {
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.connection-card {
  align-items: center;
  background: #fbfdfc;
  color: #354942;
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.connection-card h3,
.connection-card p {
  margin: 0;
}

.connection-card h3 {
  font-size: 14px;
}

.connection-card p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.connection-dot {
  background: #aab7b2;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(170, 183, 178, 0.16);
  display: block;
  height: 10px;
  width: 10px;
}

.connection-dot[data-status="ready"] {
  background: var(--green-600);
  box-shadow: 0 0 0 5px rgba(31, 158, 122, 0.16);
}

.connection-dot[data-status="error"] {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(201, 48, 48, 0.14);
}

.chat-launcher {
  background: transparent;
  border: 0;
  bottom: 16px;
  cursor: pointer;
  padding: 0;
  position: fixed;
  right: 16px;
  width: 108px;
  z-index: 10;
}

.chat-launcher img {
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.chat-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 132px;
  max-height: calc(100dvh - 148px);
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(27, 67, 50, 0.22);
  max-width: calc(100vw - 32px);
  position: fixed;
  right: 28px;
  width: 390px;
  z-index: 11;
}

.chat-panel header {
  align-items: center;
  background: var(--green-900);
  color: white;
  display: flex;
  gap: 12px;
  padding: 16px;
}

.chat-panel header img {
  background: transparent;
  height: 54px;
  object-fit: contain;
  width: 54px;
}

.chat-panel h2,
.chat-panel p {
  margin: 0;
}

.chat-panel header p {
  color: #cbe1d8;
  font-size: 13px;
  margin-top: 3px;
}

.chat-close {
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 8px;
  color: white;
  margin-left: auto;
  padding: 8px 11px;
}

.chat-body {
  padding: 18px;
}

.chat-message,
.chat-reply {
  background: var(--soft);
  border-radius: 8px;
  color: #263a34;
  line-height: 1.4;
  padding: 12px 14px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.quick-actions button {
  background: #ecf8f2;
  border: 1px solid #d1ebdf;
  border-radius: 999px;
  color: var(--green-900);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.chat-reply:empty {
  display: none;
}

@media (max-width: 1180px) {
  .app-shell {
    width: min(100% - 34px, 980px);
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-copy h1 {
    max-width: 900px;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e8efec;
    display: flex;
    overflow: auto;
  }

  .preview-logo {
    display: none;
  }

  .preview-sidebar a {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 24px, 560px);
    padding-top: 18px;
  }

  .brand img {
    max-width: 220px;
    width: 64vw;
  }

  .top-actions {
    gap: 8px;
  }

  .icon-button {
    display: none;
  }

  .avatar-button {
    height: 42px;
    width: 42px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .subtitle {
    font-size: 20px;
  }

  .button {
    justify-content: center;
    min-height: 58px;
    width: 100%;
  }

  .benefits,
  .metric-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    margin-inline: -6px;
    padding: 8px;
  }

  .preview-main {
    padding: 16px;
  }

  .preview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tender-list {
    border: 0;
    display: grid;
    gap: 12px;
  }

  .tender-head {
    display: none;
  }

  .tender-row {
    border: 1px solid #e4ebe8;
    border-radius: 8px;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tender-row + .tender-row {
    border-top: 1px solid #e4ebe8;
  }

  .documents-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-launcher {
    bottom: 12px;
    right: 12px;
    width: 84px;
  }

  .chat-panel {
    bottom: 100px;
    max-height: calc(100dvh - 112px);
    left: 12px;
    right: 12px;
    width: auto;
  }
}

/* Product workspace */
html { scroll-behavior:smooth; scroll-padding-top:20px; }
[hidden] { display:none !important; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.55; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #8dc63f;outline-offset:3px; }
.workspace-nav { display:flex;gap:10px;margin:26px 0;overflow-x:auto; }
.workspace-nav a { white-space:nowrap;padding:12px 18px;border-radius:8px;background:white;border:1px solid var(--line);font-weight:700; }
.workspace-nav a:hover { background:#e4f3ec; }
.welcome { padding:20px 0; }.welcome h1 { font-size:clamp(30px,4vw,54px);line-height:1.1;margin:10px 0; }.welcome p { color:var(--muted); }
.account-strip { display:flex;align-items:center;justify-content:space-between;gap:16px;background:#edf6ef;border:1px solid #cbe0d0;padding:16px;border-radius:10px; }
.workspace-section { background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:14px;padding:28px;margin:24px 0; }
.workspace-section h2 { margin-top:0; }.workspace-section>p,.muted { color:var(--muted);line-height:1.5; }
.radar-filters { display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:16px;margin:24px 0;align-items:end; }
label { display:grid;gap:8px;font-weight:650;font-size:14px; }input,select,textarea { font:inherit;padding:12px;border:1px solid #ccdcd4;background:white;color:var(--text);border-radius:8px;max-width:100%;min-width:0; }textarea { resize:vertical; }
.work-actions { display:flex;gap:10px;flex-wrap:wrap;margin-top:14px; }.work-actions button,.work-card button,#alerts-list button { padding:10px 14px;border:1px solid #c8ded3;border-radius:8px;background:#f0f8f3;color:var(--green-900);font-weight:700; }.work-actions .row-action { background:var(--green-900);color:white; }
.work-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-top:20px; }.work-card { border:1px solid var(--line);border-radius:10px;padding:20px;overflow-wrap:anywhere; }.work-card h3 { margin:12px 0; }.work-card p { color:var(--muted);font-size:14px; }
.empty-state { padding:22px;color:var(--muted); }.demo-note { background:#fff4d9;padding:12px;border-radius:8px; }.app-footer { padding:20px 0 90px;color:var(--muted);font-size:13px; }#workspace-notice:not(:empty) { padding:14px;background:#fff5d8;border-radius:8px;position:sticky;top:8px;z-index:12; }
dialog { width:min(680px,calc(100% - 24px));border:1px solid var(--line);border-radius:16px;padding:28px;color:var(--text);max-height:calc(100dvh - 32px);overflow-y:auto; }dialog::backdrop { background:rgba(6,35,29,.4); }dialog h2 { padding-right:30px;overflow-wrap:anywhere; }dialog form { display:grid;gap:18px; }.dialog-close { position:absolute;right:12px;top:12px;border:0;border-radius:50%;background:#edf4f0;width:36px;height:36px;font-size:24px; }.check-row { display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line); }.check-row input { width:20px;height:20px;flex-shrink:0; }.chat-panel header img { flex:0 0 54px; }.chat-launcher { appearance:none;box-shadow:none; }#case-attachments a { display:block;padding:8px; }#tender-detail a { color:var(--green-600);text-decoration:underline; }
@media(min-width:1181px){.app-shell{max-width:1400px}.tender-row{grid-template-columns:2fr 1.3fr .9fr .8fr .7fr .8fr .9fr}}
@media(max-width:760px){.workspace-section{padding:18px 12px}.radar-filters{grid-template-columns:1fr 1fr}.radar-filters>label:first-child{grid-column:1/-1}.account-strip{align-items:flex-start;flex-direction:column}.topbar{gap:10px}.brand img{max-width:50vw}.top-actions{flex-wrap:wrap}#open-auth{font-size:12px;padding:10px}.welcome{padding:8px 0}.metric{padding:16px}.metric-grid{grid-template-columns:1fr 1fr;gap:8px}.metric strong{display:block}.metric p{font-size:12px}.metric span{font-size:13px}.tender-row strong{font-size:16px}.workspace-nav a{padding:10px 12px}.chat-panel{max-width:calc(100vw - 24px)}dialog{padding:20px}.work-actions button{min-height:44px}}
@media print{.topbar,.workspace-nav,.welcome,.account-strip,#workspace-notice,#radar,#busquedas,#alertas,#informes,.chat-launcher,.chat-panel,dialog,.app-footer,.work-card button{display:none!important}.app-shell{width:100%;padding:0}.workspace-section{border:0;margin:0;padding:0}.work-grid{display:block}.work-card{break-inside:avoid;margin-bottom:15px}.documents-card{margin-bottom:20px}}

/* Technical desk hero */
body { background:linear-gradient(150deg,#f4f5ed 0%,#edf4ef 48%,#f7f9f5 100%); }
.welcome { display:grid;grid-template-columns:1.05fr 1fr;overflow:hidden;border:1px solid #d5e2d8;border-radius:22px;background:#e6eee2;padding:0;margin:0 0 24px;box-shadow:0 16px 44px rgba(27,67,50,.07); }
.welcome-copy { padding:clamp(28px,4vw,58px);align-self:center;min-width:0; }
.welcome .eyebrow { color:#3c664f;font-size:11px;letter-spacing:.12em; }
.welcome h1 { font-size:clamp(32px,3.3vw,48px);line-height:1.12;letter-spacing:-.04em;color:#173e2e;margin:16px 0 22px; }
.welcome h1 span { color:#4e7459; }
.welcome .welcome-description { color:#45594b;font-size:17px;line-height:1.65;max-width:420px;margin:0; }
.welcome-actions { display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-top:28px; }
.trial-button { display:inline-flex;align-items:center;justify-content:center;gap:18px;background:#1b4332;color:#fff;border:1px solid #1b4332;border-radius:9px;padding:16px 20px;font-weight:750;min-height:52px;box-shadow:0 6px 16px #1b43321a; }
.trial-button:hover { background:#285e45; }.trial-button span { font-size:20px; }
.hero-radar-link { color:#284d38;font-size:14px;font-weight:700;padding:10px 0;text-decoration:underline;text-underline-offset:5px; }
.welcome .welcome-note { color:#566b59;font-size:12px;line-height:1.5;margin:22px 0 0; }
.welcome-visual { position:relative;min-height:390px; }
.welcome-visual>img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:57% center; }
.welcome-caption { position:absolute;bottom:24px;left:24px;right:24px;display:flex;align-items:center;gap:10px;padding:13px 17px;border:1px solid #ffffff80;border-radius:10px;background:#fffffff0;color:#264532;font-size:13px;font-weight:650;box-shadow:0 4px 20px #10231f14; }
.welcome-caption span { display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e0eadb;color:#345d37; }
@media(max-width:760px) { .welcome{grid-template-columns:1fr;border-radius:16px}.welcome-copy{padding:28px 24px}.welcome h1{font-size:35px;margin:14px 0 18px}.welcome .welcome-description{font-size:15px}.welcome-actions{gap:14px;margin-top:23px}.welcome-visual{min-height:210px}.welcome-visual>img{object-position:center 57%}.welcome-caption{bottom:14px;left:16px;right:16px;font-size:12px;padding:10px 12px}.welcome .welcome-note{margin-top:16px}.trial-button{width:100%}.hero-radar-link{margin:auto}.workspace-nav{margin:20px 0} }
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Compact section navigation */
.workspace-nav { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible;gap:8px;margin:20px 0; }
.workspace-nav a { display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;min-height:44px;padding:12px 8px;font-size:14px; }
.workspace-nav a[aria-current="page"] { background:#1b4332;color:#fff;border-color:#1b4332; }
.radar-pagination { display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0; }
.radar-pagination span { font-size:13px;color:var(--muted);text-align:center; }
.legal-links { display:flex;flex-wrap:wrap;gap:18px;margin-top:14px; }.legal-links a,.auth-privacy a { text-decoration:underline;text-underline-offset:3px; }
.auth-privacy { font-size:12px;line-height:1.6;color:var(--muted);margin:0; }
.app-footer { padding:16px 100px 32px 0;line-height:1.6; }
@media(max-width:760px){.workspace-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-nav a{font-size:13px;padding:10px 4px}.radar-pagination .small-button{font-size:12px;padding:10px}.app-footer{padding-bottom:90px;padding-right:0}}
@media(max-width:350px){.workspace-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{#expedientes[hidden]{display:block!important}}

.trial-status { padding:12px 16px;background:#e9f2e4;border:1px solid #cdddcb;border-radius:10px;color:#284d38;font-size:14px;line-height:1.5; }
@media(min-width:761px){.radar-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media print{.trial-status{display:none!important}}

.pricing-section{margin:32px 0}.pricing-heading{max-width:680px;margin-bottom:22px}.pricing-heading h2{font-size:clamp(25px,3vw,36px);margin:8px 0;color:var(--green-900)}.pricing-heading>p:last-child,.pricing-status{color:var(--muted);line-height:1.6}.pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.plan-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:28px;display:flex;flex-direction:column;align-items:flex-start}.plan-featured{border:2px solid #427b58;background:#f2f7ed}.plan-card h3{font-size:22px;margin:0}.plan-description{color:var(--muted);line-height:1.5}.plan-price{display:flex;align-items:baseline;gap:10px;margin:14px 0}.plan-price strong{font-size:46px;letter-spacing:-.04em;color:var(--green-900)}.plan-price span,.plan-note{font-size:13px;color:var(--muted)}.plan-card ul{padding-left:20px;line-height:1.8;margin-bottom:20px}.plan-card .small-button{margin-top:auto;display:inline-block;line-height:1.4}.pricing-status{font-size:12px;padding:14px 0}.plan-note{line-height:1.5}@media(max-width:760px){.pricing-grid{grid-template-columns:1fr}.plan-card{padding:22px}.pricing-section{margin:24px 0}}@media print{#planes{display:none!important}}

.source-health{margin:16px 0;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:#f3f7f2;font-size:13px;line-height:1.5}.source-health summary{cursor:pointer;font-weight:700;color:var(--green-900)}#sources-status small{color:var(--muted)}
