body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;

  /* 🔹 Fondo negro liso */
  background: #000;

  display: flex;
  align-items: center;
  justify-content: center;
  /* height: 100vh; */
  
  min-height: 100vh;  /* 🔹 antes: height:100vh */
  height: auto;       /* 🔹 permite scroll si hace falta */


}

@font-face {
  font-family: Roboto-Thin;
  src: url("./fonts/Roboto-Thin.ttf");
}

/* 🎴 Tarjeta principal */
.card {
  background: url("https://contact.chrisinostroza.com/resource/esc-wallpapers.gif") no-repeat top center;
  background-size: cover;
  /* background-color: #000; por si sobran bordes */
  background-position: top center;
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 80%;
  animation: fadeIn 1s ease;
  position: relative;
  overflow: hidden;

  /* 🔹 Ajuste para pantallas pequeñas */
  min-height: 100vh; 
  height: auto;       /* deja que crezca si el contenido es mayor */
  box-sizing: border-box;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* 🔹 Sombra oscura para contraste */
  border-radius: 0px;
  z-index: 0;
}

.card * {
  position: relative;
  z-index: 1;
}

/* 📷 Imagen perfil */
.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-bottom: 2rem;
}

/* 👤 Títulos */
h1 {
  margin: 0;  /* 🔹 elimina margen extra */
  font-size: 1.4rem;
  font-weight: 500;
  font-family: Roboto-Thin, sans-serif;
  letter-spacing: 4px;
  line-height: 1.1;  /* 🔹 compacta la altura de línea */
  top: -8px;
}

.subtitle {
  margin: 0.2rem 0 1rem 0;  /* 🔹 menos espacio arriba y abajo */
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  font-family: Roboto-Thin, sans-serif;
  letter-spacing: 1px;
  line-height: 1.2;
  top: -8px;
}

/* 🔗 Botones */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 10px;   /*Espacio entre icono y texto*/
  padding: 0.4rem;  /*Espacio interno*/
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 50;
  letter-spacing: 2px;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}

.btn i {
  font-size: 1.1rem;
}

.btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Colores uniformes */
.whatsapp, .linkedin, .instagram, .email, .web, .share {
  color: #fff;
}

hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.8);
}

/* 🔳 QR */
.qr-section {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.qr-img {
  width: 100px;
  top: 15px;
  height: auto;
  border-radius: 12px;
  border: 2px solid #fff;
  padding: 5%;
}

/* 🌐 Logo */
.logo-section {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;  /* 🔹 Apila vertical */
  align-items: center;     /* 🔹 Centra horizontal */
  gap: 0.9rem;             /* 🔹 Espacio entre logo y texto */
}

.logo-img {
  width: 78px;
  height: auto;
  transition: transform 0.2s ease;
  top: 5px;
}

.logo-img:hover {
  transform: scale(1.1);
}

/* 📝 Créditos */
.designer_by, .designer_me {
  margin: 0.01rem 0;   /* 🔹 reduce el espacio vertical */
  font-size: 0.7rem;
  font-weight: 400;
  font-family: Roboto-Thin, sans-serif;
  letter-spacing: 2px;
  color: #fff;
  opacity: 0.8;
  line-height: 1.2;
}


/*Designer by*/
.designer_by{
  margin: 0.1rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: Roboto-Thin, sans-serif;
  letter-spacing: 4px;
  top: 12px;
}

.designer_Me{
  margin: 0.1rem 0;
  font-size: 1rem;
  font-weight: 500;
  font-family: Roboto-Thin, sans-serif;
  letter-spacing: 4px;
}

/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 Fix para iPhone SE y móviles pequeños */
@media (max-width: 460px) {
  body {
    display: block;     /* 🔹 ya no forzamos flex */
    height: auto;       /* 🔹 deja crecer si hay más contenido */
  }

  .card {
    width: 100%;
    min-height: 100vh;  /* ocupa toda la pantalla */
    height: auto;       /* permite scroll si hace falta */
    border-radius: 0;   /* pantalla completa sin bordes */
    margin: 0;          /* evita cortes arriba/abajo */
  }

  .profile-img {
    margin-top: 1.5rem; /* 🔹 da aire extra arriba */
  }
}









