/* ============================================
   Global CSS — WebHospedaje
   ============================================ */

/* ---- Tooltip system (CSS-only, hover-driven) ---- */
/* Usage: wrap trigger in .wh-tooltip-wrap, add .wh-tooltip sibling */
.wh-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wh-tooltip {
  display: none;
  position: absolute;
  z-index: 9999;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e1b4b;
  color: #fff;
  font-size: 0.65rem;
  line-height: 1.45;
  padding: 0.35rem 0.65rem;
  border-radius: 0.45rem;
  white-space: normal;
  width: max-content;
  max-width: 280px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  pointer-events: none;
}

/* Small arrow under tooltip */
.wh-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e1b4b;
}

/* Show on hover */
.wh-tooltip-wrap:hover .wh-tooltip {
  display: block;
}

/* Plan feature row tooltips — appear to the right */
.wh-tooltip-right .wh-tooltip {
  left: 100%;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;
}

.wh-tooltip-right .wh-tooltip::after {
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  border-top-color: transparent;
  border-right-color: #1e1b4b;
  border-width: 5px 5px 5px 0;
}


.dropdown-menu {
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.group:hover .dropdown-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ---- Mobile menu ---- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
  max-height: 1000px;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.submenu.active {
  max-height: 500px;
}

#mobile-menu a,
#mobile-menu button {
  color: #fff;
  font-weight: 500;
}

#mobile-menu .submenu {
  background-color: rgba(255, 255, 255, 0.15);
}

#mobile-menu .submenu a {
  color: #e5e7eb;
}

#mobile-menu .submenu a:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* ---- Hero section ---- */
.hero-clean {
  position: relative;
  overflow: hidden;
  min-height: 0 !important;
  height: auto !important;
  padding-top: 1.2rem !important;
  padding-bottom: 1.2rem !important;
  max-height: none !important;
}

.hero-clean::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(255,255,255,0.08), transparent 26%), radial-gradient(circle at 82% 14%, rgba(255,255,255,0.06), transparent 24%), linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 70%);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation: hero-pan 24s ease-in-out infinite alternate;
}

.hero-clean::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 180px 180px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  animation: hero-grid 36s linear infinite;
}

.hero-clean .container {
  position: relative;
  z-index: 10;
}

.hero-clean > .container > .rounded-\[2rem\] {
  margin-bottom: 0 !important;
}

.hero-clean .rounded-\[2rem\] {
  position: relative;
  isolation: isolate;
}

@keyframes hero-pan {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

@keyframes hero-grid {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 80px 80px, -80px -80px; }
}

@keyframes hero-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(8%, 10%, 0) scale(1.08); }
}

@media (max-width: 768px) {
  .hero-clean {
    min-height: auto;
  }
}

/* ---- Feature cards ---- */
.site-feature-card {
  position: relative;
}

/* ---- Popup ---- */
#customPopup {
  display: none;
}

#customPopup.hidden {
  display: none !important;
}

/* ---- Select dropdown options ---- */
select option {
  background-color: #2e1a47;
  color: #e6e6fa;
}

/* ---- FAQ accordion ---- */
.faq-item .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.faq-item.is-open .faq-content {
  max-height: 600px;
}

.faq-item.is-open .faq-toggle i {
  transform: rotate(180deg);
}

/* ---- Carousel ---- */
.site-carousel {
  will-change: transform;
}

.site-carousel__slide {
  position: relative;
}

.site-carousel__nav {
  cursor: pointer;
}

/* ---- Animations ---- */
@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-down {
  animation: fade-in-down 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out;
}
