/* Shared public header + footer. Unlayered, fully explicit so Tailwind preflight
   (React) and marketing.css (server) compute identical styles. Needs brand-tokens.css. */
.site-header,
.site-header *,
.site-footer,
.site-footer * {
  box-sizing: border-box;
}
.site-header,
.site-footer {
  font-family: 'AlquiOK Sans', 'AlquiOK Sans Fallback', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  color: var(--muted);
}
.site-header a,
.site-footer a,
.site-header button,
.site-footer button {
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  -webkit-tap-highlight-color: transparent;
}
.site-header img,
.site-footer img {
  display: block;
  max-width: 100%;
  height: auto;
}
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  margin: 0;
  padding: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.site-skip {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
}
.site-skip:focus {
  transform: translateY(0);
}
.site-header-inner {
  display: flex;
  width: 100%;
  max-width: var(--content);
  min-height: 5rem;
  margin: 0 auto;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-brand {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: var(--ink);
}
.site-brand img {
  width: min(12.5rem, 45vw);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0 auto;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  min-width: 3rem;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 2px solid transparent;
  border-radius: 0.7rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--soft-green);
  color: var(--ink);
}
.site-nav a[aria-current='page'] {
  background: var(--soft-green);
  color: var(--ink);
}
.site-nav a.site-nav-login {
  min-width: 7.5rem;
  margin-left: 0.5rem;
  border-color: var(--action);
  background: var(--action);
  color: var(--surface);
}
.site-nav a.site-nav-login:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
  color: var(--surface);
}
.site-nav a.site-nav-login[aria-current='page'] {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--action);
}
.site-menu-toggle {
  display: none;
  min-width: 3rem;
  height: 3rem;
  min-height: 3rem;
  margin: 0;
  padding: 0.4rem 0.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--action);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--surface);
  border-radius: 0.5rem;
}
.site-footer {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: var(--background);
  border-top: 1px solid var(--border);
}
.site-footer-inner {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
  grid-template-columns: minmax(15rem, 1.35fr) repeat(4, minmax(9.375rem, 1fr));
  column-gap: 2rem;
  row-gap: 2rem;
  align-items: start;
}
.site-footer-col {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.site-footer h2 {
  margin: 0 0 0.35rem;
  padding: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  text-wrap: wrap;
}
.site-footer-col a,
.site-footer-cookies {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 3rem;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
  cursor: pointer;
}
.site-footer-col a:hover,
.site-footer-cookies:hover {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer-brand {
  min-height: 3rem;
}
.site-footer-brand img {
  width: min(11rem, 100%);
  aspect-ratio: 252 / 64;
}
.site-footer-note {
  max-width: 17rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
@media (max-width: 1023px) {
  .site-header-inner {
    flex-wrap: wrap;
    padding: 0.5rem 0;
    gap: 0.5rem 1rem;
  }
  html.menu-ready .site-menu-toggle {
    display: inline-flex;
  }
  .site-nav {
    width: 100%;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding-bottom: 0.75rem;
  }
  .site-nav a {
    justify-content: flex-start;
  }
  .site-nav a.site-nav-login {
    min-width: 0;
    margin: 0.25rem 0 0;
    justify-content: center;
  }
  html.menu-ready .site-nav:not([data-open='true']) {
    display: none;
  }
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer-brand-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
  .site-footer-col a,
  .site-footer-cookies {
    overflow-wrap: anywhere;
  }
}
@media print {
  .site-header,
  .site-footer {
    display: none;
  }
}
/* PR-D20 · Pie: más jerarquía, sello de confianza y barra inferior. */
.site-footer {
  background: linear-gradient(180deg, var(--background), #eef4f1);
}
.site-footer-inner {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: 2rem;
}
.site-footer h2 {
  margin-bottom: 0.5rem;
  color: var(--action);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-footer-col a,
.site-footer-cookies {
  min-height: 2.5rem;
  color: var(--ink);
  font-size: 0.9375rem;
}
.site-footer-trust {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.site-footer-trust li {
  position: relative;
  padding-left: 1.625rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.site-footer-trust li::before {
  position: absolute;
  top: 0.1rem;
  left: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5f58' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E")
      center / 0.75rem no-repeat,
    var(--soft-green);
  content: '';
}
.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.site-footer-bottom p {
  margin: 0;
}
.site-footer-bottom a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer-bottom a:hover {
  color: var(--action);
}

/* PR-D28 · Enlace a X destacado en el pie (logotipo: Simple Icons, CC0-1.0). */
.site-footer-col a.site-footer-x {
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.site-footer-col a.site-footer-x svg {
  flex: none;
  width: 1rem;
  height: 1rem;
}
.site-footer-col a.site-footer-x:hover {
  background: var(--action);
  color: var(--surface);
  text-decoration: none;
}
.site-footer-x-handle {
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .site-footer-col a.site-footer-x {
    transition: none;
  }
}
