:root {
  --top-bar-height: 36px;
  --brand-green: #0e6e33;
}

.top-bar {
  background: var(--brand-green);
  color: #fff;
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
  justify-content: right;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
}

.top-bar a:hover {
  text-decoration: underline;
  opacity: 0.95;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
}

.top-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: inline-block;
}

.top-link:hover {
  text-decoration: underline;
  opacity: 0.95;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: none; /* Ajusta la ruta */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -1; /* Coloca la imagen detrás del contenido */
}

header {
  position: relative; /* Necesario para que la clase .header-background funcione */
  z-index: 1; /* Asegura que el contenido esté por encima */
  background-color: transparent;
  color: black;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid #0e6e33; /* Línea separadora */
}

.logo img {
  height: 100px;
  background: transparent;
  display: block;
  object-fit: contain;
}

nav .menu {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

nav .menu li a {
  background: none;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border: none; /* Color del borde */
  border-radius: none;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
}

nav .menu li a:hover {
  border-radius: 10px;
  background: #0e6e33;
  color: white;
}

.menu-icon {
  width: 30px; /* Ajusta el tamaño del ícono */
  height: 30px;
  margin-right: 4px; /* Espaciado entre el ícono y el texto */
  vertical-align: middle; /* Alinea el ícono con el texto */
}

main {
  padding: 20px;
  margin-top: calc(var(--top-bar-height) + 120px);
}

section {
  margin-bottom: 40px;
  margin-bottom: 40px;
  padding: 32px 0;
  border-bottom: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

section:last-of-type {
  border-bottom: none;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #1a2a4a;
}

.nosotros-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Asegura que el contenedor tenga la altura de la ventana */
  display: inline-block;
}

.nosotros-img {
  width: 100%; /* Ajusta el ancho de la imagen */
  height: 100%; /* Ajusta la altura de la imagen */
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  z-index: -1; /* Coloca la imagen detrás del contenido */
  opacity: 0.7; /* Ajusta la opacidad (0.0 es completamente transparente, 1.0 es completamente opaco) */
}

.nosotros-texto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h2-nosotros {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.p-nosotros {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
}

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav .menu {
    flex-direction: column;
    width: 100%;
  }

  nav .menu li {
    padding: 5px 0;
  }

  main {
    padding: 10px;
  }

  section {
    padding: 20px 0;
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 0;
    box-shadow: none;
  }

  section h2 {
    font-size: 1.4rem;
  }
}
