/* fixes.css — correcciones de maquetación (cargar ÚLTIMO) */

/* ---------- Aliados: logos con tamaño controlado ---------- */
.logo-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sponsor-logo {
  height: 150px;
  padding: 20px 28px;
  overflow: hidden;
  min-width: 0;
}
.sponsor-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sponsor-logo.maki {
  position: relative;
  display: flex;
  filter: grayscale(1);
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 14px);
  background: transparent;
}
.sponsor-logo:hover {
  filter: none !important;
}
.sponsor-logo.maki img {
  width: clamp(48px, 22%, 76px);
  height: auto;
  padding: 8px;
  border: 3px solid #b69a61;
  border-radius: 50%;
  background: #fbfaf6;
  box-shadow: 0 4px 8px rgba(110, 91, 63, 0.22);
}
.sponsor-logo.maki span {
  color: #20211f;
  font:
    700 clamp(24px, 3vw, 42px) Arial,
    Helvetica,
    sans-serif;
  letter-spacing: -2px;
}
.sponsor-logo.mepco img {
  max-width: 78%;
  max-height: 64px;
}
.sponsor-logo.afpro-real img {
  max-width: 76%;
  max-height: 92px;
}
.sponsor-logo.jt img {
  max-width: 100%;
  max-height: 130px;
  mix-blend-mode: multiply;
}
.sponsor-logo.sermaqui img {
  max-width: 82%;
  max-height: 90px;
  mix-blend-mode: multiply;
}
.sponsor-logo.sermaqui {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: 105px;
}
.sponsor-logo.construyendo {
  grid-column: 3;
  grid-row: 2;
  width: 100%;
  height: 105px;
  justify-self: stretch;
  filter: grayscale(1);
}
.sponsor-logo.construyendo img {
  max-width: 100%;
  max-height: 82px;
  mix-blend-mode: multiply;
}
.sponsor-strip .strip-logo.maki {
  width: 88px;
  height: 46px;
  padding: 5px;
  flex: 0 0 88px;
}
.sponsor-strip .strip-logo.maki img {
  width: 30px;
  height: 30px;
  padding: 2px;
}
.sponsor-strip img.strip-logo.jt {
  object-fit: cover;
  object-position: center;
}
.sponsor-strip img.strip-logo {
  width: 88px;
  max-width: 88px;
  height: 46px;
  flex: 0 0 88px;
}
.sponsor-strip .strip-logo.construyendo {
  flex: 0 0 88px;
  width: 88px;
  max-width: 88px;
  height: 46px;
  margin: 0;
  padding: 5px;
  background: #fff;
  border-radius: 5px;
  filter: none;
}
.sponsor-strip .strip-logo.construyendo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 850px) {
  .logo-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .sponsor-logo {
    height: 130px;
  }
  .sponsor-logo.sermaqui,
  .sponsor-logo.construyendo {
    grid-column: auto;
    grid-row: auto;
    width: auto;
  }
}

/* ---------- Logos generales ---------- */
.brand > img {
  object-fit: contain;
}
.strip-logo,
.sponsor-strip img.strip-logo {
  object-fit: contain;
  width: auto;
  max-width: 110px;
  height: 52px;
}

/* ---------- Puntos de propósito (ícono + texto en una línea) ---------- */
.purpose-points span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.purpose-points i {
  margin-right: 0;
  flex: none;
}

/* ---------- Tarjetas de modalidad: nada se sale del cuadro ---------- */
.learning-card {
  min-width: 0;
}
.learning-card h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 520px) {
  .learning-card h3 {
    font-size: 30px;
  }
  .learning-card > a {
    display: inline-block;
    line-height: 1.5;
  }
}

/* ---------- Registro: el panel izquierdo ya no corta el contenido ---------- */
.event-panel {
  position: relative;
  top: auto;
  height: auto;
  min-height: calc(100vh - 86px);
}
@media (max-width: 960px) {
  .event-panel {
    min-height: 0;
  }
}
.sponsor-strip {
  align-items: center;
}
.sponsor-strip {
  gap: 12px;
}
.sponsor-strip img.strip-logo {
  max-width: 88px;
  height: 46px;
  padding: 5px;
}

/* Video del propósito */
.purpose-video{position:relative;width:100%;aspect-ratio:16/9;margin-top:22px;border-radius:10px;overflow:hidden;background:#172E42;border:1px solid #e3e7e9;box-shadow:0 18px 40px #071c2a26}
.purpose-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.pv-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;font-weight:600}
.pv-empty i{font-style:normal;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#FF883F;font-size:26px;padding-left:4px}
