@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  background-color: #000;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.icon {
  width: 20px; /* Tamaño más pequeño */
  height: 20px; /* Tamaño más pequeño */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 50%;
  padding: 5px; /* Ajusta el padding para mantener proporción */
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icon:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.2);
}

.icon:active {
  transform: scale(0.9);
}

.icon img {
  transition: filter 0.3s ease;
  max-width: 100%; 
  max-height: 100%;
}

.icon:hover img {
  filter: brightness(1.2);
}

.share {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  color: white;
  font-size: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease-in-out;
}

/* Efecto de hover */
.share a:hover {
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

/* Íconos */
.share a i {
  font-size: 26px;
}

/* Colores personalizados por plataforma */
.share a.website { color: #4CAF50; }
.share a.github { color: #181717; }
.share a.mail { color: #D44638; }
.share a.linkedin { color: #0077B5; }
.share a.cv { color: #FF9800; }


/* Tarjeta */
.card {
  width: 17em;
  height: 25em;
  background: rgba(23, 23, 23, 0.4); /* Fondo con transparencia (0.8 es el nivel de opacidad) */
  transition: 1s ease-in-out;
  clip-path: polygon(30px 0%, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0% 30px);
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Imagen de perfil */
.card .img {
  width: 8em;
  height: 8em;
  background: url('image/yo.jpeg') no-repeat center/cover; 
  border-radius: 10%;
  border: 3px solid white;
  margin-top: 1em;
  position: relative; /* Necesario para posicionar el aura */
  box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.4); /* Efecto inicial */
  animation: aura 3s infinite ease-in-out; /* Animación del aura */
}

/* Animación del aura */
@keyframes aura {
  0% {
    box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 25px 8px rgba(255, 255, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.4);
  }
}


/* Texto y detalles */
.card span {
  font-weight: bold;
  color: white;
  font-size: 1.2em;
}

.card .info {
  font-weight: 400;
  color: white;
  font-size: 0.9em;
  margin: 1em 0;
}

  .icon {
    width: 40px;
    height: 40px;
  }
  
  /* Evita desplazamiento horizontal en móviles */
  body {
    overflow-x: hidden;
  }
  #canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Esto coloca el canvas detrás de otros elementos */
  }
  #canvas {
    width: 100%;
    height: auto; /* Mantén la relación de aspecto */
  }
    