/* =========================
   FOOTER
========================= */

.site-footer {
  position: relative;
  background: #0d114c;
  padding-top: 120px;
  padding-bottom: 40px;
  color: #ffffff;
  overflow: hidden;
}

/* =========================
   ONDA SUPERIOR (MEJORADA)
========================= */

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 150px;

  background: url("../img/fondo-footer.svg") no-repeat top center;
  background-size: cover;

  z-index: 1;
}

/* =========================
   CONTENIDO
========================= */

.site-footer .container {
  position: relative;
  z-index: 2;
}

/* GRID */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* TITULOS */
.site-footer h4 {
  font-weight: 700;
  margin-bottom: 15px;
}

/* TEXTOS */
.site-footer p,
.site-footer li,
.site-footer a {
  color: #e0e0e0;
  font-size: 14px;
}

/* LISTAS */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 8px;
}

/* LINKS */
.site-footer a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-footer a:hover {
  color: #ffffff;
  padding-left: 4px;
}

/* =========================
   FOOTER BOTTOM
========================= */

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  padding-top: 15px;
  font-size: 14px;
  color: #ccc;
}

.site-footer {
  padding-top: 150px;
}

.site-footer .footer-grid {
  margin-top: 20px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 576px) {

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* PRIMER BLOQUE ocupa todo */
  .footer-col:nth-child(1) {
    grid-column: 1 / -1;
    text-align: center;
  }

  /* ENLACES y CATEGORÍAS lado a lado */
  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    text-align: left;
  }

  /* CONTACTO abajo completo */
  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
    text-align: center;
  }


  /* =========================
   FOOTER RESPONSIVE FIX
========================= */

@media (max-width: 768px) {

  .site-footer {
    padding-top: 90px; /* 👈 menos espacio arriba */
    padding-bottom: 30px;
  }

  .site-footer::before {
    height: 90px; /* 👈 ola más pequeña */
  }

  .footer-grid {
    gap: 20px; /* menos separación */
  }

  .footer-col h4 {
    margin-bottom: 10px;
  }

}


@media (max-width: 480px) {

  .site-footer {
    padding-top: 70px;
  }

  .site-footer::before {
    height: 70px;
  }

}


}