/* North Card Show — Colaboradores */

.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-7);
  margin-top: var(--space-7);
}

.collab-card {
  position: relative;
  text-align: center;
  padding: var(--space-6) var(--space-5);
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.collab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised);
}
.collab-card__expand {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 74, 85, 0.65);
  border: 1px solid var(--border-hairline-strong);
  color: var(--text-primary);
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.collab-card:hover .collab-card__expand { opacity: 1; transform: scale(1); }
.collab-card .medallion { width: 176px; margin-inline: auto; margin-bottom: var(--space-5); }
.collab-card .medallion--monogram span { font-size: 2.4rem; }
.collab-card h3 { font-size: 1.15rem; margin-bottom: var(--space-3); }
.collab-card__type { margin-bottom: var(--space-4); }
.collab-card p.bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.collab-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-hairline);
}
.collab-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--dur-base) var(--ease-out);
}
.collab-card__link:hover { color: var(--gold-strong); }

.collab-card[hidden] { display: none; }

/* ---------- Patrocinador Gold: fondo de brasas + partículas ---------- */

.collab-card--gold {
  z-index: 0;
  border-color: var(--border-gold);
  background:
    radial-gradient(85% 70% at 50% 115%, rgba(255, 138, 20, 0.42), transparent 65%),
    radial-gradient(60% 45% at 50% 100%, rgba(224, 184, 95, 0.28), transparent 70%),
    var(--surface-1);
  box-shadow: 0 0 0 1px rgba(224, 184, 95, 0.3), 0 20px 44px -16px rgba(255, 120, 20, 0.4);
  animation: ncs-gold-pulse 3.6s ease-in-out infinite;
}
.collab-card--gold:hover {
  box-shadow: 0 0 0 1px rgba(224, 184, 95, 0.45), var(--shadow-gold-glow), 0 20px 44px -16px rgba(255, 120, 20, 0.5);
}
@keyframes ncs-gold-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(224, 184, 95, 0.3), 0 20px 44px -16px rgba(255, 120, 20, 0.4); }
  50%      { box-shadow: 0 0 0 1px rgba(224, 184, 95, 0.5), 0 20px 54px -14px rgba(255, 140, 30, 0.55); }
}

.collab-card__gold-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: linear-gradient(135deg, var(--oro-400), var(--oro-600));
  color: var(--text-on-gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 0.4em 1em;
  border-radius: var(--radius-control);
  box-shadow: 0 4px 14px rgba(224, 184, 95, 0.5);
  z-index: 2;
}

.collab-card__embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}
.collab-card__embers .ember {
  position: absolute;
  bottom: -8px;
  left: var(--ember-left, 50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe1a3, #ff9a2e 60%, transparent 100%);
  opacity: 0;
  animation: ncs-ember-rise var(--ember-dur, 3.4s) ease-in infinite;
  animation-delay: var(--ember-delay, 0s);
}
.collab-card__embers .ember:nth-child(1)  { --ember-left: 6%;  --ember-dur: 3.1s; --ember-delay: 0s;    }
.collab-card__embers .ember:nth-child(2)  { --ember-left: 16%; --ember-dur: 3.8s; --ember-delay: .4s;   }
.collab-card__embers .ember:nth-child(3)  { --ember-left: 26%; --ember-dur: 2.9s; --ember-delay: 1.1s;  }
.collab-card__embers .ember:nth-child(4)  { --ember-left: 36%; --ember-dur: 3.5s; --ember-delay: .2s;   }
.collab-card__embers .ember:nth-child(5)  { --ember-left: 46%; --ember-dur: 3.2s; --ember-delay: 1.6s;  }
.collab-card__embers .ember:nth-child(6)  { --ember-left: 56%; --ember-dur: 3.9s; --ember-delay: .8s;   }
.collab-card__embers .ember:nth-child(7)  { --ember-left: 64%; --ember-dur: 3s;   --ember-delay: 2s;    }
.collab-card__embers .ember:nth-child(8)  { --ember-left: 74%; --ember-dur: 3.6s; --ember-delay: .6s;   }
.collab-card__embers .ember:nth-child(9)  { --ember-left: 84%; --ember-dur: 3.3s; --ember-delay: 1.3s;  }
.collab-card__embers .ember:nth-child(10) { --ember-left: 92%; --ember-dur: 3.7s; --ember-delay: 1.9s;  }
.collab-card__embers .ember:nth-child(11) { --ember-left: 20%; --ember-dur: 4s;   --ember-delay: 2.4s;  }
.collab-card__embers .ember:nth-child(12) { --ember-left: 70%; --ember-dur: 2.8s; --ember-delay: 2.8s;  }

@keyframes ncs-ember-rise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  12%  { opacity: 1; }
  75%  { opacity: 0.55; }
  100% { transform: translateY(-190px) scale(1.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .collab-card--gold { animation: none; }
  .collab-card__embers .ember { animation: none; opacity: 0; }
}

.collab-empty {
  display: none;
  text-align: center;
  padding: var(--space-8) 0;
  color: var(--text-muted);
}
.collab-empty.is-visible { display: block; }

/* ---------- Patrocinio y colaboración ---------- */

.sponsor-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: 24px;
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(55% 90% at 12% 0%, rgba(224, 184, 95, 0.18), transparent 70%),
    radial-gradient(55% 90% at 88% 100%, rgba(34, 166, 164, 0.24), transparent 70%),
    var(--surface-1);
}
.sponsor-cta h2 { margin-top: var(--space-2); max-width: 32ch; margin-inline: auto; }
.sponsor-cta .lede { margin-inline: auto; margin-top: var(--space-3); max-width: 56ch; }
.sponsor-cta > .btn { margin-top: var(--space-7); }

.sponsor-cta__tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  max-width: 760px;
  margin: var(--space-7) auto 0;
  text-align: left;
}
@media (max-width: 639px) { .sponsor-cta__tiers { grid-template-columns: 1fr; } }

.sponsor-cta__tier {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-card);
  background: linear-gradient(165deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border-hairline-strong);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.sponsor-cta__tier--featured { border-color: var(--border-gold); box-shadow: var(--shadow-gold-glow); }
.sponsor-cta__badge {
  position: absolute;
  top: -14px;
  right: var(--space-5);
  background: linear-gradient(135deg, var(--oro-400), var(--oro-600));
  color: var(--text-on-gold);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-control);
}
.sponsor-cta__icon { font-size: 1.8rem; color: var(--turquesa-300); }
.sponsor-cta__tier--featured .sponsor-cta__icon { color: var(--gold-strong); }
.sponsor-cta__tier h3 { margin-top: var(--space-3); font-size: 1.15rem; }
.sponsor-cta__price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--turquesa-300);
  margin-top: 0.2em;
}
.sponsor-cta__price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.sponsor-cta__tier--featured .sponsor-cta__price { color: var(--gold-strong); }
.sponsor-cta__tier ul { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.sponsor-cta__tier li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 0.92rem; color: var(--text-secondary); }
.sponsor-cta__tier li i { color: var(--turquesa-300); margin-top: 0.2em; flex-shrink: 0; }
.sponsor-cta__footnote {
  margin-top: var(--space-3);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}
.sponsor-cta__note {
  max-width: 640px;
  margin: var(--space-6) auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Carta ampliada: giro 360° al centro ---------- */

.card-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: rgba(2, 6, 6, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  perspective: 1400px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out);
}
.card-reveal-overlay.is-open { opacity: 1; visibility: visible; }

.card-reveal-panel {
  width: min(420px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  text-align: center;
  padding: var(--space-7) var(--space-6);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-gold);
  background: linear-gradient(165deg, var(--surface-2), var(--surface-1));
  box-shadow: var(--shadow-gold-glow), var(--shadow-raised);
  backface-visibility: hidden;
  transform: scale(0.4) rotateY(0deg);
  opacity: 0;
}
.card-reveal-overlay.is-open .card-reveal-panel {
  animation: card-reveal-spin 750ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes card-reveal-spin {
  0%   { transform: scale(0.4) rotateY(0deg); opacity: 0; }
  8%   { opacity: 1; }
  100% { transform: scale(1) rotateY(360deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .card-reveal-overlay.is-open .card-reveal-panel { animation: none; transform: none; opacity: 1; }
}

.card-reveal-medallion .medallion { width: 200px; margin-inline: auto; margin-bottom: var(--space-5); }
.card-reveal-name { font-size: 1.5rem; margin-bottom: var(--space-3); }
.card-reveal-type { margin-bottom: var(--space-4); }
.card-reveal-type[hidden] { display: none; }
.card-reveal-bio { font-size: 1rem; color: var(--text-secondary); line-height: var(--lh-body); }
.card-reveal-link { margin-top: var(--space-6); }
.card-reveal-link[hidden] { display: none; }

.card-reveal-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-hairline-strong);
  background: var(--surface-nav);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.card-reveal-close:hover { border-color: var(--border-gold); color: var(--gold-strong); }
