/* ========== FOOTER (responsive + cross-browser) ========== */
#footer{
  width:100%;
  background:#0e1d33;
  color:#fff;
  font-family:"Roboto", Arial, sans-serif;
  line-height:1.5;
  padding:64px 0 40px;
}

/* Keep links readable on dark background */
#footer a,
#footer a:visited{
  color:rgba(255,255,255,.85);
  text-decoration:none;
}
#footer a:hover,
#footer a:focus{
  text-decoration:underline;
}

/* Layout container ONLY inside footer (avoid overriding sitewide .container/.row) */
#footer .container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  box-sizing:border-box;
}

/* Contact / Hours / Site map columns */
#footer .footer-info{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:32px;
  width:100%;
  margin:0 auto;
  padding-bottom:28px;
}

/* Some themes include bootstrap columns; neutralize without breaking */
#footer .footer-info > [class*="col-"]{
  width:auto;
  padding:0;
  box-sizing:border-box;
}

/* Headings */
#footer .footer-info h6{
  margin:0 0 12px 0;
  padding:9px 0;
  font-size:14px;
  font-weight:700;
  border-bottom:1px solid rgba(255,255,255,.75);
  text-align:left;
}

/* Lists */
#footer .footer-info ul{
  list-style:none;
  padding:0;
  margin:0;
  text-align:left;
  color:rgba(255,255,255,.75);
}
#footer .footer-info li{
  margin:14px 0;
}
#footer .footer-info li:last-child{
  margin-bottom:0;
}

#footer .titlefoot{
  font-weight:700;
  color:rgba(255,255,255,.85);
}
#footer .whitefooter{
  color:rgba(255,255,255,.85);
}

/* Social icons row */
#footer .redesfooter{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
#footer .redesfooter a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
#footer .redesfooter img{
  width:25px;
  height:25px;
  display:block;
}

/* Copyright strip */
#footer .footer-text{
  text-align:center;
  color:rgba(255,255,255,.75);
  border-top:1px solid rgba(255,255,255,.4);
  border-bottom:1px solid rgba(255,255,255,.4);
  padding:10px 0;
  font-size:12px;
}

/* Sistema Integral logo */
#footer .logo-footer{
  width:min(320px, 90%);
  margin:28px auto;
}
#footer .logo-footer img{
  width:100%;
  height:auto;
  display:block;
}

/* Logos row (JEP / CEV / UBPD) */
#footer .entidades{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:24px;
  width:100%;
  margin:0 auto;
  padding-top:10px;
}
#footer .entidades > [class*="col-"]{
  width:auto;
  padding:0;
  box-sizing:border-box;
  flex:0 1 260px;
  display:flex;
  justify-content:center;
}
#footer .entidades img{
  width:min(240px, 90%);
  height:auto;
  display:block;
}

/* ===== Responsive breakpoints ===== */
@media (max-width: 1024px){
  #footer .footer-info{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px){
  #footer{
    padding:48px 0 32px;
  }
  #footer .footer-info{
    grid-template-columns:1fr;
    gap:22px;
  }
  #footer .footer-info li{
    margin:10px 0;
  }
  #footer .footer-text{
    font-size:11.5px;
    padding:12px 10px;
  }
}
