/* dinamico.css — auspiciadores y promo destacada que se llenan desde el CRM (cargar ÚLTIMO).
   Regla de oro: toda imagen va en una caja de tamaño fijo con object-fit: contain, así nunca se estira ni se corta. */

[hidden] { display: none !important; }

/* evita ver por un instante los logos de respaldo mientras llega la lista real */
.sp-loading #sponsorRow,
.sp-loading #sponsorStripLogos { visibility: hidden; }

/* ---------- Aliados (inicio) ---------- */
.logo-row.sp-dyn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 1000px;
}
.sponsor-logo.sp-dyn {
  position: relative;
  flex: 0 1 220px;
  width: 220px;
  height: 130px;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  overflow: hidden;
}
.sponsor-logo.sp-dyn img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
}
.sponsor-logo.sp-dyn:has(.sp-label) img { max-height: 72px; }
.sponsor-logo.sp-dyn .sp-label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #172e42;
}
.sponsor-logo.sp-dyn .sp-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  line-height: 1.1;
  text-align: center;
  color: #172e42;
}

/* ---------- Franja "Con el apoyo de" (constancias) ---------- */
.sponsor-strip .sp-slot {
  display: contents;
}
.strip-dyn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 52px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 5px;
  text-decoration: none;
  overflow: hidden;
}
.strip-dyn img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.strip-dyn .sp-name {
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  color: #172e42;
}

/* ---------- Promo destacada ---------- */
.afpro-poster img {
  max-height: 560px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.partner-lockup img:first-child {
  width: 160px;
  height: 80px;
  object-fit: contain;
}
.afpro-content > small:empty { display: none; }

@media (max-width: 850px) {
  .logo-row.sp-dyn-row { gap: 12px; }
  .sponsor-logo.sp-dyn { flex: 0 1 calc(50% - 6px); width: calc(50% - 6px); height: 110px; padding: 12px 14px; }
  .afpro-poster img { max-height: 420px; }
}
