/**
 * Holnix — Footer styles
 * Reconstruido a partir de .claude/context/design-system.md
 */

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

.holnix-footer {
  background-color: #120E16;
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--inter, 'Inter', sans-serif);
}

.holnix-footer__main {
  margin: 25px 35px;
}

.holnix-footer__container {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
  padding: 0 var(--wp--preset--spacing--small);
}

/* ==================================
   MAIN (brand + menu + contacto/redes)
   ================================== */

.holnix-footer__main-inner {
  display: flex;
  flex-direction: column;
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
  gap: var(--wp--preset--spacing--large);
  padding: 30px 0;
}

.holnix-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--small);
}

/* Mobile: margen propio en el bloque de marca (sin logo) */
@media (max-width: 1023.98px) {
  .holnix-footer__brand {
    margin: 10px 25px 45px;
  }
}

.holnix-footer__brand-description {
  max-width: 40ch;
  color: #878D94;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

/* Solutions / Product / Pricing / Resources — una sola columna en mobile, texto a la izquierda */
.holnix-footer__nav-columns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--wp--preset--spacing--large);
  width: 100%;
}

.holnix-footer__nav-column {
  text-align: left;
}

/* Debajo del título de cada columna, separándolo de su lista de links */
.holnix-footer__column-divider {
  width: 100%;
  height: 3px;
  margin: 0 0 var(--wp--preset--spacing--small);
  border: none;
  background-color: #29262D;
}

.holnix-footer__column-title,
.holnix-footer__social-title {
  margin: 0 0 var(--wp--preset--spacing--small);
  color: var(--wp--preset--color--white);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.holnix-footer__menu {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--x-small);
  list-style: none;
}

.holnix-footer__menu a {
  color: #878D94;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.holnix-footer__menu a:hover,
.holnix-footer__menu a:focus-visible {
  color: #A528C5;
}

/* ==================================
   CONTACTO + REDES
   ================================== */

.holnix-footer__contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--large);
}

.holnix-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--x-small);
}

.holnix-footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--x-small);
}

.holnix-footer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--wp--preset--color--primary);
}

.holnix-footer__icon svg {
  width: 100%;
  height: 100%;
}

.holnix-footer__contact-text {
  color: #878D94;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

a.holnix-footer__contact-text:hover,
a.holnix-footer__contact-text:focus-visible {
  color: var(--wp--preset--color--primary);
}

.holnix-footer__social-wrap {
  padding: 27px 0;
}

.holnix-footer__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wp--preset--spacing--x-small);
  text-align: center;
}

.holnix-footer__social-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 16px;
  row-gap: var(--wp--preset--spacing--x-small);
  list-style: none;
}

.holnix-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(#120E16, #120E16) padding-box,
    linear-gradient(135deg, var(--holnix-brand-light-purple, #A24DD1) 0%, var(--holnix-brand-purple, #A524C4) 50%, var(--holnix-brand-pink, #FD31B6) 100%) border-box;
  color: var(--wp--preset--color--white);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.holnix-footer__social-link:hover,
.holnix-footer__social-link:focus-visible {
  background: linear-gradient(#A528C5, #A528C5) padding-box,
    linear-gradient(135deg, var(--holnix-brand-light-purple, #A24DD1) 0%, var(--holnix-brand-purple, #A524C4) 50%, var(--holnix-brand-pink, #FD31B6) 100%) border-box;
  color: var(--wp--preset--color--white);
}

.holnix-footer__social-link svg {
  width: 16px;
  height: 16px;
  margin: 8px;
}

/* ==================================
   LEGAL (Privacidad, Términos, Cookies)
   ================================== */

.holnix-footer__legal-wrap {
  padding: 0 0 var(--wp--preset--spacing--small);
}

.holnix-footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 16px;
  row-gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.holnix-footer__legal-list a {
  color: #878D94;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.holnix-footer__legal-list a:hover,
.holnix-footer__legal-list a:focus-visible {
  color: var(--wp--preset--color--white);
}

/* ==================================
   COPYRIGHT
   ================================== */

.holnix-footer__copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.holnix-footer__copyright-inner {
  padding: var(--wp--preset--spacing--small) var(--wp--preset--spacing--small);
}

.holnix-footer__copyright-text {
  margin: 0;
  color: #878D94;
  opacity: 0.65;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .holnix-footer__contact-block {
    flex-direction: row;
    gap: var(--wp--preset--spacing--extra-large);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .holnix-footer {
    padding: 48px 64px;
  }

  .holnix-footer__main-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--extra-large);
  }

  .holnix-footer__brand {
    flex: 1 1 280px;
    max-width: 320px;
  }

  /* Solutions / Product / Pricing / Resources lado a lado, mismo ancho cada una */
  .holnix-footer__nav-columns {
    flex-direction: row;
    width: 788px;
    margin: 0 auto;
    gap: var(--wp--preset--spacing--large);
  }

  .holnix-footer__nav-column {
    flex: 1 1 0;
    min-width: 0;
  }

  /*
   * Cada columna tiene su propio <hr>, pero el gap entre columnas corta la línea.
   * Extendiendo el margen negativo la mitad del gap a cada lado, los segmentos se
   * unen con el de la columna vecina y queda un solo hr continuo.
   */
  .holnix-footer__nav-column .holnix-footer__column-divider {
    width: auto;
    margin-left: calc(var(--wp--preset--spacing--large) / -2);
    margin-right: calc(var(--wp--preset--spacing--large) / -2);
  }

  .holnix-footer__nav-column:first-child .holnix-footer__column-divider {
    margin-left: 0;
  }

  .holnix-footer__nav-column:last-child .holnix-footer__column-divider {
    margin-right: 0;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .holnix-footer__menu a,
  .holnix-footer__contact-text,
  .holnix-footer__social-link {
    transition: none;
  }
}
