/* Cabecera compartida por todas las páginas: se queda arriba al bajar, el logo se achica y se ve dónde estás.
   Se carga DESPUÉS del <style> de cada página para sobrescribir su `header`. El JS (cabecera.js) pone la clase
   `reducida` en <html> al hacer scroll. */
html{scroll-padding-top:84px}
header{
  position:sticky;top:0;z-index:20;padding:12px 0;
  background:rgba(247,243,238,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border-bottom:1px solid transparent;
  transition:padding .2s ease,border-color .2s ease,box-shadow .2s ease;
}
header .wrap{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap}
header img{height:64px;width:auto;transition:height .2s ease}
header .ruta{
  display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;min-width:0;
  font-size:.98rem;color:#566069;
}
header .ruta a{color:#566069;text-decoration:none;font-weight:600;padding:6px 2px}
header .ruta a:hover{color:#8A5410;text-decoration:underline}
header .ruta [aria-current="page"]{color:#263038;font-weight:700}
header .ruta .sep{opacity:.55}
html.reducida header{padding:6px 0;border-bottom-color:#E0D8CE;box-shadow:0 4px 14px rgba(38,48,56,.07)}
html.reducida header img{height:34px}
@media (min-width:820px){
  header img{height:76px}
  html.reducida header img{height:38px}
}
@media (prefers-reduced-motion:reduce){header,header img{transition:none}}
