/* ============================================================
   EFECTOS SUTILES SHYRO NETWORK
   ============================================================ */

/* ========== 1. APARICIÓN SUAVE AL HACER SCROLL ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 2. HOVER ELEGANTE EN ENLACES ========== */
.nav-menu a,
.footer-col-links a,
.mobile-menu-links a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a::after,
.footer-col-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #00B1FF;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover::after,
.footer-col-links a:hover::after {
  width: 100%;
}

/* ========== 3. BOTONES CON SUTIL ELEVACIÓN ========== */
.btn-primary,
.btn-secondary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 177, 255, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.05);
}

/* ========== 4. TARJETAS CON LEVITACIÓN SUTIL ========== */
.mode-card,
.gallery-item,
.platform-item,
.server-block {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-card:hover,
.gallery-item:hover,
.platform-item:hover,
.server-block:hover {
  transform: translateY(-6px);
}

/* ========== 5. IMÁGENES CON ZOOM SUTIL ========== */
.gallery-item img,
.mode-image {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img,
.mode-card:hover .mode-image {
  transform: scale(1.04);
}

/* ========== 6. TEXTO CON DEGRADADO SUTIL ========== */
.gradient-text {
  background: linear-gradient(135deg, #E6F7FF 0%, #00B1FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== 7. OVERLAY CON DESVANECIDO SUAVE ========== */
.gallery-overlay,
.mode-overlay {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 8. ENCABEZADOS CON SUBRAYADO ANIMADO ========== */
.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, #00B1FF, transparent);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header:hover h2::after {
  width: 100%;
}

/* ========== 9. LIGHTBOX CON TRANSICIÓN SUAVE ========== */
.lightbox {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-content img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content img {
  animation: lightboxZoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========== 10. ICONOS CON ROTACIÓN SUTIL ========== */
.section-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header:hover .section-icon {
  transform: rotate(15deg) scale(1.1);
}

/* ========== 11. CONTADOR DE LIGHTBOX ========== */
.lightbox-counter {
  transition: opacity 0.3s ease;
}

/* ========== 12. BOTÓN VOLVER ARRIBA ========== */
.back-to-top {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 177, 255, 0.15);
}

/* ========== 13. SEPARADORES CON DEGRADADO ========== */
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #00B1FF, transparent);
  margin: 0.5rem 0 1.5rem;
}

/* ========== 14. RESPONSIVE: DESACTIVAR EFECTOS EN MÓVIL ========== */
@media (max-width: 768px) {
  .mode-card:hover,
  .gallery-item:hover,
  .platform-item:hover,
  .server-block:hover {
    transform: none !important;
  }
  
  .gallery-item:hover img,
  .mode-card:hover .mode-image {
    transform: none !important;
  }
  
  .section-header:hover h2::after {
    width: 40% !important;
  }
  
  .section-header:hover .section-icon {
    transform: none !important;
  }
}