/* ==========================================================================
   FOOTER LANDING — compartido entre index, login, registro, recuperar
   ========================================================================== */
.footer-landing {
  width: 100%;
  background-color: var(--verde-marca);
  padding: 0 3rem;
  position: relative;
  overflow: hidden;
}

[data-tema="oscuro"] .footer-landing {
  background-color: #080E18;
  border-top: .2rem solid transparent;
  border-image: var(--linea-oro-h) 1;
}

/* Grid de 2 columnas */
.footer-contenido {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 3rem 0;
  max-width: 120rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Columna izquierda */
.footer-marca {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.6rem;
  padding-right: 3rem;
}

.footer-logo {
  font-family: var(--fuente-titulos);
  font-size: 2.2rem;
  font-weight: 700;
  color: #F2EDE4;
}

.footer-desc {
  font-size: 1.2rem;
  color: #F2EDE4;
  line-height: 1.7;
  text-align: center;
  width: 100%;
}

/* Columna derecha — línea dorada via ::before */
.footer-redes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.6rem;
  padding-left: 3rem;
  position: relative;
}

.footer-redes::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: .1rem;
  background: var(--linea-oro-v);
  pointer-events: none;
}

.footer-redes-titulo {
  font-size: 1.6rem;
  color: #F5C842;
  font-family: var(--fuente-texto);
  font-weight: 700;
}


.footer-iconos {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.footer-iconos a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: var(--radio-redondo);
  transition: transform var(--transicion-media);
}
.footer-iconos a:hover {
  transform: scale(1.15);
}
.footer-iconos svg {
  width: 3.6rem;
  height: 3.6rem;
}

/* MÓVIL — al final para que no sea pisado por las reglas base */
@media (max-width: 640px) {
  .footer-contenido {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-redes::before {
    display: none;
  }
  /* Mantener flex pero stretch: los hijos (incluso <span>) llenan el ancho
     y flex-gap sigue funcionando para el espaciado vertical */
  .footer-marca {
    padding-right: 0;
    align-items: stretch;
  }
  .footer-redes {
    padding-left: 0;
    align-items: stretch;
  }
  /* En flex-column con align-items:stretch los spans son block-level:
     text-align:center centra el texto dentro del ancho completo */
  .footer-logo,
  .footer-desc,
  .footer-redes-titulo {
    text-align: center;
    width: 100%;
  }
  .footer-iconos {
    justify-content: center;
  }
}
.footer-divider {
  height: .2rem;
  background: var(--linea-oro-h);
  max-width: 120rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-copy-wrap {
  position: relative;
  overflow: hidden;
}
.footer-copy-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("../../img/ornamento-topbar.svg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: 0.2;
  pointer-events: none;
}
[data-tema="oscuro"] .footer-copy-wrap::before {
  opacity: 0.25;
}

.footer-copy {
  color: #F2EDE4;
  font-size: 1.1rem;
  text-align: center;
  padding: 1.4rem 0;
  position: relative;
  z-index: 1;
}
