/* =========================
   FOOTER
========================= */

.main-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 60px;
  margin-top: 100px;
}

/* Layout interno */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
}

/* =========================
   BRANDING
========================= */

.footer-brand {
  flex: 1 1 0;
  max-width: 420px;
}

.footer-brand-logo {
  font-size: 26px;
  margin-bottom: 15px;
}

.footer-brand p {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
}

/* =========================
   CONTACTO + LEGALES
========================= */

.footer-contact {
  flex: 1 1 0;
  text-align: center;
}

.footer-contact p {
  font-size: 14px;
  opacity: 0.9;
}

.footer-contact a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-contact a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Links legales */
.footer-legal-links {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.7;
}

.footer-legal-links a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--gold);
}

/* =========================
   REDES SOCIALES
========================= */

.footer-social {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centra el bloque dentro de la columna derecha */
  gap: 12px;
}

.footer-social-link {
  width: fit-content;
  min-width: 120px;      /* da ancho uniforme y evita que se vea desplazado */
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--footer-link);
  text-decoration: none;
  font-size: 14px;
  text-align: left;
  opacity: 0.85;
  transition: all 0.25s ease;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.footer-social-link:hover {
  color: var(--gold);
  opacity: 1;
  transform: translateY(-1px);
}

.footer-social-link:hover svg {
  transform: scale(1.1);
}

/* =========================
   BOTTOM
========================= */

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  opacity: 0.7;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .footer-container {
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 22px;
    align-items: center;
  }

  .footer-brand,
  .footer-contact,
  .footer-social {
    flex: unset;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-social {
    align-items: center;
  }

  .footer-social-link {
    min-width: 0;
  }
}