/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #1c74bc; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #27a9e0; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */

  /* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */

  --nav-color: #1c74bc; /* The default color of the main navmenu links */
  --nav-hover-color: #27a9e0; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #212529; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #27a9e0; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

.btn-getstarted,
.btn-getstarted:focus {
  color: var(--contrast-color) !important;
  background: var(--accent-color) !important;
  font-size: 15px !important;
  padding: 8px 12px !important;
  margin: 0 0 0 30px !important;
  border-radius: 4px !important;
  transition: 0.3s !important;
  font-weight: 500 !important;
}

.btn-getstarted:hover,
.btn-getstarted:focus:hover {
  color: var(--contrast-color) !important;
  background: color-mix(
    in srgb,
    var(--accent-color),
    transparent 15%
  ) !important;
}

.mobile-nav-toggle {
  color: var(--nav-color) !important;
}

@media (max-width: 1199px) {
  .header .logo img {
    max-height: 12vh;
    margin-right: 8px;
  }

  .mobile-nav-active .navmenu {
    position: fixed !important;
    overflow: hidden !important;
    inset: 0 !important;
    background: rgba(252, 254, 255, 0.8) !important;
    transition: 0.3s !important;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 50%);
  }
}

/* .sidebar-item.active > .sidebar-link {
  background-color: #27a9e0 !important;
  color: #fff !important; 
  border-radius: 4px !important;
} */

/* Estilo mejorado para resaltar el enlace activo con un subrayado personalizado */
.sidebar-item.active > .sidebar-link {
  color: var(--accent-color) !important; /* Color del texto del enlace activo */
  text-decoration: none !important; /* Eliminar el subrayado predeterminado */
  position: relative; /* Posición relativa para alinear el subrayado */
}

.sidebar-item.active > .sidebar-link:after {
  content: ""; /* Contenido vacío para el elemento after */
  position: absolute; /* Posición absoluta para el subrayado */
  bottom: -1px; /* Ajuste para bajar el subrayado un poco */
  left: 0; /* Alinear el subrayado con el texto */
  width: 100%; /* Ancho completo del subrayado */
  height: 3px; /* Grosor del subrayado */
  background-color: var(--accent-color); /* Color del subrayado */
}

.accordion-button:not(.collapsed) {
  color: var(--contrast-color) !important;
  background-color: var(--nav-color) !important;
}

.features .feature-box {
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.15) !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 15px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.whatsapp-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: #25d366;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
  line-height: 0;
}

.whatsapp-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.whatsapp-float:hover .whatsapp-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 25px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.whatsapp-option:hover {
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #075e54;
}

.whatsapp-float:hover .whatsapp-option {
  transform-origin: bottom right;
}

.whatsapp-option i {
  font-size: 20px;
  color: #25d366;
}

.whatsapp-label {
  font-size: 13px;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-btn {
  animation: whatsapp-pulse 2s infinite;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 75px;
    right: 15px;
  }

  .whatsapp-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .whatsapp-option {
    padding: 6px 12px;
    font-size: 12px;
  }
}
