/* ================= FOOTER ================= */
.footer-platzi {
  background: #FEC31D;
  color: #000;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  padding: 80px 0px 80px;
  margin-top:120px;
}

.footer-grid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand img {
  max-width: 180px;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #000;
}

.payment-icons span {
  display: inline-block;
  margin-right: 15px;
  font-size: 14px;
  color: #000;
}

.footer-column h4 {
  color: #000;
  margin-bottom: 12px;
}

.seo-links a {
  display: block;
  font-size: 13px;
  color: #000;
  margin-bottom: 6px;
  text-decoration: none;
  cursor: default;
}

.seo-links a:hover {
  color: #000;
}

/* ================= LEGALES ================= */
.footer-legal {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-legal summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  color: #000;
}

.footer-legal summary:hover {
  color: #fff;
}

/* ================= LIGHTBOX CON DETAILS ================= */
details[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9998;
}

details[open] .legal-box {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.legal-box-content {
  background: #FEC31D;
  color: #000;
  width: 90%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 14px;
  position: relative;
}

.legal-box-content h2 {
  color: #fff;
  margin-bottom: 15px;
}

.legal-box-content p {
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}

.legal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 22px;
  cursor: pointer;
  color: #000;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
