body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fffde7;
}


.contenedor-global {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.acciones {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}
button {
  background-color: #d3d3d3;
  border: 1px solid #888;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  transition: background 0.2s;
}
button:hover:not(:disabled) {
  background-color: #c0c0c0;
}
button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

table {
  border-collapse: collapse;
  width: 100%; 
  height: 80vh;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  min-height: 450px;
  background-color: lightblue;
}

thead {
  background-color: #f08080;
  font-weight: bold;
  text-align: center;
}
thead th {
  padding: 10px;
}
tbody td {
  padding: 8px;
  background-color: lightblue;
  text-align: center;
}

tfoot td {
  background-color: #fff8dc;
  text-align: center;
  font-weight: bold;
  padding: 5px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.modal-contenido {
  background-color: #fdf5e6;
  border: 3px solid #8b0000;
  border-radius: 5px;
  width: 60%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  background-color: #8b0000;
  color: white;
  font-weight: bold;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-body {
  padding: 10px;
  background-color: #fff8dc;
  overflow-y: auto;
}
.modal iframe {
  width: 100%;
  height: 400px;
  border: none;
}
.modal-footer {
  background-color: #8b0000;
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 5px;
}
.close-btn {
  cursor: pointer;
  font-size: 20px;
}

/* Responsividad */
@media (max-width: 768px) {
  .modal-contenido {
      width: 90%;
      height: 90%;
  }
  .modal iframe {
      height: 100%;
  }
}
