/* Global styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  background-image: url('../../imagenes/fondo.jpg'); /* Ajusta la ruta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-attachment: fixed;  /* <-- Esto lo hace "fijo" */


}

/* Login container (para páginas de login, si se usan) */
.login-container {
  width: 300px;
  margin: 10% auto;
  background: white;
  padding: 2rem;
  border-radius: 6px;
}

/* Inputs y botones */
input, button {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

button {
  background: #093d6e;
  color: white;
  border: none;
}

/* Header general */
header.header {
  background: #093d6e;
  padding: 0.5rem 1rem;
  color: white;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  height: 40px;
  margin-right: 2rem;
}

/* Menú principal */
.nav-left {
  display: flex;
  align-items: center;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  color: white;
  text-decoration: none;
  padding: 10px;
  display: block;
  transition: background 0.3s ease;
}

.menu-item:hover > a {
  background: #0c4e8a;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  background-color: #1f1f1f;
  min-width: 200px;
  z-index: 1000;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item:hover > .dropdown {
  display: block;
}

.dropdown-item {
  position: relative;
}

.dropdown a {
  color: white;
  padding: 10px;
  display: block;
  text-decoration: none;
}

.dropdown a:hover {
  background-color: #333;
}

/* Submenús */
.dropdown-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #2e2e2e;
  min-width: 200px;
  z-index: 1000;
}

.dropdown-item:hover > .dropdown-submenu {
  display: block;
}

/* Botón cerrar sesión */
.nav-right {
  margin-left: auto;
}

.logout-button {
  background: #f38302;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.logout-button:hover {
  background: #da7300;
}

