/* Wiki de Virtual Fútbol · hoja de estilo (15-10-2026, @Susi). A mano, sin Tailwind y sin fuentes externas: tipografías del sistema.
   Los colores son los de `escaparate/tailwind.config.js` (la batería `comprobar_wiki.mjs` compara los hex). Peso máximo: 20 KB. */
:root {
  --fondo: #090d12;        /* brand.dark */
  --azul: #00a2ff;         /* brand.primary */
  --rosa: #cc00ff;         /* brand.secondary */
  --ok: #22d18a;
  --texto: #e6e9ef;
  --apagado: #9ba1b0;
  --linea: rgba(255, 255, 255, 0.1);
  --tarjeta: rgba(255, 255, 255, 0.04);
  --ancho-lectura: 46rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background-color: var(--fondo); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--fondo);
  background-image: radial-gradient(ellipse at 15% -10%, rgba(0, 162, 255, 0.12), transparent 55%), radial-gradient(ellipse at 100% 0%, rgba(204, 0, 255, 0.08), transparent 50%);
  background-attachment: fixed;
  color: var(--texto); font: 400 1rem/1.7 var(--sans);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--azul); text-underline-offset: 0.18em; }
a:hover { color: #5cc4ff; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; border-radius: 4px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 0.5rem; top: -4rem; z-index: 100; background: var(--azul); color: #00121f; padding: 0.7rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.saltar:focus { top: 0.5rem; }

/* ── Cabecera ── */
.cab { position: sticky; top: 0; z-index: 50; background: rgba(9, 13, 18, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea); }
.cab-in { display: flex; align-items: center; gap: 0.75rem; max-width: 80rem; margin: 0 auto; padding: 0.5rem 1rem; min-height: 3.5rem; }
.marca { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--texto); text-decoration: none; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; white-space: nowrap; }
.logo-marca { width: 3rem; height: 2rem; flex: none; background: url('/estaticos/logo_icono.webp') center / contain no-repeat; }   /* el logo del juego (96×64) */
.marca small { color: var(--azul); font-weight: 700; letter-spacing: 0.12em; }
.marca .nombre { display: none; }
.buscador { position: relative; flex: 1 1 auto; max-width: 28rem; margin-left: auto; }
.buscador input { width: 100%; min-height: 2.75rem; padding: 0.55rem 0.9rem; border-radius: 10px; border: 1px solid var(--linea); background: rgba(255, 255, 255, 0.06); color: var(--texto); font: inherit; font-size: 1rem; }
.buscador input::placeholder { color: var(--apagado); }
.resultados { position: absolute; left: 0; right: 0; top: calc(100% + 0.35rem); margin: 0; padding: 0.4rem; list-style: none; background: #0d141d; border: 1px solid var(--linea); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); max-height: 70vh; overflow: auto; z-index: 60; }
.resultados a { display: block; padding: 0.6rem 0.7rem; border-radius: 8px; color: var(--texto); text-decoration: none; min-height: 2.75rem; }
.resultados a:hover, .resultados a:focus-visible { background: rgba(0, 162, 255, 0.14); }
.resultados b { display: block; color: #fff; }
.resultados span { display: block; color: var(--apagado); font-size: 0.85rem; line-height: 1.4; }
.resultados .sec { color: var(--azul); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.resultados .nada { padding: 0.8rem; color: var(--apagado); }
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.55rem 1.1rem; border-radius: 10px; font-weight: 700; text-decoration: none; background: var(--ok); color: #06231a; border: 0; cursor: pointer; font-size: 0.95rem; }
.boton:hover { background: #3be3a0; color: #06231a; }
.cab .boton { display: none; }

/* ── Estructura ── */
.pagina { flex: 1 0 auto; width: 100%; max-width: 80rem; margin: 0 auto; padding: 1rem 1rem 3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.menu-movil { border: 1px solid var(--linea); border-radius: 12px; background: var(--tarjeta); }
.menu-movil summary { cursor: pointer; padding: 0.8rem 1rem; min-height: 2.75rem; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.menu-movil summary::-webkit-details-marker { display: none; }
.menu-movil summary::after { content: "▾"; color: var(--azul); }
.menu-movil[open] summary::after { content: "▴"; }
.menu-movil nav { padding: 0 1rem 1rem; }
.menu-lateral { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu h2, .menu .sec-t { margin: 1rem 0 0.25rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--azul); font-weight: 800; }
.menu .sec-t a { color: inherit; text-decoration: none; }
.menu li a { display: block; padding: 0.4rem 0.6rem; border-radius: 8px; color: var(--texto); text-decoration: none; font-size: 0.95rem; line-height: 1.35; min-height: 2.25rem; }
.menu li a:hover { background: rgba(255, 255, 255, 0.07); }
.menu li a[aria-current="page"] { background: rgba(0, 162, 255, 0.16); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--azul); }
.toc { display: none; }

/* ── Contenido ── */
.contenido { min-width: 0; }
.migas { font-size: 0.85rem; color: var(--apagado); margin: 0 0 0.75rem; }
.migas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.migas li + li::before { content: "›"; margin-right: 0.5rem; color: var(--apagado); }
.migas a { color: var(--apagado); }
.migas a:hover { color: #fff; }
.contenido h1 { margin: 0 0 0.5rem; font-size: clamp(1.7rem, 5.5vw, 2.4rem); line-height: 1.15; letter-spacing: -0.01em; background: linear-gradient(90deg, #fff, #9fdcff); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
.meta { margin: 0 0 1.5rem; color: var(--apagado); font-size: 0.85rem; }
.texto { max-width: var(--ancho-lectura); }
.texto > :first-child { margin-top: 0; }
.texto h2 { margin: 2.2rem 0 0.6rem; font-size: 1.4rem; line-height: 1.25; color: #fff; padding-top: 0.4rem; border-top: 1px solid var(--linea); }
.texto h3 { margin: 1.6rem 0 0.4rem; font-size: 1.15rem; line-height: 1.3; color: #fff; }
.texto p, .texto ul, .texto ol { margin: 0 0 1rem; }
.texto ul, .texto ol { padding-left: 1.4rem; }
.texto li { margin: 0.3rem 0; }
.texto li > ul, .texto li > ol { margin: 0.3rem 0 0; }
.texto strong { color: #fff; }
.texto code { font-family: var(--mono); font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 5px; background: rgba(255, 255, 255, 0.09); }
.texto pre { overflow: auto; padding: 0.9rem 1rem; border-radius: 10px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--linea); }
.texto pre code { padding: 0; background: none; }
.texto blockquote { margin: 1.2rem 0; padding: 0.8rem 1rem; border-left: 3px solid var(--azul); background: rgba(0, 162, 255, 0.08); border-radius: 0 10px 10px 0; }
.texto blockquote > :last-child { margin-bottom: 0; }
.texto hr { border: 0; border-top: 1px solid var(--linea); margin: 2rem 0; }
.tabla { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--linea); border-radius: 10px; }
.tabla table { border-collapse: collapse; width: 100%; min-width: 28rem; font-size: 0.95rem; }
.tabla th, .tabla td { padding: 0.55rem 0.8rem; text-align: left; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla th { background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 0.85rem; }
.tabla tr:last-child td { border-bottom: 0; }

/* ── Cierres de página ── */
.sigue { display: grid; gap: 0.75rem; margin: 2.5rem 0 1.5rem; max-width: var(--ancho-lectura); }
.sigue a { display: block; padding: 0.9rem 1rem; border: 1px solid var(--linea); border-radius: 12px; background: var(--tarjeta); text-decoration: none; color: var(--texto); min-height: 2.75rem; }
.sigue a:hover { border-color: var(--azul); }
.sigue small { display: block; color: var(--apagado); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sigue b { color: #fff; }
.cta { max-width: var(--ancho-lectura); margin: 1.5rem 0; padding: 1.2rem; border-radius: 14px; border: 1px solid rgba(34, 209, 138, 0.35); background: rgba(34, 209, 138, 0.08); }
.cta p { margin: 0 0 0.8rem; color: #fff; font-weight: 600; }
.ayuda { margin: 0; color: var(--apagado); font-size: 0.9rem; }

/* ── Portada e índices ── */
.intro { max-width: var(--ancho-lectura); font-size: 1.1rem; color: #c9ced9; }
.rejilla { display: grid; gap: 0.9rem; grid-template-columns: minmax(0, 1fr); margin: 1.5rem 0; }
.tarjeta-sec { padding: 1.1rem; border: 1px solid var(--linea); border-radius: 14px; background: var(--tarjeta); }
.tarjeta-sec h2 { margin: 0 0 0.3rem; font-size: 1.15rem; border: 0; padding: 0; }
.tarjeta-sec h2 a { color: #fff; text-decoration: none; }
.tarjeta-sec h2 a:hover { color: var(--azul); }
.tarjeta-sec p { margin: 0 0 0.6rem; color: var(--apagado); font-size: 0.95rem; }
.tarjeta-sec ul { margin: 0; padding-left: 1.1rem; font-size: 0.95rem; }
.lista-pag { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.6rem; max-width: var(--ancho-lectura); }
.lista-pag a { display: block; padding: 0.9rem 1rem; border: 1px solid var(--linea); border-radius: 12px; background: var(--tarjeta); text-decoration: none; color: #fff; min-height: 2.75rem; }
.lista-pag a:hover { border-color: var(--azul); }
.lista-pag span { display: block; color: var(--apagado); font-size: 0.9rem; font-weight: 400; }
.vacia { color: var(--apagado); }

/* ── Pie ── */
.pie { border-top: 1px solid var(--linea); background: rgba(0, 0, 0, 0.35); padding: 1.5rem 1rem 2rem; font-size: 0.9rem; color: var(--apagado); }
.pie-in { max-width: 80rem; margin: 0 auto; display: grid; gap: 0.8rem; }
.pie ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.pie a { color: var(--apagado); display: inline-block; padding: 0.3rem 0; min-height: 2.25rem; }
.pie a:hover { color: #fff; }

/* ── Pantallas más anchas ── */
@media (min-width: 480px) { .marca .nombre { display: inline; } }
@media (min-width: 768px) {
  .cab .boton { display: inline-flex; }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sigue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sigue .sig { text-align: right; grid-column: 2; }
  .sigue .ant:only-child { grid-column: 1; }
}
@media (min-width: 1024px) {
  .menu-movil { display: none; }
  .menu-lateral { display: block; position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 5.5rem); overflow: auto; padding-right: 0.5rem; }
  .pagina { grid-template-columns: 16.5rem minmax(0, 1fr); gap: 2rem; padding-top: 1.5rem; }
  .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .pagina.con-toc { grid-template-columns: 16.5rem minmax(0, 1fr) 14rem; }
  .toc { display: block; position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 5.5rem); overflow: auto; font-size: 0.88rem; }
  .toc b { display: block; margin-bottom: 0.4rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--azul); }
  .toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--linea); }
  .toc a { display: block; padding: 0.3rem 0.8rem; color: var(--apagado); text-decoration: none; line-height: 1.35; }
  .toc a:hover { color: #fff; }
  .toc .h3 a { padding-left: 1.6rem; font-size: 0.84rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .boton { border: 2px solid; } .menu li a[aria-current="page"] { outline: 2px solid; } }
@media print { .cab, .menu-movil, .menu-lateral, .toc, .sigue, .cta, .pie { display: none; } body { background: #fff; color: #000; } .contenido h1 { color: #000; background: none; } }
