/* Estilos compartidos del catálogo y guías de personajes de Spirifly */
.info-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.info-header nav a,
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.info-header nav a:hover,
.nav-pill:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.info-header nav a.active,
.nav-pill.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: #93c5fd;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.char-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  background: #151c2e;
  border: 1px solid #33405a;
  border-radius: 14px;
  padding: 1.6rem;
  margin: 1.25rem 0 1.85rem;
}

.char-avatar-box {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 16px;
  background: radial-gradient(circle, color-mix(in srgb, var(--el-color, #f5d996) 20%, transparent) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 2px solid var(--el-color, #f5d996);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.char-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.char-meta h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge-el {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--el-color, #f5d996) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--el-color, #f5d996) 55%, transparent);
  color: var(--el-color, #f5d996);
  font-weight: 700;
}

.badge-tier {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: #fbbf2422;
  border: 1px solid #fbbf2488;
  color: #fbbf24;
  font-weight: 800;
}

.char-subdesc {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0.3rem 0 0;
  line-height: 1.5;
}

.guide-block {
  background: #171f33;
  border: 1px solid #2d3b55;
  border-radius: 12px;
  padding: 1.4rem;
  margin-bottom: 1.8rem;
}

.guide-block h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #f5d996;
  border-bottom: 1px solid #2d3b55;
  padding-bottom: 0.6rem;
}

.guide-block-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.analysis-prose {
  color: #dbe4f3;
  font-size: 0.94rem;
  line-height: 1.65;
}

.analysis-prose p {
  margin: 0 0 0.85rem;
}

.analysis-prose p:last-child {
  margin-bottom: 0;
}

.stat-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat-pill {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid #2d3b55;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-pill-label {
  font-size: 0.76rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-pill-val {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
}

.guide-item-with-thumb {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.guide-item-with-thumb:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.35);
  transform: translateX(2px);
}

.guide-thumb-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #111625;
}

.guide-thumb-wrap.rar-5 {
  border: 1.5px solid rgba(251, 191, 36, 0.7);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.15);
}

.guide-thumb-wrap.rar-4 {
  border: 1.5px solid rgba(168, 85, 247, 0.7);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.guide-thumb-wrap.rar-3 {
  border: 1.5px solid rgba(59, 130, 246, 0.7);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.guide-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.guide-item-with-thumb:hover .guide-thumb-img {
  transform: scale(1.06);
}

.guide-item-content {
  flex: 1;
  min-width: 0;
}

.guide-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.guide-item-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.3;
}

.guide-rarity {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  flex-shrink: 0;
}

.guide-rarity.rar-stars-4 {
  color: #c084fc;
}

.guide-rarity.rar-stars-3 {
  color: #60a5fa;
}

.guide-tag {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.guide-tag-sub {
  color: #93c5fd;
  font-weight: 600;
  margin-right: 0.35rem;
  font-size: 0.8rem;
}

.guide-item-sub {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.w-note {
  color: #94a3b8;
}

.art-bonus {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.stats-table,
.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.stats-table th,
.stats-table td,
.benchmark-table th,
.benchmark-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid #2d3b55;
  font-size: 0.9rem;
}

.stats-table th,
.benchmark-table th {
  background: rgba(0, 0, 0, 0.25);
  color: #f5d996;
  text-align: left;
}

.talent-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.talent-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid #2d3b55;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.talent-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.talent-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.talent-card-kind {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93c5fd;
  font-weight: 700;
}

.talent-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.talent-costs-summary {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid #2d3b55;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.team-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.team-card h4 {
  margin: 0 0 0.25rem;
  color: #60a5fa;
  font-size: 0.95rem;
}

.team-members {
  margin: 0;
  font-weight: 700;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.team-member-link {
  color: #93c5fd;
  text-decoration: underline;
  text-decoration-color: rgba(147, 197, 253, 0.45);
}

.team-member-link:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.team-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
}

.mat-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #2d3b55;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.mat-chip img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.mat-info {
  display: flex;
  flex-direction: column;
}

.mat-name {
  font-size: 0.8rem;
  color: #f1f5f9;
  font-weight: 600;
  line-height: 1.25;
}

.mat-qty {
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 700;
}

.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.related-guide-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid #2d3b55;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-guide-card:hover {
  border-color: #60a5fa;
  background: #1c2740;
  transform: translateY(-2px);
}

.related-guide-card img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-guide-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.related-guide-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.related-guide-meta {
  font-size: 0.78rem;
  color: #94a3b8;
}

.cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border: 1px solid #3b82f6;
  border-radius: 14px;
  padding: 1.8rem;
  text-align: center;
  margin: 2.5rem 0;
}

.cta-banner h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: #ffffff;
}

.cta-banner p {
  color: #bfdbfe;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}

.cta-btn {
  display: inline-block;
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: all 0.2s;
}

.cta-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* Catálogo de personajes */
.cat-lead {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.catalog-intro {
  background: #171f33;
  border: 1px solid #2d3b55;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.75rem;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
}

.catalog-intro h2 {
  margin-top: 0;
  font-size: 1.12rem;
  color: #f5d996;
}

.p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.p-card {
  background: #171f33;
  border: 1px solid #2d3b55;
  border-radius: 12px;
  padding: 1.1rem;
  text-decoration: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: all 0.2s ease;
}

.p-card:hover {
  transform: translateY(-3px);
  border-color: #60a5fa;
  background: #1c2740;
}

.p-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 2px solid #3b82f6;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  flex-shrink: 0;
}

.p-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-card-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.p-card-name {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-card-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.p-badge-el {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.p-badge-tier {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.p-card-role {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
