/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */

body {
  background: #f5f5f5;
}

/* NAVBAR */

.navbar {
  width: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid #eee;
}

/* CONTAINER */

.nav-container {
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 72px;
  display: block;
}

/* MENU */

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  list-style: none;
  flex: 8;
  padding-top: 12px;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 12px 12px;
  transition: 0.2s ease;
  text-transform: uppercase;
  display: block;
}

.nav-links li a:hover {
  color: #006847;
}

/* CTA */

.nav-cta {
  align-items: center;
  justify-content: center;
}

.cta-button {
  background: #006a37;
  color: white;
  text-decoration: none;
  height: 44px;
  padding: 0 29px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  text-transform: uppercase;
}

.cta-button:hover {
  background: black;
  color: white;
  transform: translateY(-2px);
}

.cta-buttonv {
  background: #006a37;
  color: white;
  text-decoration: none;
  height: 44px;
  padding: 0 29px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  text-transform: uppercase;
}

.cta-buttonv:hover {
  background: #033a22;
  color: white;
  transform: translateY(-2px);
}

/* ==========================   MEGA MENU========================== */

.mega-menu {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  background: #fdfff8;
  padding: 40px 80px;
  border-top: 1px solid #ffffff;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Puente invisible entre el botón y el megamenú */

.mega-menu::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

/* Interacción Hover */

.has-mega:hover .mega-menu, .mega-menu:hover {
  opacity: 1;
  visibility: visible;
}

/* INNER */

.mega-menu-inner {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 220px 220px 220px 320px;
  justify-content: space-between;
  gap: 40px;
  align-items: start;
}

/* COLUMNAS */

.mega-column {
  min-width: auto;
}

.mega-column h4 {
  margin-bottom: 15px;
  color: #010101;
  font-size: 16px;
  font-weight: 800;
}

.mega-column ul {
  list-style: none;
  padding-left: 0;
}

.mega-column ul li {
  margin-bottom: 12px;
}

.mega-column ul li a {
  color: #111;
  font-size: 15px;
  padding: 0;
  transition: .3s ease;
  text-transform: none;
}

.mega-column ul li a:hover {
  color: #006a37;
}

/* IMAGEN */

.mega-image {
  width: 100%;
}

.mega-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

/* MOBILE BUTTON */

.menu-toggle {
  display: none;
  font-size: 32px;
  cursor: pointer;
}

/* TABLET */

@media (max-width:1200px) {
  .mega-menu {
    padding: 40px;
  }
}

@media (max-width:1200px) {
  .mega-menu-inner {
    grid-template-columns: 1fr 1fr 320px;
    gap: 40px;
  }
}

/* MOBILE */

@media (max-width:1024px) {
  .nav-container {
    padding: 0 20px;
  }
}

@media (max-width:1024px) {
  .menu-toggle {
    display: block;
  }
}

@media (max-width:1024px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
}

@media (max-width:1024px) {
  .nav-links.active {
    display: flex;
  }
}

@media (max-width:1024px) {
  .nav-links li {
    position: static;
    width: 100%;
  }
}

@media (max-width:1024px) {
  .nav-links li a {
    display: block;
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width:1024px) {
  .mega-menu {
    position: static;
    width: 100%;
    padding: 25px 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    transition: none;
  }
}

@media (max-width:1024px) {
  .mega-menu::before {
    display: none;
  }
}

@media (max-width:1024px) {
  .has-mega.active .mega-menu {
    display: block;
  }
}

@media (max-width:1024px) {
  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width:1024px) {
  .mega-image img {
    height: 220px;
  }
}

@media (max-width:1024px) {
  .nav-cta {
    display: none;
  }
}

