//* Reset de estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General */
body {
  font-family: system-ui, sans-serif;
  background: #f7f8fa;
  color: #333;
}

header {
  background: #111;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 1.4rem;
}

#lista {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card:hover {
  background: #f1f1f1;
}

.card div {
  margin-right: 20px;
}

.card .nombre {
  font-size: 1.2rem;
  font-weight: bold;
  flex: 1;
}

.card .precio {
  text-align: right;
}

.card .subida {
  color: #1a9c5d;
}

.card .bajada {
  color: #d64545;
}

.card .mensual {
  color: #ff8c00;
}

.card .variacion-mensual {
  font-weight: bold;
}

/* Detalle (gráfico) */
/* Reset de estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General */
body {
  font-family: system-ui, sans-serif;
  background: #f7f8fa;
  color: #333;
}

header {
  background: #111;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 1.4rem;
}

#lista {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card:hover {
  background: #f1f1f1;
}

.card div {
  margin-right: 20px;
}

.card .nombre {
  font-size: 1.2rem;
  font-weight: bold;
  flex: 1;
}

.card .precio {
  text-align: right;
}

.card .subida {
  color: #1a9c5d;
}

.card .bajada {
  color: #d64545;
}

.card .mensual {
  color: #ff8c00;
}

.card .variacion-mensual {
  font-weight: bold;
}

/* Detalle (gráfico) */
#detalle {
  padding: 20px;
  background: white;
  display: none;
}

#detalle h2 {
  margin-bottom: 10px;
}

button, select {
  padding: 12px;
  font-size: 1rem;
  width: 100%;
  margin-top: 15px;
  border: none;
  background: #111;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

button {
  margin-bottom: 15px;
}

select {
  margin-bottom: 15px;
}

canvas {
  width: 100% !important;
  height: auto !important;
}

/* Mobile-Friendly */
@media (max-width: 600px) {
  header {
    font-size: 1.2rem;
    padding: 8px;
  }

  .card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  button, select {
    font-size: 1.2rem;
  }
}
