/* Estilos específicos para la página de inicio (index.php) */

/* Optimización de videos para mejor calidad */
video {
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Mejoras específicas para videos de fondo */
.hero video {
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Estilos para la sección de estadísticas - moderna y compacta */
.stats {
  position: relative;
  overflow: hidden;
  display: block;
  text-align: center;
  color: white;
  padding: 3rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

.stats video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 0.6;
  filter: saturate(0.7) contrast(1.2) brightness(0.9);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.stats h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-item {
  text-align: center;
  padding: 1rem 0.5rem;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  border: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.stat-item:hover {
  transform: translateY(-3px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.1;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  white-space: nowrap;
}

.stat-label {
  display: block;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  text-align: center;
  max-width: 100%;
  word-wrap: break-word;
}

/* Responsive para estadísticas */
@media (max-width: 1024px) {
  .stats {
    padding: 2.5rem 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .stats {
    padding: 2rem 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .stats {
    padding: 1rem 0.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .stat-item {
    padding: 0.8rem 0.5rem;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .stats {
    padding: 0.8rem 0.3rem;
  }
  
  .stats-grid {
    gap: 0.5rem;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}
