body {
  margin: 0;
  font-family: Arial;
  background-image:url("../img/cell-03.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;

  /* 🔥 centrado global */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* 🔥 DASHBOARD */
.dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;

  /* 🔑 controla el ancho total */
  width: 100%;
  max-width: 1200px;

  padding: 20px;
}

/* 🔹 PANEL IZQUIERDO */
.info-panel {
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 10px;
}

.info-panel h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.info-block {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 14px;
}

.info-block span {
  color: #aaa;
}

.info-block strong {
  color: #fff;
}

/* 🔹 GRÁFICO */
.surface-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 centra el gráfico */
}

.chart-container {
  width: 100%;
  display: flex;
  justify-content: center; /* 🔥 centra horizontal */
}

.chart {
  width: 100%;
  max-width: 700px; /* 🔥 controla tamaño SIN romper centrado */
  height: 60vh;
}

.controls {
  margin-top: 10px;
}

/* 🔥 RESPONSIVE */
@media (max-width: 900px) {

  body {
    align-items: flex-start; /* evita recorte vertical en móvil */
  }

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

  .surface-widget {
    order: 1;
  }

  .info-panel {
    order: 2;
  }

  .chart {
    height: 50vh;
  }
}