table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

thead th {
  background-color: #f2f6fc;
  font-weight: bold;
  padding: 10px;
  border-bottom: 2px solid #ccc;
  text-align: center;
}

tbody td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
 text-align: center;

}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

td.max {
  color: red;
  text-align: center;
}

td.min {
  color: green;
  text-align: center;
}

tbody td:last-child {
  text-align: center;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none; /* Ocultamos encabezados en móvil */
  }

  tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    background-color: #fff;
  }

  td {
    text-align: left;
    border: none;
    position: relative;
    padding-left: 50%;
  }

  td::before {
    position: absolute;
    left: 10px;
    top: 10px;
    white-space: nowrap;
    font-weight: bold;
    color: #555;
  }

  td:nth-of-type(1)::before { content: "Prod."; }
  td:nth-of-type(2)::before { content: "Precio Máx."; }
  td:nth-of-type(3)::before { content: "Precio Mín."; }
  td:nth-of-type(4)::before { content: "Banco"; }
}

