.monitoreo {
  width: 100%;
  padding: 112px 40px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #3c0303, #651312);
  color: #ffffff;
}

.monitoreo-content {
  width: 100%;
  max-width: 1280px;
}

.monitoreo-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
}

.monitoreo-label {
  color: #ffd47b;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.monitoreo-heading {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitoreo h2 {
  color: #ffffff;
  font-family: "PT Serif", Georgia, serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 62px;
  letter-spacing: -1.2px;
}

.monitoreo-heading p {
  margin-top: 18px;
  color: #f0ebe8;
  font-size: 19px;
  line-height: 27px;
  max-width: 600px;
}

.monitoreo-metricas {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.monitoreo-metrica {
  min-width: 220px;
  flex: 1 1 230px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background-color: #ffffff;
  color: #171717;
}

.monitoreo-metrica--alerta {
  background-color: #171717;
  color: #ffffff;
}

.monitoreo-metrica span,
.monitoreo-panel-head span {
  color: #a50f0f;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}

.monitoreo-metrica--alerta span {
  color: #ffd47b;
}

.monitoreo-metrica strong {
  display: block;
  color: inherit;
  font-family: "PT Serif", Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 54px;
}

.monitoreo-metrica small {
  color: #6f6f6f;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}

.monitoreo-metrica--alerta small {
  color: #dedede;
}

.monitoreo-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.monitoreo-panel {
  min-width: 0;
  padding: 28px;
  background-color: #ffffff;
  color: #171717;
}

.monitoreo-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.monitoreo-panel-head h3 {
  margin-top: 6px;
  color: #171717;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
}

.monitoreo-panel-head p {
  max-width: 220px;
  color: #6f6f6f;
  font-size: 15px;
  line-height: 20px;
  text-align: right;
}

.monitoreo-chart {
  margin-top: 24px;
}

.monitoreo-chart svg {
  width: 100%;
  height: auto;
  display: block;
  background-color: #f2f2f2;
}

.monitoreo-chart-grid line {
  stroke: #ded7d1;
  stroke-width: 1;
}

.monitoreo-chart-area {
  fill: rgba(165, 15, 15, 0.12);
}

.monitoreo-chart-line {
  fill: none;
  stroke: #a50f0f;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.monitoreo-chart-points circle {
  fill: #ffffff;
  stroke: #a50f0f;
  stroke-width: 4;
}

.monitoreo-chart-labels {
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #6f6f6f;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.monitoreo-nota {
  margin-top: 12px;
  color: #6f6f6f;
  font-size: 15px;
  line-height: 20px;
}

.monitoreo-mapa {
  margin-top: 24px;
}

.monitoreo-mapa img {
  width: 100%;
  height: auto;
  display: block;
  padding: 22px;
  background-color: #f2f2f2;
  filter: grayscale(1);
  opacity: 0.78;
}

.monitoreo-mapa p {
  margin-top: 12px;
  color: #6f6f6f;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.monitoreo-panel--asistencia,
.monitoreo-panel--alertas {
  background-color: #171717;
  color: #ffffff;
}

.monitoreo-panel--asistencia .monitoreo-panel-head span,
.monitoreo-panel--alertas .monitoreo-panel-head span {
  color: #ffd47b;
}

.monitoreo-panel--asistencia .monitoreo-panel-head h3,
.monitoreo-panel--alertas .monitoreo-panel-head h3 {
  color: #ffffff;
}

.monitoreo-barras,
.monitoreo-alertas {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}

.monitoreo-barra {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.monitoreo-barra:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.monitoreo-barra span {
  width: 150px;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  text-transform: uppercase;
}

.monitoreo-barra div {
  height: 12px;
  flex: 1;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.16);
}

.monitoreo-barra i {
  width: 0;
  height: 100%;
  display: block;
  background-color: #ffd47b;
  transition: width 0.7s ease;
}

.monitoreo-barra strong {
  width: 48px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-align: right;
}

.monitoreo-alerta {
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.monitoreo-alerta:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.monitoreo-alerta > span {
  width: 12px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #a50f0f;
}

.monitoreo-alerta--media > span {
  background-color: #ffd47b;
}

.monitoreo-alerta--positiva > span {
  background-color: #ffffff;
}

.monitoreo-alerta div {
  min-width: 0;
  flex: 1;
}

.monitoreo-alerta strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
}

.monitoreo-alerta p {
  margin-top: 3px;
  color: #dedede;
  font-size: 15px;
  line-height: 20px;
}

.monitoreo-alerta small {
  color: #ffd47b;
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
  text-align: right;
  white-space: nowrap;
}

.monitoreo-estado {
  margin-top: 18px;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #f0ebe8;
  font-size: 15px;
  line-height: 20px;
}

.monitoreo-estado span {
  width: 10px;
  aspect-ratio: 1;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background-color: #ffd47b;
}

@media (max-width: 1080px) {
  .monitoreo {
    padding: 96px 32px;
  }

  .monitoreo-header {
    flex-direction: column;
    gap: 24px;
  }

  .monitoreo-label,
  .monitoreo-heading {
    max-width: 100%;
  }

  .monitoreo h2 {
    font-size: 52px;
    line-height: 54px;
  }

  .monitoreo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .monitoreo {
    padding: 78px 20px;
  }

  .monitoreo-label {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 2px;
  }

  .monitoreo h2 {
    font-size: 42px;
    line-height: 44px;
    letter-spacing: -0.6px;
  }

  .monitoreo-heading p {
    font-size: 17px;
    line-height: 25px;
  }

  .monitoreo-metrica,
  .monitoreo-panel {
    padding: 24px 20px;
  }

  .monitoreo-metrica strong {
    font-size: 42px;
    line-height: 46px;
  }

  .monitoreo-panel-head {
    flex-direction: column;
    gap: 8px;
  }

  .monitoreo-panel-head p {
    max-width: 100%;
    text-align: left;
  }

  .monitoreo-barra {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .monitoreo-barra span {
    width: calc(100% - 62px);
  }

  .monitoreo-barra div {
    flex-basis: 100%;
    order: 3;
  }

  .monitoreo-alerta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .monitoreo-alerta small {
    width: 100%;
    padding-left: 26px;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .monitoreo {
    padding: 58px 18px;
  }

  .monitoreo h2 {
    font-size: 32px;
    line-height: 35px;
  }

  .monitoreo-metricas,
  .monitoreo-grid {
    gap: 14px;
  }

  .monitoreo-chart-labels span:nth-child(even) {
    display: none;
  }
}
