/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f4fa;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Menú superior */
nav {
  background: #0d47a1; /* azul oscuro */
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgb(13 71 161 / 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 40px; /* espacio extra entre logo y menú */
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  user-select: none;
}

nav .logo img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

nav .menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

nav .menu a {
  color: #bbdefb;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav .menu a:hover,
nav .menu a.active {
  background-color: #1976d2;
  color: #fff;
}

/* Contenido principal */
main {
  flex-grow: 1;
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Títulos */
h1 {
  margin-bottom: 24px;
  font-weight: 700;
  color: #0d47a1;
}

/* Tabla estilos */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  word-wrap: break-word;
  font-size: 0.95rem;
}

thead tr {
  background-color: #1976d2;
  color: white;
}

thead th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 8px 8px 0 0;
}

tbody tr {
  background-color: white;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
}

tbody td {
  padding: 12px 15px;
  vertical-align: middle;
  border-bottom: none;
  overflow-wrap: break-word;
}

tbody tr:nth-child(even) {
  background-color: #e3f2fd;
}

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

td a.boton {
  background-color: #388e3c;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

td a.boton:hover {
  background-color: #2e7d32;
}

td a {
  text-decoration: none;
  color: #1976d2;
  margin: 0 4px;
  font-weight: 600;
}

td a:hover {
  text-decoration: underline;
}

/* Botones principales */
button, input[type="submit"] {
  background-color: #0d47a1;
  color: white;
  border: none;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

button:hover, input[type="submit"]:hover {
  background-color: #1565c0;
}

/* Formularios */
form {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.1);
  max-width: 400px;
  margin: 30px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #0d47a1;
  font-size: 0.95rem;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="date"],
form textarea {
  width: 100%;               /* Ocupa todo el ancho disponible */
  padding: 10px 14px;        /* Espacio interno */
  margin-bottom: 16px;
  border: 1.8px solid #bbdefb;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
  min-width: 150px;          /* Ancho mínimo */
}


form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form input[type="date"]:focus,
form textarea:focus {
  border-color: #1976d2;
  outline: none;
}

/* Mensajes de error*
