:root {
  --color-primario: #0b3d91;
  --color-secundario: #4f83ff;
  --color-fondo: #f4f6f8;
  --color-texto: #333333;
  --color-exito: #28a745;
  --color-error: #dc3545;
  --color-advertencia: #ffc107;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../img/fondos/fondo-login.webp');
  background-size: cover;
  background-position: center;
}

.container {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 180px;
  margin-bottom: 1.5rem;
}

.button {
  background-color: var(--color-primario);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  background-color: var(--color-secundario);
}
/* MENÚ LATERAL COMPLETO PARA SIST.lat */

.sidebar {
  width: 250px;
  background-color: #072f4f;
  color: white;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  text-align: center;
  padding: 1rem;
}

.sidebar-header img {
  width: 60px;
  margin-bottom: 0.3rem;
}

.sidebar-header .brand {
  font-weight: bold;
  font-size: 1.1rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.sidebar-nav a:hover {
  background-color: #0b3d91;
}

.sidebar-nav i {
  margin-right: 10px;
  min-width: 20px;
  text-align: center;
}

.menu-item.has-submenu > a {
  justify-content: space-between;
}

.dropdown-icon {
  transition: transform 0.3s ease;
}

.menu-item.active .dropdown-icon {
  transform: rotate(180deg);
}

.submenu {
  display: none;
  background-color: #031d34;
}

.menu-item.active .submenu {
  display: block;
}

.submenu a {
  padding-left: 50px;
  font-size: 0.9em;
}
