/* =========================
   Bloque "Personas mencionadas" estilo Google
   ========================= */

.bio-mentioned-wrap{
  margin: 18px auto 0;
  max-width: 980px;         /* límite en PC para que no se vea gigante */
  padding: 0 12px;
}

.bio-mentioned-heading{
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 0 0 10px 0;
}

.bio-mentioned-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* En pantallas grandes: 5 por fila */
@media (min-width: 768px){
  .bio-mentioned-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.bio-mentioned-item{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.02);
  transition: transform .08s ease, box-shadow .08s ease;
}

.bio-mentioned-item:hover{
  border: 1px solid rgba(3, 137, 255, 1);
}

.bio-mentioned-item:hover .bio-mentioned-title {
    color: rgba(3, 137, 255, 1);
}

.bio-mentioned-img{
  width: 100%;
  aspect-ratio: 1 / 1;   /* 1:1 fijo */
  object-fit: cover;
  border-radius: 6px;    /* lo que pediste */
  display: block;
}

.bio-mentioned-img--empty{
  background: rgba(0,0,0,.06);
}

.bio-mentioned-title{
  margin-top: 8px;
  font-weight: 700; /* título en negrita */
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
	color: #000000;
}

.bio-mentioned-tag{
  margin-top: 4px;
  font-weight: 400; /* sin negrita */
  font-size: clamp(12px, 1.8vw, 14px);
  opacity: .75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bio-mentioned-toggle{
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color:#333333;
}

/* Flechita simple (opcional) */
.bio-mentioned-toggle::after{
  content: "▾";
  margin-left: 10px;
  font-size: 14px;
  opacity: .8;
}

.bio-mentioned-wrap[data-open="1"] .bio-mentioned-toggle::after{
  content: "▴";
}

/* =========================
   Lógica de “Mostrar más”:
   - Pequeñas: máximo 3 visibles
   - Grandes: máximo 5 visibles
   ========================= */

/* Por defecto (pantalla pequeña): ocultar desde el 4 */
.bio-mentioned-wrap:not([data-open="1"]) .bio-mentioned-item:nth-child(n+4){
  display: none;
}

/* Pantalla grande: mostrar hasta 5 */
@media (min-width: 768px){
  .bio-mentioned-wrap:not([data-open="1"]) .bio-mentioned-item:nth-child(n+4){
    display: flex; /* re-habilito 4 y 5 */
  }
  .bio-mentioned-wrap:not([data-open="1"]) .bio-mentioned-item:nth-child(n+6){
    display: none; /* oculto desde el 6 */
  }
}

/* Si está abierto: mostrar todo */
.bio-mentioned-wrap[data-open="1"] .bio-mentioned-item{
  display: flex;
}
