/* ===========================
   FOOTER (scope: .site-footer)
   =========================== */
.site-footer {
  --footer-bg: var(--cecns-blue, #003b73);
  --footer-fg: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.72);
  --footer-border: rgba(255, 255, 255, 0.12);
  --footer-emph: var(--cecns-gold, #e0b13a);

  background: var(--footer-bg);
  color: var(--footer-fg);
  font-size: 0.95rem;
}

.site-footer .container {
  max-width: var(--maxw, 1100px);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.site-footer__top {
  border-bottom: 1px solid var(--footer-border);
}

.site-footer__top .footer-block:not(:last-child) {
  margin-bottom: 0;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; /* 4 cols en desktop */
  gap: clamp(20px, 3vw, 40px);
}

/* TITULOS */
.footer-block__title {
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0 0 0.75rem 0;
  position: relative;
}
.footer-block__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--footer-emph), transparent);
  border-radius: 3px;
}

/* TEXTO Y LISTAS */
.footer-text {
  color: var(--footer-muted);
  line-height: 1.6;
  margin: 0;
}

.contact-list,
.footer-links,
.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list__item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--footer-muted);
  margin: 0.5rem 0;
}
.contact-list__item i {
  color: var(--footer-emph);
  position: relative;
  top: 0.15rem;
}

.contact-link {
  color: var(--footer-fg);
  text-decoration: none;
}
.contact-link:hover,
.contact-link:focus {
  text-decoration: underline;
}

.footer-links li + li {
  margin-top: 0.35rem;
}
.footer-links a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.12s ease;
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--footer-fg);
  transform: translateX(2px);
}

/* REDES */
.social-list {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.social-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--footer-border);
  color: var(--footer-fg);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.social-btn:hover,
.social-btn:focus {
  background: color-mix(in srgb, var(--footer-emph) 22%, transparent);
  border-color: var(--footer-emph);
  transform: translateY(-1px);
}
.social-btn i {
  font-size: 1.05rem;
}

/* BOTTOM BAR */
.site-footer__bottom {
  padding: 0.5rem 0;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
}
.bottom-grid .to-top {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--footer-border);
  color: var(--footer-fg);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.bottom-grid .to-top:hover,
.bottom-grid .to-top:focus {
  background: color-mix(in srgb, var(--footer-fg) 10%, transparent);
  transform: translateY(-1px);
}

.legal-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.legal-nav a {
  color: var(--footer-muted);
  text-decoration: none;
}
.legal-nav a:hover,
.legal-nav a:focus {
  color: var(--footer-fg);
}

copyright,
.site-footer .copyright {
  /* compat con tu clase anterior si existiera */
  color: var(--footer-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .site-footer__top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
@media (max-width: 820px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .legal-nav {
    justify-content: center;
    flex-wrap: wrap;
  }
  .bottom-grid .to-top {
    margin: 0 auto;
  }
}
@media (max-width: 520px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .footer-block__title::after {
    width: 36px;
  }
}
