@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
}

.login-body {
  background: #7c3aed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.login-card h1 {
  color: #6a0dad;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-card h2 {
  color: #888;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 28px;
}

.campo {
  margin-bottom: 18px;
}

.campo label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
}

.campo input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: border 0.2s;
}

.campo input:focus {
  border-color: #9b30ff;
}

button[type="submit"] {
  width: 100%;
  padding: 11px;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: #6a0dad;
}

nav {
  background: linear-gradient(135deg, #6a0dad, #9b30ff);
  box-shadow: 0 4px 20px rgba(106,13,173,0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-brand {
  text-align: center;
  padding: 14px 0 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 8px;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  transition: background 0.2s;
  border-radius: 6px 6px 0 0;
}

.nav-links > li > a .flecha {
  font-size: 9px;
  margin-left: 3px;
  display: inline-block;
  transition: transform 0.2s;
}

.nav-links > li:hover > a {
  background: rgba(255,255,255,0.18);
}

.nav-links > li:hover > a .flecha {
  transform: rotate(180deg);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 0 0 10px 10px;
  min-width: 155px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 500;
}

.nav-links > li:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: #5a0d8c;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.dropdown a:hover {
  background: #f3e8ff;
  border-left-color: #9b30ff;
  color: #6a0dad;
}

.contenido {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border-top: 4px solid #9b30ff;
}

.card h2 {
  color: #6a0dad;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-grupo {
  margin-bottom: 16px;
}

.form-grupo label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
}

.form-grupo input,
.form-grupo select {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: border 0.2s;
}

.form-grupo input:focus,
.form-grupo select:focus {
  border-color: #9b30ff;
}

.btn-guardar {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-guardar:hover {
  background: #6a0dad;
}

.btn-volver {
  display: inline-block;
  margin-top: 14px;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.btn-volver:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th {
  background: #7c3aed;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}

table td {
  padding: 9px 14px;
  border-bottom: 1px solid #eee;
  color: #333;
}

table tr:hover td {
  background: #f8f0ff;
}
