/* ═══════════════════════════════════════════════════
   members.css  —  Página de generaciones + fichas
   Se carga ENCIMA de styles.css, hereda todas sus vars
═══════════════════════════════════════════════════ */

/* ── Estructura principal ── */
.members-main {
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
}

/* ── Hero ── */
.members-hero {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  padding: 3rem 1.5rem 0;
  text-align: center;
}

.members-hero-title {
  font-family: "Orbitron", monospace;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: transparent;
  background: var(--pl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 24px rgba(229, 89, 177, 0.22));
}

.members-hero-sub {
  color: var(--pl-muted);
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  line-height: 1.75;
  margin-top: 0.4rem;
}

/* ── Filtro de generaciones ── */
.gen-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  padding: 0 1.5rem 2.8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gen-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pl-soft);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.gen-filter-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.gen-filter-btn.active {
  color: #090909;
  background: var(--pl-grad);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(229, 89, 177, 0.22);
}

/* ── Sección de generación ── */
.gen-section {
  max-width: 1100px;
  margin: 0 auto 4.5rem;
  padding: 0 1.5rem;
}

.gen-section.is-hidden {
  display: none;
}

.gen-section-header {
  margin-bottom: 2.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gen-label {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  background: var(--pl-grad);
  color: #0a0a0a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.gen-title {
  font-family: "Orbitron", monospace;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--pl-text);
  margin-bottom: 0.55rem;
}

.gen-desc {
  color: var(--pl-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 620px;
}

/* ── Grid de tarjetas ── */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 1.25rem;
}

/* ── Tarjeta de miembro (estilo galería Hololive) ── */
.member-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.members-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(16, 10, 24, 0.82);
  cursor: pointer;
  will-change: transform;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}

.members-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(229, 89, 177, 0.22),
    0 0 28px rgba(169, 106, 231, 0.18);
}

/* Barra de acento superior (igual que member-card en styles.css) */
.members-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--pl-grad);
  border-radius: 22px 22px 0 0;
  z-index: 1;
}

/* Reflejo de luz en hover */
.members-card::after {
  content: "";
  position: absolute;
  inset: auto -20% 100% 40%;
  height: 220px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
  opacity: 0;
  transform: rotate(12deg);
  transition: opacity 0.35s ease, inset 0.35s ease;
  pointer-events: none;
}

.members-card:hover::after {
  inset: -35% -10% auto 20%;
  opacity: 1;
}

/* Contenedor de imagen */
.members-card-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, rgba(141, 238, 255, 0.07), rgba(229, 89, 177, 0.07));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
}

.members-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.45s ease;
}

.members-card:hover .members-card-img-wrap img {
  transform: scale(1.04);
}

/* Placeholder de emoji hasta que haya imagen real */
.members-card-img-placeholder {
  font-size: 4.5rem;
  opacity: 0.55;
  transition: transform 0.3s ease, opacity 0.3s ease;
  user-select: none;
}

.members-card:hover .members-card-img-placeholder {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Cuerpo de la tarjeta */
.members-card-body {
  padding: 0.9rem 1rem 0.6rem;
  flex: 1;
}

.members-card-gen {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pl-muted);
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.members-card-name {
  font-family: "Orbitron", monospace;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--pl-text);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.members-card-title {
  color: var(--pl-muted);
  font-size: 0.78rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
}

/* Indicador "Ver ficha" en hover */
.members-card-hover {
  padding: 0.55rem 1rem 0.85rem;
  color: transparent;
  background: var(--pl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.members-card:hover .members-card-hover {
  opacity: 1;
  transform: translateY(0);
}


/* ════════════════════════════════════════════════
   FICHA INDIVIDUAL — member-profile.html
   Estilos para docs/members/miembro-XX.html
════════════════════════════════════════════════ */

.profile-main {
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 5rem;
}

/* Breadcrumb */
.profile-breadcrumb {
  max-width: 1100px;
  margin: 0 auto 1.8rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pl-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-breadcrumb a {
  color: var(--pl-cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}

.profile-breadcrumb a:hover {
  opacity: 0.75;
}

.profile-breadcrumb-sep {
  opacity: 0.45;
}

/* Layout principal de la ficha */
.profile-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: start;
}

/* Columna izquierda: imagen + datos rápidos */
.profile-aside {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-img-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(141, 238, 255, 0.08), rgba(229, 89, 177, 0.08));
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--pl-grad);
}

.profile-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.profile-img-placeholder {
  font-size: 7rem;
  opacity: 0.45;
  user-select: none;
}

/* Tarjeta de datos rápidos */
.profile-quickdata {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(16, 10, 24, 0.82);
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-quickdata-title {
  font-family: "Orbitron", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--pl-muted);
  margin-bottom: 0.15rem;
}

.profile-data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
}

.profile-data-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-data-label {
  color: var(--pl-muted);
  font-weight: 700;
  flex-shrink: 0;
}

.profile-data-value {
  color: var(--pl-text);
  font-weight: 800;
  text-align: right;
}

/* Redes sociales */
.profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pl-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.profile-social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Columna derecha: contenido de la ficha */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Cabecera del perfil */
.profile-header {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-gen-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  background: var(--pl-grad);
  color: #0a0a0a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.profile-name {
  font-family: "Orbitron", monospace;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: transparent;
  background: var(--pl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.profile-role {
  color: var(--pl-muted);
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1rem;
}

.profile-quote {
  position: relative;
  padding: 1rem 1.2rem 1rem 1.8rem;
  border-left: 3px solid transparent;
  border-image: var(--pl-grad) 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 14px 14px 0;
  color: #f0cfff;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.65;
}

/* Secciones de contenido (bio, fandoms, etc.) */
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.profile-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Orbitron", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--pl-muted);
  text-transform: uppercase;
}

.profile-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-bio {
  color: var(--pl-soft);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* Chips de fandoms del miembro */
.profile-fandoms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.profile-fandom-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pl-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Logros / Highlights */
.profile-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.profile-highlight-icon {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  background: var(--pl-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.profile-highlight-text {
  color: var(--pl-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.profile-highlight-text strong {
  display: block;
  color: var(--pl-text);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

/* Botón de volver */
.profile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pl-soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease;
  align-self: flex-start;
}

.profile-back-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}


/* ── Responsive ── */
@media (max-width: 860px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-aside {
    position: static;
    /* En mobile la imagen va como franja horizontal, no de pantalla completa */
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) 1fr;
    gap: 1rem;
    align-items: start;
  }

  .profile-img-frame {
    border-radius: 20px;
  }
}

@media (max-width: 580px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-aside {
    grid-template-columns: 1fr;
  }

  .profile-img-frame {
    aspect-ratio: 1 / 1;
  }

  .profile-img-placeholder {
    font-size: 5rem;
  }
}