/* =========================================
   CASA GREEN – HEADER PROFESIONAL COMPLETO
========================================= */

:root{
  --color-primary: #003d1b;
  --color-accent: #f4a900;
  --color-white: #ffffff;
  --color-dark: #222;
}

/* RESET BÁSICO */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{
  font-family: Arial, sans-serif;
}

/* =========================================
   TOP NAV
========================================= */

.top-nav{
  background: #ffffff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 40px;
  border-bottom: 1px solid #e5e5e5;
  gap: 25px;
}

.top-nav a{
  color: #333;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: .3s ease;
}

.top-nav a:hover{
  color: var(--color-primary);
}

/* =========================================
   MAIN NAV
========================================= */

.nav-container{
  background: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* LOGO */

.logo img{
  height: 42px;
  width: auto;
  transition: .3s ease;
}

.logo img:hover{
  transform: scale(1.05);
}

/* NAV LIST */

nav ul{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 45px;
}

nav ul li{
  position: relative;
}

nav ul li a{
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: .3s ease;
  letter-spacing: .5px;
}

nav ul li a:hover{
  color: var(--color-accent);
}

/* =========================================
   SEARCH ICON
========================================= */

.search-wrapper{
  position: relative;
}

.search-wrapper i{
  font-size: 18px;
  color: #ffffff;
  cursor: pointer;
  transition: .3s ease;
}

.search-wrapper i:hover{
  opacity: .8;
}

/* =========================================
   DROPDOWN BUSCADOR
========================================= */

.search-dropdown{
  position: absolute;
  top: 60px;
  right: 0;
  width: 420px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  display: none;
  z-index: 3000;
}

.search-dropdown.active{
  display: block;
}

/* FORM BUSCADOR */

.search-dropdown form{
  display: flex;
  gap: 10px;
}

.search-dropdown input{
  flex: 1;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.search-dropdown input:focus{
  border-color: var(--color-primary);
  outline: none;
}

.search-dropdown button{
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: .3s ease;
}

.search-dropdown button:hover{
  background: #0f5132;
}

/* =========================================
   BOTÓN CONTACTO
========================================= */

.contactanos{
  background: var(--color-accent);
  padding: 12px 20px;
  border-radius: 30px;
  color: var(--color-primary) !important;
  font-weight: 700;
  transition: .3s ease;
}

.contactanos:hover{
  background: #ffb300;
  transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px){

  .top-nav{
    display: none;
  }

  .nav-container{
    padding: 15px 25px;
  }

  nav ul{
    gap: 25px;
  }

}

@media (max-width: 768px){

  nav ul{
    display: none;
  }

  .nav-container{
    justify-content: space-between;
  }

}

/* =========================================
   STICKY OPCIONAL
========================================= */

.nav-container.sticky{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  animation: fadeDown .4s ease;
}

@keyframes fadeDown{
  from{
    transform: translateY(-100%);
  }
  to{
    transform: translateY(0);
  }
}