/* Archivo: assets/css/styles.css */

/* General Header Styles */
.custom-header {
  background-color: #333;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Styles */
.custom-logo {
  font-size: 24px;
  text-decoration: none;
  margin-right: auto;
  margin-left: 0;
  transition: transform 0.3s ease;
}

.custom-logo:hover {
  transform: scale(1.05);
}

.custom-logo-orange {
  color: #e67a25;
}

.custom-logo-blue {
  color: #06a7bd;
}

.custom-logo-white {
  color: white;
}

/* Navbar Styles */
.custom-navbar {
  margin-left: auto;
}

.custom-navbar ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.custom-nav-link {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
}

.custom-nav-link:hover,
.custom-nav-link.active {
  color: #e67a25;
  transform: translateY(-2px);
}

/* Dropdown Menu */
.custom-dropdown {
  position: relative;
}

.custom-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: rgba(51, 51, 51, 0.95);
  padding: 10px 0;
  list-style: none;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(-10px);
}

.custom-dropdown:hover .custom-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-dropdown-item {
  text-decoration: none;
  color: white;
  padding: 8px 15px;
  display: block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.custom-dropdown-item:hover {
  background-color: #555;
  transform: translateX(5px);
}

/* Mobile Navigation */
.custom-mobile-nav-toggle {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.custom-mobile-nav-toggle.bi-x {
  transform: rotate(90deg);
}

.custom-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: opacity 0.3s ease;
}

.custom-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .custom-navbar ul {
    display: none;
    flex-direction: column;
    background-color: rgba(51, 51, 51, 0.95);
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    padding-top: 60px;
    transition: right 0.3s ease;
  }

  .custom-navbar ul.active {
    display: flex;
    right: 0;
  }

  .custom-mobile-nav-toggle {
    display: block;
  }

  .custom-logo {
    margin-right: auto;
    margin-left: 10px;
  }
}

/* WhatsApp Button */
.custom-whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #06a7bd;
  color: white;
  font-size: 24px;
  padding: 10px 15px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  animation: pulse 2s infinite;
}

.custom-whatsapp-button:hover {
  background-color: #e67a25;
  transform: scale(1.1);
  animation: none; /* Detener la animación al hacer hover */
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.custom-nav-link.active {
  color: #e67a25 !important; /* Color naranja */
}