/* ============================================
   UTEAM - Custom Visual Enhancements
   Quick Wins + Glassmorphism + Scroll Animations
   ============================================ */

/* CSS Variables for Easy Customization */
:root {
  --primary: #4154f1;
  --primary-dark: #2937d6;
  --primary-light: #6b7cff;
  --gradient-primary: linear-gradient(135deg, #4154f1 0%, #2937d6 100%);
  --gradient-vibrant: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-primary: 0 10px 30px rgba(65, 84, 241, 0.2);
  --shadow-hover: 0 20px 40px rgba(65, 84, 241, 0.25);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   1. HERO SECTION - Gradiente Moderno
   ============================================ */

.hero {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4154f1 100%) !important;
  position: relative;
  overflow: hidden;
}

/* Shimmer effect animado */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 8s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Hero text con mejor contraste */
.hero h1,
.hero p {
  color: white !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   2. CARDS - Hover Effects Modernos
   ============================================ */

.service-item,
.feature-box {
  background: white;
  border-radius: 16px;
  padding: 32px !important;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(65, 84, 241, 0.05);
}

/* Gradiente sutil en hover */
.service-item::before,
.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.service-item:hover::before,
.feature-box:hover::before {
  opacity: 1;
}

/* Elevación al hover */
.service-item:hover,
.feature-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(65, 84, 241, 0.15);
}

/* Asegurar que el contenido esté sobre el gradiente */
.service-item>*,
.feature-box>* {
  position: relative;
  z-index: 1;
}

/* ============================================
   3. BOTONES - Más Grandes y Premium
   ============================================ */

.btn-primary,
.btn-get-started {
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary) !important;
  border: none !important;
  padding: 16px 40px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 15px rgba(65, 84, 241, 0.3);
  transition: var(--transition-smooth);
}

/* Efecto ripple al hover */
.btn-primary::before,
.btn-get-started::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before,
.btn-get-started:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover,
.btn-get-started:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(65, 84, 241, 0.4);
}

.btn-primary:active,
.btn-get-started:active {
  transform: translateY(0);
}

/* Outline button modernizado */
.btn-outline-primary {
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  background: transparent !important;
  padding: 16px 40px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-outline-primary:hover::before {
  left: 0;
}

.btn-outline-primary:hover {
  color: white !important;
  border-color: transparent !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* ============================================
   4. SOMBRAS MEJORADAS
   ============================================ */

/* Cards con sombra de marca */
.service-item,
.feature-box,
.mission-vision .feature-box,
.benefits .service-item {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.service-item:hover,
.feature-box:hover {
  box-shadow: 0 20px 40px rgba(65, 84, 241, 0.15), 0 4px 8px rgba(65, 84, 241, 0.08);
}

/* Sección titles con sombra sutil en texto */
.section-title h2 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ============================================
   5. ICONOS - Bounce Effect
   ============================================ */

.service-item .icon,
.feature-box .icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-bounce);
}

.service-item .icon i,
.feature-box .icon i {
  font-size: 32px;
}

.service-item:hover .icon,
.feature-box:hover .icon {
  transform: scale(1.15) rotate(-5deg);
}

.service-item:hover .icon i,
.feature-box:hover .icon i {
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(-4px);
  }
}

/* Cambio de color de icono al hover */
.service-item:hover .icon i,
.feature-box:hover .icon i {
  color: var(--primary);
}

/* ============================================
   6. ONDAS SVG - Decoración Moderna
   ============================================ */

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   7. GLASSMORPHISM - Efecto Vidrio Sutil
   ============================================ */

/* Aplicar a Misión/Visión y Beneficios */
.mission-vision .feature-box,
.benefits .service-item {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(65, 84, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mission-vision .feature-box:hover,
.benefits .service-item:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* ============================================
   8. SCROLL ANIMATIONS - Fade In Suaves
   ============================================ */

/* Animación base de fade-in */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation para elementos en grupo */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados */
.stagger-item:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-item:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-item:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-item:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-item:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger-item:nth-child(6) {
  transition-delay: 0.6s;
}

/* Animación de fade-in para títulos de sección */
.section-title.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.section-title.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   MEJORAS ADICIONALES - Bonus
   ============================================ */

/* Smooth scroll para toda la página */
html {
  scroll-behavior: smooth;
}

/* Mejora de tipografía */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headers con mejor peso visual */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Links con transición suave */
a {
  transition: color 0.2s ease;
}

/* Formularios con mejor estilo */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(65, 84, 241, 0.1);
  transition: var(--transition-smooth);
}

/* ============================================
   RESPONSIVE - Ajustes para móvil
   ============================================ */

@media (max-width: 768px) {

  .service-item:hover,
  .feature-box:hover {
    transform: translateY(-5px) scale(1.01);
  }

  .hero-waves {
    opacity: 0.6;
  }

  .btn-primary,
  .btn-get-started {
    width: 100%;
  }
}

/* ============================================
   FIN - Custom Styles
   ============================================ */