/**
 * Página de autor: contenido categorizado + tarjetas + "cargar más".
 * Colores webapuestas: azul #049ec5.
 */
.autor-contenido {
  margin: 28px 0;
}
.autor-cat {
  margin-bottom: 38px;
}
.autor-cat__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #131313;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eef2f4;
}
.autor-cat__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: #049ec5;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}

/* Rejilla de tarjetas */
.autor-cat__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .autor-cat__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .autor-cat__grid { grid-template-columns: 1fr; }
}

/* Tarjeta */
.autor-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e7ecef;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease-out, transform .2s ease-out;
}
.autor-card:hover {
  box-shadow: 0 8px 22px rgba(4, 158, 197, .16);
  transform: translateY(-2px);
}
.autor-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f2f6f8;
  overflow: hidden;
}
.autor-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Sin imagen: pastilla azul webapuestas con el logo blanco centrado */
.autor-card__media--placeholder {
  background: linear-gradient(135deg, #049ec5, #037a99);
}
.autor-card__logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62%;
  height: 52%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.autor-card__body {
  padding: 12px 14px 16px;
}
.autor-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.35;
  color: #131313;
}

/* Cargar más */
.autor-cat__more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.autor-cat__more-btn {
  border: 1px solid #049ec5;
  background: #fff;
  color: #049ec5;
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 26px;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s ease-out, color .2s ease-out;
}
.autor-cat__more-btn:hover {
  background: #049ec5;
  color: #fff;
}
.autor-cat__more-btn.is-loading {
  opacity: .7;
  cursor: default;
}

/* ============================================================
   Perfil de autor (rediseño tipo tarjeta) — colores webapuestas
   ============================================================ */
.autor-perfil { margin: 0 0 10px; }

/* --- Hero --- */
.autor-perfil__hero {
  background: linear-gradient(125deg, #049ec5 0%, #0a4b6e 100%);
  color: #fff;
  border-radius: 0 0 18px 18px;
  padding: 34px 28px 70px;
  margin-bottom: 0;
}
.autor-perfil__hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.autor-perfil__hero-main { flex: 1 1 auto; min-width: 0; }
.autor-perfil__name {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
}
.autor-perfil__lead {
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 620px;
  color: rgba(255,255,255,.92);
}
.autor-perfil__role,
.autor-perfil__since {
  margin: 2px 0;
  font-size: .92rem;
  color: rgba(255,255,255,.8);
}
.autor-perfil__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 14px;
  border-radius: 10px;
  background: #fff;
  color: #0a4b6e;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform .15s ease-out;
}
.autor-perfil__linkedin:hover { transform: translateY(-2px); }
.autor-perfil__photo { flex: 0 0 auto; }
.autor-perfil__photo img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: block;
}

/* --- Tarjetas de especialidad (montadas sobre el hero) --- */
.autor-perfil__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: -48px auto 0;
  padding: 0 28px;
}
.autor-perfil__card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(4,158,197,.08);
}
.autor-perfil__card-ico {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: #eaf6fb;
  color: #049ec5;
  font-size: 1.05rem;
}
.autor-perfil__card-txt { display: flex; flex-direction: column; min-width: 0; }
.autor-perfil__card-txt strong { font-size: .95rem; color: #131313; }
.autor-perfil__card-txt span { font-size: .82rem; color: #5a5a5a; line-height: 1.35; }

/* --- Stat cards --- */
.autor-perfil__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 28px;
}
.autor-perfil__stat {
  background: #f6f9fb;
  border: 1px solid #e7ecef;
  border-radius: 14px;
  padding: 20px 18px;
  text-align: left;
}
.autor-perfil__stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: #049ec5;
  line-height: 1;
}
.autor-perfil__stat-lbl {
  display: block;
  margin-top: 6px;
  font-size: .86rem;
  color: #5a5a5a;
}

/* --- Bio --- */
.autor-perfil__about {
  max-width: 1100px;
  margin: 30px auto 0;
  padding: 0 28px;
}
.autor-perfil__about-title { font-size: 1.3rem; font-weight: 700; color: #131313; margin: 0 0 10px; }
.autor-perfil__about-text { line-height: 1.65; color: #333; }

/* --- Responsive --- */
@media (max-width: 800px) {
  .autor-perfil__hero { padding: 26px 18px 60px; border-radius: 0 0 14px 14px; }
  .autor-perfil__hero-inner { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
  .autor-perfil__name { font-size: 1.6rem; }
  .autor-perfil__photo img { width: 100%; height: auto; max-height: 320px; aspect-ratio: 16/10; }
  .autor-perfil__cards { grid-template-columns: 1fr 1fr; margin-top: -40px; padding: 0 16px; gap: 12px; }
  .autor-perfil__stats { padding: 0 16px; }
  .autor-perfil__about { padding: 0 16px; }
}
@media (max-width: 480px) {
  .autor-perfil__cards { grid-template-columns: 1fr; }
}
