/* Estilos generales para la top-bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    z-index: 999;
}

/* Estilos del logo */
.logo {
    display: flex;
    flex: 1;
    text-align: center;
    justify-content: left;
    margin-left: 4%;
}

.logo-img {
    max-height: 50px;
}

/* Estilos del menú de la barra superior */
.menu-items {
    flex: 3;
    display: flex;
    justify-content: right;
    align-items: center;
}

.menu-item {
    text-decoration: none;
    color: #2a1c73;
    font-size: 13px;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.menu-item .icon {
    margin-right: 5px;
    font-size: 17px;
    color: #d83434;
}

/* Estilos de los botones en la barra superior */
.menu-buttons {
    display: flex;
    gap: 10px;
}
.cta-button {
    background-color: #2F2569;
    color: white;
    border: none;
    height: 30px;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0px 15px rgba(47, 37, 105, 0.5);
}

.cta-button:hover {
    background-color: #007a93;
}
/* Estilos para el botón hamburguesa */
.menu-toggle {
    display: none;
    background-color: #2F2569;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
}

/* Estilos responsive */
@media (max-width: 1200px) {
    .menu-items, .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .logo {
        flex: none;
        text-align: center;
    }
}

/* Estilos responsive */
@media (max-width: 768px) {
    .menu-items, .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .logo {
        flex: none;
        text-align: center;
    }
}

/* Add a black background color to the top navigation */
.topnav {
  background-color: #2F2569;
  position: fixed;
  top: 90px; /* Ajustar según altura de la top-bar */
  left: 0;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 10px 0;
  display: flex; /* Asegura que todos los elementos estén en línea */
  align-items: center; /* Alinea verticalmente todos los elementos en el centro */
  height: 50px;
  max-height: 100%;
}

.topnav-container
{
  background-color: #2F2569;
  position: fixed;
  top: 90px; /* Ajustar según altura de la top-bar */
  left: 0;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 10px 0;
  display: flex; /* Asegura que todos los elementos estén en línea */
  align-items: center; /* Alinea verticalmente todos los elementos en el centro */
  height: 50px;
  max-height: 100%;
  margin-left: 5%;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 15px;
}

.fb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 30px;
  background-color: #2F2569;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 24px;
  cursor: pointer;
  text-decoration: none;
}

.fb-button i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.fb-button:hover {
  background-color: #2F2569; /* Cambia ligeramente el color en hover */
}

/* Add an active class to highlight the current page */
.active {
  background-color: #04AA6D;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: 15px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0 auto;
}

/* Style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  color: white;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 760px) {
    .topnav {
      display: none; /* Ocultar el menú por defecto */
      height: fit-content;
      max-height: 100%;
    }

    .topnav-container {
      display: block; /* Ocultar el menú por defecto */
      height: fit-content;
      margin-left: 0%;
      max-height: 100%;
    }

    .topnav.topnav-container {
      display: none; /* Ocultar el menú por defecto */
      height: fit-content;
      max-height: 100%;
    }
  
    .topnav.responsive {
      display: block; /* Mostrar cuando se aplica la clase 'responsive' */
    }
  
    .topnav.responsive a.icon {
      position: absolute;
      right: 0;
      top: 0;
    }
  
    .topnav.responsive a {
      float: none;
      display: block;
      text-align: left;
    }
  
    .topnav.responsive .dropdown {
      float: none;
    }
  
    .topnav.responsive .dropdown-content {
      position: relative;
    }
  
    .topnav.responsive .dropdown .dropbtn {
      display: block;
      width: 100%;
      text-align: left;
    }
  }
  