.author-writtenby {
  margin-top:70px;
  padding:0;
  margin-bottom:0;
  font-size: 1.75rem;
  font-weight: 600;
  padding-bottom:10px;
  margin-bottom: 20px;

}

.author-card {
  display: flex;
  align-items: flex-start;
  border: none;
  padding: 30px 33px 30px 20px !important;
  max-width: 883px;
  margin: 0 auto;
  gap: 30px;
}
.author-card:not(.author-card-in-page) {
  background: #EFECE8;
}
.author-card-in-page {
    max-width: 100%;
    gap: 50px;
}

.taolis-ai-btn.author-linkedin.author-linkedin-mobile {
  display: none;
}

.taolis-ai-btn.author-linkedin {
  display:inline-flex;
  border-radius: 30px;
  border: 1px solid #1E293B;
  color: #1E293B; /* azul LinkedIn */
  fill: #1E293B;
  line-height: 20px;
  background: transparent;
}

.author-image img {
  width: 158px;
  height: 195px;
  object-fit: cover;
}

.author-card-in-page  .author-image {
    position: sticky;
    display: flex;
    flex-direction: column;
    top: 60px;
    justify-content: center;
}
.author-card-in-page .author-description {
    max-width: 625px;
}
.author-card-in-page .author-linkedin {
  max-width:230px;
  margin:20px auto;
  background: rgba(30, 41, 59, 1);
  color: #FFF;
  fill: #FFF;
}
.author-card-in-page  .author-image img{
  width: 349px;
  height: 419px;
}

.author-info {
    flex: 1;
    flex-shrink: 1;
    max-width: 100%;
    overflow: hidden;
}

.author-name {
  font-size: 2.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom:0px;
}
.author-title {
  margin-bottom:10px;
}
.author-name a {
  text-decoration: none; 
}

.author-image {
  flex-shrink: 0;
}

.author-linkedin .linkedin-icon {
  width: 18px;
  height: 18px;
  margin-left: 10px;
}

.author-role {
  font-weight: bold;
  color: #444;
  margin-bottom:24px;
}

.author-category {
  margin: 10px 0;
}

.category-label {
  font-weight: bold;
}

.author-bio p {
  margin: 4px 0;
}

.author-buttons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #000;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  color: #000;
  transition: background 0.3s;
}

.btn:hover {
  background: #f2f2f2;
}
@media (max-width: 1024px) {
.author-card-in-page .author-image img {
    width: 300px;
    height: 368px;
}
}
@media (max-width: 768px) {
   .author-card.author-card-in-page {
    gap:60px;
  }
  .author-card:not(.author-card-in-page) {
    flex-direction: column;
    align-items: flex-start;
  }
  .author-card-in-page {
    max-width: 100%;
    gap: 40px;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 0 !important;
  }


  .author-role {
    margin-bottom:0;
  }
  .author-card-in-page .author-image {
    position: relative;
    flex-direction: column;
    top: 30px;
    justify-content: center;
    width: 100%;
  }

  .author-card.author-card-in-page .taolis-ai-btn.author-linkedin:not(.author-linkedin-mobile) {
  display: none;
}
.taolis-ai-btn.author-linkedin.author-linkedin-mobile {
  display: inline-flex;
}

.author-card-in-page  .author-image img{
    width:360px;
    height: 360px;
}

  .author-header-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .author-card:not(.author-card-in-page) .author-image img {
    width: 300px;
    height: auto;
    object-fit: cover;
  }

  /* bio y botones ocupan todo el ancho */
  .author-bio,
  .author-buttons {
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
   .author-card.author-card-in-page {
    flex-direction: column;
    align-items: flex-start;
  }
  .author-card-in-page  .author-image img{
    width:100%;
}
}
