/* ==========================================================================
   APEX t-Footer — reset del wrapper nativo
   ========================================================================== */

/* Eliminar padding/margin del contenedor APEX */
.t-Footer,
.t-Footer-body,
.t-Footer-content {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Bootstrap grid dentro del footer — sin gutter */
.t-Footer-content .container,
.t-Footer-content .row,
.t-Footer-content .col,
.t-Footer-content [class*="col-"] {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  flex: none !important;
  width: 100% !important;
}

/* Ocultar barra "Release X.X" */
.t-Footer-apex {
  display: none !important;
}

/* Botón scroll-to-top — ocupa todo el alto del footer, fondo igual */
html body .t-Footer {
  position: relative !important;
}

html body .t-Footer .t-Footer-top {
  position:       absolute !important;
  top:            0 !important;
  right:          0 !important;
  bottom:         0 !important;
  height:         auto !important;
  width:          auto !important;
  background:     #1a2342 !important;
  border:         none !important;
  box-shadow:     none !important;
  display:        flex !important;
  align-items:    center !important;
  justify-content: center !important;
  padding:        0 1rem !important;
}

html body .t-Footer .t-Footer-top .t-Footer-topButton,
html body .t-Footer .t-Footer-top .t-Footer-topButton:link,
html body .t-Footer .t-Footer-top .t-Footer-topButton:visited {
  background-color: #ffffff !important;
  border:           none !important;
  outline:          none !important;
  box-shadow:       none !important;
  border-radius:    50% !important;
  width:            42px !important;
  height:           42px !important;
  display:          flex !important;
  align-items:      center !important;
  justify-content:  center !important;
  color:            #1a2342 !important;
  opacity:          1 !important;
  font-size:        1.35em !important;
  transition:       background-color 0.2s !important;
}

html body .t-Footer .t-Footer-top .t-Footer-topButton:hover,
html body .t-Footer .t-Footer-top .t-Footer-topButton:focus {
  background-color: rgba(255, 255, 255, 0.85) !important;
  box-shadow:       none !important;
  border:           none !important;
  color:            #1a2342 !important;
}

html body .t-Footer .t-Footer-top .t-Footer-topButton .a-Icon,
html body .t-Footer .t-Footer-top .t-Footer-topButton .a-Icon::before {
  color: #1a2342 !important;
}

/* ==========================================================================
   MEL-FOOTER — Footer global (página 0)
   ========================================================================== */

.mel-footer {
  background-color: #1a2342 !important;
  color: #ffffff !important;
  padding: 3rem 0 0 0 !important;
  margin-top: 0 !important;
  font-family: inherit !important;
}

/* ------------------------------------------------------------------
   Cuerpo principal: logo + columnas de navegación
   ------------------------------------------------------------------ */
.mel-footer__body {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2.5rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 2rem 2.5rem 2rem !important;
}

/* Brand (logo + tagline + redes) */
.mel-footer__brand {
  flex: 1 1 220px !important;
  max-width: 280px !important;
}

.mel-footer__logo-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.mel-footer__logo-img {
  width: 60px !important;
  height: 60px !important;
  border-radius: 8px !important;
  object-fit: contain !important;
}

.mel-footer__logo-text {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.5px !important;
}

.mel-footer__tagline {
  font-size: 0.875rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  line-height: 1.6 !important;
  margin: 0.75rem 0 1.25rem 0 !important;
}

.mel-footer__social {
  display: flex !important;
  gap: 0.75rem !important;
}

.mel-footer__social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s !important;
  font-size: 0.875rem !important;
}

.mel-footer__social-link:hover {
  border-color: #f6c90e !important;
  color: #f6c90e !important;
}

/* Columnas de navegación */
.mel-footer__nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2.5rem !important;
  flex: 1 1 auto !important;
}

.mel-footer__col {
  min-width: 160px !important;
}

.mel-footer__col-title {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 1rem 0 !important;
}

.mel-footer__links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mel-footer__links li {
  margin-bottom: 0.6rem !important;
}

.mel-footer__links a {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.mel-footer__links a:hover {
  color: #ffffff !important;
}

/* ------------------------------------------------------------------
   Barra inferior: copyright + legal
   ------------------------------------------------------------------ */
.mel-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 1.25rem 2rem !important;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
}

.mel-footer__legal {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.mel-footer__legal a {
  color: rgba(255, 255, 255, 0.45) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.mel-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.mel-footer__separator {
  color: rgba(255, 255, 255, 0.25) !important;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 767px) {
  .mel-footer__body {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .mel-footer__brand {
    max-width: 100% !important;
  }

  .mel-footer__bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}
