/*
 Theme Name: Blocksy Child
 Template: blocksy
*/

.tarjeta-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;  /* la alinea arriba */
  min-height: 100vh;
  padding: 40px 16px 16px;  /* espacio arriba */
  background: #f7f7f9;
}

.tarjeta {
  width: 300px;          /* más compacta */
  max-width: 90vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

/* Foto centrada arriba */
.tarjeta-foto-top {
  background: var(--color);
  padding: 24px;
}
.tarjeta-foto-top .tarjeta-foto {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 5px solid #fff;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Nombre, puesto y empresa */
.tarjeta-header-text {
  padding: 12px 16px;
}
.tarjeta-nombre {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #222;
}
.tarjeta-puesto {
  margin: 4px 0 0;
  font-size: 13px;
  color: #555;
}
.tarjeta-empresa {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #777;
}

/* Botones de contacto */
.tarjeta-contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
}
.tarjeta-contacto .btn {
  flex: 1 1 45%;
  min-width: 120px;
  padding: 10px;
  border-radius: 10px;
  background: #f1f3f6;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.tarjeta-contacto .btn:hover {
  background: #e2e6eb;
  transform: translateY(-2px);
}

/* Botón Guardar contacto */
.tarjeta-guardar {
  padding: 0 16px 16px;
}
.tarjeta-guardar .btn-guardar {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: var(--color);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.tarjeta-guardar .btn-guardar:hover {
  background: #1f5fbf;
  transform: translateY(-2px);
}

/* Dirección */
.tarjeta-direccion {
  padding: 14px 16px;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  border-top: 1px solid #eee;
  background: #fafafa;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.tarjeta-redes {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 12px 0 5px;
}

.tarjeta-redes .social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f3f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.tarjeta-redes .social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.tarjeta-redes .social:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--color);
}


/* Responsivo: en móvil, botones en una sola columna */
@media (max-width: 420px) {
  .tarjeta-contacto {
    flex-direction: column;
  }
  .tarjeta-contacto .btn {
    flex: 1 1 100%;
  }
}