html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #0f0f0f;
    color: #fff;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==== MENÚ PRINCIPAL FIJO ARRIBA ==== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000; /* más oscuro */
    z-index: 1000;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    height: var(--nav-h);
    box-sizing: border-box;
    color: #9c9c9c; /* texto blanco */
}

.navbar-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin-right: 1.5rem;
}

.navbar-menu li a {
    color: #000000; /* texto claro */
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.navbar-menu li a:hover,
.navbar-menu li a.active {
    color: #585858; /* azul brillante para hover/activo */
}

/* Estilos de submenu */
.sidebar ul .dropdown {
  position: relative;
  z-index: 1000;
}

.sidebar ul .submenu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #ffffff77; /* fondo claro */
  min-width: 200px;
  box-shadow: 0px 8px 16px rgb(0, 0, 0);
  border-radius: 4px;
}

.sidebar ul .submenu li a {
  display: block;
  padding: 10px;
  color: #000000; /* texto oscuro */
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.sidebar ul .submenu li a:hover {
  background-color: #ffffff; /* azul brillante */
  color: #ffffff; /* texto blanco */
}

.sidebar ul .dropdown:hover .submenu {
  display: block;
}

/* ==== CONTENEDOR PRINCIPAL ==== */
.main-wrapper {
    display: flex;
    gap: 0;
    flex: 1;
    padding-top: var(--nav-h);
    min-height: calc(100vh - var(--nav-h));
}

/* ==== SIDEBAR LATERAL ==== */
.sidebar {
    width: 220px;
    background: #000000; /* negro oscuro */
    color: #ffffff;
    text-align: center;
    margin-top: 0px;
    flex-shrink: 0;
}

.sidebar nav ul {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    color:#000000
}

.sidebar nav ul li {
    margin: 1rem 0;
    color: #ccc;
}

.sidebar nav ul li a {
    color: #000000; /* gris claro */
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.3s ease;
}

.sidebar nav ul li a:hover {
    background-color: #727272; /* azul brillante */
    border-radius: 4px;
    color: #757575;
}

/* ==== GALERÍA ==== */
.gallery-container {
    flex: 1;
    max-width: 100%;
    padding: 20px 0 20px 20px;
    width: 100%;
}

h1 {
    color: #fff;
    margin: 0 0 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: 0.5px;
    text-align: center;
}

h2 {
    color: #ccc;
    margin: 0 0 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Forzar lista vertical de imágenes, una debajo de la otra */
.gallery-grid {
  display: block;
  padding-right: 0;
}

.gallery-item {
  display: block;
  width: 100%;
  margin-bottom: 16px;
}

.gallery-item:last-child {
  margin-bottom: 0;
}

.gallery-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.01);
}