/* topo.fly | Componentes globales v0.1
   Cabecera sticky y pie editorial, sin alterar logo, menu ni contenidos.
   Cargar DESPUES de navegacion.css y de las hojas locales.
*/
:root {
  --tf-cream: #F2F0E9;
  --tf-graphite: #19211F;
  --tf-gray: #858B87;
  --tf-line: #D4D5CE;
}

html {
  scroll-padding-top: 90px;
}

/* Cabecera persistente, en el flujo del documento */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
  background: rgba(242, 240, 233, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tf-line);
}

/* El desplegable debe quedar por encima del contenido */
.site-header .site-nav {
  z-index: 1001;
}

/* Footer compartido: geometria aprobada de CAD y COMPARAR */
.site-footer {
  border-top: 1px solid var(--tf-line);
  padding: 28px 5vw 44px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  background: var(--tf-cream);
  color: var(--tf-gray);
  font: 10px/1.6 monospace;
  letter-spacing: 0;
}

.site-footer span:last-child {
  text-align: right;
}

@media (max-width: 600px) {
  html { scroll-padding-top: 76px; }
  .site-header { min-height: 64px; }
  .site-footer { display: block; padding: 24px 7vw 34px; }
  .site-footer span { display: block; margin-bottom: 8px; }
  .site-footer span:last-child { text-align: left; }
}
