
    /* Navbar */
.navbar {
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: none;
  padding: 1em 0;
  width: 100%;
  z-index: 1000;
  /* posición fija eliminada */
}
    .navbar-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1em;
      display: flex;
      justify-content: center;
      align-items: center;
    }


.navbar-menu {
    display: flex;
    flex-direction: row;       /* ⬅️ mantenerlos en fila */
    flex-wrap: wrap;           /* ⬅️ permitir que bajen de línea si no caben */
    list-style: none;
    padding: 0;
    justify-content: center;
}

    .navbar-menu li {
      margin-left: 1em;
    }

.navbar-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s;
}

    .navbar-menu a:hover {
      color: #007BFF;
      white-space: nowrap;
    }

    /* Logo y título */
    .logo-section {
      text-align: center;
      margin-top: 10px;
    }

    .logo-img {
      max-width: 200px;
      height: auto;
      margin-bottom: 10px;
    }

    .logo-text {
      font-size: 24px;
      font-weight: bold;
      color: white;
    }

    /* Responsive */
    @media (max-width: 768px) {
      body {
        background-attachment: scroll;
      }

      .card, .explicacion-container {
        max-width: 90%;
        padding: 1.5em;
      }

      .navbar-container {
        flex-direction: column;
        align-items: center;
      }

      .navbar-menu {
        flex-direction: column;
        align-items: center;
      }

      .navbar-menu li {
        margin: 0.5em 0;
      }

      .logo-img {
        max-width: 100px;
      }

      .logo-text {
        font-size: 18px;
      }
    }
.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: calc(100vh - 70px); /* espacio restante después del navbar */
}
