/* Odisa: sitio estático. Sin fuentes externas, sin JavaScript. Tamaños de texto en rem para que escalen. */

:root {
  color-scheme: light dark;
  --fondo: #ffffff;
  --superficie: #f2f5fa;
  --texto: #141a24;
  --texto-suave: #445066;
  --enlace: #1d4fa8;
  --enlace-hover: #123778;
  --marca: #2f6fdb;
  --sobre-marca: #ffffff;
  --borde: #d3dae6;
  --borde-control: #66738a;
  --foco: #1d4fa8;
  --degradado: linear-gradient(90deg, #86d8cb, #5f95f0, #6e6fe4);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0d121a;
    --superficie: #151c27;
    --texto: #e9eef6;
    --texto-suave: #b0bccd;
    --enlace: #8db3ff;
    --enlace-hover: #bcd2ff;
    --marca: #6e9cf5;
    --sobre-marca: #0d121a;
    --borde: #2a3444;
    --borde-control: #8a97ac;
    --foco: #a9c4ff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--enlace); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--enlace-hover); text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.saltar {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--fondo);
  color: var(--texto);
  border: 2px solid var(--borde-control);
  padding: 0.75rem 1rem;
  min-height: 44px;
  border-radius: 0.5rem;
}
.saltar:focus { top: 1rem; }

.franja { height: 0.5rem; background: var(--degradado); }

.envoltura { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1rem; }

.encabezado { border-bottom: 1px solid var(--borde); background: var(--fondo); }
.encabezado .envoltura {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  color: var(--texto);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
.marca:hover { color: var(--texto); text-decoration: underline; }
.marca img { width: 2.25rem; height: 2.25rem; border-radius: 22%; display: block; }

.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.25rem; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.625rem;
  color: var(--texto);
  text-decoration: none;
  font-weight: 500;
}
.menu a:hover { text-decoration: underline; color: var(--texto); }
.menu a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.14em; text-underline-offset: 0.3em; }
.menu .idioma a {
  border: 2px solid var(--borde-control);
  border-radius: 0.5rem;
  padding: 0 0.875rem;
  margin-left: 0.25rem;
}

main { flex: 1 0 auto; padding: 2rem 0 3rem; }
.texto { max-width: 70ch; }

h1, h2, h3 { line-height: 1.25; color: var(--texto); }
h1 { font-size: 2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1875rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.5rem; }
li { margin: 0 0 0.375rem; }
li > ul, li > ol { margin-top: 0.375rem; }
strong { font-weight: 700; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 0.25rem;
  padding: 0.05em 0.3em;
}

.actualizado { color: var(--texto-suave); margin-bottom: 1.5rem; }

.indice {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem 0.5rem;
  margin: 1.5rem 0 2rem;
}
.indice h2 { font-size: 1.0625rem; margin: 0 0 0.25rem; }
.indice ol { list-style: none; padding: 0; margin: 0; columns: 1; }
.indice a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
}

/* Inicio */
.portada { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.portada img { width: 6rem; height: 6rem; border-radius: 22%; display: block; flex: none; }
.portada h1 { font-size: 2.5rem; margin: 0; }
.portada .lema { margin: 0.25rem 0 0; color: var(--texto-suave); font-size: 1.1875rem; }
.separador { height: 0.375rem; border-radius: 0.1875rem; background: var(--degradado); margin: 1.5rem 0 2rem; max-width: 70ch; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.tarjetas li { margin: 0; }
.tarjetas a {
  display: block;
  height: 100%;
  min-height: 44px;
  padding: 1rem 1.25rem;
  background: var(--superficie);
  border: 2px solid var(--borde-control);
  border-radius: 0.75rem;
  color: var(--texto);
  text-decoration: none;
}
.tarjetas a:hover { border-color: var(--marca); }
.tarjetas strong { display: block; color: var(--enlace); font-size: 1.1875rem; text-decoration: underline; text-underline-offset: 0.18em; }
.tarjetas span { display: block; margin-top: 0.25rem; color: var(--texto-suave); }

.pie { border-top: 1px solid var(--borde); background: var(--superficie); padding: 1.5rem 0 2rem; font-size: 0.9375rem; }
.pie ul { display: flex; flex-wrap: wrap; gap: 0 0.5rem; list-style: none; padding: 0; margin: 0 0 0.5rem; }
.pie li { margin: 0; }
.pie a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem 0 0; }
.pie p { margin: 0 0 0.5rem; color: var(--texto-suave); }
.pie p a { min-height: 0; padding: 0; display: inline; }

.boton {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  background: var(--marca);
  color: var(--sobre-marca);
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}
.boton:hover { color: var(--sobre-marca); text-decoration: underline; }

@media (min-width: 40rem) {
  .indice ol { columns: 2; column-gap: 2rem; }
  main { padding: 3rem 0 4rem; }
  h1 { font-size: 2.25rem; }
}

@media print {
  .saltar, .menu, .franja { display: none; }
  body { font-size: 11pt; }
}
