/* ============================================
   GENIUS PRO - Custom Styles
   Complementary to Tailwind CSS utilities
   ============================================ */

/* ---- Global ---- */
:root {
    --primary:   #000E1F;
    --secondary: #00FFCC;    
    --text:      #000311;
}

html {
  scroll-behavior: auto;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: var(--secondary);
  color: var(--text);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

.bgBanner {
    background-image: url('../assets/image/banner-1.jpg');
}
.bgPlanes {
    background-image: url('../assets/image/banner-planes.png');
}
.bgPreguntas {
    background-image: url('../assets/image/bg-preguntas-frecuentes.png');
}
#contactanos {
    background-image: url('../assets/image/bg-footer.jpg');
}
.bgModal {
    background-image: url('../assets/image/bg-footer.jpg');
    background-size: contain;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile navigation links with same effect */
.mobile-link {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

.mobile-link.active::after {
  width: 100%;
}


/* ============================================
   HERO SECTION
   ============================================ */

.borderBtn {
    background-image: url("../assets/image/border-btn.png");
    background-position: center;
    background-size: 100% 100%;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(0, 229, 160, 0.15); }
  50% { border-color: rgba(0, 229, 160, 0.35); }
}

/* ---- Swiper Customization ---- */
.hero-swiper {
  width: 100%;
}

.hero-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(0, 229, 160, 0.5);
}


/* ============================================
   FEATURES TABS SECTION
   ============================================ */

   
.title-plans:before,
.title-plans::after {
  content: '';
  position: absolute;
  bottom: 5px;
  width: 40px;
  height: 80px;
  background-color: #fff;
  z-index: 0;
}
.title-plans:before {
    left: -22px;
    transform: rotate(-30deg);
}
.title-plans:after {
    right: -22px;
    transform: rotate(30deg);
}

.feature-tab {
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
}

.feature-tab.active {
  background-image: url("../assets/image/tab-active.png");
  color: var(--primary);
  background-size: 100% 100%;
}


.feature-tab:not(.active):hover {
  color: var(--text);
}

/* Tab content transition */
.tab-content {
  animation: fadeInTab 0.4s ease-out;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   PLAN TABS (Pricing section - dark bg)
   ============================================ */
.plan-tab {
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  color: white;
}

.plan-tab.active {
  background-image: url("../assets/image/border-btn-white.png");
  color: white;
  background-size: 100% 100%;
}


/* Plan tab content transition */
.plan-tab-content {
  animation: fadeInTab 0.4s ease-out;
}


/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-card {
  background: transparent;
  transition: all 0.3s ease;
  background-size: 100% 100%;
}
.pricing-card:after{
    content: '';
    background-image: url("../assets/image/bg-planes-secundario.png");
    opacity: 0.5;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: 100% 100%;
    z-index: -1;
}

.pricing-card:hover {
  box-shadow: 0 8px 30px rgba(0, 229, 160, 0.1);
}

.pricing-card.featured:after {
  background-image: url("../assets/image/bg-planes-principal.png");
    opacity: 0.8 !important;
}

/* Price strikethrough styling */
.pricing-card .line-through {
  text-decoration-color: #fff;
  text-decoration-thickness: 2px;
}


/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  background: linear-gradient(90deg, rgba(0, 229, 160, 0.08) 0%, rgba(11, 16, 38, 0.5) 100%);
  /* border-left: 3px solid transparent; */
  border-image: linear-gradient(180deg, var(--secondary) 0%, #06B6D4 100%) 1;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: linear-gradient(90deg, rgba(0, 229, 160, 0.12) 0%, rgba(11, 16, 38, 0.7) 100%);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active {
  border-image: linear-gradient(180deg, var(--secondary) 0%, #14F0C5 100%) 1;
}

/* FAQ answer animation */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-answer.open {
  max-height: 300px;
  padding-bottom: 1rem;
  opacity: 1;
}


/* ============================================
   MODAL
   ============================================ */
#modal-overlay {
  will-change: opacity, visibility;
}

#modal-content {
  will-change: transform, opacity;
}

#modal-overlay.modal-open {
  visibility: visible !important;
  opacity: 1 !important;
}

#modal-overlay.modal-open #modal-content {
  transform: scale(1) translateY(0) !important;
  opacity: 1 !important;
}

/* Select dropdown dark styling */
#modal-service option {
  background-color: #0B1026;
  color: #fff;
}


/* ============================================
   VIDEO MODAL
   ============================================ */
#video-overlay {
  will-change: opacity, visibility;
}

#video-dialog {
  will-change: transform, opacity;
}

#video-overlay.video-open {
  visibility: visible !important;
  opacity: 1 !important;
}

#video-overlay.video-open #video-dialog {
  transform: scale(1) translateY(0) !important;
  opacity: 1 !important;
}


/* ============================================
   FOOTER
   ============================================ */
footer a:hover {
  text-decoration: none;
}


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }


/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Mobile: < 640px */
@media (max-width: 639px) {
  .hero-bg {
    background-size:
      25px 25px,
      25px 25px,
      100% 100%,
      100% 100%,
      100% 100%,
      100% 100%;
  }

  .feature-tab {
    font-size: 12px;
    padding: 8px 16px;
  }

  .pricing-card.featured {
    margin-top: 0;
  }

  .faq-item {
    border-left-width: 2px;
  }
}

/* Tablet: 640px - 1023px */
@media (min-width: 640px) and (max-width: 1023px) {
  .pricing-card.featured {
    margin-top: 0;
  }
}

/* Mobile navigation animation */
#mobile-menu {
  transition: all 0.3s ease;
}

#mobile-menu.open {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header scroll state */
#header.scrolled {
  background-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
