:root {
  --gob-footer-bg: #f7f4f1;
  --gob-footer-fg: #3d3e42;
  --gob-footer-muted: #7a7f86;
  --gob-footer-title: #8c1e41;
  --gob-footer-line: rgba(140, 30, 65, 0.18);
  --gob-footer-icon-border: rgba(140, 30, 65, 0.28);
  --gob-footer-logo-filter: none;
}

html[data-theme="dark"] {
  --gob-footer-bg: #111;
  --gob-footer-fg: #ffffff;
  --gob-footer-muted: rgba(255, 255, 255, 0.78);
  --gob-footer-title: #b8975a;
  --gob-footer-line: rgba(184, 151, 90, 0.5);
  --gob-footer-icon-border: rgba(255, 255, 255, 0.28);
  --gob-footer-logo-filter: brightness(0) invert(1);
}

footer.footer,
footer.gobmx-footer {
  background: var(--gob-footer-bg) !important;
  color: var(--gob-footer-fg) !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  border-top: 1px solid var(--gob-footer-line);
  font-family: "Montserrat", "Noto Sans", sans-serif;
}

footer.footer .footer-backgroundcolor-pu,
footer.footer .container-fluid,
footer.gobmx-footer {
  background: var(--gob-footer-bg) !important;
  color: var(--gob-footer-fg) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

footer.footer .footer-back-dark {
  display: none !important;
}

.gobmx-footer-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 24px 8px;
}

.gobmx-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.25fr 0.9fr;
  gap: 28px 36px;
  align-items: start;
}

.gobmx-footer-logo {
  display: block;
  max-width: 220px;
  height: auto;
  margin-bottom: 12px;
  filter: var(--gob-footer-logo-filter);
}

.gobmx-footer-entity {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--gob-footer-muted);
  max-width: 28ch;
}

.gobmx-footer-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gob-footer-line);
  color: var(--gob-footer-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gobmx-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gobmx-footer-list li {
  margin: 0 0 8px;
}

.gobmx-footer-list a,
.gobmx-footer a.linksfooter,
.gobmx-footer .gobmx-footer-list a {
  color: var(--gob-footer-fg) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 400;
}

.gobmx-footer-list a:hover,
.gobmx-footer a.linksfooter:hover {
  color: #8c1e41 !important;
  text-decoration: underline !important;
}

html[data-theme="dark"] .gobmx-footer-list a:hover,
html[data-theme="dark"] .gobmx-footer a.linksfooter:hover {
  color: #b8975a !important;
}

.gobmx-footer-contact {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--gob-footer-muted);
}

.gobmx-footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gobmx-footer-social a {
  color: var(--gob-footer-fg) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gob-footer-icon-border);
  border-radius: 50%;
  text-decoration: none !important;
}

.gobmx-footer-social a:hover {
  border-color: #b8975a;
  color: #8c1e41 !important;
}

html[data-theme="dark"] .gobmx-footer-social a:hover {
  color: #b8975a !important;
}

.gobmx-footer-social i,
.gobmx-footer-social svg {
  font-size: 16px !important;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gobmx-footer-pleca {
  background: #8c1e41;
  color: #fff;
  margin-top: 28px;
  padding: 12px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.cfdi-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 6px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  z-index: 20;
}

.cfdi-theme-toggle:hover,
.cfdi-theme-toggle:focus {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
  color: #fff !important;
}

.cfdi-theme-toggle .cfdi-theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  box-shadow: inset 6px -2px 0 0 #8c1e41;
}

html[data-theme="dark"] .cfdi-theme-toggle .cfdi-theme-icon {
  background: #f3e2a0;
  box-shadow: none;
}

.cfdi-theme-host {
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .gobmx-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .gobmx-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gobmx-footer-main {
    padding: 28px 18px 8px;
  }

  .cfdi-theme-toggle .cfdi-theme-label {
    display: none;
  }
}
