/* ====== APOYO INSTITUCIONAL ===== */

/* Sección general */
.apoyo {
  background: var(--section-bg); /* Usa variable */
  padding: 56px 0;
  width: 100%;
}
.apoyo .wrap {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

/* Título con subrayado rojo institucional */
.apoyo__title {
  position: relative;
  display: inline-block;
  margin: 0 0 24px;
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
  font-weight: 900;
}
.apoyo__title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 200px;
  height: 3px;
  background-color: #e30613;
}

/* === GRID SIMPLE DE LOGOS (cards blancas con sombra) === */
.apoyo-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.apoyo-card {
  background: var(--card-bg); /* Usa variable */
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  box-shadow: var(--shadow); /* Usa variable */
  padding: 24px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.apoyo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
  border-color: #ddd;
}
.apoyo-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

/* === GRID ESTILO EMPRESAS (para logos institucionales) === */
.empresas-grid--logos {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 120px;
  gap: 16px;
}
.empresas-grid--logos .empresa-card {
  border-radius: 12px;
  background: var(--card-bg); /* Usa variable */
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.empresas-grid--logos .empresa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}
.empresas-grid--logos .empresa-image {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
}
/* Overlay opcional */
.empresas-grid--logos .overlay {
  position: absolute;
  inset: 0;
  background: rgba(240,28,36,.88);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
  text-align: center;
  padding: 10px;
}
.empresas-grid--logos .empresa-card:hover .overlay {
  opacity: 1;
}

/* === Responsivo === */
@media (max-width: 1200px) {
  .empresas-grid--logos { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 992px) {
  .empresas-grid--logos { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .empresas-grid--logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .empresas-grid--logos { grid-template-columns: repeat(2, 1fr); }
}