body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
}

/* ---------------------- HEADER ---------------------- */
header {
  background: linear-gradient(to right, #e0f7fa, #ffffff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #0077b6;
}

.logo img {
  height: 30px;
  margin-right: 10px;
}

/* ---------------------- NAVEGACIÓN (ESCRITORIO) ---------------------- */
.nav-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-item {
  position: relative;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  display: inline-block;
  text-align: center;
}

.nav-item:hover {
  color: #0077b6;
}

.nav-link {
  text-decoration: none;
  color: inherit;
}

/* ---------------------- DROPDOWNS ---------------------- */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px 0;
  min-width: 180px;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 6px;
  z-index: 1000;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}

.dropdown a:hover {
  background-color: #e0f7fa;
  color: #0077b6;
}

.nav-item.active .dropdown {
  display: block;
}

/* ---------------------- CONTENIDO ---------------------- */
.content {
  padding: 40px;
}

/* ---------------------- OVERLAY PARA MÓVIL ---------------------- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 998;
  display: none;
}

.overlay.active {
  display: block;
}

/* ---------------------- ESTILOS PARA MÓVIL ---------------------- */
@media (max-width: 768px) {
  .nav-container {
    position: fixed;
    top: 0;
    left: -260px; /* oculto al inicio */
    height: 100%;
    width: 250px;
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    padding-top: 60px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    transform: none;
  }

  .nav-container.active {
    left: 0; /* visible */
  } 

  .nav-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 20px;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    max-height: none;
    padding: 0;
  }

  .dropdown a {
    padding: 8px 20px;
  }

  .hamburger-menu {
    display: block;
    cursor: pointer;
  }

  .hamburger-menu div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
  }
}
