/* Ilustraciones de teoría (ver ilustraciones.js). Solo colores del tema → valen en claro y oscuro. */
.ilustracion { width: 100%; max-width: 280px; height: auto; display: block; margin-inline: auto; }
.ilustracion .il-base { fill: var(--texto); }
.ilustracion .il-acento { fill: var(--primario); }
.ilustracion .il-aviso { fill: var(--aviso); }
.ilustracion .il-papel { fill: var(--superficie); }
.ilustracion .il-resalta { fill: var(--ok-fondo); }
.ilustracion .il-sombra { fill: var(--superficie-2); }
.ilustracion .il-tubo { fill: var(--superficie-2); stroke: var(--texto); stroke-width: 3; }
.ilustracion .il-tecla { fill: var(--superficie); }
.ilustracion .il-tecla.il-pulsada { fill: var(--primario); transform: translateY(2px); }
.ilustracion .il-borde { stroke: var(--texto); stroke-width: 3; stroke-linejoin: round; }
.ilustracion .il-linea { fill: none; stroke: var(--texto-suave); stroke-width: 3; stroke-linecap: round; }
.ilustracion .il-linea.il-claro { stroke: var(--sobre-tecla); }
.ilustracion .il-linea.il-celda { stroke: var(--borde); stroke-width: 2; }
.ilustracion .il-linea.il-gruesa { stroke-width: 5; stroke: var(--texto); }
.ilustracion .il-acento-linea { fill: none; stroke: var(--primario); stroke-width: 5; stroke-linecap: round; }
.ilustracion .il-ola { fill: none; stroke: var(--primario); stroke-width: 4; stroke-linecap: round; }
.ilustracion .il-rama { stroke: var(--primario); }

/* movimiento suave: un solo gesto, en bucle lento */
.ilustracion .il-sale { animation: il-sale 3.2s var(--curva) infinite alternate; transform-box: fill-box; }
.ilustracion .il-fluye { animation: il-fluye 2.4s linear infinite; }
.ilustracion .il-flota { animation: il-flota 3s ease-in-out infinite alternate; }
.ilustracion .il-pulsa { animation: il-pulsa 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ilustracion .il-parpadea { animation: il-parpadea 1.6s steps(2, jump-none) infinite; }
.ilustracion .il-aguja { animation: il-aguja 6s linear infinite; transform-origin: 80px 50px; }
.ilustracion .il-escribe { stroke-dasharray: 120; animation: il-escribe 3s ease-in-out infinite alternate; }
.ilustracion .il-aparece { animation: il-aparece 3s ease-in-out infinite alternate; }
@keyframes il-sale { to { transform: translateY(-8px); } }
@keyframes il-fluye { from { transform: translateX(-24px); } to { transform: translateX(0); } }
@keyframes il-flota { to { transform: translateY(4px); } }
@keyframes il-pulsa { 50% { transform: scale(1.18); } }
@keyframes il-parpadea { 50% { opacity: .35; } }
@keyframes il-aguja { to { transform: rotate(360deg); } }
@keyframes il-escribe { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes il-aparece { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { :root:not([data-movimiento="completo"]) .ilustracion * { animation: none !important; } }
:root[data-movimiento="reducido"] .ilustracion * { animation: none !important; }

/* 24.3 Esquemas con texto (ver esquemas.js): estáticos, solo colores del tema */
.esquema { margin: var(--e-3) auto; max-width: 520px; }
.esquema-svg { width: 100%; height: auto; display: block; }
.esquema-svg text { font-family: var(--fuente); }
.esquema-svg .es-mono { font-family: var(--fuente-codigo); }
.esquema-svg .es-t { fill: var(--texto); font-size: 14px; }
.esquema-svg .es-suave { fill: var(--texto-suave); font-size: 13px; }
.esquema-svg .es-s { font-size: 13px; }
.esquema-svg .es-xs { font-size: 12px; }
.esquema-svg .es-grande { font-size: 20px; font-weight: 700; }
.esquema-svg .es-titulo { font-size: 14px; font-weight: 700; }
.esquema-svg .es-sobre-1 { fill: var(--ok-texto); }
.esquema-svg .es-sobre-2 { fill: var(--casi-texto); }
.esquema-svg .es-sobre-cab { fill: var(--sobre-tecla); font-weight: 700; }
.esquema-svg .es-caja { fill: var(--superficie); stroke: var(--texto); stroke-width: 2; }
.esquema-svg .es-caja.es-caja-1 { fill: var(--ok-fondo); }
.esquema-svg .es-caja.es-caja-2 { fill: var(--casi-fondo); }
.esquema-svg .es-cab { fill: var(--tecla); }
.esquema-svg .es-celda { fill: var(--superficie); stroke: var(--borde); stroke-width: 1; }
.esquema-svg .es-fila-1 { fill: var(--ok-fondo); stroke: var(--borde); stroke-width: 1; }
.esquema-svg .es-fila-2 { fill: var(--casi-fondo); stroke: var(--borde); stroke-width: 1; }
.esquema-svg .es-marco { fill: none; stroke: var(--texto); stroke-width: 2; }
.esquema-svg .es-flecha { fill: none; stroke: var(--texto); stroke-width: 2.5; stroke-linecap: round; }
.esquema-svg .es-flecha.es-punta { fill: var(--texto); stroke-linejoin: round; }
.esquema-svg .es-linea { fill: none; stroke: var(--texto-suave); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.esquema-svg .es-linea.es-gruesa { stroke: var(--texto); stroke-width: 5; }
.esquema-svg .es-linea.es-rama-linea { stroke: var(--primario); }
.esquema-svg .es-nodo { fill: var(--superficie); stroke: var(--texto); stroke-width: 3; }
.esquema-svg .es-nodo.es-nodo-rama { fill: var(--primario); }
.esquema-svg .es-nodo.es-nodo-fusion { fill: var(--aviso); }
