/* Sponsors: tarjetas enlazadas con aire de terminal. */

.sp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.sp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 229, 255, 0.07), transparent 62%),
    var(--panel);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

/* Esquinas tipo visor */
.sp-card::before,
.sp-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--cyan);
  opacity: 0.35;
  transition: opacity 220ms ease, width 220ms ease, height 220ms ease;
}
.sp-card::before { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.sp-card::after { right: 8px; bottom: 8px; border-right-width: 1px; border-bottom-width: 1px; }

.sp-index {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(124, 157, 189, 0.5);
  font: 600 0.64rem/1 var(--font-mono);
  letter-spacing: 0.12em;
}

.sp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 70%);
}

.sp-logo img {
  display: block;
  max-width: 112px;
  max-height: 112px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 260ms ease, filter 260ms ease;
}

/* Hack7 trae fondo negro cuadrado: se recorta suave */
.sp-logo img.sp-square { border-radius: 12px; max-width: 104px; max-height: 104px; }

.sp-name {
  margin: 0;
  font: 700 1rem/1.25 var(--font-mono);
  letter-spacing: 0.04em;
  text-align: center;
}

.sp-role {
  margin: -8px 0 0;
  color: var(--muted);
  font: 500 0.72rem/1.3 var(--font-mono);
  text-align: center;
}

.sp-link {
  margin-top: auto;
  width: 100%;
  padding-top: 12px;
  border-top: 1px dashed rgba(124, 157, 189, 0.22);
  color: var(--cyan);
  font: 600 0.7rem/1.3 var(--font-mono);
  text-align: center;
  overflow-wrap: anywhere;
}
.sp-link b { color: var(--green); font-weight: 700; }

.sp-card:hover,
.sp-card:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.12), 0 14px 40px rgba(0, 229, 255, 0.08);
}
.sp-card:hover::before,
.sp-card:hover::after,
.sp-card:focus-visible::before,
.sp-card:focus-visible::after { opacity: 1; width: 22px; height: 22px; }
.sp-card:hover .sp-logo img,
.sp-card:focus-visible .sp-logo img { transform: scale(1.06); }
.sp-card:hover .sp-index { color: var(--cyan); }

.sp-status {
  max-width: 1180px;
  margin: 18px auto 0;
  color: rgba(124, 157, 189, 0.75);
  font: 500 0.72rem/1.5 var(--font-mono);
  text-align: center;
}
.sp-status b { color: var(--green); font-weight: 600; }

@media (max-width: 980px) {
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .sp-grid { gap: 10px; }
  .sp-card { padding: 30px 10px 14px; gap: 12px; }
  .sp-logo { width: 96px; height: 96px; }
  .sp-logo img { max-width: 84px; max-height: 84px; }
  .sp-logo img.sp-square { max-width: 78px; max-height: 78px; }
  .sp-name { font-size: 0.82rem; }
  .sp-role, .sp-link { font-size: 0.64rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-card, .sp-logo img { transition: none; }
  .sp-card:hover { transform: none; }
}
