/**
 * footer.css — Pie de página (patrón "Blackbird").
 *
 * Zona clara (invitación + columnas) y banda oscura --tertiary con el emblema
 * en un círculo blanco que muerde el borde, redes en círculos, la marca
 * gigante a todo lo ancho y la línea legal.
 * Depende de: tokens.css.
 */

.lm-footer {
  background: var(--background);
}

/* ==========================================================================
   Zona clara: invitación + columnas de enlaces
   ========================================================================== */
.lm-footer__top {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: grid;
  gap: 3rem;
}

.lm-footer__headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--on-background);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 0.92;
}

.lm-footer__blurb {
  margin: 1.25rem 0 2rem;
  max-width: 26rem;
  font-family: var(--font-text);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

/* Botón contorneado (el "FLY WITH US" de la referencia) */
.lm-footer__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.25rem;
  padding: 0 2.25rem;
  border: 2px solid var(--on-background);
  border-radius: 9999px;
  background: transparent;
  color: var(--on-background);
  font-family: var(--font-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease;
}
.lm-footer__pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Columnas de enlaces */
.lm-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 2rem;
  align-content: start;
}

.lm-footer__col-title {
  margin: 0 0 1rem;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-background);
}

.lm-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lm-footer__col a,
.lm-footer__col span {
  font-family: var(--font-text);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--on-surface-variant);
  text-decoration: none;
}
.lm-footer__col a {
  transition: color 0.2s ease;
}
.lm-footer__col a:hover {
  color: var(--secondary);
}

/* ==========================================================================
   Banda oscura
   ========================================================================== */
.lm-footer__band {
  position: relative;
  background: var(--tertiary);
  color: var(--on-tertiary);
}

/* Círculo blanco con el emblema, mordiendo el borde superior */
.lm-footer__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  background: var(--background);
  display: grid;
  place-items: center;
  z-index: 20;
}
.lm-footer__notch img {
  width: 82%;
  height: auto;
}

/* Redes en círculos blancos */
.lm-footer__social {
  margin: 0;
  padding: 6rem 1.5rem 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.lm-footer__social-gap {
  display: none;
}
.lm-footer__social a {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--surface-container-lowest);
  transition: transform 0.2s ease;
}
.lm-footer__social a:hover {
  transform: translateY(-3px);
}
.lm-footer__social img {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
}

/* Marca gigante a todo lo ancho */
.lm-footer__wordmark {
  padding: 1.5rem 0 0;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: var(--primary);
  font-size: clamp(3.5rem, 15.5vw, 19rem);
  line-height: 0.85;
  white-space: nowrap;
  user-select: none;
}

/* Línea legal */
.lm-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.5rem 1.5rem 2rem;
  font-family: var(--font-text);
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--on-tertiary) 70%, transparent);
}
.lm-footer__legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.lm-footer__legal a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 900px) {
  .lm-footer__top {
    grid-template-columns: 1.1fr 1fr;
    padding: 5rem 2rem 6.5rem;
  }
  .lm-footer__notch {
    width: 11rem;
    height: 11rem;
  }
  /* Redes repartidas a los lados del emblema, como la referencia */
  .lm-footer__social {
    padding: 2.25rem 3rem 0;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .lm-footer__social-gap {
    display: block;
    flex: none;
    width: 13rem;
  }
  .lm-footer__legal {
    padding: 2rem 3rem 2.5rem;
  }
}
