:root {
  --green-dark:  #1a5c35;
  --green-mid:   #2d8653;
  --green-light: #4caf78;
  --alert-crit:  #c0392b;
  --alert-alto:  #e67e22;
  --alert-medio: #2980b9;
}

body {
  background: #f4f7f4;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #2c3e50;
}

/* navbar */
.navbar {
  background: var(--green-dark);
  border-bottom: 3px solid var(--green-mid);
}

/* hero */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  border-bottom: 4px solid var(--green-light);
}

.badge-stage {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}

/* cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.card-header {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
  border-radius: 12px 12px 0 0 !important;
  padding: 12px 18px;
}

/* upload zone */
.upload-zone {
  border: 2px dashed var(--green-mid);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f0faf4;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--green-dark);
  background: #e8f5ee;
}

/* section label */
.section-label {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.9rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

/* btn */
.btn-vitoma {
  background: var(--green-dark);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-vitoma:hover { background: var(--green-mid); color: #fff; }
.btn-vitoma:disabled { opacity: 0.6; }

/* alert card nivel */
.alert-card {
  border-radius: 12px;
}
.alert-card.critico { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.alert-card.alto    { background: linear-gradient(135deg, #d35400, #e67e22); }
.alert-card.medio   { background: linear-gradient(135deg, #1a5c9e, #2980b9); }
.alert-card.sano    { background: linear-gradient(135deg, #1a5c35, #2d8653); }

.alert-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* stage cards */
.stage-card {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
}
.stage-label { font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.stage-model { font-size: 0.8rem; color: var(--green-dark); font-weight: 600; }

/* prob bars */
.prob-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}
.prob-name  { width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prob-bar-bg { flex: 1; background: #e8e8e8; border-radius: 4px; height: 10px; }
.prob-bar-fill { height: 100%; border-radius: 4px; background: var(--green-mid); transition: width 0.4s; }
.prob-bar-fill.top { background: var(--green-dark); }
.prob-val   { width: 48px; text-align: right; font-weight: 600; }

/* arch boxes */
.arch-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.2s;
}
.arch-box:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.arch-num {
  width: 40px; height: 40px;
  background: var(--green-dark); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  margin: 0 auto 6px;
}

/* form-range verde */
.form-range::-webkit-slider-thumb { background: var(--green-dark); }
.form-range::-moz-range-thumb     { background: var(--green-dark); }
