* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat','Arial', sans-serif;
}


.navbar-wrapper {

  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: transparent;
   transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background-color: #d0d0d0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.navbar-wrapper.scrolled {
  background-color: rgba(255, 255, 255, 0.9); 
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px); 
}


.navbar-wrapper.scrolled .nav-menu ul li a {
  color: #e84e0e; 
  text-align: center;
}



/* ========== HEADER ========== */
.header {

  display: flex;
  justify-content: space-between;
  align-items: center;
   padding: 15px 30px;
  transition: all 0.3s ease;
  background-color: transparent;
  transition: padding 0.8s ease-in-out;
 
}

.header.shrink {

  padding: 5px 20px;
}




/* ========== LOGOS ========== */
.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-main {
  height: 50px;
  transition: height 0.8s ease;
}

.header.shrink .logo-main {
  height: 35px;
  transition: height 1s ease-in-out;
}

.logo-secondary {
  height: 30px;
  opacity: 0.8;
}

.divider-vertical {
  width: 2px;
  height: 40px;
  background-color: orange;
}

/* ========== NAV MENU DESKTOP ========== */

.nav-menu ul {

  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-menu ul li{
  align-items: center;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #000;
   transition: color 0.3s ease;
  font-weight: 500;
  padding: 8px 5px;

}

.nav-menu ul li.active a {
  font-weight: bold;
  align-items: center;
}

.nav-menu ul li a:hover {
  color: orange; 
}

.nav-menu ul li.active a::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background-color: #1e2d60;
  margin-top: 5px;
}

/* ========== MENU TOGGLE BUTTON ========== */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ========== SUBMENÚ ========== */

.has-dropdown {

  position: relative;
}

.has-dropdown > a::after {

  content: " ▼";
  font-size: 10px;

}

.has-dropdown .dropdown {

  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-height: 0;
  overflow: hidden;
  flex-direction: column;
  transition: max-height 0.3s ease;
  z-index: 10;
}

.has-dropdown:hover .dropdown {

  max-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  top:50px;

}

.has-dropdown .dropdown li {

    align-items: center;
    border-bottom: 1px solid #eee;
    width: 100%;
    
}

.has-dropdown .dropdown li:hover {
  background: #efefef;
}


.has-dropdown .dropdown li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-align: left;
}


















@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(20px); }
}






/* Solo aplica en pantallas grandes */
@media (min-width: 769px) {
  .navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F6F6F6;
    padding: 15px 30px;
  }

  .header {
    padding: 0;
    background-color: transparent;
    flex: 1;
  }

  .nav-menu {
    max-height: none;
    overflow: visible;
  }

  .nav-menu ul {
    flex-direction: row;
  }

  .menu-toggle {
    display: none;
  }
}



/* ========== RESPONSIVE (≤768px) ========== */
@media (max-width: 768px) {

  .header {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    background-color: #dbdbdb;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  .nav-menu.show {
    max-height: 500px;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
    /*display: none;*/
  }

  .nav-menu.active ul {
    display: flex;
  }

  .has-dropdown .dropdown {
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #dbdbdb;
    box-shadow: none;
  }

  .has-dropdown.active .dropdown {
    max-height: 300px;
  }

  .has-dropdown .dropdown li a {
    padding-left: 30px;
  }

  .divider-vertical {
    height: 25px;
  }





}
