/* Estilo base para formularios */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #f2fef4; /* fondo verde muy suave */
  color: #333;
}

nav {
  background-color: #59a68f;
  padding: 10px 20px;
  color: white;
  font-weight: bold;
}

nav div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
}

nav a:hover {
  text-decoration: underline;
}

/* Contenedor principal */
.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Título del formulario */
h2 {
  text-align: center;
  color: #4d9078;
  margin-bottom: 20px;
}

/* Estilos del formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
select,
textarea,
button {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #59a68f;
  outline: none;
}

/* Botón */
button {
  background-color: #4d9078;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #367a65;
}

#mensaje {
  text-align: center;
  font-weight: bold;
  color: #367a65;
}

/* Tabla de datos */
.listado table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.listado th,
.listado td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}

.listado th {
  background-color: #d1f2e1;
  color: #276b5d;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background-color: #59a68f;
  color: white;
  font-size: 14px;
  border-top: 2px solid #3a8a71;
}
