/* ============================================================
 * theme.css — TEMA de la guia del efecto fotoelectrico (capa LIBRE).
 * SOLO estilos del tema (prefijo fk-): dibujos SVG, leyenda de color
 * y el widget fkWidget (camara de luz con sliders).
 * NO redefine clases guia-* (andamiaje bloqueado).
 * Colores de UI con var(--guia-*); hex solo dentro de SVG en theme.js.
 * ============================================================ */

/* ===== Dibujos estaticos ===== */
.fk-visual { margin: 14px 0; text-align: center; }
.fk-svg { width: 100%; max-width: 420px; height: auto; display: inline-block; }

/* ===== Leyenda de color ===== */
.fk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 6px;
  padding: 12px 14px;
  border: 1.5px solid var(--guia-line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  color: var(--guia-ink);
}
.fk-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -2px;
}

/* ===== Widget fkWidget ===== */
.fk-widget {
  margin: 16px 0;
  padding: 16px 14px;
  border: 2px solid var(--guia-line);
  border-radius: 16px;
  background: #fff;
}

/* Cabecera del widget */
.fk-whead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.fk-flag {
  flex: none;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--guia-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.fk-winst {
  font-size: 15px;
  color: var(--guia-muted);
  font-weight: 600;
  line-height: 1.45;
}

/* Selector de metal */
.fk-selrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.fk-lbl {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--guia-muted);
  margin-bottom: 4px;
}
.fk-sel {
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--guia-line);
  border-radius: 12px;
  background: var(--guia-cream);
  color: var(--guia-ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  min-width: 180px;
}
.fk-sel:focus { outline: 3px solid var(--guia-orange); outline-offset: 2px; }

/* Sliders */
.fk-slrow { margin-bottom: 12px; }
.fk-val {
  font-size: 14px;
  font-weight: 900;
  color: var(--guia-ink);
  margin-left: 6px;
}
.fk-range {
  display: block;
  width: 100%;
  height: 28px;
  cursor: pointer;
  margin-top: 4px;
}
.fk-range.fq { accent-color: var(--guia-orange); }
.fk-range.dt { accent-color: var(--guia-navy); }
.fk-flabels {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--guia-muted);
}

/* Pantalla principal (camara SVG + lecturas) */
.fk-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
}
.fk-chamber { text-align: center; }
.fk-chamber-svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: inline-block;
  border: 1.5px solid var(--guia-line);
  border-radius: 10px;
}

/* Lecturas numericas */
.fk-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fk-cell {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--guia-line);
  background: var(--guia-cream);
  text-align: center;
}
.fk-clbl {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--guia-muted);
  margin-bottom: 3px;
}
.fk-cell strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--guia-ink);
}
.fk-cell.fq strong { color: var(--guia-orange); }
.fk-cell.dt strong { color: var(--guia-navy); }
.fk-cell.ek strong { color: var(--guia-green-deep); }
.fk-cell.cnt strong { color: var(--guia-deep); }

/* Veredicto */
.fk-verdict {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  min-height: 2em;
}
.fk-verdict.ok {
  background: #EAF5EC;
  border: 1.5px solid var(--guia-green);
  color: #14592A;
}
.fk-verdict.bad {
  background: #FBEAE8;
  border: 1.5px solid #B3261E;
  color: #7E1A14;
}
.fk-verdict strong { font-weight: 900; }

/* ===== Responsive 360px ===== */
@media (max-width: 540px) {
  .fk-readout { grid-template-columns: 1fr; }
  .fk-cell strong { font-size: 16px; }
  .fk-selrow { flex-direction: column; align-items: flex-start; }
  .fk-sel { width: 100%; }
  .fk-legend { font-size: 14px; }
}

/* ===== Impresion: los widgets no aportan en papel ===== */
@media print {
  .fk-widget { display: none !important; }
}
