/* Estilos generales */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7f9;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #004d99;
  color: #fff;
  padding: 2em 1em;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2em;
}

header p {
  font-size: 1.1em;
  opacity: 0.9;
}

main {
  padding: 2em 1em;
}

.table-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  color: #004d99;
  margin-top: 0;
}

/* Estilos de la tabla */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  word-wrap: break-word;

  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

thead {
  display: none; /* Ocultar encabezados en pantallas pequeñas */
}


/*--------------------------------------*/
thead tr {
  background-color: #e6f0ff;
  color: #004d99;
  font-weight: bold;
}

tbody tr:hover {
  background-color: #f1f7fc;
}

/* Ocultar etiquetas de datos en la versión de escritorio */
td:before {
  content: attr(data-label);
  font-weight: bold;
  /*display: none;*/
}
/*--------------------------------------*/

tbody tr {
  display: block;
  margin-bottom: 10px;
  border: 1px solid #ddd;
}

tbody td {
  display: block;
  text-align: right;
  position: relative;
  padding-left: 50%;
}

tbody td::before {
  content: attr(data-label);
  position: absolute;
  left: 10px;
  text-align: left;
  font-weight: bold;
}

@media (min-width: 600px) {
  thead {
      display: table-header-group;
  }

  tbody tr {
      display: table-row;
  }

  tbody td {
      display: table-cell;
      text-align: left;
      padding-left: 8px;
  }

  tbody td::before {
      content: none;
  }
}

/*estilo del pie de pagina*/
footer {
  text-align: center;
  padding: 1em 1em;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #eee;
  margin-top: 2em;
}