/* Tiza · el marco común de las webs (27/11): cabecera y pie iguales en tiza-app.com y en cada deporte.
   Colores: los de la pizarra de cada web (--bg, --foot, tema.js) o, en tiza-app.com, --tz-head (hub.css).
   Hay una copia igual en sites/tiza-web/assets/marco.css. Si se cambia una, cambiar la otra. */
.tz-top, .tz-foot { --tz-ink: #F3EFEE; --tz-dim: rgba(243, 239, 238, .78); --tz-line: rgba(243, 239, 238, .14); --tz-go: #FFD23F; --tz-go-ink: #241C00;
  --tz-f: 'Figtree', 'Segoe UI', system-ui, sans-serif; font-family: var(--tz-f); color: var(--tz-ink); }
.tz-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.tz-skip { position: absolute; left: -999px; top: 8px; background: #FFD23F; color: #241C00 !important; padding: 8px 14px; border-radius: 8px; z-index: 60; font: 700 15px 'Figtree', system-ui, sans-serif; text-decoration: none; }
.tz-skip:focus { left: 8px; }

/* cabecera */
.tz-top { position: sticky; top: 0; z-index: 40; background: var(--tz-head, color-mix(in srgb, var(--bg, #0F2B1E) 94%, transparent)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--tz-line); transition: background-color 1.1s ease; }
.tz-top .tz-wrap { position: relative; display: flex; align-items: center; gap: 28px; min-height: 68px; }
.tz-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; border-radius: 8px; }
.tz-logo img { display: block; height: 36px; width: auto; max-width: none; transition: opacity .25s ease; }
.tz-logo img.swap { opacity: 0; }
.tz-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; min-width: 0; }
.tz-nav > a { color: var(--tz-dim); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.tz-nav > a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.tz-nav > a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--tz-go); border-radius: 0; }
.tz-nav-m { display: none; }
.tz-side { display: flex; align-items: center; gap: 14px; flex: none; }
.tz-acts { display: flex; align-items: center; gap: 10px; }
.tz-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font: 700 14px/1 var(--tz-f); text-decoration: none; white-space: nowrap; border: 2px solid transparent; }
.tz-btn.go { background: var(--tz-go); color: var(--tz-go-ink); }
.tz-btn.go:hover { background: #FFE27A; color: var(--tz-go-ink); }
.tz-btn.ghost { border-color: rgba(243, 239, 238, .45); color: var(--tz-ink); }
.tz-btn.ghost:hover { border-color: #fff; color: #fff; }
.tz-lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.tz-lang button { font: 700 12px/1 var(--tz-f); color: var(--tz-dim); background: none; border: 0; border-radius: 999px; padding: 0 9px; min-height: 30px; min-width: 34px; cursor: pointer; }
.tz-lang button:hover { color: #fff; }
.tz-lang button[aria-pressed="true"] { background: var(--tz-ink); color: #142019; }
.tz-quick { display: none; }
.tz-menu { display: none; margin-left: auto; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; border-radius: 10px; color: #fff; cursor: pointer; }
.tz-menu:hover { background: rgba(255, 255, 255, .08); }
.tz-menu path { transition: transform .2s ease, opacity .2s ease; transform-origin: 12px 12px; }
.tz-top.menu-open .tz-m1 { transform: translateY(5px) rotate(45deg); }
.tz-top.menu-open .tz-m2 { opacity: 0; }
.tz-top.menu-open .tz-m3 { transform: translateY(-5px) rotate(-45deg); }
.tz-top :focus-visible, .tz-foot :focus-visible { outline: 3px solid var(--tz-go); outline-offset: 3px; }

/* ☰: en pantallas estrechas, o si no cabe todo en una fila (marco.js pone «compact») */
@media (max-width: 980px) {
  .tz-top .tz-wrap { gap: 12px; min-height: 60px; }
}
@media (max-width: 980px) { .tz-top .tz-menu, .tz-top .tz-quick { display: inline-flex; } .tz-top .tz-side, .tz-top .tz-nav:not(.open) { display: none; } }
.tz-top.compact .tz-menu, .tz-top.compact .tz-quick { display: inline-flex; }
.tz-top .tz-quick { margin-left: auto; min-height: 38px; padding: 0 14px; font-size: 14px; }
.tz-top .tz-quick + .tz-menu { margin-left: 0; }
.tz-top.menu-open .tz-quick { visibility: hidden; }
.tz-top.tight .tz-quick { display: none; }
.tz-top.compact .tz-side, .tz-top.compact .tz-nav:not(.open) { display: none; }
.tz-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 32px 20px; background: var(--tz-menu-bg, var(--bg, #0F2B1E)); border-bottom: 1px solid var(--tz-line); box-shadow: 0 18px 30px rgba(0, 0, 0, .35); max-height: calc(100vh - 68px); overflow: auto; }
.tz-nav.open > a { font-size: 17px; padding: 13px 0; border-radius: 0; color: var(--tz-ink); border-bottom: 1px solid var(--tz-line); }
.tz-nav.open > a[aria-current="page"] { box-shadow: none; color: var(--tz-go); }
.tz-nav.open .tz-nav-m { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 16px; }
.tz-nav.open .tz-nav-m .tz-btn { min-height: 44px; font-size: 15px; }
.tz-nav.open .tz-nav-m .tz-lang { margin-left: auto; }
.tz-nav.open .tz-nav-m .tz-lang button { min-height: 36px; }
@media (max-width: 560px) {
  .tz-wrap { padding: 0 20px; }
  .tz-logo img { height: 30px; }
  .tz-nav.open { padding: 4px 20px 18px; }
  .tz-nav.open .tz-nav-m .tz-btn { flex: 1 1 100%; }
  .tz-nav.open .tz-nav-m .tz-lang { margin: 6px auto 0; }
}
@media (max-width: 360px) { .tz-logo img { height: 26px; } .tz-top .tz-quick { padding: 0 11px; font-size: 13px; } }

/* pie */
.tz-foot { background: var(--tz-foot, var(--foot, #0A1C14)); color: rgba(243, 239, 238, .72); padding: 44px 0 30px; font-size: 14px; line-height: 1.5; }
.tz-foot .tz-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 40px; align-items: start; }
.tz-foot-a { display: flex; flex-direction: column; gap: 10px; }
.tz-foot .tz-logo img { height: 30px; }
.tz-what { margin: 0; max-width: 34ch; }
.tz-foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; max-width: 820px; }
.tz-foot a { color: var(--tz-ink); text-decoration: none; }
.tz-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tz-foot-b { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--tz-line); padding-top: 18px; font-size: 13px; }
.tz-also, .tz-copy { margin: 0; }
.tz-also { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tz-also span { color: rgba(243, 239, 238, .72); }
@media (max-width: 760px) {
  .tz-foot .tz-wrap { grid-template-columns: 1fr; }
  .tz-foot-nav { justify-content: flex-start; }
  .tz-foot-nav a { padding: 4px 0; }
}
/* mientras se pinta, el hueco de la cabecera ya ocupa su sitio (no salta la página) */
[data-marco="top"]:empty { min-height: 69px; background: var(--tz-head, var(--bg, #0F2B1E)); }
@media (max-width: 980px) { [data-marco="top"]:empty { min-height: 61px; } }
