/* ===========================
   FOOTER (scope: .site-footer)
   =========================== */
.site-footer {
  --footer-bg: var(--cecns-blue, #003b73);
  --footer-bg-2: #001a3a;
  --footer-fg: #f3f7fd;
  --footer-muted: rgba(243, 247, 253, 0.72);
  --footer-border: rgba(255, 255, 255, 0.12);
  --footer-emph: var(--cecns-gold, #ffc300);
  --footer-card: rgba(255, 255, 255, 0.04);

  position: relative;
  background: radial-gradient(120% 120% at 18% 8%, rgba(0, 64, 128, 0.45), transparent 45%),
    radial-gradient(120% 120% at 82% 4%, rgba(0, 26, 58, 0.35), transparent 35%),
    linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-2) 100%);
  color: var(--footer-fg);
  font-size: 0.96rem;
  overflow: hidden;
}

.site-footer .container {
  max-width: var(--maxw, 1200px);
  margin: 0 auto;
  padding: clamp(1.6rem, 2.5vw, 2.2rem) 1.15rem;
  position: relative;
  z-index: 1;
}

.site-footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
  border-bottom: 1px solid var(--footer-border);
  text-align: center;
}

.footer-block {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.25rem 0;
  box-shadow: none;
  animation: footer-pop 0.5s ease both;
  text-align: center;
}

/* TITULOS */
.footer-block__title {
  font-weight: 700;
  letter-spacing: 0.25px;
  margin: 0 0 0.55rem;
  position: relative;
  color: var(--footer-fg);
}
.footer-block__title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, var(--footer-emph), transparent);
  border-radius: 999px;
  margin-left: auto;
  margin-right: auto;
}

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

.footer-lead {
  color: var(--footer-muted);
  line-height: 1.7;
  margin: 0.25rem 0 0.9rem;
}

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

.contact-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  color: var(--footer-muted);
  margin: 0.35rem 0;
}
.contact-list__item i {
  color: var(--footer-emph);
  position: relative;
  top: 0.1rem;
}

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

.footer-links li + li {
  margin-top: 0.4rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 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-visible {
  color: var(--footer-fg);
  transform: translateX(2px);
}

/* REDES */
.social-list {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
  justify-content: center;
}
.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;
  background: transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.social-btn:hover,
.social-btn:focus-visible {
  background: color-mix(in srgb, var(--footer-emph) 18%, transparent);
  border-color: var(--footer-emph);
  transform: translateY(-2px);
}
.social-btn i {
  font-size: 1.05rem;
}

.footer-block:nth-of-type(1) { animation-delay: 0.05s; }
.footer-block:nth-of-type(2) { animation-delay: 0.12s; }
.footer-block:nth-of-type(3) { animation-delay: 0.18s; }
.footer-block:nth-of-type(4) { animation-delay: 0.24s; }

/* BOTTOM BAR */
.site-footer__bottom {
  padding: 0.9rem 0 1.2rem;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--footer-border);
}
.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: 12px;
  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-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--footer-emph);
  transform: translateY(-1px);
}

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

copyright,
.site-footer .copyright {
  color: var(--footer-muted);
  margin: 0;
  font-size: 0.92rem;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .bottom-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer-brand {
    grid-column: span 1;
  }
}
@media (max-width: 560px) {
  .site-footer .container {
    padding-inline: 1rem;
  }
.social-list {
    gap: 0.45rem;
  }
}

/* Animacion ligera en items */
@keyframes footer-pop {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
