/* ============================================================
   punto_fijo.css — Estilos para el método del Punto Fijo
   ============================================================ */

/* Variables heredadas de style.css se extienden aquí */
.logo-pf {
  background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
}

.leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}
.leyenda span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.linea, .punto-ley {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
}
.linea.yx { background: #64748b; }
.linea.gx { background: #2563eb; }
.linea.escalera { background: #ef4444; }
.punto-ley { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
.punto-ley.x0 { background: #f59e0b; }
.punto-ley.xn { background: #22c55e; }

.ejemplos {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.fila-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.controles-paso {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.controles-paso button {
  flex: 1 1 120px;
}

.info-actual {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  font-size: 14px;
  line-height: 1.5;
}
.info-linea {
  margin-bottom: 6px;
}
.info-linea:last-child { margin-bottom: 0; }

.resultado-pf {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  text-align: center;
  font-size: 15px;
  color: var(--text);
}
.fp-raiz { font-size: 22px; margin-bottom: 6px; }
.fp-raiz strong { color: #22c55e; }
.fp-detalles { font-size: 13px; color: var(--muted); }

.formula-metodo {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}
.formula {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  margin: 10px 0;
  color: var(--text);
  text-align: center;
}
.formula-nota {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.pasos-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}
.paso-vacio {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
}
.paso-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: background .2s ease, border-color .2s ease;
}
.paso-item.activo {
  background: rgba(14, 165, 233, 0.10);
  border-color: rgba(14, 165, 233, 0.35);
}
.paso-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.paso-body p { margin: 0 0 4px; font-size: 13px; }
.paso-body p:last-child { margin-bottom: 0; color: var(--muted); }

@media (max-width: 1024px) {
  .fila-2 { grid-template-columns: 1fr; }
}

/* Tema oscuro */
[data-tema="oscuro"] .linea.yx { background: #94a3b8; }
[data-tema="oscuro"] .linea.gx { background: #60a5fa; }
[data-tema="oscuro"] .linea.escalera { background: #f87171; }
[data-tema="oscuro"] .punto-ley.x0 { background: #fbbf24; }
[data-tema="oscuro"] .punto-ley.xn { background: #4ade80; }
[data-tema="oscuro"] .fp-raiz strong { color: #4ade80; }
