/* Footer compartido de programas — Negocio Propio
   Un solo componente para ENTER Marketplace, Sistema PROPIO y Primer Negocio (todos con el Design System de Negocio Propio).
   Namespace propio (--npf-) para no depender ni interferir con el Design System de cada programa. */

.npf {
  --npf-ground: #17324a;
  --npf-ink: #f5efe3;
  --npf-muted: #b8c4cc;
  --npf-line: rgb(245 239 227 / 0.16);
  --npf-accent: #edc75e;
  --npf-serif: Georgia, "Times New Roman", serif;
  --npf-sans: "Segoe UI", Arial, Helvetica, sans-serif;
  --npf-mono: "Cascadia Mono", Consolas, "Courier New", monospace;

  background: var(--npf-ground);
  color: var(--npf-ink);
  font-family: var(--npf-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
}

.npf *,
.npf *::before,
.npf *::after {
  box-sizing: border-box;
}

.npf__in {
  width: min(calc(100% - 3rem), 80rem);
  margin-inline: auto;
  padding-block: clamp(2.75rem, 2rem + 2.5vw, 4.25rem) 1.75rem;
}

.npf a {
  color: inherit;
  text-decoration: none;
}

.npf a:focus-visible {
  outline: 3px solid var(--npf-accent);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.npf__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  border-bottom: 1px solid var(--npf-line);
}

.npf__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.npf__brand svg {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
}

.npf__brand strong {
  display: block;
  font-family: var(--npf-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.npf__brand small {
  display: block;
  margin-top: 0.2rem;
  color: var(--npf-muted);
  font-size: 0.85rem;
}

.npf__back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgb(245 239 227 / 0.4);
  border-radius: 999px;
  font-weight: 600;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.npf__back:hover {
  border-color: var(--npf-accent);
  background: var(--npf-accent);
  color: var(--npf-ground);
}

.npf__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-block: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
}

.npf .npf__label {
  max-width: none;
  margin: 0 0 0.85rem;
  color: var(--npf-muted);
  font-family: var(--npf-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.npf li {
  max-width: none;
  margin: 0;
}

.npf ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.npf__cols a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 140ms ease;
}

.npf__cols a:hover {
  text-decoration-color: var(--npf-accent);
}

.npf__cols a[aria-current="page"] {
  color: var(--npf-accent);
}

.npf__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--npf-line);
  color: var(--npf-muted);
  font-size: 0.82rem;
}

.npf .npf__base p {
  margin: 0;
  max-width: 62ch;
}

@media (max-width: 48rem) {
  .npf__in {
    width: min(calc(100% - 2rem), 80rem);
  }

  .npf__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 32rem) {
  .npf__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .npf__back {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .npf__back,
  .npf__cols a {
    transition: none;
  }
}

@media print {
  .npf {
    background: none;
    color: #000;
  }
}
