/* ===========================
   FOOTER ESTÁNDAR Y LIMPIO
=========================== */

.site-footer {
  background-color: #214a73; /* azul principal */
  color: #fff;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-top: 0; /* 🔹 elimina cualquier espacio extra */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Asegura que no haya margen adicional desde Bootstrap o el body */
body > footer,
footer {
  margin-top: 0 !important;
  background-color: #214a73 !important;
  color: #fff !important;
  border: none !important;
}

/* Ajuste opcional para la última sección del index */
.bg-light:last-of-type {
  padding-bottom: 30px;
}

/* ===========================
   ESTRUCTURA GENERAL DEL LAYOUT
=========================== */

/* Hace que el footer se mantenga pegado al fondo */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* El contenido principal crece y empuja el footer hacia abajo */
main {
  flex: 1;
}
