/* ----------  ESTILOS BASE  ---------- */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: auto;
}

/* ----------  BLOQUE POLÍTICAS  ---------- */
.politicasCRAI {
  width: 100%;
  padding: 2rem 0;
  background: #fff;
}

.politicasCRAI .politicas-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.politicasCRAI .policy-box {
  position: relative;
  width: 130px;
  overflow: hidden;
}

.politicasCRAI .policy-box a {
  display: block;
}

.politicasCRAI .policy-box img {
  width: 100%;
  display: block;
}

.politicasCRAI .policy-box .overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
}

.politicasCRAI .policy-box:hover .overlay {
  opacity: 1;
}

/* ----------  BLOQUE PORTALES  ---------- */
.footer-portales {
  background: #f8f8f8;
  padding: 2rem 0;
}

.footer-portales .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Título "Gestionado por:" */
.footer-portales .footer-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Línea de logos */
.footer-portales .footer-logos {
  display: flex;
  justify-content: space-between;   /* distribuye equitativamente */
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 3.2rem;
}

/* Cada logo ocupa el mismo espacio */
.footer-portales .footer-logo-container {
  flex: 1 1 0;
  text-align: center;
}

/* Todos los logos iguales */
.footer-image {
    height: auto;
    max-height: 79px;
    max-width: 120px;
    object-fit: contain;
    transition: transform .3s ease;
    width: 100px;
}

/* Sección "Gestionado por" */
.footer-portales .footer-section:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.footer-portales .footer-section:last-child .footer-logos {
  justify-content: center;
  gap: 1.2rem;
}

/* ----------  RESPONSIVE: FOOTER LOGOS  ---------- */
@media (max-width: 768px) {
  .footer-portales .footer-logos {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-portales .footer-logo-container {
    flex: none;
    width: 100%;
    max-width: 200px;
  }

  .footer-image {
    height: 40px; /* un poco más grande en móvil */
    max-width: 150px;
  }
}