/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center; /* Changed from flex-start to center */
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
  background: url("img/perfil.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* Fondo difuminado */
.overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(15px);
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

/* Tarjeta principal */
.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0px 8px 25px rgba(0,0,0,0.25);
  overflow: hidden;
  padding-bottom: 30px;
  z-index: 1;
  backdrop-filter: blur(25px);
}

/* Imagen */
.profile-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nombre */
h1 {
  font-size: 1.6rem;
  margin: 15px 0 10px;
  color: #fff;
}

/* Biografía */
.bio {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 auto 20px;
  padding: 0 25px;
  max-width: 380px;
}

/* Íconos de redes con estilo glass */
.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 25px;
}

.socials a {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s, background 0.3s, border 0.3s;
  text-decoration: none; /* Asegura que no haya subrayado */
}

.socials a:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Botones estilo glassmorphism */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px;
  margin-bottom: 20px; /* Added spacing before copyright */
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s, background 0.3s, border 0.3s;
}

.link-btn i {
  font-size: 1.2rem;
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Copyright section */
.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  padding: 10px 20px 0;
  margin-top: 10px;
}

/* Responsivo */
@media (max-width: 600px) {
  .profile-wrapper {
    height: 220px;
  }
  h1 {
    font-size: 1.3rem;
  }
  .bio {
    font-size: 0.9rem;
    padding: 0 20px;
  }
}