/* From Uiverse.io by JaydipPrajapati1910 */
/* --- Estilos para la tarjeta de perfil estándar (shortcode: [tarjeta_veterinario]) --- */
.card {
  position: relative;
  width: 100%; /* Ocupará el 100% del ancho de su contenedor */
  max-width: 400px; /* Ancho máximo para que no se estire demasiado en móviles grandes */
  height: 450px; /* Mantenemos la altura fija para este diseño */
  margin: 20px auto; /* Centra la tarjeta horizontalmente y da margen vertical */
  box-shadow: 0 0 10px rgba(0,0,0, .3);
  border-radius: 10px;
  overflow: hidden;
  display: flex; /* Usado para flexibilidad, aunque la altura fija lo limita */
  flex-direction: column; /* Apila elementos verticalmente */
}

.card-header {
  position: relative;
  height: 220px; /* Altura fija para el encabezado con la imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.card-header:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgb(217 169 169), rgba(181, 181, 181, 0));
  border-radius: 10px;
  top: 0;
  left: 0;
}

/* Estilos para la foto de perfil */
.profile-image {
  position: absolute;
  margin-top: 100px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  z-index: 2;
}

.card-header-bar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0,0,0,0);
  border: none;
  overflow: hidden;
}

.btn-message, .btn-menu {
  display: inline-block;
  width: 19.37px;
  height: 16.99px;
  margin-right: 10px;
  margin-top: 10px;
  float: right;
}

.btn-menu {
  float: left;
  margin-left: 10px;
  margin-right: 0;
}

.card-header-slanted-edge {
  position: absolute;
  bottom: -3px;
  z-index: 1;
  width: 100%;
  right: 0;
  left: 0;
}

.card-body {
  text-align: center;
  padding: 10px;
  flex-grow: 1;
}

.name {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 auto;
}

.job-title {
  font-size: 14px;
  font-weight: 300;
  margin-top: 15px;
  color: #919191;
}

.bio {
  font-size: 14px;
  color: #7B7B7B;
  font-weight: 300;
  margin: 10px auto;
  line-height: 20px;
}

.social-accounts img {
  width: 15px;
}

.social-accounts a {
  margin: 0 5px;
  display: inline-block;
}

.card-footer {
  width: 100%;
  padding-bottom: 20px;
  padding-top: 10px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  box-sizing: border-box;
}

.stat {
  box-sizing: border-box;
  width: calc(100% / 3);
  float: left;
  text-align: center;
}

.stat:nth-child(2),
.stat:nth-child(3) {
  border-left: 1px solid grey;
}

.stat .label {
  display: block;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 1px;
  color: #95989A;
}

.stat .value {
  display: block;
  font-weight: 700;
  font-size: 20px;
  margin-top: 5px;
}

/* --- Media Query para Escritorio y Tablets para .card --- */
@media (min-width: 768px) {
  .card {
    max-width: 600px; /* Ancho máximo para pantallas grandes */
    margin: 30px auto; /* Centramos la tarjeta en pantallas grandes */
  }

  .name {
    font-size: 22px;
  }
  .job-title {
    font-size: 15px;
  }
  .bio {
    font-size: 15px;
  }
  .stat .label {
    font-size: 12px;
  }
  .stat .value {
    font-size: 22px;
  }
}

