/* esquemas.css — solo maquetación de los esquemas de la puesta en marcha.
   La piel es fanzine.css (copia sin cambios de la piel de la familia) y no se toca.
   Aquí no hay colores nuevos: negro, blanco y los grises que ya usa la piel. */

:root { color-scheme: light; }
html { background: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* La cabecera de la piel está pensada para una palabra; aquí lleva dos */
.header h1 { font-size: clamp(1.3rem, 5.4vw, 2.5rem); letter-spacing: clamp(1px, 0.6vw, 6px); overflow-wrap: anywhere; }
.header { padding-top: 50px; }

/* Texto corrido */
.txt { font-size: 0.8rem; margin: 6px 0; max-width: 72ch; }
.etq { display: block; font-size: 0.6rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.7; margin-bottom: 3px; }
.sec { margin-top: 30px; }
.sec > h2 { font-size: 1.1rem; letter-spacing: 3px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; margin-bottom: 4px; }
.pie { font-size: 0.7rem; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #000; }
code { font-family: inherit; font-weight: bold; }

/* Fichas de preset: los chips de la piel, pulsables */
.fichas { display: flex; flex-wrap: wrap; gap: 4px 2px; margin: 10px 0 4px; }
.fichas button { font: inherit; cursor: pointer; background: #fff; color: #000; font-size: 0.72rem; padding: 6px 12px; min-height: 34px; }
.fichas button:hover { background: #000; color: #fff; }
.fichas button[aria-pressed="true"] { background: #000; color: #fff; }
#lectura { min-height: 2.8em; font-weight: bold; }

/* Los dibujos */
.lienzo { overflow-x: auto; }
figure { margin: 0; }
svg { display: block; width: 100%; min-width: 720px; height: auto; font-family: 'Courier New', Courier, monospace; }
svg text { fill: #000; font-size: 12px; }
svg .menor { font-size: 10px; }
svg .rotulo { font-size: 10px; letter-spacing: 2px; font-weight: bold; }
svg .caja { fill: #fff; stroke: #000; stroke-width: 2; }
svg .negra { fill: #000; stroke: #000; stroke-width: 2; }
svg .en-negro { fill: #fff; }
svg .hilo { stroke: #000; stroke-width: 1.5; fill: none; }
svg .punteada { stroke-dasharray: 5 4; }
svg .punta { fill: #000; }

/* El mapa con un preset elegido: lo que exige va en negativo, lo opcional a trazos, lo demás se apaga */
.con-preset .nodo, .con-preset .cable, .con-preset .capacidad { opacity: 0.16; }
.con-preset .exige, .con-preset .opcional { opacity: 1; }
.con-preset .nodo.exige .caja { fill: #000; }
.con-preset .nodo.exige text { fill: #fff; }
.con-preset .nodo.opcional .caja { stroke-dasharray: 5 4; }
.con-preset .cable.exige { stroke-width: 3; }
.con-preset .cable.opcional { stroke-dasharray: 5 4; }
.con-preset .capacidad.exige { font-weight: bold; text-decoration: underline; }
.leyenda { display: flex; flex-wrap: wrap; gap: 4px 2px; margin-top: 10px; align-items: center; }
.leyenda .kw-apagado { opacity: 0.35; }

/* Tablas */
.tbl-wrap { overflow-x: auto; }
.tbl { font-size: 0.74rem; min-width: 620px; }
.tbl td.c { text-align: center; font-size: 0.9rem; }
.tbl th.c { text-align: center; }
.tbl tr.duda th:first-child, .tbl tr.duda td:first-child { border-left: 6px double #000; }
.tbl tbody th { background: #fff; color: #000; text-transform: none; font-size: 0.74rem; letter-spacing: 0; }

/* La guía: recortes en rejilla */
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px 20px; list-style: none; counter-reset: paso; }
.rejilla .cutout { margin: 14px 0; counter-increment: paso; font-size: 0.72rem; }
.rejilla .cutout::after { content: counter(paso); position: absolute; top: 4px; right: 10px; font-size: 1.5rem; font-weight: bold; opacity: 0.3; }
.rejilla .cutout strong { display: block; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; padding-right: 22px; }
.dudas { list-style: none; }
.dudas li { margin: 8px 0; }

/* Para sacar una sección sola (capturas): ?solo=<id> */
.solo-una body > :not(.elegida) { display: none; }
.solo-una .sec.elegida { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) { .nodo, .cable, .capacidad { transition: opacity 0.2s; } }

/* Chip a trazos: «opcional», «a mano» */
.kw-trazo { display: inline-block; border: 1.5px dashed #000; padding: 1px 6px; font-size: 0.58rem; letter-spacing: 1px; text-transform: uppercase; margin: 2px 3px; }
