@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;     /* Apila verticalmente */
  align-items: center;        /* Centra horizontalmente */
  justify-content: center;    /* Centra la card */
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  background-attachment: fixed;
  font-family: 'Poppins', sans-serif;
}

/* Fondo con textura elegante */
body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("../bg.png");
  opacity: 0.15;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  padding: 2rem 2rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

/* Banner */
.banner {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  position: relative;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

/* Foto perfil */
.profile-img {
  position: relative;
  margin-top: -60px; /* Se monta sobre el banner */
}

.profile-img img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #344d6d;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
}

/* Nombre */
h1 {
  font-size: 1.6rem;
  margin: 1rem 0 0.5rem;
  color: #d3fa28;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* Descripción */
.description {
  font-size: 0.95rem;
  color: #dcdde1;
  margin-bottom: 1.5rem;
  line-height: 1.5;

}


        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            align-items: center;
            justify-content: center;
        }

        .social-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            color: #ddd;
            text-decoration: none;
        }

        .social-icon:hover {
            background-color: #5d90ee49;
            transform: translateY(-5px);
        }




/* Botón */
.contact-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 2.2rem;
  background: linear-gradient(135deg, #28800d, #0e5005);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: 0.3s;
}

.contact-btn:hover {
  background: linear-gradient(135deg, #0d702e, #064922);
  transform: translateY(-2px);
  box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

/* Footer */
footer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #bdc3c7;
  text-align: center;
  position: relative;
  z-index: 2;
}

footer a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: none;
}




/* Tus estilos existentes + mejoras para iOS */
    .save-contact-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      background: linear-gradient(145deg, #0e2779, #333030);
      color: white;
      padding: 7px 14px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 400;
      font-size: 1rem;
      margin: 20px auto 10px;
      border: 1px solid rgba(255, 215, 0, 0.3);
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
      transition: all 0.3s ease;
      cursor: pointer;
      width: fit-content;
      font-size: .85rem;
    }

    .save-contact-btn:hover {
      background: linear-gradient(145deg, #0b0568, #0a0a0a);
      border-color: rgb(145, 124, 5);
      transform: translateY(-3px);
      /*box-shadow: 0 12px 25px rgba(255, 215, 0, 0.2);*/
    }

    .save-contact-btn i {
      color: rgb(255, 215, 0);
      font-size: 1.2rem;
    }

    .btn-container {
      display: flex;
      justify-content: center;
      width: 100%;
    }

    .contact-data {
      display: none;
    }
    
    /* Modal mejorado */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.85);
      backdrop-filter: blur(5px);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    
    .modal-content {
      background: #1a1a1a;
      padding: 30px;
      border-radius: 20px;
      max-width: 320px;
      text-align: center;
      border: 1px solid rgb(255, 215, 0);
      color: white;
      box-shadow: 0 20px 40px rgba(0,0,0,0.5);
      margin: 20px;
    }
    
    .modal-content i {
      font-size: 3rem;
      color: rgb(255, 215, 0);
      margin-bottom: 20px;
    }
    
    .modal-content h3 {
      font-size: 1.5rem;
      margin-bottom: 15px;
      color: rgb(255, 215, 0);
    }
    
    .modal-content p {
      margin: 10px 0;
      line-height: 1.6;
    }
    
    .modal-content button {
      background: rgb(255, 215, 0);
      color: #000;
      border: none;
      padding: 12px 30px;
      border-radius: 25px;
      font-weight: bold;
      margin-top: 20px;
      cursor: pointer;
      width: 100%;
      font-size: 1rem;
    }
    
    .platform-badge {
      display: inline-block;
      padding: 5px 15px;
      border-radius: 20px;
      font-size: 0.9rem;
      margin-bottom: 15px;
    }
    
    .ios-badge {
      background: #000;
      color: white;
    }
    
    .android-badge {
      background: #3DDC84;
      color: #000;
    }