/*menu*/
.header {
  color: #ffffff;
  width: 100%;
  max-width: 100vw;
  font-size: 130%;
  top: 0;
  background: linear-gradient(135deg, #FF6600 0%, #FF9800 50%, #FFC849 100%);
  box-shadow: 
    0 2px 12px rgba(255, 102, 0, 0.25),
    0 1px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 2;
  position: relative;

  overflow-y: visible;
  padding: 0.4rem 0;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 200, 73, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  z-index: 1;
}

.nav-container {
  position: relative;
  z-index: 1;
}

/* Logo Container con efectos destacados */
.logo-wrapper {
  position: relative;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  opacity: 0;
  animation: logoFadeIn 0.5s ease-out 1s forwards;
 
  overflow-y: visible;
  z-index: 10;
  height: 100%;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


#logo {
  width: 100%;
  max-width: 12rem;
  height: auto;
  position: absolute;
  top: -0.5rem;
  right: 0;
  z-index: 10;
  border-radius: 0px !important;
  border-bottom-right-radius: 20px !important;
  border: clamp(3px, 0.4vw, 5px) solid #fa8a21;
  object-fit: contain;
  max-width: min(12rem, calc(100vw - 1rem));
}



.navigation ul li a {
  text-decoration: none;
  padding: 5%;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

.navigation li {
  list-style-type: none;
  display: inline;
}

.nav-container {
  display: grid;
  grid-template-columns: 10% 90%;
  align-items: center;
  padding: 0;
  width: 100%;
  max-width: 100%;
  
}

#menu {
  margin: auto;
  text-align: end;
  margin-right: 2%;
  width: 60%;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.85) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

@media(hover:hover) {
  li:hover {
    color: rgb(247, 244, 244);
  }
  
  a:hover {
    color: rgb(255, 255, 255) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .navigation ul li a:hover::after {
    width: 80%;
  }
}

/*tamaño compu*/
@media screen and (min-width: 1350px) {
  .header {
    padding: 0.5rem 0;
  }

  .logo-wrapper {
    padding: 0;
  }

  #logo {
    max-width: 220px;
    width: 100%;
    border-radius: 20px;
  }

  .navigation ul li a {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
  }
}

/*tamaño tablet*/
@media screen and (min-width: 820px) and (max-width: 1350px) {
  .header {
    padding: 0.45rem 0;
  }

  .logo-wrapper {
    padding: 0;
  }

  #logo {
    max-width: 200px;
    width: 100%;
    border-radius: 20px;
  }

  .navigation ul li a {
    padding: 0.6rem 1.2rem;
  }
}

/*para tamaño telefono*/
@media screen and (max-width: 820px) {
  .header {
    margin-bottom: -1.1%;
    padding: 0.3rem 0;
   
  }

  .nav-container {
    grid-template-columns: 20% 80%;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }

  .logo-wrapper {
    padding: 0;
    
  }

  #logo {
    max-width: min(180px, calc(100vw - 2rem));
    width: 100%;
    border-radius: 20px;
    right: 0.5rem;
  }

  .navigation ul li a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  #menu {
    width: auto;
    max-width: 100%;
    margin-right: 0.5rem;
  }
}

/*para tamaño telefono chico*/
@media screen and (max-width: 460px) {
  .navigation li {
    font-size: 60%;
  }

  .nav-container {
    display: grid;
    grid-template-columns: 25% 75%;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }

  .logo-wrapper {
    padding: 0;
  
  }

  #logo {
    max-width: min(160px, calc(100vw - 2rem));
    width: 100%;
    border-radius: 20px;
    right: 0.5rem;
  }

  .navigation ul li a {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  #menu {
    width: auto;
    max-width: 100%;
    margin-right: 0.5rem;
  }
}

@media screen and (max-width: 290px) {
  .navigation li {
    font-size: 50%;
  }

  .nav-container {
    display: grid;
    grid-template-columns: 30% 70%;
    padding: 0 0.3rem;
    box-sizing: border-box;
  }

  .logo-wrapper {
    padding: 0;
    overflow-x: hidden;
  }

  #logo {
    max-width: min(140px, calc(100vw - 1.5rem));
    width: 100%;
    border-radius: 20px;
    right: 0.3rem;
  }

  .navigation ul li a {
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #menu {
    width: auto;
    max-width: 100%;
    margin-right: 0.3rem;
  }
}

