/* === Author box — Retro-sci-fi === */
.blog-author {
  --ra-surface: #0b1220;
  --ra-surface-2: #0e1728;
  --ra-text: #e6f2ff;
  --ra-muted: #a9b7c6;
  --ra-primary: #00b3ff;           /* cian neón */
  --ra-primary-weak: #66d2ff;
  --ra-shadow: rgba(0, 179, 255, 0.35);

  padding: 16px 0 48px 0;
  color: var(--ra-text);
}

.blog-author .author-container {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)) , var(--ra-surface-2);
  padding: 24px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 20px;
  position: relative;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 10px 26px rgba(0,0,0,0.45),
    0 0 18px var(--ra-shadow);
}

/* Borde/halo neón sutil */
.blog-author .author-container::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, transparent 0%, var(--ra-primary) 40%, transparent 80%);
  filter: blur(8px);
  opacity: .35;
  pointer-events: none;
  transition: opacity .3s ease;
}
.blog-author .author-container:hover::before { opacity: .55; }

/* Avatar / placeholder con aro neón */
.blog-author img,
.blog-author .author-placeholder {
  width: 120px; height: 120px; max-width: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
  position: relative;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06) inset, 0 0 18px var(--ra-shadow);
}
.blog-author img::after,
.blog-author .author-placeholder::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  box-shadow: 0 0 16px var(--ra-primary);
}

/* Placeholder iniciales */
.blog-author .author-placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(100% 100% at 50% 0%, var(--ra-primary) 0%, #0aa0e0 60%, #0678a9 100%);
  color: #0b1220; font-weight: 800; font-size: 32px; text-transform: uppercase;
  text-shadow: 0 0 8px var(--ra-primary);
}

/* Nombre */
.blog-author h4 {
  font-weight: 700; font-size: 22px; margin: 0 0 8px 0;
  color: color-mix(in oklab, var(--ra-text) 92%, transparent);
  text-shadow: 0 0 6px rgba(0,179,255,.25);
}

/* Redes */
.blog-author .social-links {
  margin: 0 0 12px 0; display: flex; gap: 12px;
}
.blog-author .social-links a {
  color: color-mix(in oklab, var(--ra-text) 55%, transparent);
  font-size: 1.25rem; line-height: 1;
  transition: color .2s ease, text-shadow .2s ease, transform .2s ease;
  text-shadow: 0 0 6px rgba(0,179,255,.15);
}
.blog-author .social-links a:hover,
.blog-author .social-links a:focus {
  color: var(--ra-primary);
  text-shadow: 0 0 10px var(--ra-primary);
  transform: translateY(-1px);
}

/* Bio */
.blog-author p {
  margin: 0;
  font-style: italic;
  color: color-mix(in oklab, var(--ra-text) 75%, transparent);
}

/* Fallback si no hay color-mix */
@supports not (color: color-mix(in oklab, #000, transparent 0%)) {
  .blog-author h4 { color: #e6f2ff; }
  .blog-author .social-links a { color: rgba(230,242,255,.65); }
  .blog-author p { color: rgba(230,242,255,.8); }
}

/* Motion-friendly */
@media (prefers-reduced-motion: reduce) {
  .blog-author .author-container::before,
  .blog-author .social-links a { transition: none; }
}

@media (max-width: 575.98px) {
  .blog-author .author-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .blog-author img,
  .blog-author .author-placeholder {
    justify-self: center;
  }

  .blog-author .social-links {
    justify-content: center;
  }
}
