/* ========== CARD ========== */
.afp-card.bloque-autor-producto {
  border: 1px solid #e4e6eb;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin: 24px 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

.afp-card .afp-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ========== AVATARES ========== */
.afp-card .afp-avatar-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-height: 48px;
}

.afp-card .afp-avatar-stack > .afp-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  cursor: default;
}

.afp-card .afp-avatar-stack > .afp-avatar + .afp-avatar {
  margin-left: -12px;
}

.afp-card .afp-avatar-stack .afp-avatar-img,
.afp-card .afp-avatar-stack .afp-avatar img {
  display: block;
  width: 48px;
  height: 48px;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
}

/* ========== NOMBRES ========== */
.afp-card .afp-names {
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  gap: .45em;
  align-items: center;
}

.afp-card .afp-prefix { color: #555; }
.afp-card .afp-name-link { color: #111; text-decoration: none; }
.afp-card .afp-name-link:hover { text-decoration: underline; }
.afp-card .afp-name-text { font-weight: 600; }

/* ========== LÍNEA EQUIPO ========== */
.afp-card .afp-team-line {
  width: 100%;
  margin: 6px 0 8px;
  font-size: 13px;
  color: #4b5563;
  text-align: left;
  line-height: 1.5;
}

.afp-card .afp-team-line .afp-team-link { color: #c4a05e; text-decoration: underline; }
.afp-card .afp-team-line .afp-team-link:hover { text-decoration: none; }

/* ========== FECHAS + VERIFICADOS ========== */
.afp-card .afp-rows { margin-top: 10px; }

.afp-card .afp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
  font-size: 14px;
  flex-wrap: wrap;
}

.afp-card .afp-row-text {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.afp-card .afp-date { white-space: nowrap; }

/* Separador punto */
.afp-card .afp-date-sep {
  color: #aaa;
  margin: 0 2px;
}

/* Iconos */
.afp-card .afp-icon {
  width: 16px;
  height: 16px;
  max-width: none;
  max-height: none;
  display: inline-block;
  color: #c4a05e;
  vertical-align: -2px;
}

.afp-card .afp-icon-wrap {
  line-height: 0;
  flex: 0 0 auto;
}

/* Grupo verificados */
.afp-card .afp-verifier-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

/* Verificados Wrapper */
.afp-card .datos-verificados-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.afp-card .etiqueta-verificados {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: #c4a05e;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

/* ========== TOOLTIP ========== */
.afp-card .verificados-tooltip {
  position: absolute;
  top: 115%;
  left: 0;
  width: 280px;
  max-width: 85vw;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  z-index: 1200;
  white-space: normal;
  text-align: left;
  line-height: 1.5;
  font-size: 13px;
}

.afp-card .verificados-tooltip p { margin: .4em 0; }
.afp-card .verificados-tooltip.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ========== HOVER CARDS (bio) — viven en body ========== */
.autor-hover-card {
  position: absolute;
  width: 320px;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  padding: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  z-index: 99999;
}

.autor-hover-card .afp-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.autor-hover-card .afp-card-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.autor-hover-card.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.autor-hover-card .hover-bio { margin: 0; color: #333; font-size: 14px; line-height: 1.45; }

/* ========== MÓVIL (≤ 767px) ========== */
@media (max-width: 767px) {
  .afp-card .afp-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .afp-card .afp-avatar-stack {
    justify-content: center;
  }

  .afp-card .afp-names {
    justify-content: center;
  }

  .afp-card .afp-team-line {
    text-align: center;
    margin-top: 4px;
  }

  .afp-card .afp-team-line .afp-team-link {
    display: block;
    margin-top: 4px;
  }

  .afp-card .afp-row {
    justify-content: center;
    font-size: 13px;
  }

  .afp-card .afp-row-text {
    justify-content: center;
  }

  .afp-card .verificados-tooltip {
    left: 50%;
    transform: translateX(-50%) translateY(8px);
  }
  .afp-card .verificados-tooltip.visible {
    transform: translateX(-50%) translateY(0);
  }

  .autor-hover-card {
    width: 90vw;
    max-width: 320px;
  }
}

/* ========== ESCRITORIO (≥ 768px) ========== */
@media (min-width: 768px) {
  .afp-card .afp-row { flex-wrap: nowrap; }
}
