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

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

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
}

/* ══════════════════════════
   FONDO VIDEO — solo login
══════════════════════════ */
.video-bg {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* El video va aquí — pon tu archivo en la misma carpeta */
.video-bg video {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Degradado encima del video */
.video-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

/* ══════════════════════════
   FONDO IMAGEN — demás páginas
   Cambia 'fondo.jpg' por tu imagen
══════════════════════════ */
.fondo {
  min-height: 100vh;
  background-image: url('fondo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Degradado encima de la imagen */
.fondo::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.40);
  z-index: 0;
  pointer-events: none;
}

.fondo > * { position: relative; z-index: 1; }

/* ══════════════════════════
   NAVBAR
══════════════════════════ */
#header {
  background: rgba(0,0,0,0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.nav > li { position: relative; }

.nav > li > a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 15px 16px;
  transition: background 0.2s, color 0.2s;
}

.nav > li > a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
  min-width: 140px;
  list-style: none;
  z-index: 200;
  border-top: 2px solid rgba(255,255,255,0.20);
}

.nav li:hover > ul { display: block; }

.nav li ul li a {
  display: block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s, color 0.15s;
}

.nav li ul li:last-child a { border-bottom: none; }
.nav li ul li a:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

/* ══════════════════════════
   LOGIN
══════════════════════════ */
.login-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-box {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
}

.login-box label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.login-box input {
  width: 100%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.90rem;
  padding: 11px 14px;
  margin-bottom: 18px;
  outline: none;
  transition: border-color 0.2s;
}

.login-box input::placeholder { color: rgba(255,255,255,0.40); }
.login-box input:focus { border-color: rgba(255,255,255,0.65); }

.login-box button {
  width: 100%;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.90rem;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.login-box button:hover { background: #eee; }

/* ══════════════════════════
   CARD — formularios
══════════════════════════ */
.page-wrapper {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
}

.card {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 36px 32px;
  width: 100%;
  max-width: 460px;
}

.card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.card label {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.card input, .card select, .card textarea {
  width: 100%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  padding: 10px 13px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.card input::placeholder { color: rgba(255,255,255,0.35); }
.card input:focus { border-color: rgba(255,255,255,0.60); }

/* ══════════════════════════
   BOTONES
══════════════════════════ */
.btn {
  display: inline-block;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: #fff; color: #111; }
.btn-primary:hover { background: #eee; }

.btn-danger { background: #e53e3e; color: #fff; }
.btn-danger:hover { background: #c53030; }

.btn-ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover { background: rgba(255,255,255,0.24); }

.btn-menu {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  text-decoration: none;
  margin-bottom: 18px;
  transition: background 0.15s;
}
.btn-menu:hover { background: rgba(255,255,255,0.24); color: #fff; }

/* ══════════════════════════
   MENSAJES
══════════════════════════ */
.msg-error {
  background: rgba(229,62,62,0.28);
  border-left: 3px solid #e53e3e;
  color: #fff;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.83rem;
  font-weight: 500;
  border-radius: 4px;
}

/* ══════════════════════════
   TABLAS
══════════════════════════ */
.tabla-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 20px;
}

.tabla-titulo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0,0,0,0.45);
  border-radius: 10px 10px 0 0;
}
.tabla-titulo h2 { font-size: 0.90rem; font-weight: 700; color: #fff; }
.tabla-titulo span { font-size: 0.75rem; color: rgba(255,255,255,0.60); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  background: rgba(0,0,0,0.38);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
thead th {
  padding: 10px 18px;
  text-align: left;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.50);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.07); transition: background 0.10s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.07); }
tbody td { padding: 12px 18px; color: rgba(255,255,255,0.85); font-weight: 500; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 5px; }