:root {
  --acento: #373737;
  --green: #50cc88;
  --yellow: #ffc20d;
  --red: #c50000;
  --cian: #0ee2a0;
  --blue: #3a5d85;
  --text: #2e2e2e;
  --grey: #b2b2b3;
  --line: #e8edf3;
  --bg: #fdfdfd;
  --shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --leves: var(--green);
  --medias: var(--yellow);
  --graves: var(--red);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", sans-serif !important;
  background: var(--bg);
  color: var(--text);
  text-shadow: none;
  stroke: none !important;
  stroke-width: 0 !important;
}

/*Login*/

.login .container {
  display: flex;
  justify-content: center;
  background: url(images/bg.png);
  background-position: left center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  box-sizing: border-box;
  margin: 0;
}

.login .container-left {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 60%;
  padding: 40px;
}

.login .container-left .logo {
  max-width: 120px;
}

.login .container-left p {
  color: var(--cian);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 22px;
}

.login .container-left h1 {
  color: #ffffff;
  font-weight: 800;
  font-size: 60px;
  margin-bottom: 5px;
  line-height: 105%;
  margin-top: 0;
}

.login .container-right {
  background-color: #ffffff;
  width: 40%;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login .card-login {
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.login h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--text);
}
.login p {
  margin: 0 0 25px;
  color: var(--grey);
  font-size: 13px;
}

.login .container-right p {
  text-align: center;
}

.login #loginForm {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--text);
  border-radius: 10px;
  outline: none;
  margin-bottom: 20px;
}
.login button.btnEnviar {
  margin: 0 auto !important;
  width: 100%;
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  border: solid 1px var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  transition: all ease 0.3s;
}

.login button.btnEnviar:hover {
  background-color: var(--cian);
  color: var(--blue);
}

.login .err {
  margin-top: 10px;
  color: #c50000;
  font-size: 13px;
  display: none;
}

.login .loginField {
  position: relative;
  width: 300px;
}

.login .loginField input {
  width: 100%;
  max-width: 100%;
  padding: 12px 44px 12px 12px;
  border: 1px solid #dfe3ef;
  border-radius: 10px;
  outline: none;
}

.login .eyeBtn {
  position: absolute;
  right: 5px;
  top: 23px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 34px;
  height: 34px;
  margin: 0;
  display: grid;
  place-items: center;
}

.login .eyeBtn svg {
  width: 18px;
  height: 18px;
  transition: opacity 0.2s ease;
}

.login .eyeBtn svg path {
  fill: var(--grey);
}

.login .eyeBtn:hover svg {
  opacity: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0px 4px 25px -1px #0000000a;
}

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

.brand img {
  height: 40px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
}
.title {
  font-size: 16px;
  color: var(--text);
}
.subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text);
  font-weight: 400;
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.select {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fdfdfd;
}
.select span {
  font-size: 12px;
  color: var(--grey);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
select {
  border: none;
  outline: none;
  background: transparent;
  font-weight: 900;
  color: var(--acento);
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 35px;
  padding: 18px 24px 28px;
}

.card {
  background: rgba(243, 243, 244, 0.36);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 0px 40px rgba(16, 24, 40, 0.08);
}

.card.details #zoneTitle {
  margin-bottom: 0px !important;
}

.card.details .contentAllZones {
  display: flex;
  margin-top: 25px;
}

h2 {
  margin: 0 0 20px 0;
  font-size: 25px;
  line-height: 125%;
  font-weight: 500;
  color: var(--acento);
  letter-spacing: -0.6px;
}

h3 {
  margin: 14px 0 5px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.6px;
}
.hint {
  margin: 0 0 15px 0;
  font-size: 12px;
  color: var(--grey);
  font-weight: 400;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}

.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 35px;
}

.kpi.kpiTotal {
  backdrop-filter: blur(16.100000381469727px);
  box-shadow: 0px 4px 22px -4px rgba(94, 94, 94, 0.65);
  background-color: var(--acento);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  align-items: center;
  justify-content: center;
}

.kpi.kpiTotal .kpiLabel {
  color: #ffffff;
}

.kpi.kpiTotal .kpiHint {
  color: #ffffff;
  font-weight: 400;
}

.zonas {
  margin-top: 30px;
  background-color: var(--blue);
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0px 40px rgba(16, 24, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zonas .hint {
  color: #ffffff;
  margin-bottom: 0 !important;
  max-width: calc(100% - 135px);
}

.zonas a {
  background-color: var(--cian);
  padding: 5px 15px;
  font-size: 12px;
  border: solid 1px var(--cian);
  color: var(--blue);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all ease 0.3s;
  margin-bottom: 0 !important;
  width: 119px;
  text-align: center;
}

.zonas a:hover {
  background-color: #ffffff;
}

.zonasContent {
  display: flex;
}

.arrowUp svg {
  fill: var(--red);
}

.arrowDown svg {
  fill: var(--green);
}

.arrowEqual svg {
  fill: #ffffff;
}

.arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #ffffff;
}

.arrow svg {
  width: 10px;
  height: 10px;
}

.kpiRiesgo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.kpi {
  padding: 14px;
  box-shadow: 0 0px 40px rgba(16, 24, 40, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(243, 243, 244, 0.36);
}
.kpiLabel {
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.kpiValue {
  font-size: 44px;
  font-weight: 600;
  margin-top: 8px;
  color: #ffffff;
  letter-spacing: -1px;
}
.kpiHint {
  font-size: 12px;
  color: var(--grey);
  margin-top: 6px;
  font-weight: 600;
}

.riskPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 900;
  width: fit-content;
  background: #fff;
}

.donutWrap {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  align-items: center;
  margin: 10px 0 0;
}
#donut {
  max-width: 170px;
  max-height: 170px;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 30px;
}
.legendItem {
  display: flex;
  gap: 10px;
  align-items: center;
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}
.swatchLeves {
  background: var(--leves);
}
.swatchMedias {
  background: var(--medias);
}
.swatchGraves {
  background: var(--graves);
}
.legendLabel {
  font-size: 11px;
  color: var(--grey);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.legendValue {
  font-size: 17px;
  font-weight: 700;
  color: #5e5e5e;
  margin-top: 2px;
}

.zoneList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.zoneBtn {
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--acento);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0px 4px 16.1px 0px #0000000a;
  transition: all ease 0.3s;
  font-family: "Inter", sans-serif !important;
}
.zoneBtn:hover,
.zoneBtn.active {
  background-color: var(--acento);
  color: #ffffff;
}

.compareWrap {
  overflow: auto;
  margin-top: 20px;
}
.compareTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.compareTable th,
.compareTable td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.compareTable thead th {
  background: rgba(47, 77, 116, 0.06);
  color: var(--acento);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.compareTable tbody td:first-child {
  color: var(--text);
  font-weight: 600;
}
.compareTable tbody tr:last-child td {
  border-bottom: none;
}

.compareTable thead th:last-child {
  background: var(--blue);
  color: #ffffff;
}

.compareTable tbody td:last-child {
  background: var(--blue);
  color: #ffffff;
}

.compareTable thead th:last-child,
.compareTable tbody td:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.compareTable tbody td:last-child {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.compareTable tbody tr:last-child td:last-child {
  border-bottom: none;
}

.compareTable thead th:not(:first-child),
.compareTable tbody td:not(:first-child) {
  text-align: center;
}
.cmpRiskPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.mapCard {
  padding: 16px;
}
.mapHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--acento);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  transition: all ease 0.3s;
  box-shadow: 0px 4px 16.1px 0px #0000000a;
  font-family: "Inter", sans-serif !important;
}
.btn:hover {
  background-color: var(--acento);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

#map {
  height: 520px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.leaflet-tooltip {
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
  font-weight: 700 !important;
}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
  fill: rgba(0, 224, 160, 1);
  opacity: 1 !important;
  fill-opacity: 0.4 !important;
}

.bigNumber {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -2px;
  margin: 0 30px 0 0;
  color: var(--acento);
  width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.miniKpis {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.miniKpi {
  padding: 5px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.miniLabel {
  font-size: 11px;
  color: var(--acento);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.miniValue {
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--acento);
}

.criticalList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 250px;
  overflow: auto;
}
.criticalItem {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 14px;
}

.criticalTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.criticalTitle {
  font-weight: 950;
  color: var(--acento);
  max-width: calc(100% - 120px);
}

.countBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--acento);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin-left: 4px;
}

.badge {
  font-size: 12px;
  font-weight: 950;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.badgeSpeed {
  color: var(--green);
  border-color: rgba(0, 224, 160, 0.35);
  background: rgba(0, 224, 160, 0.08);
  width: 120px;
}

.empty {
  padding: 14px;
  border: 1px dashed rgba(31, 53, 85, 0.25);
  border-radius: var(--radius-sm);
  color: var(--grey);
  font-size: 12px;
  font-weight: 600;
}

.annualSection {
  padding: 0 24px 28px;
}
.annualHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 12px 0;
}
.annualTitle {
  margin: 0;
  font-size: 32px;

  font-weight: 600;
  color: var(--acento);
  letter-spacing: -0.6px;
}

#annualTitle {
  margin-bottom: 5px;
}

.annualControls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.annualGrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.annualDonutCard .annualDonutTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.annualTotals {
  text-align: right;
}
.annualTotalLabel {
  font-size: 11px;
  color: var(--grey);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.annualTotalValue {
  font-size: 34px;
  font-weight: 950;
  color: var(--acento);
  letter-spacing: -0.8px;
  margin-top: 6px;
}

.annualDonutWrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}
#annualDonut {
  max-width: 190px;
  max-height: 190px;
}

.leaflet-popup-content b,
#donut b {
  font-weight: 800;
}

.contentDonut {
  position: relative;
  width: 170px;
  height: 170px;
}

#annualRangeHint.hint {
  margin-bottom: 0 !important;
}

.contentDonutAnual {
  position: relative;
  width: 240px;
  height: 170px;
}

.contentDonutAnual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contentDonutAnual .donut-center {
  transform: translateY(-3px) translateX(-3px);
}

.content-donut canvas {
  width: 100% !important;
  height: 100% !important;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 35px;
  line-height: 1;
  color: var(--acento);
  pointer-events: none;
}

.riskTitle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: all ease 0.3s;
}

.iconBtn:hover {
  background: var(--cian);
}

.modalOverlay[hidden] {
  display: none;
}

.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.modalCard {
  width: min(620px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  padding: 18px 18px 16px;
  position: relative;
}

.modalClose {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modalTitle {
  margin: 6px 40px 4px 0;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.modalSubtitle {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 13px;
}

/* legend content */
.riskLegend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.riskRow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}

.riskDot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  margin-top: 2px;
  background: #ccc;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.riskRule {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.75);
}

.riskLabel {
  margin-top: 4px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.riskHigh .riskDot {
  background: #c50000;
}
.riskHigh .riskLabel {
  color: #c50000;
}

.riskMed .riskDot {
  background: #ffc20d;
}
.riskMed .riskLabel {
  color: #a97c00;
}

.riskLow .riskDot {
  background: #50cc88;
}
.riskLow .riskLabel {
  color: #2b8a58;
}

.nativeSelect {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.dd {
  position: relative;
  display: inline-block;
  min-width: 200px;
}

.ddBtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;

  font: inherit;
  font-weight: 600;
  color: #222;

  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.ddBtn:hover {
  border-color: var(--blue);
}

.ddBtn:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(58, 93, 133, 0.15);
}

.ddChevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  margin-top: -2px;
}

.dd.open .ddChevron {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.ddMenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;

  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  padding: 6px;
  display: none;

  max-height: 320px;
  overflow: auto;
}

.dd.open .ddMenu {
  display: block;
}

.ddOption {
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ddOption:hover {
  background: rgba(58, 93, 133, 0.1);
}

.ddOption[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
}

.ddOption[aria-selected="true"]::after {
  content: "✓";
  font-weight: 700;
}

.ddMenu::-webkit-scrollbar {
  width: 10px;
}
.ddMenu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  border: 3px solid #fff;
}

.nativeSelect {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
}

footer {
  background-color: #000000;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer img {
  height: 25px;
}

footer p {
  color: #ffffff !important;
  font-size: 12px !important;
  margin: 0 !important;
  line-height: 125%;
}

/*Responsivee*/
img,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

.topbar {
  gap: 14px;
  flex-wrap: wrap;
}

.controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .controls {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .criticalList {
    max-height: 150px;
  }

  .layout {
    padding: 16px;
    gap: 16px;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "left left"
      "map  right";
  }

  .responsive-content-top {
    display: flex;
  }

  .responsive-content-top .kpis {
    width: 50%;
    margin: 14px 0 0;
  }

  .responsive-content-top .donutWrap {
    width: 50%;
    display: flex;
    justify-content: center;
  }

  .layout > .card:nth-child(1) {
    grid-area: left;
  }
  .layout > .card:nth-child(2) {
    grid-area: map;
  }
  .layout > .card:nth-child(3) {
    grid-area: right;
  }

  .card.details .contentAllZones {
    gap: 12px;
  }

  .donutWrap {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .legend {
    margin-left: 0;
  }

  h2 {
    margin: 0 0 15px 0;
    font-size: 22px;
  }

  #map {
    height: 600px;
    width: 100%;
  }

  .annualSection {
    padding: 0 16px 24px;
  }

  .annualHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .annualControls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .annualGrid {
    gap: 16px;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "a1 a1"
      "a2 a3";
  }

  .annualGrid > .card:nth-child(1) {
    grid-area: a1;
  }
  .annualGrid > .card:nth-child(2) {
    grid-area: a2;
  }
  .annualGrid > .card:nth-child(3) {
    grid-area: a3;
  }

  .zoneBtn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .contentDonutAnual {
    width: 200px;
  }

  .annualDonutWrap {
    grid-template-columns: 200px 1fr;
  }

  .login .container-right {
    width: 100%;
    padding: 20px;
  }

  .login .card-login {
    padding: 0;
  }

  .login .container-left {
    max-width: calc(100% - 370px);
  }

  .login .container-left h1 {
    font-size: 50px;
  }
}

@media (max-width: 767px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "map"
      "right";
    gap: 16px;
    padding: 14px;
  }

  .responsive-content-top .donutWrap {
    width: 100%;
  }

  .title {
    font-size: 13px;
  }

  .subtitle {
    margin-top: 0;
    font-size: 11px;
  }

  .brand img {
    height: 25px;
  }

  .criticalTitle {
    font-weight: 700;
    max-width: calc(100% - 120px);
    font-size: 18px;
  }

  .select {
    gap: 10px;
    padding: 10px 5px;
  }

  .select span {
    font-size: 11px;
  }

  .ddOption {
    font-size: 12px;
  }

  .ddMenu {
    max-height: 280px;
  }

  .dd {
    min-width: 150px;
  }

  .responsive-content-top .kpis {
    width: 100%;
    margin-bottom: 20px;
  }

  .responsive-content-top {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .layout > .card {
    width: 100%;
  }

  #map {
    height: 340px;
  }

  .donutWrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .legend {
    margin-left: 0;
    align-items: center;
  }

  .annualGrid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "a1"
      "a2"
      "a3";
  }

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

  .controls {
    flex-wrap: wrap;
  }

  .zoneList {
    flex-wrap: wrap;
  }

  footer {
    flex-direction: column;
  }

  footer img {
    margin-bottom: 10px;
  }

  footer p {
    font-size: 11px !important;
    line-height: 145%;
    text-align: center;
  }

  .annualHeader .hint {
    margin-bottom: 0 !important;
  }

  .login .container {
    flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start;
    align-items: center;
  }

  .login .container-left {
    min-height: fit-content;
    align-items: center;
    padding: 40px 20px 10px 20px;
  }

  .login .container-left .logo {
    max-width: 80px;
    margin-bottom: 30px;
  }

  .login .container-left {
    max-width: 100%;
  }

  .login .container-left h1 {
    font-size: 40px;
    text-align: center;
  }

  .login .container-left p {
    text-align: center;
    font-size: 18px;
  }

  .login .container-right {
    padding: 0;
    background-color: transparent;
    margin: 0 auto;
  }

  .login .card-login {
    padding: 30px;
    background-color: #ffffff;
    border-radius: 20px;
  }
}

@media (max-width: 576px) {
  h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
  }

  .legendValue {
    font-size: 13px;
  }

  .card {
    padding: 12px;
  }

  .kpiValue {
    font-size: 32px;
  }

  .criticalTitle,
  .p2-placeTitle {
    font-weight: 700;
    max-width: calc(100% - 120px);
    font-size: 14px;
  }

  .criticalItem .hint {
    margin-bottom: 5px !important;
  }

  .criticalList {
    max-height: 220px;
  }

  .card.details {
    margin-bottom: 20px;
  }

  .annualGrid,
  .layout {
    gap: 20px;
  }

  .compareTable th,
  .compareTable td {
    font-size: 11px;
  }
}

@media (max-width: 490px) {
  .select span.mes-responsive {
    display: none;
  }

  .brand img {
    height: 20px;
  }

  .topbar .title {
    font-size: 12px;
  }

  .topbar {
    gap: 10px;
    padding: 15px 10px;
  }

  .compareTable th,
  .compareTable td {
    font-size: 10px;
  }

  h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
  }

  .donut-center {
    font-size: 30px;
    font-weight: 700;
  }

  .login .container-right {
    padding: 20px;
  }

  .login .card-login {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .topbar .title,
  .topbar .subtitle {
    display: none;
  }

  .brand img {
    height: 25px;
  }
}

/*Página de zonas de control*/
.p2-layout {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 24px;
  padding: 18px 24px 28px;
  min-height: calc(100vh - 76px);
}

.p2-card {
  background: rgba(243, 243, 244, 0.36);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 0px 40px rgba(16, 24, 40, 0.08);
}

.p2-mapHeader {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.p2-h3 {
  margin: 0 0 10px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.6px;
}

.p2-hint {
  margin: 0 0 12px 0;
  font-size: 12px;
  color: var(--grey);
  font-weight: 400;
}

.p2-divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

#p2-map {
  height: 530px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.p2-zoneList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.p2-zoneBtn {
  border: 1px solid rgba(58, 93, 133, 0.35);
  background: #fff;
  color: var(--acento);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0px 4px 16.1px 0px #0000000a;
  transition: all ease 0.3s;
  font-family: "Inter", sans-serif !important;
}

.p2-zoneBtn:hover,
.p2-zoneBtn.p2-active {
  background-color: var(--acento);
  color: #fff;
}

.p2-placeList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
}

.p2-placeItem {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 14px;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.p2-placeItem:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.p2-placeTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.p2-placeTitle {
  font-weight: 700;
  color: var(--acento);
  max-width: calc(100% - 130px);
}

.p2-speedBadge {
  font-size: 12px;
  font-weight: 950;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 224, 160, 0.35);
  background: rgba(0, 224, 160, 0.08);
  color: var(--green);
  white-space: nowrap;
}

.p2-placeMeta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--grey);
}

.gm-ui-hover-effect > span {
  margin: 3px !important;
}

.p2-infowrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
}

.gm-ui-hover-effect {
  width: 28px !important;
  height: 28px !important;
  outline: none !important;
}

.p2-infobadge {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

.p2-infotitle {
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.p2-infosub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--grey);
}

@media (max-width: 850px) {
  .p2-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  #p2-map {
    height: 420px;
  }
  .p2-placeList {
    max-height: 320px;
  }

  .p2-zoneBtn {
    padding: 5px 10px;
  }
}
