/* ============================================================
 * theme.css — TEMA de la guía de Lentes convergentes y divergentes.
 * Solo clases con prefijo `lnt-`. CERO redefiniciones del andamiaje (guia-*).
 * Colores: var(--guia-*) únicamente, excepto dentro de SVG (modo claro fijo).
 * ============================================================ */

/* ===== Visual containers ===== */
.lnt-visual {
  margin: .75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lnt-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 460px;
}

.lnt-label {
  font-size: 11px;
  fill: var(--guia-muted, #888);
}

/* ===== Leyenda de color ===== */
.lnt-legend {
  font-size: 12px;
  color: var(--guia-muted);
  margin: .5rem 0 .25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .8rem;
}

/* ===== Widget contenedor ===== */
.lnt-widget {
  border: 1px solid var(--guia-line);
  border-radius: 10px;
  padding: 1rem;
  margin: .75rem 0;
  background: var(--guia-cream);
}

.lnt-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}

.lnt-mode-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--guia-ink);
}

/* ===== SVG del diagrama de rayos ===== */
.lnt-ray-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: var(--guia-bg);
  touch-action: pan-y;
  max-height: 280px;
}

.lnt-canvas-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: .5rem;
}

/* ===== Barra de info (caso actual) ===== */
.lnt-info-bar {
  font-size: 13px;
  color: var(--guia-ink);
  background: var(--guia-bg);
  border-radius: 6px;
  padding: .4rem .75rem;
  margin-bottom: .5rem;
  min-height: 2rem;
  line-height: 1.5;
}

/* ===== Controles del objeto ===== */
.lnt-obj-ctrl {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ===== Botones pequeños ===== */
.lnt-btn-sm {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--guia-line);
  border-radius: 6px;
  background: var(--guia-cream);
  color: var(--guia-ink);
  cursor: pointer;
  white-space: nowrap;
}
.lnt-btn-sm:hover {
  background: var(--guia-bg);
}
.lnt-btn-sm:active {
  opacity: .8;
}

/* ===== Widget ojo-defecto ===== */
.lnt-eye-buttons {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

.lnt-eye-btn {
  font-size: 13px;
  padding: 5px 12px;
  border: 1px solid var(--guia-line);
  border-radius: 8px;
  background: var(--guia-cream);
  color: var(--guia-ink);
  cursor: pointer;
}
.lnt-eye-btn:hover {
  background: var(--guia-bg);
}
.lnt-eye-btn.active {
  background: var(--guia-navy, #283891);
  color: #fff;
  border-color: var(--guia-navy, #283891);
}

.lnt-eye-display {
  margin-top: .5rem;
}

.lnt-eye-info {
  border-radius: 0 6px 6px 0;
  margin-top: .5rem;
}

.lnt-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: .5rem;
  font-weight: 600;
}

/* ===== Tabla comparativa en M4 ===== */
.lnt-widget table,
.guia-idea table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

/* ===== Responsivo ===== */
@media (max-width: 400px) {
  .lnt-ray-svg {
    min-width: 320px;
  }
  .lnt-obj-ctrl {
    font-size: 12px;
  }
  .lnt-info-bar {
    font-size: 12px;
  }
}

@media print {
  .lnt-widget { display: none !important; }
}
