@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800;900&display=swap');

/* =========================================================
   FOOTER ESCOLI
========================================================= */
.footer {
  position: relative;
  overflow: hidden;

  font-family: 'Roboto', sans-serif;
  color: #fff;

  background:
    radial-gradient(circle at 85% 20%, rgba(247,68,54,.18), transparent 34%),
    linear-gradient(120deg, #240a38 0%, #3c0d54 30%, #67194e 62%, #a52f45 100%);
}

/* brillo suave detrás del contenido */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 34%;

  background:
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(255,255,255,0) 25%,
      rgba(255,255,255,.065) 50%,
      rgba(255,255,255,0) 75%,
      transparent 100%
    );

  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 0;

  animation: footerShine 9s ease-in-out infinite;
}

@keyframes footerShine {
  0%, 55% { left: -45%; }
  78%, 100% { left: 110%; }
}

.footer-container {
  position: relative;
  z-index: 1;

  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 58px;

  display: grid;
  grid-template-columns: 1.05fr .9fr 1fr 1.3fr;
  gap: 58px;
}

/* entrada por JS */
.footer-section {
  min-width: 0;
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity .68s cubic-bezier(.22,1,.36,1),
    transform .68s cubic-bezier(.22,1,.36,1);
}

.footer-section.footer-section--visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-section h3 {
  position: relative;
  margin: 0 0 26px;
  padding-bottom: 13px;

  color: #f6a313;

  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 52px;
  height: 3px;

  border-radius: 999px;
  background: linear-gradient(90deg, #f08e03, #ffb52e);

  transition: width .3s ease;
}

.footer-section:hover h3::after {
  width: 78px;
}

/* primera columna */
.footer-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;

  color: rgba(255,255,255,.60);

  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.footer-about p {
  max-width: 310px;
  margin: 0;

  color: rgba(255,255,255,.88);

  font-size: .98rem;
  line-height: 1.8;
}

.footer-about-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-top: 23px;

  color: #fff;
  text-decoration: none;

  font-size: .9rem;
  font-weight: 700;

  transition:
    color .25s ease,
    gap .25s ease;
}

.footer-about-link:hover {
  color: #f6a313;
  gap: 13px;
}

/* enlaces */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-links a {
  position: relative;
  display: inline-block;

  color: rgba(255,255,255,.90);
  text-decoration: none;

  font-size: .95rem;
  line-height: 1.55;

  transition:
    color .25s ease,
    transform .25s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;

  width: 0;
  height: 1px;

  background: #f6a313;
  transition: width .3s ease;
}

.footer-links a:hover {
  color: #f6a313;
  transform: translateX(3px);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links--articles a {
  max-width: 340px;
}

/* redes */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.social-icon {
  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;

  color: #fff;
  background: rgba(255,255,255,.10);
  text-decoration: none;

  transition:
    transform .25s ease,
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.social-icon i {
  font-size: 1rem;
}

.social-icon:hover {
  color: #fff;
  transform: translateY(-4px);

  border-color: transparent;
  background: linear-gradient(135deg, #f74436, #f08e03);

  box-shadow: 0 10px 24px rgba(0,0,0,.20);
}

/* contacto */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-btn {
  min-height: 44px;
  padding: 0 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border-radius: 999px;

  color: #fff;
  text-decoration: none;

  font-size: .82rem;
  font-weight: 700;

  transition:
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.footer-btn i {
  flex-shrink: 0;
}

.footer-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer-btn-email {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.12);
}

.footer-btn-email:hover {
  background: rgba(255,255,255,.20);
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

.footer-btn-wa {
  background: #20d366;
  box-shadow: 0 8px 24px rgba(32,211,102,.17);
}

.footer-btn-wa:hover {
  background: #18bd59;
  box-shadow: 0 10px 28px rgba(32,211,102,.25);
}

/* copyright */
.footer-bottom {
  position: relative;
  z-index: 1;

  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 24px 26px;

  text-align: center;
}

.footer-bottom p {
  margin: 0;

  color: rgba(255,255,255,.72);

  font-size: .83rem;
  line-height: 1.6;
}

.footer-bottom strong {
  color: rgba(255,255,255,.93);
}

.footer-bottom span {
  margin: 0 6px;
  color: #f6a313;
}

/* tablet */
@media (max-width: 1050px) {
  .footer-container {
    width: min(100% - 40px, 900px);
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 42px 46px;
    padding: 58px 0 48px;
  }
}

/* móvil */
@media (max-width: 700px) {
  .footer-container {
    width: min(100% - 36px, 520px);
    padding: 34px 0 28px;

    grid-template-columns: 1fr;
    gap: 0;

    text-align: center;
  }

  .footer-section {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .footer-section:last-child {
    border-bottom: 0;
  }

  .footer-section h3 {
    margin-bottom: 18px;
    padding-bottom: 11px;
    font-size: 1.22rem;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section:hover h3::after {
    width: 52px;
  }

  .footer-eyebrow {
    justify-content: center;
    margin-bottom: 8px;
  }

  .footer-about p,
  .footer-links--articles a {
    max-width: none;
  }

  .footer-about p {
    max-width: 360px;
    margin: 0 auto;

    font-size: .93rem;
    line-height: 1.68;
  }

  .footer-about-link {
    justify-content: center;
    margin-top: 17px;
  }

  .footer-links li {
    margin-bottom: 12px;
  }

  .footer-links a {
    font-size: .92rem;
    line-height: 1.5;
  }

  .footer-links a:hover {
    transform: none;
  }

  .social-links {
    justify-content: center;
    margin-bottom: 18px;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-btn {
    width: min(100%, 340px);
    min-height: 48px;
    padding-inline: 16px;
  }

  .footer-bottom {
    padding:
      18px 18px
      calc(104px + env(safe-area-inset-bottom));
  }

  .footer-bottom p {
    max-width: 320px;
    margin: 0 auto;

    font-size: .78rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer::before {
    animation: none;
  }

  .footer-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .social-icon,
  .footer-btn,
  .footer-links a,
  .footer-about-link {
    transition: none;
  }
}
