/* ══════════════════════════════════════
   allies.css — Página de Aliados
   ══════════════════════════════════════ */

.allies-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  min-height: 80vh;
}

/* ── Hero ── */
.allies-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}
.allies-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.allies-hero-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Sections ── */
.allies-section { margin-bottom: 3rem; }
.allies-section-label {
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.allies-badge-oficial-label { color: var(--gold, #FFD966); }

/* ── Grid ── */
.allies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.allies-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ── Card ── */
.ally-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ally-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124,143,255,0.12);
}
.ally-card--featured {
  border-color: rgba(255, 217, 102, 0.3);
  background: linear-gradient(160deg, rgba(255,217,102,0.04) 0%, var(--bg-card) 40%);
}
.ally-card--featured:hover {
  border-color: rgba(255, 217, 102, 0.55);
  box-shadow: 0 12px 36px rgba(255,217,102,0.12);
}

/* ── Banner ── */
.ally-banner {
  height: 90px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ── Body ── */
.ally-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* ── Header ── */
.ally-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.ally-icon-wrap {
  position: relative;
  flex-shrink: 0;
}
.ally-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
}
.ally-icon--placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-mid);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.ally-badge-oficial {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 0.75rem;
  background: var(--bg-card);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,217,102,0.5);
}

.ally-info { flex: 1; min-width: 0; }
.ally-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ally-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.ally-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.ally-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(124,143,255,0.15);
  color: var(--hair-main, #A9D6FF);
  border: 1px solid rgba(124,143,255,0.2);
}
.ally-members {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Description ── */
.ally-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

/* ── Button ── */
.ally-btn {
  display: inline-block;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  background: rgba(124,143,255,0.12);
  color: var(--hair-main, #A9D6FF);
  border: 1px solid rgba(124,143,255,0.2);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  margin-top: auto;
}
.ally-btn:hover {
  background: rgba(124,143,255,0.22);
  border-color: rgba(124,143,255,0.4);
  transform: translateY(-1px);
}
.ally-btn--gold {
  background: rgba(255,217,102,0.1);
  color: var(--gold, #FFD966);
  border-color: rgba(255,217,102,0.25);
}
.ally-btn--gold:hover {
  background: rgba(255,217,102,0.2);
  border-color: rgba(255,217,102,0.5);
}

/* ── Empty ── */
.allies-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 0;
  font-size: 1rem;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .allies-grid,
  .allies-grid--featured { grid-template-columns: 1fr; }
  .allies-page { padding-top: 5rem; }
}
