 /* Navbar "normal", más alta al inicio */
.navbar {
  background-color: #ffffff !important;
  transition: all 0.3s ease;
  padding-top: 1.2rem;   /* Aumentado */
  padding-bottom: 1.2rem; /* Aumentado */
  box-shadow: 0 40px 42px rgba(0, 0, 0, 0.3);
}

/* Navbar al hacer scroll (más pequeña) */
.navbar.shrink {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  box-shadow: 0 40px 40px rgba(0, 0, 0, 0.3);
}

.navbar-logo {
  width: 40%;
  height: auto;
}

/* Contenedor del dropdown en posición relativa */
.nav-item.dropdown {
  position: relative;
}



/* Estilo del menú desplegable */
.custom-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 0.25rem;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 10rem;
  z-index: 999;
}

/* Mostrar el menú si el mouse está sobre el item o el dropdown */
.nav-item.dropdown:hover > .custom-dropdown,
.nav-item.dropdown:focus-within > .custom-dropdown {
  display: block;
}

/* Estilo de los links */
.custom-dropdown .dropdown-item {
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}


/* Quita la línea azul debajo de dropdowns */
.navbar-nav .nav-link.dropdown-toggle::after {
  display: none;
}
.navbar-nav .nav-link {
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--pe-teal, #11363E); /* teal del sistema */
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 60%; 
}

.navbar-nav .nav-link.active::after {
  width: 60%; 
}



@media (max-width: 576px) {
  .our-team-img {
    max-width: 100%;
    height: auto;
    transform: none !important; /* anula efectos hover que agrandan */
  }
}

/* BOTON FLOTANTE DE WHATSAPP (visible en todo el sitio) */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000; /* debajo de los modales del portafolio (9001+) */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #ffffff;
  transform: scale(1.08);
}

@media (max-width: 576px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
    right: 14px;
    bottom: 14px;
  }
}
/* CIERRA BOTON FLOTANTE DE WHATSAPP */