/* ========================================
   STATS SECTION - DISEÑO MODERNO
   Speck Developers - Paleta Azul y Blanco
   ======================================== */

/* Sección principal */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1E5F8C 0%, #2B7BA9 50%, #1E5F8C 100%);
  position: relative;
  overflow: hidden;
}

/* Efecto de fondo con patrón */
.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Wrapper de estadísticas */
.stats-wrapper {
  position: relative;
  z-index: 1;
}

/* Tarjeta de estadística */
.stat-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Tarjeta destacada */
.stat-card.featured {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.stat-card.featured:hover {
  transform: scale(1.08) translateY(-10px);
}

/* Icono */
.stat-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1E5F8C 0%, #2B7BA9 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(30, 95, 140, 0.3);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(30, 95, 140, 0.4);
}

.stat-card.featured .stat-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #2B7BA9 0%, #1E5F8C 100%);
}

.stat-icon i {
  font-size: 40px;
  color: #ffffff;
}

.stat-card.featured .stat-icon i {
  font-size: 45px;
}

/* Contenido */
.stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Número */
.stat-number {
  font-size: 50px;
  font-weight: 700;
  color: #1E5F8C;
  margin-bottom: 10px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  line-height: 1;
}

.stat-card.featured .stat-number {
  font-size: 55px;
}

.stat-plus {
  font-size: 40px;
  font-weight: 700;
  color: #2B7BA9;
}

/* Título */
.stat-title {
  font-size: 20px;
  font-weight: 600;
  color: #1E5F8C;
  margin-bottom: 12px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  line-height: 1.3;
}

.stat-card.featured .stat-title {
  font-size: 22px;
}

/* Descripción */
.stat-description {
  font-size: 14px;
  color: #666666;
  margin: 0;
  line-height: 1.6;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 991px) {
  .stats-section {
    padding: 60px 0;
  }

  .stat-card {
    padding: 35px 25px;
  }

  .stat-card.featured {
    transform: scale(1);
    margin-bottom: 20px;
  }

  .stat-card.featured:hover {
    transform: translateY(-10px);
  }

  .stat-icon {
    width: 70px;
    height: 70px;
  }

  .stat-icon i {
    font-size: 35px;
  }

  .stat-card.featured .stat-icon {
    width: 75px;
    height: 75px;
  }

  .stat-card.featured .stat-icon i {
    font-size: 38px;
  }

  .stat-number {
    font-size: 45px;
  }

  .stat-card.featured .stat-number {
    font-size: 48px;
  }

  .stat-title {
    font-size: 18px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .stats-section {
    padding: 50px 0;
  }

  .stat-card {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .stat-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
  }

  .stat-icon i {
    font-size: 32px;
  }

  .stat-card.featured .stat-icon {
    width: 70px;
    height: 70px;
  }

  .stat-card.featured .stat-icon i {
    font-size: 35px;
  }

  .stat-number {
    font-size: 40px;
  }

  .stat-card.featured .stat-number {
    font-size: 42px;
  }

  .stat-plus {
    font-size: 35px;
  }

  .stat-title {
    font-size: 17px;
  }

  .stat-description {
    font-size: 13px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .stat-card {
    padding: 25px 15px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
  }

  .stat-icon i {
    font-size: 28px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-plus {
    font-size: 30px;
  }

  .stat-title {
    font-size: 16px;
  }

  .stat-description {
    font-size: 12px;
  }
}

/* ========================================
   ANIMACIONES
   ======================================== */

/* Animación de contadores */
.purecounter {
  display: inline-block;
  animation: countUp 0.5s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de aparición */
.stat-card {
  animation: fadeInScale 0.6s ease-out;
  animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}