/* SIEMPRE BIEN · v54 (18/11/2026, v8) · lo común a todas las páginas interiores:
   la misma barra de menú que la portada, el logo centrado debajo, la misma escala y el mismo pie.
   Los valores de barra, menú y botones son los de v53.css (portada). Se carga la última. */

/* ---------- barra de menú: idéntica a la de la portada ---------- */
body .barra52 { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; height: auto; min-height: 60px; }
body .barra52 .menu { position: static; inset: auto; width: auto; }
body .barra52 .menu ul { display: flex; gap: calc(48 * var(--u)); justify-content: center; }
body .barra52 .menu a { position: static; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: max(17px, var(--f23)); line-height: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body .barra52 .menu a::after { content: none; }
/* página activa: subrayado (forma, no color) */
body .barra52 .menu a[aria-current] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; }
body .barra52 .menu a:focus-visible { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; }
@media (hover: hover) and (pointer: fine) { body .barra52 .menu a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; } }

/* ---------- logo de las interiores: centrado bajo el menú, como en la portada pero pequeño ---------- */
.logo54 { display: flex; flex-direction: column; align-items: center; width: max-content; margin: calc(12 * var(--u)) auto calc(56 * var(--u)); font-family: var(--serif); font-size: max(40px, calc(52 * var(--u))); line-height: 0.74; letter-spacing: -0.01em; color: var(--tinta); text-decoration: none; }
.logo54 span:last-child { display: flex; align-items: flex-start; padding-left: 0.46em; }
.logo54 .ast { width: 0.42em; height: 0.42em; margin: 0.03em 0 0 0.04em; flex: none; }
.logo54 .ast g { stroke-width: 4.2; }
.logo54:hover { text-decoration: none; }

/* ---------- fichas: «Cerrar» deja de flotar sobre el menú y va centrado bajo el logo, al cuerpo del menú ---------- */
body.int .cerrar { position: relative; inset: auto; left: auto; top: auto; translate: none; display: block; width: max-content; margin: calc(-32 * var(--u)) auto 0; font-size: max(17px, var(--f23)); line-height: 1.6; }
body.int .arriba a { font-size: max(17px, var(--f23)); }

/* ---------- escala: el contenido de las interiores se dibuja en una columna del 82 % del ancho.
   Como todas sus medidas cuelgan de la unidad --u (cqi), tipos, márgenes y columnas bajan juntos un 18 %:
   el texto pasa de 20,8 a 17 px en 1440 y queda por debajo del menú, igual que en la portada. ---------- */
@media (min-width: 960px) {
  body.int > main { container-type: inline-size; width: 82%; margin-inline: auto; }
  :where(body.int > main > *) { font-size: var(--f25); } /* el cuerpo heredado también se mide dentro de la columna */
}

/* ---------- pie: el de la portada, en todas ---------- */
body.int .pie { margin-top: 96px; padding-bottom: 32px; text-align: center; }
body.int .pie .donde { font-size: 16px; line-height: 1.4; }
body.int .redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; font-size: max(17px, var(--f23)); line-height: 1; }
body.int .redes a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--tinta); border-radius: 999px; background: none; color: var(--tinta);
  font-size: inherit; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out; }
body.int .redes a:focus-visible { background: var(--tinta); color: var(--papel); text-decoration: none; outline: 2px solid var(--tinta); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { body.int .redes a:hover { background: var(--tinta); color: var(--papel); text-decoration: none; } }
body.int .redes a:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { body.int .redes a { transition: none; } body.int .redes a:active { transform: none; } }

@media (max-width: 959px) {
  body .barra52 { min-height: 56px; }
  body .barra52 .menu ul { gap: 18px; }
  body .barra52 .menu a { font-size: 17px; }
  .logo54 { margin: 12px auto 8px; font-size: 44px; }
  body.int .cerrar { margin: 8px auto 0; font-size: 17px; }
  body.int .arriba a { font-size: 17px; }
  /* texto de lectura a 16 px y titulares contenidos, en la escala de la portada */
  body.int main { --f16: max(16px, calc(13.2 * var(--u))); font-size: var(--f16); }
  body.int main h1, body.int main h2.gigante { font-size: clamp(34px, 10.5vw, 42px) !important; line-height: 1.06 !important; }
  body.int .pie { margin-top: 64px; }
  body.int .pie .donde { font-size: 15px; }
  body.int .redes { font-size: 15px; }
}
@media (min-width: 513px) and (max-width: 959px) { body .barra52 { width: 100vw; margin-left: calc(50% - 50vw); } }
@media (max-width: 512px) {
  body.int .redes { flex-direction: column; align-items: stretch; gap: 8px; width: calc(100vw - 32px); max-width: 100%; margin-inline: auto; }
  body.int .redes a { display: flex; width: 100%; box-sizing: border-box; }
}

/* ---------- pulido (repaso con skills, 18/11): interlineado de lectura y titulares equilibrados.
   El texto corrido estaba a 1,15; pasa a 1,4 (45–75 caracteres por línea piden 1,4–1,6). Listas y textos cortos, a 1,25–1,3. ---------- */
body.int main .columnas, body.int main .cuerpo-ancho, body.int main .parrafo, body.int main .texto p { line-height: 1.4; text-wrap: pretty; }
body.int main .incluye li, body.int main .socios p, body.int main .escenas49 li { line-height: 1.3; }
body.int main li p { line-height: 1.1; } /* más no cabe en las elipses de las fases */
body.int main .valores li p { line-height: 1.25; }
body.int main li h3 { line-height: 1.15; }
body.int.oficio main li p, body.int.oficio main .no-p { line-height: 1.4; }
body.int main h1, body.int main h2 { text-wrap: balance; }
body.int main a:focus-visible, body .barra52 a:focus-visible, .logo54:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }
body.int main .cuerpo-ancho { max-width: 74ch; } /* medida de lectura: antes llegaba a 134 caracteres por línea */

/* ---------- jurado v8 (18/11) ---------- */
/* fichas: el título va arriba, bajo «Cerrar», antes de los párrafos */
body.ficha .titulo { margin-top: calc(40 * var(--u)); }
body.ficha .entrada { margin-top: calc(64 * var(--u)); }
@media (min-width: 960px) { body.ficha .entrada { column-gap: calc(258 * var(--u)); } }
/* óvalos cobalto: más grandes que el texto, sin pisar las letras */
body.int .ovalo { padding: 0.32em 0.85em; }
body.int .ovalo::after { inset: 0; }
/* Equipo: aire sobre el titular */
body.equipo .g3 { margin-top: calc(71 * var(--u)); }
/* Método: «Nuestra red» */
body.int main .red p { line-height: 1.25; }
@media (max-width: 959px) {
  body.ficha .titulo { margin-top: calc(24 * var(--u)); }
  body.ficha .entrada { margin-top: calc(28 * var(--u)); }
  body.equipo .g3 { margin-top: calc(40 * var(--u)); }
  body.int main li p { line-height: 1.25; }
}
body.int .arriba .ovalo, body.int .hablamos .ovalo { padding: 0.45em 1em; line-height: 1.2; }

/* ---------- nada se pisa (18/11, condición de Álvaro) ---------- */
/* los asteriscos grandes de los diagramas caían sobre las líneas de las elipses: fuera. Quedan los asteriscos sueltos entre secciones. */
body.int .chispa { display: none; }
/* Método: las dos elipses ya no se cruzan; «Nuestra red» va debajo, con aire */
@media (min-width: 960px) {
  body.int .diagrama { height: calc(900 * var(--u) + 2 * var(--extra, 0px)); }
  body.int .e2 { top: calc(470 * var(--u) + var(--extra, 0px)); }
  body.int .red { top: calc(645 * var(--u) + 1.5 * var(--extra, 0px)); }
}
/* óvalos: el texto queda dentro con margen en las cuatro esquinas */
body.int .ovalo, body.int .arriba .ovalo, body.int .hablamos .ovalo { padding: 0.65em 1.3em; line-height: 1.2; }
body.int main .columnas, body.int main .columnas p { columns: auto; column-count: 1; max-width: 74ch; } /* entradillas cortas: una sola columna, sin partir la frase en dos */
