@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap");
@font-face {
    font-family: 'Patria';
    src: url('../fonts/PatriaRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Patria';
    src: url('../fonts/PatriaBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
  }
  
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: "Noto Sans", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Estilos para ambos navbars */
.navbar {
  position:fixed;
  width: 100%;
  transition: top 0.3s;
  z-index: 1000;
}

.navbar-nav .nav-link {
  color: white;
  font-size: 16px;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #bd7201;
}

/* Navbar superior */
#navbarTop {
  background: #611232; /* Color de fondo */
  top: 0;
  padding: 10px 20px;
}

/* Navbar inferior */
#navbarSecond {
  position: fixed;
  background-color: #a57f2c !important; /* Se asegura que el color no sea sobrescrito */
  top: 70px; /* Ajusta la distancia entre los navbars */
  padding: 10px 20px;
  z-index: 999;
  transition: top 0.3s ease-in-out;
}

#navbarSecond .nav-item {
  margin: 0 10px; /* Espacio entre elementos */
}

#navbarSecond .nav-link {
  font-size: 16px;
  padding: 10px 20px;
  transition: all 0.3s ease-in-out;
  text-align: center;
  color: white !important;
  font-family: "Patria", sans-serif;
  position: relative;
}

/* Efecto hover */
#navbarSecond .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.5); /* Más limpio */
  color: white !important;
  border-radius: 5px;
}

/* Icono del toggler */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  filter: invert(1); /* Hace que el ícono sea visible en fondo oscuro */
}

/* Estilos responsive */
@media (max-width: 768px) {
  #navbarSecond .navbar-nav {
    text-align: center;
    width: 100%;
  }

  #navbarSecond .nav-item {
    width: 100%;
  }

  #navbarSecond .nav-link {
    display: inline-block;
    padding: 10px;
    position: relative;
    width: 100%;
    text-align: center;
  }

  /* Línea blanca debajo de cada enlace en hover */
  #navbarSecond .nav-link::after {
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background-color: white;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
  }

  #navbarSecond .nav-link:hover::after,
  #navbarSecond .nav-link:focus::after {
    width: 50%; /* Expande la línea en hover */
  }
}
