/* informes/activos/base.css → /informes/base.css
   Base de los informes (/metodo/ y /componentes/): tipografía, colores, cabecera con el ojo, botones ES / EN y pie.
   Sale de la hoja de alekssanchez.com (de donde vino el método el 18-10-2026), sin lo que solo usaba su portada.
   Misma paleta y tipografía que el resto de profesional: fondo claro, tinta navy #0a2540, acento morado #635bff, Inter. */

/* Inter servida desde esta web (/informes/fuentes/, la misma de Google Fonts, licencia OFL): sin peticiones a Google (que recibiria
   la IP de cada visitante) y con una politica de seguridad que solo permite fuentes propias. Es variable: un archivo
   sirve para todos los pesos (400-700). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/informes/fuentes/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/informes/fuentes/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --fondo: #f6f9fc;
  --superficie: #ffffff;
  --tinta: #0a2540;
  --texto: #425466;
  --tenue: #6b7c93;          /* 4,6:1 sobre blanco */
  --borde: #e3e8ee;
  --borde-fuerte: #c9d3df;
  --primario: #635bff;
  --primario-hover: #5249e8;
  --vivo: #0e9f6e;
  --vivo-fondo: #e7f8f1;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(10, 37, 64, 0.06), 0 4px 14px rgba(10, 37, 64, 0.05);
  --sombra-hover: 0 2px 4px rgba(10, 37, 64, 0.06), 0 12px 28px rgba(10, 37, 64, 0.10);
  color-scheme: light;
}

/* Idioma: el HTML lleva cada texto en ES y EN; se muestra solo el del <html lang>. */
html[lang="es"] body [lang="en"],
html[lang="en"] body [lang="es"] {
  display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primario);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 {
  color: var(--tinta);
  margin: 0;
  line-height: 1.2;
}

.envoltorio {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Cabecera ──────────────────────────────────────────────────────────────── */

.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Logo: el KS (Unbounded 900 en negro sobre un cuadrado hueso), con un filo para que no se pierda sobre el fondo claro */
.marca {
  display: block;
  height: 40px;
  width: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(10, 37, 64, 0.12);
  text-decoration: none;
}

.marca img {
  display: block;
  width: auto;
  height: 100%;
}

.idiomas {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--superficie);
}

.idiomas button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tenue);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.idiomas button[aria-pressed="true"] {
  background: var(--tinta);
  color: #fff;
}

/* ── Pie ───────────────────────────────────────────────────────────────────── */

.pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 48px;
  padding: 20px 0 88px; /* abajo: espacio para el botón flotante de contacto */
  border-top: 1px solid var(--borde);
  color: var(--tenue);
  font-size: 14px;
}

.pie p {
  margin: 0;
}

.pie a {
  color: var(--tinta);
  font-weight: 500;
  text-decoration: none;
}

.pie a:hover {
  text-decoration: underline;
}

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