/* Estilos para la sección de avatares */

.avatars-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Fondo con gradiente sutil */
.avatars-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(255, 192, 53, 0.05) 0%,
    transparent 60%
  );
  z-index: -1;
}

.avatars-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.avatars-section h2 .grad {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

/* Subrayado animado para el título */
.avatars-section h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-secondary);
  transition: width 0.5s ease;
  border-radius: 3px;
}

.avatars-section:hover h2::after {
  width: 80px;
}

.avatars-section p {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}
/* Tarjetas de avatar con animación de entrada */
.avatar-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.6s ease forwards;
  height: 374px;
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Retrasos en la animación para cada tarjeta */
.avatar-card:nth-child(1) { animation-delay: 0.1s; }
.avatar-card:nth-child(2) { animation-delay: 0.2s; }
.avatar-card:nth-child(3) { animation-delay: 0.3s; }
.avatar-card:nth-child(4) { animation-delay: 0.4s; }
.avatar-card:nth-child(5) { animation-delay: 0.5s; }

.avatar-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.15);
}

/* Efecto de brillo al pasar el cursor */
.avatar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.7s ease;
}

.avatar-card:hover::before {
  left: 100%;
}

/* Mejora del icono del avatar */
.avatar-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 40px;
  background: var(--bg3);
  border: 3px solid;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.avatar-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Efecto de resplandor alrededor del icono */
.avatar-icon::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.avatar-card:hover .avatar-icon {
  transform: scale(1.1);
}

.avatar-card:hover .avatar-icon::after {
  opacity: 0.5;
}

/* Colores específicos para cada avatar */
.ceo-avatar .avatar-icon { 
  border-color: var(--ceo); 
}
.ceo-avatar .avatar-icon::after { 
  box-shadow: 0 0 20px var(--ceo);
}
.satoshi-avatar .avatar-icon { 
  border-color: var(--gold); 
}
.satoshi-avatar .avatar-icon::after { 
  box-shadow: 0 0 20px var(--gold);
}

.miner-avatar .avatar-icon { 
  border-color: var(--orange); 
}
.miner-avatar .avatar-icon::after { 
  box-shadow: 0 0 20px var(--orange);
}

.trader-avatar .avatar-icon { 
  border-color: #a483ff; 
}
.trader-avatar .avatar-icon::after { 
  box-shadow: 0 0 20px #a483ff;
}

.whale-avatar .avatar-icon { 
  border-color: var(--cyan); 
}
.whale-avatar .avatar-icon::after { 
  box-shadow: 0 0 20px var(--cyan);
}

.hacker-avatar .avatar-icon { 
  border-color: var(--mag); 
}
.hacker-avatar .avatar-icon::after { 
  box-shadow: 0 0 20px var(--mag);
}

/* Mejora de los títulos y descripciones */
.avatar-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.satoshi-avatar:hover h3 { color: var(--gold); }
.miner-avatar:hover h3 { color: var(--orange); }
.trader-avatar:hover h3 { color: #a483ff; }
.whale-avatar:hover h3 { color: var(--cyan); }
.hacker-avatar:hover h3 { color: var(--mag); }

.avatar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

/* Enlaces de avatar */
.avatar-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.avatar-link:hover {
  background: rgba(255, 192, 53, 0.1);
  border-color: rgba(255, 192, 53, 0.3);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .avatars-section h2 {
    font-size: 2rem;
  }
  
  .avatars-section p {
    font-size: 1rem;
  }
  
  .avatar-card {
    padding: 20px;
  }
  
  .avatar-icon {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }
}
