/* Wavey background animation */
@keyframes wavey-float-slow {
  0%, 100% {
    transform: translate(-5%, -5%) scale(1.5);
  }
  50% {
    transform: translate(5%, 5%) scale(1.5);
  }
}

/* Feature tabs active state */
.feature-tab.active {
  background-color: rgb(219 234 254) !important;
  color: rgb(29 78 216) !important;
  border-color: rgb(59 130 246) !important;
}

.feature-tab:not(.active) {
  background-color: white;
  color: rgb(75 85 99);
  border-color: rgb(229 231 235);
}

.feature-tab:not(.active):hover {
  background-color: rgb(249 250 251);
}

/* Feature content transitions */
.feature-content {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAQ accordion */
.faq-trigger {
  transition: all 0.2s ease-out;
}

.faq-trigger:hover {
  color: rgb(59 130 246);
}

.faq-trigger.open svg {
  transform: rotate(180deg);
}

.faq-content {
  animation: accordion-down 0.2s ease-out;
}

@keyframes accordion-down {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: auto;
    opacity: 1;
  }
}

/* Navbar scroll effect */
#navbar.scrolled {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

#navbar[data-navbar-dark="true"].scrolled {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.45);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Language menu */
#language-menu {
  animation: fadeIn 0.2s ease-in-out;
}

.language-option.language-option-active,
.language-option-mobile.language-option-active {
  background-color: rgb(239 246 255);
  color: rgb(37 99 235) !important;
  font-weight: 500;
}

#navbar[data-navbar-dark="true"] .language-option.language-option-active,
#navbar[data-navbar-dark="true"] .language-option-mobile.language-option-active {
  background-color: rgba(37, 99, 235, 0.35);
  color: rgb(248 250 252) !important;
}

#navbar[data-navbar-dark="true"] .language-option.language-option-active:hover,
#navbar[data-navbar-dark="true"] .language-option-mobile.language-option-active:hover {
  background-color: rgba(37, 99, 235, 0.45) !important;
  color: rgb(248 250 252) !important;
}

body.admin-shell .authenticated-sidebar-menu-item.language-option-active {
  background-color: rgba(37, 99, 235, 0.35) !important;
  color: rgb(248 250 252) !important;
  font-weight: 500;
}

body.admin-shell .authenticated-sidebar-menu-item.language-option-active:hover {
  background-color: rgba(37, 99, 235, 0.45) !important;
  color: rgb(248 250 252) !important;
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
  background: white !important;
  position: relative;
  z-index: 100;
}

/* Asegurar que el menú móvil tenga fondo blanco sólido y esté por encima del calendario */
/* Solo aplicar cuando el viewport es mayor o igual a 400px */
@media (min-height: 400px) {
  body.calendar-page #navbar {
    z-index: 100;
    background: white !important;
    backdrop-filter: none !important;
  }
  
  body.calendar-page #mobile-menu {
    position: fixed !important;
    top: 48px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: auto;
    max-height: calc(var(--vvh, 100dvh) - 48px);
    overflow-y: auto;
    background: white !important;
    z-index: 10000 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    isolation: isolate;
  }
  
  body.calendar-page #mobile-menu > div {
    height: auto;
  }

  body.calendar-page #mobile-menu > div {
    background: white !important;
    position: relative;
    z-index: 10001 !important;
  }
  
  /* Asegurar que los elementos contenedores del menú tengan fondo blanco */
  body.calendar-page #mobile-menu div,
  body.calendar-page #mobile-menu .px-4,
  body.calendar-page #mobile-menu .pt-2,
  body.calendar-page #mobile-menu .pb-3 {
    background-color: white !important;
  }

  /* Bloque "Opciones del negocio": mismo fondo gris que la barra lateral */
  body.calendar-page #mobile-menu .authenticated-sidebar-business-options-mobile {
    background-color: #f4f7fb !important;
  }
  
  /* Excepciones para elementos que deben mantener sus propios colores */
  body.calendar-page #mobile-menu button.bg-primary-600,
  body.calendar-page #mobile-menu button.bg-primary-600:hover {
    background-color: #3b82f6 !important;
  }
  
  body.calendar-page #mobile-menu .hover\:bg-primary-50:hover {
    background-color: #eff6ff !important;
  }
  
  /* Asegurar que los enlaces mantengan sus colores de texto pero tengan fondo blanco */
  body.calendar-page #mobile-menu a {
    color: #1f2937 !important;
    background-color: transparent !important;
  }
  
  body.calendar-page #mobile-menu a:hover {
    color: #3b82f6 !important;
    background-color: #f3f4f6 !important;
  }
  
  /* Asegurar que los botones de idioma tengan fondo blanco por defecto */
  body.calendar-page #mobile-menu button.language-option-mobile {
    background-color: white !important;
  }
  
  body.calendar-page #mobile-menu button.language-option-mobile:hover {
    background-color: #eff6ff !important;
  }

  body.calendar-page #mobile-menu button.language-option-mobile.language-option-active {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 500;
  }
}

/* How it works step 1 — register button inside SVG illustration */
.how-it-works-register-btn {
  width: 100%;
  height: 100%;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  font-family: Inter, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.how-it-works-register-btn:hover {
  background-color: #1fb855;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

