/* Taller Austral · estilos comunes del sitio (18-nov-2026)
   Cabecera, panel, pantalla completa y pie que genera comun/cabecera.js. Ver comun/LEEME.md.
   Referencia visual: la cabecera de la landing (LINEAMIENTOS_GRAFICOS_TA.md). */

/* ---------- Fuentes (locales, en vendor/fonts) ---------- */
@font-face { font-family: "TeX Gyre Adventor"; src: local("TeX Gyre Adventor"), local("TeXGyreAdventor-Regular"), url("../vendor/fonts/texgyreadventor-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../vendor/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --ta-cine: #161616;
  --ta-turba: #3E3A36;
  --ta-hueso: #F1F0EC;
  --ta-calido: #6B645C;
  --ta-texto: #1A1A1A;
  --ta-verde: #3B6D11;
  --ta-blanco: #fff;
  --ta-tenue: rgba(255,255,255,.72);
  --ta-linea: rgba(255,255,255,.22);
  --ta-margen: clamp(20px, 4vw, 64px);
  --ta-fuente: "Century Gothic", "TeX Gyre Adventor", sans-serif;
  --ta-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ta-cabecera-alto: 88px;
  --ta-alto: 100vh;
}
@supports (height: 100dvh) { :root { --ta-alto: 100dvh; } }
@media (max-width: 760px) { :root { --ta-cabecera-alto: 72px; } }

/* ---------- Utilidades ---------- */
.ta-mono { font-family: var(--ta-mono); font-weight: 400; letter-spacing: .04em; }
.ta-fl { display: inline-block; transition: transform .4s ease; }
a:hover .ta-fl, button:hover .ta-fl { transform: translateX(.35em); }
.ta-oculto { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ta-bajo-cabecera { padding-top: var(--ta-cabecera-alto); }
html.ta-con-cabecera { scroll-padding-top: calc(var(--ta-cabecera-alto) + 12px); }

/* ---------- Cabecera: logo · barra · ⛶ · ☰ sobre la huincha negra ----------
   --ta-huincha (0 a 1): transparente sobre la portada (data-portada="si"), negra en el resto. */
.ta-cabecera { position: fixed; inset: 0 0 auto 0; height: var(--ta-cabecera-alto); z-index: 50; box-sizing: border-box; display: flex; align-items: center; gap: clamp(16px, 2.6vw, 48px); margin: 0; padding: 0 var(--ta-margen); color: var(--ta-blanco); font-family: var(--ta-fuente); pointer-events: none; transition: transform .35s ease; }
.ta-cabecera::before { content: ""; position: absolute; inset: 0; background: var(--ta-cine); opacity: var(--ta-huincha, 1); z-index: -1; }
.ta-menu-abierto .ta-cabecera::before { opacity: 1; }
.ta-cabecera *, .ta-cabecera *::before, .ta-cabecera *::after, .ta-panel, .ta-panel *, .ta-salir, .ta-aviso { box-sizing: border-box; }
.ta-cabecera a, .ta-cabecera button { pointer-events: auto; }
.ta-cabecera-logo { display: block; flex: none; }
.ta-cabecera-logo img { display: block; width: auto; height: calc(var(--ta-cabecera-alto) - 20px); filter: invert(1); }

.ta-barra { flex: 1; min-width: 0; display: flex; justify-content: center; }
.ta-barra ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; white-space: nowrap; }
.ta-barra li { display: flex; align-items: center; }
.ta-barra li + li::before { content: "·"; margin: 0 1em; color: rgba(255,255,255,.62); font-family: var(--ta-mono); }
.ta-barra a { display: block; padding: 10px 0 6px; color: rgba(255,255,255,.88); text-decoration: none; font-family: var(--ta-mono); font-weight: 400; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid transparent; transition: color .3s ease, border-color .3s ease; }
.ta-barra a:hover { color: var(--ta-blanco); border-bottom-color: rgba(255,255,255,.5); }
.ta-barra a[aria-current="page"] { color: var(--ta-blanco); border-bottom-color: var(--ta-blanco); }
.ta-cabecera[data-portada] .ta-barra a { text-shadow: 0 0 14px rgba(0,0,0,.45); }
.ta-cabecera[data-portada] .ta-cabecera-pantalla svg { filter: drop-shadow(0 0 6px rgba(0,0,0,.55)); }

.ta-acciones { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.ta-cabecera-pantalla { width: 44px; height: 44px; display: grid; place-items: center; font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; opacity: .88; transition: opacity .3s ease; }
.ta-cabecera-pantalla:hover { opacity: 1; }
.ta-cabecera-pantalla svg { display: block; }
.ta-cabecera-menu { width: 44px; height: 44px; display: grid; align-content: center; justify-items: end; gap: 7px; font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; }
.ta-cabecera-menu i { display: block; width: 28px; height: 2px; background: var(--ta-blanco); transition: transform .4s ease, opacity .3s ease, width .4s ease; }
.ta-cabecera-menu:hover i:nth-child(2) { width: 18px; }
.ta-menu-abierto .ta-cabecera-menu i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.ta-menu-abierto .ta-cabecera-menu i:nth-child(2) { opacity: 0; }
.ta-menu-abierto .ta-cabecera-menu i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.ta-cabecera :focus-visible, .ta-panel :focus-visible, .ta-salir:focus-visible { outline: 1px solid var(--ta-blanco); outline-offset: 4px; }

/* Bajo unos 1.000 px la barra se oculta: sus enlaces encabezan el panel. */
@media (max-width: 1000px) { .ta-barra { visibility: hidden; } }

/* ---------- Panel ☰ a pantalla completa ---------- */
.ta-panel { position: fixed; inset: 0; z-index: 40; margin: 0; background: var(--ta-cine); color: var(--ta-blanco); font-family: var(--ta-fuente); display: flex; flex-direction: column; padding: calc(var(--ta-cabecera-alto) + clamp(24px, 6vh, 72px)) var(--ta-margen) calc(var(--ta-margen) + 48px); opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; overflow-y: auto; overscroll-behavior: contain; }
.ta-menu-abierto .ta-panel { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.ta-panel-cuerpo { margin: auto 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.ta-panel ol { list-style: none; margin: 0; padding: 0; }
.ta-panel a { color: inherit; text-decoration: none; }
.ta-panel-sitio { display: grid; gap: clamp(2px, 1vh, 12px); }
.ta-panel-sitio a { display: inline-block; font-weight: 700; font-size: clamp(1.5rem, min(5.6vh, 9vw), 3.2rem); letter-spacing: .01em; line-height: 1.12; padding: 4px 0; opacity: .6; transition: opacity .35s ease, letter-spacing .5s ease; }
.ta-panel-sitio a:hover, .ta-panel-sitio a:focus-visible, .ta-panel-sitio a[aria-current="page"] { opacity: 1; letter-spacing: .02em; }
.ta-panel-grupos { display: grid; gap: clamp(24px, 5vh, 48px); }
.ta-panel-grupo h2 { margin: 0 0 12px; font-family: var(--ta-mono); font-weight: 400; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ta-tenue); }
.ta-panel-grupo h2 a { border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.ta-panel-grupo ol { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ta-panel-grupo li a { display: inline-block; font-weight: 700; font-size: clamp(1rem, 2.2vh, 1.3rem); line-height: 1.3; padding: 4px 0; opacity: .72; transition: opacity .3s ease; }
.ta-panel-grupo li a:hover, .ta-panel-grupo li a:focus-visible { opacity: 1; }
.ta-panel-pie { position: absolute; left: var(--ta-margen); right: var(--ta-margen); bottom: var(--ta-margen); margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-family: var(--ta-mono); font-weight: 400; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ta-tenue); }
html.ta-menu-abierto { overflow: hidden; }
@media (max-width: 1000px) {
  .ta-panel-cuerpo { grid-template-columns: 1fr; margin: 0; }
  .ta-panel-pie { position: static; margin-top: 40px; }
  .ta-panel { padding-bottom: var(--ta-margen); }
}
@media (max-width: 760px) { .ta-panel-pie { font-size: .66rem; letter-spacing: .1em; } }

/* ---------- Pantalla completa ----------
   .ta-pantalla: API Fullscreen activa. .ta-inmersivo: iPhone y Safari móvil (sin API).
   La cabecera se oculta y vuelve al acercar el puntero o tocar el borde superior (.ta-borde). */
html.ta-pantalla .ta-cabecera, html.ta-inmersivo .ta-cabecera { transform: translateY(-101%); }
html.ta-pantalla.ta-cab-ver .ta-cabecera, html.ta-inmersivo.ta-cab-ver .ta-cabecera, html.ta-menu-abierto .ta-cabecera { transform: none; }
html.ta-pantalla.ta-cab-ver .ta-cabecera::before, html.ta-inmersivo.ta-cab-ver .ta-cabecera::before { opacity: 1; }
html.ta-inmersivo, html.ta-inmersivo body { min-height: var(--ta-alto); }
.ta-borde { position: fixed; inset: 0 0 auto 0; height: 10px; z-index: 49; display: none; }
html.ta-pantalla .ta-borde, html.ta-inmersivo .ta-borde { display: block; }
@media (hover: none) { .ta-borde { height: 28px; } }
.ta-salir { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 60; width: 44px; height: 44px; display: none; place-items: center; margin: 0; padding: 0; color: var(--ta-blanco); background: rgba(22,22,22,.74); border: 1px solid rgba(255,255,255,.3); border-radius: 2px; cursor: pointer; transition: opacity .6s ease; }
html.ta-pantalla .ta-salir, html.ta-inmersivo .ta-salir { display: grid; }
.ta-salir.ta-quieto { opacity: 0; }
.ta-aviso { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; margin: 0; padding: 10px 16px; font-family: var(--ta-mono); font-weight: 400; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ta-blanco); background: rgba(22,22,22,.86); border: 1px solid rgba(255,255,255,.22); pointer-events: none; white-space: nowrap; animation: ta-aviso .6s ease both; }
@keyframes ta-aviso { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Modo charla y página dentro de presentar.html ---------- */
.ta-charla .ta-cabecera, .ta-charla .ta-panel, .ta-charla .ta-borde, .ta-charla .ta-aviso { display: none; }
.ta-en-marco .ta-cabecera, .ta-en-marco .ta-panel, .ta-en-marco .ta-borde, .ta-en-marco .ta-salir, .ta-en-marco .ta-aviso { display: none !important; }

/* ---------- Pie común ---------- */
.ta-pie { box-sizing: border-box; margin: 0; background: var(--ta-hueso); color: var(--ta-cine); padding: clamp(40px, 9vh, 96px) var(--ta-margen); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; font-family: var(--ta-fuente); }
.ta-pie a { color: inherit; text-decoration: none; }
.ta-pie-logo { display: block; width: clamp(150px, 15vw, 230px); height: auto; }
.ta-pie-textos { display: grid; gap: 14px; justify-items: end; }
.ta-pie-datos, .ta-pie-enlaces { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 36px; font-family: var(--ta-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.ta-pie-enlaces { font-size: .7rem; color: #4a4540; }
.ta-pie-datos a, .ta-pie-enlaces a { border-bottom: 1px solid rgba(22,22,22,.3); }
.ta-pie-datos a, .ta-pie-datos span, .ta-pie-enlaces a { display: inline-block; padding: 6px 0; }
.ta-pie :focus-visible { outline: 1px solid var(--ta-cine); outline-offset: 4px; }
@media (max-width: 760px) { .ta-pie-textos { justify-items: start; } .ta-pie-datos, .ta-pie-enlaces { justify-content: flex-start; gap: 4px 24px; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .ta-fl, .ta-cabecera, .ta-cabecera-menu i, .ta-panel, .ta-panel a, .ta-salir, .ta-aviso { transition: none; animation: none; }
}
