/* ============================================================
 * theme.css — TEMA de la gu\u00eda de plano cartesiano (LIBRE).
 * Leyenda (ejes/punto), dibujo del plano y plano interactivo.
 * Andamiaje en assets/guia-components.css; variables --guia-*.
 * ============================================================ */

/* ===== Leyenda de color (ejes / punto) ===== */
.fr-legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; background: #fff; border: 1.5px solid var(--guia-line); border-radius: 12px; padding: 10px 14px; font-size: 15px; font-weight: 600; }
.fr-legend .it { display: flex; gap: 8px; align-items: center; }
.fr-legend .it b { font-weight: 800; }
.fr-legend .sw { width: 17px; height: 17px; border-radius: 4px; flex: 0 0 auto; }
.fr-legend .sw.x { background: var(--guia-orange); border: 2px solid var(--guia-orange); }
.fr-legend .sw.y { background: var(--guia-navy); border: 2px solid var(--guia-navy); }
.fr-legend .sw.pt { background: var(--guia-green-deep); border: 2px solid var(--guia-ink); border-radius: 50%; }

/* ===== El plano cartesiano (dibujo SVG estático) ===== */
.fr-visual { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 2px 0; }
.fr-visual .vcap { font-size: 15px; font-weight: 700; color: var(--guia-muted); text-align: center; max-width: 44ch; }
/* Ancho RESUELTO (viewBox + max-width): el plano nunca colapsa a "astilla". */
.fr-plane-svg { width: 100%; max-width: 340px; height: auto; display: block; }

/* ===== Plano interactivo (se toca) ===== */
.fr-plot { display: grid; gap: 14px; padding: 16px; border: 2px solid var(--guia-ink); border-radius: 14px; background: var(--guia-cream); }
.fr-lab-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fr-lab-flag { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--guia-orange); border: 2px solid var(--guia-ink); border-radius: 999px; padding: 3px 11px; }
.fr-lab-inst { font-size: 15px; font-weight: 700; color: var(--guia-deep); }
/* Caja del plano tocable: centra si cabe, se desplaza si no (móvil) */
.fr-plot-stage { overflow-x: auto; overflow-y: hidden; text-align: center; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.fr-plot-stage .fr-plane-svg.is-click { display: inline-block; }
.fr-hit { cursor: pointer; transition: fill .1s; }
.fr-hit:hover { fill: rgba(245, 130, 31, .18); }
.fr-lab-read { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; min-height: 1.8em; }
.fr-lab-read .big { font-size: 26px; }
.fr-lab-read .cap { font-size: 17px; font-weight: 600; color: var(--guia-muted); }
.fr-lab-read .cap.good { color: var(--guia-green-deep); font-weight: 800; }
.fr-lab-read .cap.bad { color: #a01243; font-weight: 700; }
.fr-plot-ctrl { display: flex; justify-content: center; }
.fr-chip { font: inherit; font-weight: 800; font-size: 17px; min-width: 42px; padding: 9px 16px; border: 2px solid var(--guia-ink); border-radius: 10px; background: #fff; color: var(--guia-ink); cursor: pointer; box-shadow: 2px 2px 0 var(--guia-ink); transition: transform .1s, box-shadow .1s; }
.fr-chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--guia-ink); }
.fr-chip:active { transform: translate(0, 0); box-shadow: 1px 1px 0 var(--guia-ink); }

/* ===== Impresi\u00f3n: oculta el plano interactivo del tema ===== */
@media print {
  .fr-plot { display: none !important; }
}
