.header,
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand,
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--texto);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--borde-strong);
  border-radius: var(--radius);
  background: var(--rojo);
  color: #ffffff;
  box-shadow: var(--shadow-rojo);
}

.site-nav,
.header__nav {
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--borde-strong);
  border-radius: var(--radius-full);
  color: var(--texto-sec);
  background: var(--bg-card);
}

/* Mobile nav styles in nav.css */

.site-footer {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-16) var(--space-4) calc(var(--space-20) + var(--space-8));
  border-top: 1px solid var(--borde);
  background: var(--bg-base);
}

.site-footer p,
.site-footer small {
  color: var(--texto-sec);
  font-size: var(--text-sm);
}

.brand--footer {
  margin-bottom: var(--space-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--texto-sec);
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--texto);
}

@media (min-width: 640px) {
  .header,
  .site-header {
    padding: 0 var(--space-8);
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding-inline: var(--space-8);
  }
}

/* Nav responsive rules in nav.css */

@media (min-width: 1280px) {
  .site-footer {
    padding-inline: max(var(--space-8), calc((100vw - var(--container)) / 2));
  }
}
