/* ═══════════════════════════════════════════════════════════
   RANCOR · Base común: reset, cabecera (estilo Hangar) y pie.
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--rojo-hover); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--rojo); color: var(--blanco); padding: 10px 16px;
  font-family: var(--f-hangar); font-weight: 700; text-transform: uppercase;
}
.saltar:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Franja de peligro (común a todo el sitio) ── */
.hz { background: var(--franja-peligro); }

/* ── Cabecera común ── */
.cabecera {
  background: var(--hangar-fondo);
  border-bottom: 2px solid var(--hangar-junta);
  font-family: var(--f-hangar);
}
.cabecera__franja { height: 14px; }
.cabecera__barra {
  max-width: var(--ancho-hangar);
  margin: 0 auto;
  padding: 20px var(--margen-lateral);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px;
}
.cabecera__marca { display: flex; align-items: center; gap: 14px; }
.cabecera__marca img { width: 48px; height: 48px; }
.cabecera__nombre {
  font-family: var(--f-plantilla);
  font-size: 30px; letter-spacing: 0.1em; color: var(--hueso);
  line-height: 1;
}
.cabecera__nav {
  display: flex; flex-wrap: wrap; gap: 28px;
  font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.12em;
}
.cabecera__nav a { color: var(--gris-texto-claro); padding-bottom: 2px; border-bottom: 3px solid transparent; }
.cabecera__nav a:hover { color: var(--blanco); }
.cabecera__nav a[aria-current="page"] { color: var(--blanco); border-bottom-color: var(--rojo); }

/* Botón rojo del Hangar: lo usa la cabecera y las páginas de miembros */
.hg-btn {
  display: inline-block;
  font-family: var(--f-hangar); font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--rojo); color: var(--blanco);
  padding: 12px 20px; border: 0; cursor: pointer;
  transition: background-color .12s;
}
.hg-btn:hover { background: var(--rojo-hover); color: var(--blanco); }
.hg-btn--grande { font-size: 18px; padding: 16px 28px; }

.cabecera__sesion { display: inline-flex; align-items: center; gap: 10px; }
.cabecera__avatar { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--negro); }
.cabecera__cuenta { display: flex; align-items: stretch; gap: 8px; }
.cabecera__cuenta form { display: flex; }
.cabecera__salir {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-hangar); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 0.1em;
  background: transparent; color: var(--hueso); border: 2px solid var(--gris-remache); padding: 0 16px; cursor: pointer;
  transition: border-color .12s, color .12s;
}
.cabecera__salir:hover { border-color: var(--rojo); color: var(--blanco); }
@media (max-width: 480px) {
  .cabecera__salir { padding: 0 12px; }
  .cabecera__salir-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 820px) {
  .cabecera__nav { order: 3; width: 100%; gap: 20px; font-size: 16px; }
}

/* ── Contenedor y pie ── */
.contenedor {
  max-width: calc(var(--ancho, 1200px) + 2 * var(--margen-lateral));
  margin: 0 auto;
  padding: 0 var(--margen-lateral);
}

.pie {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 24px 0 40px;
  font-size: 14px;
}
.pie__marca { font-weight: 800; }
.pie__enlaces { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pie__enlaces a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pie__enlaces a:hover { color: var(--hueso); }
