/* Contenedor alineado para botones de compartir y agregar contacto */
.share-contact-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}
/* === ESTILOS GENERALES === */
body {
  font-family: 'Arial', sans-serif;
  background-color: #2c2c2c;
  text-align: center;
  padding: 20px;
  margin: 0;
}

/* === TARJETA PRINCIPAL === */
.card {
  background-color: #333;
  background-image: url('images/Background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 500px;
  margin: auto;
  padding: 28px; /* un poco más compacta */
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.20); /* sombra suave tipo CSS2 */
}

/* === SECCIÓN DE IMÁGENES === */
.image-container {
  position: relative;
  display: inline-block;
  margin-bottom: 60px; /* menos aire como CSS2 */
  width: 100%;
}

.banner {
  width: 100%;
  max-width: none;
  height: 280px; /* similar a CSS2 */
  object-fit: cover;
  object-position: center;
  border-radius: 16px; /* coincide con CSS2 */
  margin: 0;
  display: block;
}

.profile-img {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  bottom: -90px;     /* cae sobre la tarjeta como en CSS2 */
  right: 20px;       /* anclado a la derecha */
  left: auto;
  transform: none;
  border: 4px solid white; /* mantenemos color */
  background: #fff;         /* aro limpio */
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  margin-bottom: 23px;
}

/* === TEXTO Y TIPOGRAFÍA === */
h1 {
  font-size: 22px;
  line-height: 1.15; /* más compacto */
  margin: 8px 0 18px;
  font-weight: 600;  /* presencia similar a CSS2 */
  color: white;
}

.name {
  margin: 8px 0 10px;
  font-size: 32px;   /* un poco más compacto */
  line-height: 1.1;
  color: white;
  font-weight: bold;
}

p {
  font-size: 16px;
  color: #ccc;
  line-height: 1.35; /* estilo más “recogido” */
  margin: 6px 0;
}

.titulo {
  color: #aaa;
  font-size: 16px;
}

/* Footer */
.powered-by {
  margin-top: 14px;
  font-size: 11px;
  color: #777;
  font-style: italic;
  text-align: center;
  opacity: .95;
}

/* === BOTONES === */
.button-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

/* Alinear la fila de botones share/contacto igual que los botones principales */
.share-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 15px;
  box-sizing: border-box;
}

/* Redes sociales */
.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #83151D; /* mantenemos color */
  color: white;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  font-size: 28px; /* presencia tipo CSS2 */
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background .2s, transform .05s, box-shadow .2s;
}
.social-btn:hover { background:#a01b25; }          /* solo estilo, mismo tono base */
.social-btn:active { transform: translateY(1px); }  /* micro-feedback */

/* Botones principales */
.button {
  background-color: #83151D; /* mantenemos color */
  color: white;
  border: none;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  padding: 14px 22px;         /* más compacto */
  border-radius: 26px;        /* píldora como CSS2 */
  min-height: 56px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;           /* similar a CSS2 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background .2s, transform .05s, box-shadow .2s;
}
.button:hover { background-color: #951922; }
.button:active { transform: translateY(1px); }

.button i { font-size: 20px; }

/* Botón ancho (beige con borde) */
.button-wide {
  width: 100%;
  margin-top: 0;
  border-radius: 26px;
  box-sizing: border-box;
  padding: 14px 22px;
  background-color: white;  /* mantenemos color */
  color: #83151D;           /* mantenemos color */
  border: 2px solid #83151D;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  border-radius: 26px;      /* píldora */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  min-height: 56px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background .2s, transform .05s, box-shadow .2s;
}
.button-wide:hover { background-color: #fff5f1; }
.button-wide:active { transform: translateY(1px); }

.button-wide i { font-size: 18px; }

/* === RESPONSIVE DESIGN === */
@media (max-width: 480px) {
  body { padding: 12px; }

  .card {
    max-width: 100%;
    margin: 5px auto;
    padding: 16px;
  }

  .image-container { margin-bottom: 50px; }
  .banner { height: 160px; }
  .profile-img { width: 70px; height: 70px; bottom: -50px; right: 18px; }

  h1 { font-size: 20px; margin: 8px 0 14px; }
  p { font-size: 14px; line-height: 1.4; }

  .button {
    font-size: 15px;
    padding: 13px 18px;
    min-height: 54px;
    gap: 8px;
  }

  .button i { font-size: 18px; }

  .button-grid { grid-template-columns: 1fr; gap: 10px; }

  .button-wide {
    font-size: 15px;
    padding: 13px 18px;
    gap: 8px;
    min-height: 54px;
  }

  .button-wide i { font-size: 16px; }

  .powered-by { font-size: 10px; margin-top: 12px; }
}

@media (max-width: 320px) {
  .card { padding: 12px; margin: 2px auto; }
  .banner { height: 140px; }

  .profile-img { width: 60px; height: 60px; bottom: -40px; right: 16px; }

  h1 { font-size: 18px; margin: 6px 0 12px; }
  p { font-size: 12px; line-height: 1.3; }

  .button {
    font-size: 13px;
    padding: 12px 14px;
    min-height: 50px;
    gap: 6px;
  }
  .button i { font-size: 16px; }

  .button-wide {
    font-size: 13px;
    padding: 12px 14px;
    min-height: 50px;
  }
  .button-wide i { font-size: 14px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .card { max-width: 480px; padding: 24px; }
  .banner { height: 240px; }
  .profile-img { width: 110px; height: 110px; bottom: -80px; right: 20px; }

  h1 { font-size: 24px; }
  p { font-size: 15px; }

  .button {
    font-size: 15px;
    padding: 14px 20px;
    min-height: 54px;
  }
  .button i { font-size: 18px; }

  .button-wide { font-size: 15px; padding: 14px 20px; }
  .button-wide i { font-size: 18px; }

  .button-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (min-width: 769px) {
  .card { max-width: 550px; padding: 32px; }
  .banner { height: 300px; }
  .profile-img { width: 130px; height: 130px; bottom: -85px; right: 22px; }

  h1 { font-size: 26px; }
  p { font-size: 18px; line-height: 1.5; }

  .button { font-size: 16px; padding: 16px 22px; }
  .button i { font-size: 20px; }

  .button-wide { font-size: 16px; padding: 16px 22px; }
  .button-wide i { font-size: 20px; }

  .button-grid { gap: 14px; }
}
