
/* ========================================
   FOOTER COMPARTIDO - EDUCA DIGITAL
   ======================================== */

.site-footer {
  width: 100%;
  background: #2e4053;
  color: #ffffff;
  font-family: inherit;
  margin: 0;
  padding: 48px 24px 0;
  box-sizing: border-box;
  border-top: 4px solid #e11d48;
}

.site-footer * {
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 55px;
  padding-bottom: 38px;
}

.footer-brand {
  max-width: 370px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}

.footer-logo:hover {
  transform: translateY(-3px);
}

.footer-logo img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-description {
  margin: 0;
  color: #e1e7ed;
  font-size: 15px;
  line-height: 1.8;
  max-width: 340px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding-top: 7px;
}

.footer-links h3,
.footer-contact h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 7px;
  position: relative;
  padding-bottom: 11px;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background: #e11d48;
  border-radius: 3px;
}

.footer-links a,
.footer-contact a {
  color: #d5dee7;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #e11d48;
  text-underline-offset: 5px;
}

.footer-bottom {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 65px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0;
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  color: #c4ced8;
  font-size: 13px;
  line-height: 1.6;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #e11d48;
}

/* ========================================
   TABLETS Y CELULARES
   ======================================== */

@media (max-width: 700px) {
  .site-footer {
    padding: 38px 22px 0;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-description {
    max-width: 420px;
  }
}

@media (max-width: 420px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
