/*ESTILOS GENERALES*/
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #7f8591;
  color: #333;
}

header, footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1rem 0;
}

main {
  max-width: 850px;
  margin: 20px auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  padding: 20px;
}

h2, h3 {
  color: #003366;
}

/*OPCIONES/ACCIONES*/
#acciones {
  text-align: center;
  margin-bottom: 20px;
}

.botones-acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/*BOTONES*/
button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}

button:hover {
  background: #005fcc;
}

/*FORMULARIOS*/
#formulario-area {
  margin-top: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-row label {
  font-weight: bold;
  font-size: 14px;
}

.form-row input, .form-row select {
  width: 100%;
  padding: 8px;
  border: 1px solid #bbb;
  border-radius: 6px;
}

.form-actions {
  display: flex;
  justify-content: flex-start; /*izquierdra*/
  gap: 10px;
  margin-top: 10px;
}

/*LISTAS*/
#historial ul {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 20px 0;
}

#historial li {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  border-radius: 6px;
  background: #fdfdfd;
  transition: background 0.2s;
}

#historial li:hover {
  background: #eef3ff;
}

/*BOTONES EDITAR/BORRAR*/
.botones-item {
  display: flex;
  gap: 5px;
}

.boton-editar, .boton-borrar, .botones-item button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.2s;
}

.boton-editar, .botones-item button:nth-child(1) {
  color: #007bff;
}

.boton-editar:hover, .botones-item button:nth-child(1):hover {
  background: rgba(0,123,255,0.1);
}

.boton-borrar, .botones-item button:nth-child(2) {
  color: #d9534f;
}

.boton-borrar:hover, .botones-item button:nth-child(2):hover {
  background: rgba(217,83,79,0.1);
}

/*MODAL*/
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-contenido {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-contenido h3 {
  margin-top: 0;
  color: #003366;
}

.modal-contenido button {
  background: #007bff;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 15px;
}

.modal-contenido button:hover {
  background: #005fcc;
}

/*PIE DE PAGINA*/
footer {
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

