.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  /* base (móvil) — 1 columna */
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 2.5rem 1rem;

  @media (min-width: 768px) {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    padding: 3rem 2rem;
  }

  @media (min-width: 1024px) {
    /* gap aumentado de 2.5rem a 3.5rem para dar separación
       entre brand y NAPS Systems (SYS-EP3-004) */
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3.5rem;
    padding: 1.5rem 2.5rem;
  }
}

/* ---- Columnas (común) ---- */
.site-footer__col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-navy);
  margin-bottom: 0.1rem;
}

/* ---- Col 1: Brand — cabecera logo + nombre lado a lado ---- */
.site-footer__brand-head {
  /* base (móvil) */
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.site-footer__logo {
  flex-shrink: 0;
  height: 40px;
  width: auto;
}


.site-footer__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.15;
  color: var(--color-navy);
  white-space: nowrap;
}

.site-footer__brand-desc {
  /* base (móvil) */
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-soft);
  /* Margen superior negativo para subirlo más cerca al brand-name */
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  max-width: 22rem;
  padding-left: calc(40px + 0.65rem);
}

.site-footer__contact {
  /* base (móvil) */
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
  /* Alineado al mismo padding-left que brand-desc para que toda la
     columna del brand comparta el mismo eje izquierdo (SYS-EP3-004) */
  padding-left: calc(40px + 0.65rem);
}

.site-footer__contact-link {
  color: var(--color-blue);
  transition: color 0.18s ease;
}

.site-footer__contact-link:hover {
  color: var(--color-navy);
}

/* ---- Col 2 y 3: enlaces de NAPS Systems y Services ---- */
.site-footer__sys-link {
  display: block;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--color-text-soft);
  transition: color 0.18s ease;
}

.site-footer__sys-link:hover {
  color: var(--color-blue);
}

/* ---- Col 4: Start a Project ---- */
.site-footer__cta-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-soft);
  margin-bottom: 0.85rem;
  max-width: 18rem;
}

.site-footer__cta-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.site-footer__cta-link:hover {
  color: var(--color-navy);
}

/* ---- Barra inferior (copyright + powered by) ---- */
.site-footer__bar {
  /* base (móvil) — full width, con la línea de lado a lado */
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;

  @media (min-width: 768px) {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem clamp(1rem, calc((100% - var(--container-max)) / 2 + 2rem), 50%);
  }
}

.site-footer__copy {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  text-align: center;

  @media (min-width: 768px) {
    text-align: left;
  }
}

.site-footer__powered {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  text-align: center;
}

.site-footer__powered-link {
  font-weight: 700;
  color: var(--color-blue);
  transition: color 0.18s ease;
}

.site-footer__powered-link:hover {
  color: var(--color-navy);
}